@dfds-ui/react-components 2.2.0-alpha.07a3a716 → 2.2.0-alpha.0d0d677f
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 +67 -49
- package/accordion/AccordionContent.d.ts +2 -1
- package/accordion/AccordionContent.js +14 -7
- package/accordion/AccordionSmall.d.ts +3 -2
- package/accordion/AccordionSmall.js +51 -38
- package/app-bar/AppBar.d.ts +3 -3
- package/app-bar/AppBar.js +54 -42
- package/app-bar/AppBarContext.d.ts +3 -3
- package/app-bar/AppBarContext.js +7 -6
- package/app-bar/AppBarDrawer.d.ts +2 -2
- package/app-bar/AppBarDrawer.js +14 -7
- package/app-bar/AppBarIconButton.d.ts +2 -2
- package/app-bar/AppBarIconButton.js +11 -6
- package/app-bar/AppBarItem.d.ts +4 -4
- package/app-bar/AppBarItem.js +70 -61
- package/app-bar/AppBarListItem.d.ts +11 -12
- package/assertions/banner/Banner.d.ts +3 -3
- package/assertions/banner/Banner.js +67 -55
- package/assertions/banner/BannerAction.d.ts +1 -1
- package/assertions/banner/BannerAction.js +10 -5
- package/assertions/banner/BannerTypography.d.ts +2 -0
- package/assertions/banner/BannerTypography.js +11 -8
- package/assertions/toast/Toast.d.ts +2 -1
- package/assertions/toast/Toast.js +34 -24
- package/assertions/toast/Toaster.d.ts +2 -2
- package/assertions/toast/Toaster.js +53 -58
- package/badge/Badge.d.ts +2 -2
- package/badge/Badge.js +18 -11
- package/button/BadgeIcon.d.ts +3 -3
- package/button/BadgeIcon.js +18 -16
- package/button/BaseButton.d.ts +6 -6
- package/button/BaseButton.js +1 -1
- package/button/Button.d.ts +4 -4
- package/button/Button.js +38 -31
- package/button/IconButton.d.ts +2 -2
- package/button/IconButton.js +21 -15
- package/button/LinkButton.d.ts +2 -2
- package/button/LinkButton.js +9 -4
- package/button/button-style.js +1 -2
- package/button-stack/ButtonStack.d.ts +4 -3
- package/button-stack/ButtonStack.js +30 -22
- package/card/Card.d.ts +3 -2
- package/card/Card.js +53 -39
- package/card/CardActions.js +13 -6
- package/card/CardContent.d.ts +3 -2
- package/card/CardContent.js +21 -11
- package/card/CardMedia.d.ts +4 -3
- package/card/CardMedia.js +17 -9
- package/card/CardPriceTag.d.ts +3 -3
- package/card/CardPriceTag.js +28 -16
- package/card/CardTitle.d.ts +3 -2
- package/card/CardTitle.js +25 -15
- package/chip/Chip.d.ts +5 -5
- package/chip/Chip.js +24 -17
- package/cjs/accordion/Accordion.d.ts +2 -2
- package/cjs/accordion/Accordion.js +61 -49
- package/cjs/accordion/AccordionContent.d.ts +2 -1
- package/cjs/accordion/AccordionContent.js +7 -6
- package/cjs/accordion/AccordionSmall.d.ts +3 -2
- package/cjs/accordion/AccordionSmall.js +44 -37
- package/cjs/app-bar/AppBar.d.ts +3 -3
- package/cjs/app-bar/AppBar.js +51 -43
- package/cjs/app-bar/AppBarContext.d.ts +3 -3
- package/cjs/app-bar/AppBarContext.js +5 -4
- package/cjs/app-bar/AppBarDrawer.d.ts +2 -2
- package/cjs/app-bar/AppBarDrawer.js +8 -8
- package/cjs/app-bar/AppBarIconButton.d.ts +2 -2
- package/cjs/app-bar/AppBarIconButton.js +7 -7
- package/cjs/app-bar/AppBarItem.d.ts +4 -4
- package/cjs/app-bar/AppBarItem.js +63 -60
- package/cjs/app-bar/AppBarListItem.d.ts +11 -12
- package/cjs/app-bar/AppBarListItem.js +1 -2
- package/cjs/assertions/banner/Banner.d.ts +3 -3
- package/cjs/assertions/banner/Banner.js +58 -53
- package/cjs/assertions/banner/BannerAction.d.ts +1 -1
- package/cjs/assertions/banner/BannerAction.js +5 -4
- package/cjs/assertions/banner/BannerTypography.d.ts +2 -0
- package/cjs/assertions/banner/BannerTypography.js +11 -11
- package/cjs/assertions/toast/Toast.d.ts +2 -1
- package/cjs/assertions/toast/Toast.js +28 -24
- package/cjs/assertions/toast/Toaster.d.ts +2 -2
- package/cjs/assertions/toast/Toaster.js +37 -30
- package/cjs/badge/Badge.d.ts +2 -2
- package/cjs/badge/Badge.js +12 -9
- package/cjs/button/BadgeIcon.d.ts +3 -3
- package/cjs/button/BadgeIcon.js +19 -17
- package/cjs/button/BaseButton.d.ts +6 -6
- package/cjs/button/BaseButton.js +3 -5
- package/cjs/button/Button.d.ts +4 -4
- package/cjs/button/Button.js +31 -30
- package/cjs/button/IconButton.d.ts +2 -2
- package/cjs/button/IconButton.js +16 -16
- package/cjs/button/LinkButton.d.ts +2 -2
- package/cjs/button/LinkButton.js +6 -6
- package/cjs/button/button-style.js +9 -17
- package/cjs/button-stack/ButtonStack.d.ts +4 -3
- package/cjs/button-stack/ButtonStack.js +22 -20
- package/cjs/card/Card.d.ts +3 -2
- package/cjs/card/Card.js +43 -33
- package/cjs/card/CardActions.js +7 -7
- package/cjs/card/CardContent.d.ts +3 -2
- package/cjs/card/CardContent.js +15 -11
- package/cjs/card/CardMedia.d.ts +4 -3
- package/cjs/card/CardMedia.js +11 -9
- package/cjs/card/CardPriceTag.d.ts +3 -3
- package/cjs/card/CardPriceTag.js +22 -16
- package/cjs/card/CardTitle.d.ts +3 -2
- package/cjs/card/CardTitle.js +16 -12
- package/cjs/chip/Chip.d.ts +5 -5
- package/cjs/chip/Chip.js +20 -19
- package/cjs/common/LockBodyScroll.d.ts +2 -2
- package/cjs/common/LockBodyScroll.js +15 -11
- package/cjs/common/arrow.d.ts +1 -1
- package/cjs/common/arrow.js +2 -4
- package/cjs/common/emotionCloneElement.d.ts +0 -1
- package/cjs/common/emotionCloneElement.js +1 -2
- package/cjs/common/intent.d.ts +1 -1
- package/cjs/common/polymorphic.d.ts +5 -5
- package/cjs/common/polymorphic.js +9 -5
- package/cjs/common/useOnClickOutside.d.ts +1 -2
- package/cjs/counter/Counter.d.ts +1 -1
- package/cjs/counter/Counter.js +55 -53
- package/cjs/counter/PluralCounter.d.ts +1 -1
- package/cjs/counter/PluralCounter.js +14 -13
- package/cjs/data-table/DataTable.d.ts +3 -2
- package/cjs/data-table/DataTable.js +46 -38
- package/cjs/date-range-picker/DatePickerDefaultStyles.js +2 -4
- package/cjs/date-range-picker/DatePickerDfdsStyles.js +1 -2
- package/cjs/date-range-picker/DateRangePicker.d.ts +1 -1
- package/cjs/date-range-picker/DateRangePicker.js +145 -123
- package/cjs/divider/Divider.d.ts +3 -3
- package/cjs/divider/Divider.js +6 -6
- package/cjs/drawer/Drawer.d.ts +4 -4
- package/cjs/drawer/Drawer.js +11 -9
- package/cjs/dropdown-menu/Dropdown.d.ts +3 -3
- package/cjs/dropdown-menu/Dropdown.js +33 -28
- package/cjs/dropdown-menu/DropdownContext.d.ts +4 -4
- package/cjs/dropdown-menu/DropdownContext.js +7 -8
- package/cjs/dropdown-menu/MenuCheckbox.d.ts +1 -1
- package/cjs/dropdown-menu/MenuCheckbox.js +24 -23
- package/cjs/dropdown-menu/MenuItem.d.ts +1 -1
- package/cjs/dropdown-menu/MenuItem.js +35 -38
- package/cjs/dropdown-menu/MenuTitle.d.ts +1 -1
- package/cjs/dropdown-menu/MenuTitle.js +16 -14
- package/cjs/elevation/index.d.ts +1 -1
- package/cjs/elevation/index.js +4 -8
- package/cjs/flexbox/FlexBox.d.ts +5 -5
- package/cjs/flexbox/FlexBox.js +4 -6
- package/cjs/footer/Footer.d.ts +2 -2
- package/cjs/footer/Footer.js +13 -9
- package/cjs/forms/assistive-text/AssistiveText.d.ts +3 -4
- package/cjs/forms/assistive-text/AssistiveText.js +1 -2
- package/cjs/forms/asterisk/Asterisk.d.ts +2 -2
- package/cjs/forms/asterisk/Asterisk.js +5 -4
- package/cjs/forms/checkbox/Checkbox.d.ts +5 -5
- package/cjs/forms/checkbox/Checkbox.js +41 -37
- package/cjs/forms/checkbox/ExampleControlComponent.d.ts +2 -1
- package/cjs/forms/checkbox/ExampleControlComponent.js +7 -7
- package/cjs/forms/email-field/EmailField.d.ts +2 -2
- package/cjs/forms/email-field/EmailField.js +7 -7
- package/cjs/forms/error-text/ErrorText.d.ts +3 -4
- package/cjs/forms/error-text/ErrorText.js +3 -6
- package/cjs/forms/field/Field.d.ts +2 -1
- package/cjs/forms/field/Field.js +13 -12
- package/cjs/forms/index.d.ts +3 -3
- package/cjs/forms/input/Input.d.ts +3 -3
- package/cjs/forms/input/Input.js +31 -37
- package/cjs/forms/input/InputComposition.d.ts +12 -12
- package/cjs/forms/input/InputComposition.js +39 -34
- package/cjs/forms/label/Label.d.ts +2 -1
- package/cjs/forms/label/Label.js +9 -8
- package/cjs/forms/number-field/NumberField.d.ts +2 -2
- package/cjs/forms/number-field/NumberField.js +7 -8
- package/cjs/forms/password-field/PasswordField.d.ts +1 -1
- package/cjs/forms/password-field/PasswordField.js +12 -13
- package/cjs/forms/radio/Radio.d.ts +4 -4
- package/cjs/forms/radio/Radio.js +23 -23
- package/cjs/forms/reactselect/ReactSelect.d.ts +15 -15
- package/cjs/forms/reactselect/ReactSelect.js +74 -66
- package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +2 -2
- package/cjs/forms/searchable-select/AsyncSearchableSelect.js +47 -38
- package/cjs/forms/select/Select.d.ts +4 -4
- package/cjs/forms/select/Select.js +33 -35
- package/cjs/forms/select-field/SelectField.d.ts +3 -3
- package/cjs/forms/select-field/SelectField.js +37 -37
- package/cjs/forms/switch/Switch.d.ts +2 -2
- package/cjs/forms/switch/Switch.js +41 -38
- package/cjs/forms/tel-field/TelField.d.ts +2 -2
- package/cjs/forms/tel-field/TelField.js +7 -7
- package/cjs/forms/text-field/TextField.d.ts +4 -4
- package/cjs/forms/text-field/TextField.js +42 -43
- package/cjs/global-styles/GlobalStyles.d.ts +3 -3
- package/cjs/global-styles/GlobalStyles.js +3 -2
- package/cjs/global-styles/ResetStyles.d.ts +2 -2
- package/cjs/global-styles/ResetStyles.js +3 -3
- package/cjs/global-styles/sanitize.js +3 -5
- package/cjs/grid/Column.d.ts +1 -1
- package/cjs/grid/Column.js +7 -7
- package/cjs/grid/Container.d.ts +2 -2
- package/cjs/grid/Container.js +33 -24
- package/cjs/hero/Hero.d.ts +2 -2
- package/cjs/hero/Hero.js +42 -26
- package/cjs/hero/stripes.d.ts +2 -2
- package/cjs/hero/stripes.js +177 -162
- package/cjs/ie-banner/IEBanner.d.ts +2 -1
- package/cjs/ie-banner/IEBanner.js +13 -8
- package/cjs/layout/LayoutLegacy.d.ts +2 -2
- package/cjs/layout/LayoutLegacy.js +2 -1
- package/cjs/lists/FeatureList.d.ts +7 -9
- package/cjs/lists/FeatureList.js +16 -13
- package/cjs/lists/ListAddon.d.ts +2 -2
- package/cjs/lists/ListAddon.js +10 -7
- package/cjs/lists/ListDivider.d.ts +3 -3
- package/cjs/lists/ListDivider.js +6 -6
- package/cjs/lists/ListIcon.d.ts +3 -3
- package/cjs/lists/ListIcon.js +6 -6
- package/cjs/lists/ListItem.d.ts +2 -2
- package/cjs/lists/ListItem.js +7 -6
- package/cjs/lists/ListText.d.ts +4 -4
- package/cjs/lists/ListText.js +6 -6
- package/cjs/lists/ListTextGroup.d.ts +2 -2
- package/cjs/lists/ListTextGroup.js +6 -6
- package/cjs/lists/ListTitle.d.ts +2 -2
- package/cjs/lists/ListTitle.js +7 -8
- package/cjs/loader/DfdsLoader.d.ts +1 -1
- package/cjs/loader/DfdsLoader.js +29 -24
- package/cjs/loader/Loader.d.ts +3 -3
- package/cjs/loader/Loader.js +10 -5
- package/cjs/localization/LocaleFlag.d.ts +3 -3
- package/cjs/localization/LocaleFlag.js +5 -4
- package/cjs/localization/locales.d.ts +2 -2
- package/cjs/localization/locales.js +3 -6
- package/cjs/logo/Logo.d.ts +3 -3
- package/cjs/logo/Logo.js +12 -9
- package/cjs/media/index.js +1 -2
- package/cjs/menu/Menu.d.ts +1 -1
- package/cjs/menu/Menu.js +27 -20
- package/cjs/mobile-stepper/MobileStepper.d.ts +3 -3
- package/cjs/mobile-stepper/MobileStepper.js +19 -19
- package/cjs/nav-bar/NavBar.d.ts +11 -9
- package/cjs/nav-bar/NavBar.js +44 -39
- package/cjs/nav-menu/NavMenuItem.d.ts +1 -1
- package/cjs/nav-menu/NavMenuItem.js +14 -13
- package/cjs/pagination/Pagination.d.ts +3 -3
- package/cjs/pagination/Pagination.js +52 -42
- package/cjs/pagination/Pagination.styles.js +7 -14
- package/cjs/popper/Popper.d.ts +4 -4
- package/cjs/popper/Popper.js +21 -17
- package/cjs/progress-bar/ProgressBar.d.ts +3 -3
- package/cjs/progress-bar/ProgressBar.js +5 -7
- package/cjs/schedule/ScheduleItem.d.ts +8 -10
- package/cjs/schedule/ScheduleItem.js +11 -8
- package/cjs/schedule/ScheduleList.d.ts +3 -3
- package/cjs/schedule/ScheduleList.js +10 -11
- package/cjs/side-sheet/SideSheet.d.ts +5 -5
- package/cjs/side-sheet/SideSheet.js +46 -43
- package/cjs/side-sheet/SideSheetCloseButton.d.ts +2 -2
- package/cjs/side-sheet/SideSheetCloseButton.js +6 -6
- package/cjs/side-sheet/SideSheetContent.d.ts +3 -3
- package/cjs/side-sheet/SideSheetContent.js +10 -7
- package/cjs/side-sheet/SideSheetFooter.d.ts +3 -3
- package/cjs/side-sheet/SideSheetFooter.js +10 -7
- package/cjs/side-sheet/SideSheetHeader.d.ts +3 -3
- package/cjs/side-sheet/SideSheetHeader.js +10 -7
- package/cjs/side-sheet/SideSheetHeadline.d.ts +3 -3
- package/cjs/side-sheet/SideSheetHeadline.js +6 -5
- package/cjs/site-layout/SiteLayout.d.ts +15 -11
- package/cjs/site-layout/SiteLayout.js +35 -25
- package/cjs/skeleton/Skeleton.d.ts +3 -3
- package/cjs/skeleton/Skeleton.js +6 -6
- package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +7 -9
- package/cjs/social-media-link-list/SocialMediaLinkList.js +64 -58
- package/cjs/spinner/Spinner.d.ts +9 -9
- package/cjs/spinner/Spinner.js +14 -15
- package/cjs/step/Step.d.ts +2 -2
- package/cjs/step/Step.js +29 -20
- package/cjs/step/Step.styles.js +5 -10
- package/cjs/step/StepButton.d.ts +2 -2
- package/cjs/step/StepButton.js +30 -29
- package/cjs/step/StepContent.d.ts +3 -3
- package/cjs/step/StepContent.js +14 -14
- package/cjs/step/StepContext.d.ts +1 -1
- package/cjs/step/StepContext.js +1 -2
- package/cjs/step/StepLabel.d.ts +1 -1
- package/cjs/step/StepLabel.js +10 -9
- package/cjs/stepper/Stepper.d.ts +2 -2
- package/cjs/stepper/Stepper.js +14 -14
- package/cjs/stepper/StepperContext.d.ts +1 -1
- package/cjs/stepper/StepperContext.js +1 -2
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.d.ts +2 -2
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.js +11 -9
- package/cjs/styles/media.d.ts +1 -1
- package/cjs/styles/media.js +2 -4
- package/cjs/styles/style-helpers.js +1 -2
- package/cjs/styles/theme.d.ts +1 -1
- package/cjs/styles/theme.js +2 -4
- package/cjs/surface/Surface.d.ts +7 -7
- package/cjs/surface/Surface.js +20 -14
- package/cjs/tab/Tab.d.ts +3 -3
- package/cjs/tab/Tab.js +9 -9
- package/cjs/tab/TabPanel.d.ts +2 -2
- package/cjs/tab/TabPanel.js +7 -7
- package/cjs/tab/Tabs.d.ts +3 -3
- package/cjs/tab/Tabs.js +32 -32
- package/cjs/tab/TabsContext.d.ts +3 -3
- package/cjs/tab/TabsContext.js +7 -8
- package/cjs/table/Table.d.ts +3 -3
- package/cjs/table/Table.js +15 -15
- package/cjs/table/TableBody.d.ts +2 -2
- package/cjs/table/TableBody.js +8 -9
- package/cjs/table/TableDataCell.d.ts +2 -2
- package/cjs/table/TableDataCell.js +9 -10
- package/cjs/table/TableHead.d.ts +2 -2
- package/cjs/table/TableHead.js +10 -12
- package/cjs/table/TableHeaderCell.d.ts +3 -3
- package/cjs/table/TableHeaderCell.js +9 -10
- package/cjs/table/TableRow.d.ts +2 -2
- package/cjs/table/TableRow.js +9 -10
- package/cjs/test/Test.js +5 -4
- package/cjs/tooltip/Tooltip.d.ts +4 -4
- package/cjs/tooltip/Tooltip.js +30 -25
- package/cjs/typography/Headlines.d.ts +41 -40
- package/cjs/typography/Headlines.js +25 -33
- package/cjs/typography/Text.d.ts +2 -3
- package/cjs/typography/Text.js +3 -5
- package/common/LockBodyScroll.d.ts +2 -2
- package/common/LockBodyScroll.js +20 -10
- package/common/arrow.d.ts +1 -1
- package/common/arrow.js +2 -4
- package/common/emotionCloneElement.d.ts +0 -1
- package/common/intent.d.ts +1 -1
- package/common/polymorphic.d.ts +5 -5
- package/common/polymorphic.js +9 -3
- package/common/use-media.js +2 -2
- package/common/useOnClickOutside.d.ts +1 -2
- package/counter/Counter.d.ts +1 -1
- package/counter/Counter.js +55 -52
- package/counter/PluralCounter.d.ts +1 -1
- package/counter/PluralCounter.js +21 -13
- package/data-table/DataTable.d.ts +3 -2
- package/data-table/DataTable.js +53 -40
- package/date-range-picker/DatePickerDefaultStyles.js +1 -2
- package/date-range-picker/DateRangePicker.d.ts +1 -1
- package/date-range-picker/DateRangePicker.js +152 -132
- package/divider/Divider.d.ts +3 -3
- package/divider/Divider.js +10 -5
- package/drawer/Drawer.d.ts +4 -4
- package/drawer/Drawer.js +16 -7
- package/dropdown-menu/Dropdown.d.ts +3 -3
- package/dropdown-menu/Dropdown.js +39 -28
- package/dropdown-menu/DropdownContext.d.ts +4 -4
- package/dropdown-menu/DropdownContext.js +5 -4
- package/dropdown-menu/MenuCheckbox.d.ts +1 -1
- package/dropdown-menu/MenuCheckbox.js +24 -17
- package/dropdown-menu/MenuItem.d.ts +1 -1
- package/dropdown-menu/MenuItem.js +31 -28
- package/dropdown-menu/MenuTitle.d.ts +1 -1
- package/dropdown-menu/MenuTitle.js +15 -13
- package/elevation/index.d.ts +1 -1
- package/elevation/index.js +3 -6
- package/flexbox/FlexBox.d.ts +5 -5
- package/flexbox/FlexBox.js +4 -4
- package/footer/Footer.d.ts +2 -2
- package/footer/Footer.js +12 -7
- package/forms/assistive-text/AssistiveText.d.ts +3 -4
- package/forms/asterisk/Asterisk.d.ts +2 -2
- package/forms/asterisk/Asterisk.js +4 -2
- package/forms/checkbox/Checkbox.d.ts +5 -5
- package/forms/checkbox/Checkbox.js +49 -40
- package/forms/checkbox/ExampleControlComponent.d.ts +2 -1
- package/forms/checkbox/ExampleControlComponent.js +15 -8
- package/forms/email-field/EmailField.d.ts +2 -2
- package/forms/email-field/EmailField.js +9 -4
- package/forms/error-text/ErrorText.d.ts +3 -4
- package/forms/error-text/ErrorText.js +2 -4
- package/forms/field/Field.d.ts +2 -1
- package/forms/field/Field.js +12 -10
- package/forms/index.d.ts +3 -3
- package/forms/input/Input.d.ts +3 -3
- package/forms/input/Input.js +37 -38
- package/forms/input/InputComposition.d.ts +12 -12
- package/forms/input/InputComposition.js +40 -29
- package/forms/label/Label.d.ts +2 -1
- package/forms/label/Label.js +17 -11
- package/forms/number-field/NumberField.d.ts +2 -2
- package/forms/number-field/NumberField.js +10 -6
- package/forms/password-field/PasswordField.d.ts +1 -1
- package/forms/password-field/PasswordField.js +17 -12
- package/forms/radio/Radio.d.ts +4 -4
- package/forms/radio/Radio.js +29 -23
- package/forms/reactselect/ReactSelect.d.ts +15 -15
- package/forms/reactselect/ReactSelect.js +71 -64
- package/forms/searchable-select/AsyncSearchableSelect.d.ts +2 -2
- package/forms/searchable-select/AsyncSearchableSelect.js +51 -39
- package/forms/select/Select.d.ts +4 -4
- package/forms/select/Select.js +40 -37
- package/forms/select-field/SelectField.d.ts +3 -3
- package/forms/select-field/SelectField.js +42 -37
- package/forms/switch/Switch.d.ts +2 -2
- package/forms/switch/Switch.js +52 -43
- package/forms/tel-field/TelField.d.ts +2 -2
- package/forms/tel-field/TelField.js +9 -4
- package/forms/text-field/TextField.d.ts +4 -4
- package/forms/text-field/TextField.js +49 -44
- 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 +3 -4
- package/global-styles/sanitize.js +1 -2
- package/grid/Column.d.ts +1 -1
- package/grid/Column.js +13 -6
- package/grid/Container.d.ts +2 -2
- package/grid/Container.js +42 -32
- package/hero/Hero.d.ts +2 -2
- package/hero/Hero.js +42 -24
- package/hero/stripes.d.ts +2 -2
- package/hero/stripes.js +176 -160
- package/ie-banner/IEBanner.d.ts +2 -1
- package/ie-banner/IEBanner.js +14 -8
- package/layout/LayoutLegacy.d.ts +2 -2
- package/layout/LayoutLegacy.js +2 -2
- package/lists/FeatureList.d.ts +7 -9
- package/lists/FeatureList.js +21 -11
- package/lists/ListAddon.d.ts +2 -2
- package/lists/ListAddon.js +13 -6
- package/lists/ListDivider.d.ts +3 -3
- package/lists/ListDivider.js +10 -5
- package/lists/ListIcon.d.ts +3 -3
- package/lists/ListIcon.js +10 -5
- package/lists/ListItem.d.ts +2 -2
- package/lists/ListItem.js +13 -6
- package/lists/ListText.d.ts +4 -4
- package/lists/ListText.js +10 -5
- package/lists/ListTextGroup.d.ts +2 -2
- package/lists/ListTextGroup.js +10 -5
- package/lists/ListTitle.d.ts +2 -2
- package/lists/ListTitle.js +11 -7
- package/loader/DfdsLoader.d.ts +1 -1
- package/loader/DfdsLoader.js +26 -21
- package/loader/Loader.d.ts +3 -3
- package/loader/Loader.js +9 -4
- package/localization/LocaleFlag.d.ts +3 -3
- package/localization/LocaleFlag.js +10 -5
- package/localization/locales.d.ts +2 -2
- package/logo/Logo.d.ts +3 -3
- package/logo/Logo.js +14 -7
- package/menu/Menu.d.ts +1 -1
- package/menu/Menu.js +30 -17
- package/mobile-stepper/MobileStepper.d.ts +3 -3
- package/mobile-stepper/MobileStepper.js +28 -22
- package/nav-bar/NavBar.d.ts +11 -9
- package/nav-bar/NavBar.js +53 -38
- package/nav-menu/NavMenuItem.d.ts +1 -1
- package/nav-menu/NavMenuItem.js +13 -12
- package/package.json +20 -20
- package/pagination/Pagination.d.ts +3 -3
- package/pagination/Pagination.js +55 -39
- package/pagination/Pagination.styles.js +1 -2
- package/popper/Popper.d.ts +4 -4
- package/popper/Popper.js +26 -16
- package/progress-bar/ProgressBar.d.ts +3 -3
- package/progress-bar/ProgressBar.js +4 -6
- package/schedule/ScheduleItem.d.ts +8 -10
- package/schedule/ScheduleItem.js +9 -4
- package/schedule/ScheduleList.d.ts +3 -3
- package/schedule/ScheduleList.js +16 -10
- package/side-sheet/SideSheet.d.ts +5 -5
- package/side-sheet/SideSheet.js +52 -44
- package/side-sheet/SideSheetCloseButton.d.ts +2 -2
- package/side-sheet/SideSheetCloseButton.js +10 -5
- package/side-sheet/SideSheetContent.d.ts +3 -3
- package/side-sheet/SideSheetContent.js +17 -8
- package/side-sheet/SideSheetFooter.d.ts +3 -3
- package/side-sheet/SideSheetFooter.js +17 -8
- package/side-sheet/SideSheetHeader.d.ts +3 -3
- package/side-sheet/SideSheetHeader.js +17 -8
- package/side-sheet/SideSheetHeadline.d.ts +3 -3
- package/side-sheet/SideSheetHeadline.js +5 -4
- package/site-layout/SiteLayout.d.ts +15 -11
- package/site-layout/SiteLayout.js +36 -18
- package/skeleton/Skeleton.d.ts +3 -3
- package/skeleton/Skeleton.js +10 -5
- package/social-media-link-list/SocialMediaLinkList.d.ts +7 -9
- package/social-media-link-list/SocialMediaLinkList.js +69 -55
- package/spinner/Spinner.d.ts +9 -9
- package/spinner/Spinner.js +18 -12
- package/step/Step.d.ts +2 -2
- package/step/Step.js +34 -20
- package/step/Step.styles.js +1 -2
- package/step/StepButton.d.ts +2 -2
- package/step/StepButton.js +27 -21
- 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 +9 -8
- package/stepper/Stepper.d.ts +2 -2
- package/stepper/Stepper.js +15 -15
- package/stepper/StepperContext.d.ts +1 -1
- package/stepper-feedback-message/StepperFeedbackMessage.d.ts +2 -2
- package/stepper-feedback-message/StepperFeedbackMessage.js +10 -8
- package/styles/media.d.ts +1 -1
- package/styles/style-helpers.js +1 -2
- package/styles/theme.d.ts +1 -1
- package/surface/Surface.d.ts +7 -7
- package/surface/Surface.js +17 -14
- package/tab/Tab.d.ts +3 -3
- package/tab/Tab.js +18 -12
- package/tab/TabPanel.d.ts +2 -2
- package/tab/TabPanel.js +6 -5
- package/tab/Tabs.d.ts +3 -3
- package/tab/Tabs.js +46 -40
- package/tab/TabsContext.d.ts +3 -3
- package/tab/TabsContext.js +5 -4
- package/table/Table.d.ts +3 -3
- package/table/Table.js +20 -13
- package/table/TableBody.d.ts +2 -2
- package/table/TableBody.js +13 -7
- package/table/TableDataCell.d.ts +2 -2
- package/table/TableDataCell.js +14 -8
- package/table/TableHead.d.ts +2 -2
- package/table/TableHead.js +10 -8
- package/table/TableHeaderCell.d.ts +3 -3
- package/table/TableHeaderCell.js +14 -8
- package/table/TableRow.d.ts +2 -2
- package/table/TableRow.js +11 -10
- package/test/Test.js +4 -2
- package/tooltip/Tooltip.d.ts +4 -4
- package/tooltip/Tooltip.js +33 -24
- package/typography/Headlines.d.ts +41 -40
- package/typography/Headlines.js +24 -19
- package/typography/Text.d.ts +2 -3
- package/typography/Text.js +1 -2
package/hero/stripes.js
CHANGED
|
@@ -1,169 +1,185 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { theme } from '@dfds-ui/theme';
|
|
3
|
-
import { jsx as
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
4
4
|
var Stripes = function Stripes(props) {
|
|
5
5
|
var stopColor = props.color ? props.color : theme.colors.primary.main;
|
|
6
|
-
return
|
|
6
|
+
return _jsxs("svg", {
|
|
7
7
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8
8
|
width: "600",
|
|
9
9
|
height: "300",
|
|
10
|
-
viewBox: "0 0 600 300"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
10
|
+
viewBox: "0 0 600 300",
|
|
11
|
+
children: [_jsxs("defs", {
|
|
12
|
+
children: [_jsxs("linearGradient", {
|
|
13
|
+
id: "a",
|
|
14
|
+
x1: "34.045%",
|
|
15
|
+
x2: "60.664%",
|
|
16
|
+
y1: "27.872%",
|
|
17
|
+
y2: "57.624%",
|
|
18
|
+
children: [_jsx("stop", {
|
|
19
|
+
offset: "0%",
|
|
20
|
+
stopColor: stopColor
|
|
21
|
+
}), _jsx("stop", {
|
|
22
|
+
offset: "100%",
|
|
23
|
+
stopColor: stopColor,
|
|
24
|
+
stopOpacity: "0"
|
|
25
|
+
})]
|
|
26
|
+
}), _jsxs("linearGradient", {
|
|
27
|
+
id: "b",
|
|
28
|
+
x1: "100%",
|
|
29
|
+
x2: "24.236%",
|
|
30
|
+
y1: "50%",
|
|
31
|
+
y2: "50%",
|
|
32
|
+
children: [_jsx("stop", {
|
|
33
|
+
offset: "0%",
|
|
34
|
+
stopColor: "#FFF",
|
|
35
|
+
stopOpacity: "0.5"
|
|
36
|
+
}), _jsx("stop", {
|
|
37
|
+
offset: "100%",
|
|
38
|
+
stopColor: "#FFF",
|
|
39
|
+
stopOpacity: "0"
|
|
40
|
+
})]
|
|
41
|
+
}), _jsxs("linearGradient", {
|
|
42
|
+
id: "c",
|
|
43
|
+
x1: "100%",
|
|
44
|
+
x2: "0%",
|
|
45
|
+
y1: "50%",
|
|
46
|
+
y2: "50%",
|
|
47
|
+
children: [_jsx("stop", {
|
|
48
|
+
offset: "0%",
|
|
49
|
+
stopColor: "#FFF"
|
|
50
|
+
}), _jsx("stop", {
|
|
51
|
+
offset: "100%",
|
|
52
|
+
stopColor: "#FFF",
|
|
53
|
+
stopOpacity: "0"
|
|
54
|
+
})]
|
|
55
|
+
}), _jsxs("linearGradient", {
|
|
56
|
+
id: "d",
|
|
57
|
+
x1: "100%",
|
|
58
|
+
x2: "0%",
|
|
59
|
+
y1: "50.002%",
|
|
60
|
+
y2: "50.002%",
|
|
61
|
+
children: [_jsx("stop", {
|
|
62
|
+
offset: "0%",
|
|
63
|
+
stopColor: "#FFF",
|
|
64
|
+
stopOpacity: "0.3"
|
|
65
|
+
}), _jsx("stop", {
|
|
66
|
+
offset: "100%",
|
|
67
|
+
stopColor: "#FFF",
|
|
68
|
+
stopOpacity: "0"
|
|
69
|
+
})]
|
|
70
|
+
}), _jsxs("linearGradient", {
|
|
71
|
+
id: "e",
|
|
72
|
+
x1: "0%",
|
|
73
|
+
x2: "32.615%",
|
|
74
|
+
y1: "50%",
|
|
75
|
+
y2: "50%",
|
|
76
|
+
children: [_jsx("stop", {
|
|
77
|
+
offset: "0%",
|
|
78
|
+
stopColor: stopColor
|
|
79
|
+
}), _jsx("stop", {
|
|
80
|
+
offset: "100%",
|
|
81
|
+
stopColor: stopColor,
|
|
82
|
+
stopOpacity: "0.4"
|
|
83
|
+
})]
|
|
84
|
+
}), _jsxs("linearGradient", {
|
|
85
|
+
id: "f",
|
|
86
|
+
x1: "56.707%",
|
|
87
|
+
x2: "74.064%",
|
|
88
|
+
y1: "50%",
|
|
89
|
+
y2: "0%",
|
|
90
|
+
children: [_jsx("stop", {
|
|
91
|
+
offset: "0%",
|
|
92
|
+
stopColor: "#FFF"
|
|
93
|
+
}), _jsx("stop", {
|
|
94
|
+
offset: "100%",
|
|
95
|
+
stopColor: "#FFF",
|
|
96
|
+
stopOpacity: "0"
|
|
97
|
+
})]
|
|
98
|
+
}), _jsxs("linearGradient", {
|
|
99
|
+
id: "g",
|
|
100
|
+
x1: "100%",
|
|
101
|
+
x2: "24.236%",
|
|
102
|
+
y1: "50%",
|
|
103
|
+
y2: "50%",
|
|
104
|
+
children: [_jsx("stop", {
|
|
105
|
+
offset: "0%",
|
|
106
|
+
stopColor: "#FFF",
|
|
107
|
+
stopOpacity: "0.5"
|
|
108
|
+
}), _jsx("stop", {
|
|
109
|
+
offset: "100%",
|
|
110
|
+
stopColor: "#FFF",
|
|
111
|
+
stopOpacity: "0"
|
|
112
|
+
})]
|
|
113
|
+
}), _jsxs("linearGradient", {
|
|
114
|
+
id: "h",
|
|
115
|
+
x1: "34.058%",
|
|
116
|
+
x2: "54.049%",
|
|
117
|
+
y1: "98.329%",
|
|
118
|
+
y2: "0%",
|
|
119
|
+
children: [_jsx("stop", {
|
|
120
|
+
offset: "0%",
|
|
121
|
+
stopColor: stopColor
|
|
122
|
+
}), _jsx("stop", {
|
|
123
|
+
offset: "100%",
|
|
124
|
+
stopColor: stopColor,
|
|
125
|
+
stopOpacity: "0"
|
|
126
|
+
})]
|
|
127
|
+
}), _jsxs("linearGradient", {
|
|
128
|
+
id: "i",
|
|
129
|
+
x1: "29.102%",
|
|
130
|
+
x2: "53.879%",
|
|
131
|
+
y1: "94.85%",
|
|
132
|
+
y2: "11.912%",
|
|
133
|
+
children: [_jsx("stop", {
|
|
134
|
+
offset: "0%",
|
|
135
|
+
stopColor: stopColor
|
|
136
|
+
}), _jsx("stop", {
|
|
137
|
+
offset: "100%",
|
|
138
|
+
stopColor: stopColor,
|
|
139
|
+
stopOpacity: "0"
|
|
140
|
+
})]
|
|
141
|
+
})]
|
|
142
|
+
}), _jsxs("g", {
|
|
143
|
+
fill: "none",
|
|
144
|
+
fillRule: "nonzero",
|
|
145
|
+
stroke: "none",
|
|
146
|
+
strokeWidth: "1",
|
|
147
|
+
children: [_jsxs("g", {
|
|
148
|
+
children: [_jsx("path", {
|
|
149
|
+
fill: "url(#a)",
|
|
150
|
+
d: "M187 0L17.5623569 300 5.02504288e-13 300 3.0494357e-13 0z"
|
|
151
|
+
}), _jsx("path", {
|
|
152
|
+
fill: "url(#b)",
|
|
153
|
+
d: "M225 0L56 300 9.09494702e-13 300 1.10134124e-13 260.381378 147 0z"
|
|
154
|
+
}), _jsx("path", {
|
|
155
|
+
fill: "url(#c)",
|
|
156
|
+
d: "M251.606351 0L83 300 8 300 176.606351 0z",
|
|
157
|
+
opacity: "0.1"
|
|
158
|
+
}), _jsx("path", {
|
|
159
|
+
fill: "url(#d)",
|
|
160
|
+
d: "M197.071475 0L28 300 17.5623569 300 187.071475 0z"
|
|
161
|
+
}), _jsx("path", {
|
|
162
|
+
fill: "url(#e)",
|
|
163
|
+
d: "M1.56235689 300L171 0 -2.08832951e-13 0 -2.08832951e-13 300z"
|
|
164
|
+
})]
|
|
165
|
+
}), _jsxs("g", {
|
|
166
|
+
transform: "rotate(180 300 150)",
|
|
167
|
+
children: [_jsx("path", {
|
|
168
|
+
fill: "url(#f)",
|
|
169
|
+
d: "M75.6063512 0L-2.86454823e-13 134.437093 -7.44558531e-13 0z",
|
|
170
|
+
opacity: "0.227"
|
|
171
|
+
}), _jsx("path", {
|
|
172
|
+
fill: "url(#g)",
|
|
173
|
+
d: "M69 0L7.10542736e-14 122.854849 -5.67508497e-13 0z"
|
|
174
|
+
}), _jsx("path", {
|
|
175
|
+
fill: "url(#h)",
|
|
176
|
+
d: "M-1.34467524e-13 118.657038L67 2.60208521e-16 4.26325641e-14 0z"
|
|
177
|
+
}), _jsx("path", {
|
|
178
|
+
fill: "url(#i)",
|
|
179
|
+
d: "M47 0L3.84619474e-13 83.119437 -2.4158453e-13 0z"
|
|
180
|
+
})]
|
|
181
|
+
})]
|
|
182
|
+
})]
|
|
183
|
+
});
|
|
168
184
|
};
|
|
169
185
|
export default Stripes;
|
package/ie-banner/IEBanner.d.ts
CHANGED
package/ie-banner/IEBanner.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
2
|
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."); }
|
|
3
3
|
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; } }
|
|
4
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++)
|
|
5
|
-
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)
|
|
4
|
+
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; }
|
|
5
|
+
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; } }
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React, { useState, useEffect } from 'react';
|
|
8
8
|
import { Banner, BannerAction, BannerHeadline, BannerParagraph } from './../assertions/banner';
|
|
9
|
-
import { jsx as
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
10
10
|
var IEBanner = function IEBanner(_ref) {
|
|
11
11
|
var heading = _ref.heading,
|
|
12
12
|
openInEdge = _ref.openInEdge,
|
|
@@ -42,15 +42,21 @@ var IEBanner = function IEBanner(_ref) {
|
|
|
42
42
|
document.location.href = getLink;
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
-
return getIE ?
|
|
45
|
+
return getIE ? _jsxs(Banner, {
|
|
46
46
|
intent: 'warning',
|
|
47
47
|
className: className,
|
|
48
|
-
actions:
|
|
48
|
+
actions: _jsx(BannerAction, {
|
|
49
49
|
variation: "primary",
|
|
50
50
|
onClick: getIsWin10 ? function () {
|
|
51
51
|
return navigate();
|
|
52
|
-
} : undefined
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
} : undefined,
|
|
53
|
+
children: openInEdge
|
|
54
|
+
}),
|
|
55
|
+
children: [heading && _jsx(BannerHeadline, {
|
|
56
|
+
children: heading
|
|
57
|
+
}), _jsx(BannerParagraph, {
|
|
58
|
+
children: children
|
|
59
|
+
})]
|
|
60
|
+
}) : null;
|
|
55
61
|
};
|
|
56
62
|
export default IEBanner;
|
package/layout/LayoutLegacy.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Layout: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Layout: () => React.JSX.Element;
|
package/layout/LayoutLegacy.js
CHANGED
|
@@ -4,7 +4,7 @@ var italic = 'https://unpkg.com/@dfds-ui/fonts@0.0.42/fonts/DFDS-Italic.woff2';
|
|
|
4
4
|
var bold = 'https://unpkg.com/@dfds-ui/fonts@0.0.42/fonts/DFDS-Bold.woff2';
|
|
5
5
|
var light = 'https://unpkg.com/@dfds-ui/fonts@0.0.42/fonts/DFDS-Light.woff2';
|
|
6
6
|
import { Global, css } from '@emotion/react';
|
|
7
|
-
import { jsx as
|
|
7
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
8
8
|
var DFDS_FONTS = [{
|
|
9
9
|
fontFamily: 'DFDS',
|
|
10
10
|
woff2: regular,
|
|
@@ -38,7 +38,7 @@ export var Layout = function Layout() {
|
|
|
38
38
|
var sty = /*#__PURE__*/css(DFDS_FONTS.reduce(function (prev, cur) {
|
|
39
39
|
return prev += fontFace(cur);
|
|
40
40
|
}, ''), " *{font-family:DFDS;}" + (process.env.NODE_ENV === "production" ? "" : ";label:sty;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9sYXlvdXQvTGF5b3V0TGVnYWN5LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEwQ2lCIiwiZmlsZSI6Ii4uLy4uL3NyYy9sYXlvdXQvTGF5b3V0TGVnYWN5LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcblxuY29uc3QgcmVndWxhciA9ICdodHRwczovL3VucGtnLmNvbS9AZGZkcy11aS9mb250c0AwLjAuNDIvZm9udHMvREZEUy1SZWd1bGFyLndvZmYyJ1xuY29uc3QgaXRhbGljID0gJ2h0dHBzOi8vdW5wa2cuY29tL0BkZmRzLXVpL2ZvbnRzQDAuMC40Mi9mb250cy9ERkRTLUl0YWxpYy53b2ZmMidcbmNvbnN0IGJvbGQgPSAnaHR0cHM6Ly91bnBrZy5jb20vQGRmZHMtdWkvZm9udHNAMC4wLjQyL2ZvbnRzL0RGRFMtQm9sZC53b2ZmMidcbmNvbnN0IGxpZ2h0ID0gJ2h0dHBzOi8vdW5wa2cuY29tL0BkZmRzLXVpL2ZvbnRzQDAuMC40Mi9mb250cy9ERkRTLUxpZ2h0LndvZmYyJ1xuXG5pbXBvcnQgeyBHbG9iYWwsIGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuXG50eXBlIEZvbnREZWZpbml0aW9uID0ge1xuICBmb250RmFtaWx5OiBzdHJpbmdcbiAgd29mZjI6IHN0cmluZ1xuICBmb250V2VpZ2h0PzogMTAwIHwgMjAwIHwgMzAwIHwgNDAwIHwgNTAwIHwgNjAwIHwgNzAwIHwgODAwXG4gIGZvbnRTdHlsZT86ICdub3JtYWwnIHwgJ2l0YWxpYycgfCAnb2JsaXF1ZSdcbiAgZm9udERpc3BsYXk/OiAnYXV0bycgfCAnYmxvY2snIHwgJ3N3YXAnIHwgJ2ZhbGxiYWNrJyB8ICdvcHRpb25hbCdcbn1cblxuY29uc3QgREZEU19GT05UUzogRm9udERlZmluaXRpb25bXSA9IFtcbiAgeyBmb250RmFtaWx5OiAnREZEUycsIHdvZmYyOiByZWd1bGFyLCBmb250V2VpZ2h0OiA0MDAgfSxcbiAgeyBmb250RmFtaWx5OiAnREZEUycsIHdvZmYyOiBpdGFsaWMsIGZvbnRXZWlnaHQ6IDQwMCwgZm9udFN0eWxlOiAnaXRhbGljJyB9LFxuICB7IGZvbnRGYW1pbHk6ICdERkRTJywgd29mZjI6IGJvbGQsIGZvbnRXZWlnaHQ6IDcwMCB9LFxuICB7IGZvbnRGYW1pbHk6ICdERkRTJywgd29mZjI6IGxpZ2h0LCBmb250V2VpZ2h0OiAzMDAgfSxcbl1cblxuZnVuY3Rpb24gZm9udEZhY2Uoe1xuICBmb250RmFtaWx5LFxuICB3b2ZmMixcbiAgZm9udFdlaWdodCA9IDQwMCxcbiAgZm9udFN0eWxlID0gJ25vcm1hbCcsXG4gIGZvbnREaXNwbGF5ID0gJ2ZhbGxiYWNrJyxcbn06IEZvbnREZWZpbml0aW9uKSB7XG4gIHJldHVybiBgXG4gIEBmb250LWZhY2Uge1xuICAgIGZvbnQtZmFtaWx5OiAke2ZvbnRGYW1pbHl9O1xuICAgIHNyYzp1cmwoJHt3b2ZmMn0pIGZvcm1hdCgnd29mZjInKTtcbiAgICBmb250LXdlaWdodDogJHtmb250V2VpZ2h0fTtcbiAgICBmb250LXN0eWxlOiAke2ZvbnRTdHlsZX07XG4gICAgZm9udC1kaXNwbGF5OiAke2ZvbnREaXNwbGF5fTtcbiAgfWBcbn1cblxuZXhwb3J0IGNvbnN0IExheW91dCA9ICgpID0+IHtcbiAgY29uc3Qgc3R5ID0gY3NzYFxuICAgICR7REZEU19GT05UUy5yZWR1Y2UoKHByZXYsIGN1cikgPT4gKHByZXYgKz0gZm9udEZhY2UoY3VyKSksICcnKX1cblxuICAgICoge1xuICAgICAgZm9udC1mYW1pbHk6IERGRFM7XG4gICAgfVxuICBgXG4gIHJldHVybiA8R2xvYmFsIHN0eWxlcz17c3R5fSAvPlxufVxuIl19 */");
|
|
41
|
-
return
|
|
41
|
+
return _jsx(Global, {
|
|
42
42
|
styles: sty
|
|
43
43
|
});
|
|
44
44
|
};
|
package/lists/FeatureList.d.ts
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { FlexBoxProps } from './../flexbox/FlexBox';
|
|
3
|
-
|
|
3
|
+
type FeatureListProps = {
|
|
4
4
|
icon: any;
|
|
5
5
|
items: string[];
|
|
6
6
|
iconColor?: string;
|
|
7
7
|
textTag?: React.ElementType;
|
|
8
8
|
as?: React.ElementType;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type FeatureListComponent = FunctionComponent<FeatureListProps>;
|
|
11
11
|
export declare const ListItem: import("@emotion/styled").StyledComponent<{
|
|
12
|
-
theme?: import("@emotion/react").Theme
|
|
13
|
-
as?: React.ElementType
|
|
12
|
+
theme?: import("@emotion/react").Theme;
|
|
13
|
+
as?: React.ElementType;
|
|
14
14
|
} & FlexBoxProps & {
|
|
15
|
-
as?: React.ElementType
|
|
15
|
+
as?: React.ElementType;
|
|
16
16
|
} & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
17
|
-
|
|
17
|
+
theme?: import("@emotion/react").Theme;
|
|
18
18
|
} & {
|
|
19
|
-
|
|
20
|
-
} & {
|
|
21
|
-
iconColor?: string | undefined;
|
|
19
|
+
iconColor?: string;
|
|
22
20
|
}, {}, {}>;
|
|
23
21
|
declare const FeatureList: FeatureListComponent;
|
|
24
22
|
export default FeatureList;
|
package/lists/FeatureList.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1
2
|
import _styled from "@emotion/styled/base";
|
|
2
3
|
var _excluded = ["icon", "items", "iconColor", "textTag"];
|
|
3
|
-
function
|
|
4
|
-
function
|
|
5
|
-
function
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
6
11
|
import React from 'react';
|
|
7
12
|
import FlexBox from './../flexbox/FlexBox';
|
|
8
|
-
import { jsx as
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@emotion/react/jsx-runtime";
|
|
9
14
|
export var ListItem = /*#__PURE__*/_styled(FlexBox, process.env.NODE_ENV === "production" ? {
|
|
10
15
|
target: "e1hxsk0v0"
|
|
11
16
|
} : {
|
|
@@ -24,13 +29,18 @@ var FeatureList = function FeatureList(_ref2) {
|
|
|
24
29
|
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
25
30
|
var list = items.map(function (item, i) {
|
|
26
31
|
var TextTag = textTag;
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
return _jsxs(ListItem, {
|
|
33
|
+
iconColor: iconColor,
|
|
34
|
+
children: [icon, _jsx(TextTag, {
|
|
35
|
+
children: item
|
|
36
|
+
})]
|
|
37
|
+
}, i);
|
|
38
|
+
});
|
|
39
|
+
return _jsx(_Fragment, {
|
|
40
|
+
children: _jsx(FlexBox, _objectSpread(_objectSpread({}, rest), {}, {
|
|
41
|
+
directionColumn: true,
|
|
42
|
+
children: list
|
|
43
|
+
}))
|
|
31
44
|
});
|
|
32
|
-
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(FlexBox, _extends({}, rest, {
|
|
33
|
-
directionColumn: true
|
|
34
|
-
}), list));
|
|
35
45
|
};
|
|
36
46
|
export default FeatureList;
|
package/lists/ListAddon.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type ListAddonProps = {
|
|
3
3
|
className?: string;
|
|
4
4
|
/**
|
|
5
5
|
* HTML tag or custom component being rendered.
|
|
@@ -7,5 +7,5 @@ export declare type ListAddonProps = {
|
|
|
7
7
|
as?: React.ElementType;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
};
|
|
10
|
-
declare const ListAddon: ({ className, as, children, ...rest }: ListAddonProps) => JSX.Element;
|
|
10
|
+
declare const ListAddon: ({ className, as, children, ...rest }: ListAddonProps) => React.JSX.Element;
|
|
11
11
|
export default ListAddon;
|
package/lists/ListAddon.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1
2
|
var _excluded = ["className", "as", "children"];
|
|
2
|
-
function
|
|
3
|
-
function
|
|
4
|
-
function
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
10
|
import React from 'react';
|
|
6
11
|
import { css } from '@emotion/react';
|
|
7
12
|
import { theme } from '@dfds-ui/theme';
|
|
8
13
|
import ListIcon from './ListIcon';
|
|
9
|
-
import { jsx as
|
|
14
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
10
15
|
var ListAddon = function ListAddon(_ref) {
|
|
11
16
|
var className = _ref.className,
|
|
12
17
|
_ref$as = _ref.as,
|
|
@@ -14,9 +19,11 @@ var ListAddon = function ListAddon(_ref) {
|
|
|
14
19
|
children = _ref.children,
|
|
15
20
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
16
21
|
var Component = as;
|
|
17
|
-
return
|
|
22
|
+
return _jsx(ListIcon, _objectSpread({
|
|
18
23
|
icon: function icon(props) {
|
|
19
|
-
return
|
|
24
|
+
return _jsx(Component, _objectSpread(_objectSpread({}, props), {}, {
|
|
25
|
+
children: children
|
|
26
|
+
}));
|
|
20
27
|
},
|
|
21
28
|
css: /*#__PURE__*/css("flex-basis:auto;height:auto;margin:0;&:first-of-type{margin-left:-", theme.spacing.xs, ";}&:last-of-type{margin-right:-", theme.spacing.xs, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:ListAddon;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saXN0cy9MaXN0QWRkb24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1CYyIsImZpbGUiOiIuLi8uLi9zcmMvbGlzdHMvTGlzdEFkZG9uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuaW1wb3J0IHsgdGhlbWUgfSBmcm9tICdAZGZkcy11aS90aGVtZSdcbmltcG9ydCBMaXN0SWNvbiBmcm9tICcuL0xpc3RJY29uJ1xuXG5leHBvcnQgdHlwZSBMaXN0QWRkb25Qcm9wcyA9IHtcbiAgY2xhc3NOYW1lPzogc3RyaW5nXG4gIC8qKlxuICAgKiBIVE1MIHRhZyBvciBjdXN0b20gY29tcG9uZW50IGJlaW5nIHJlbmRlcmVkLlxuICAgKi9cbiAgYXM/OiBSZWFjdC5FbGVtZW50VHlwZVxuICBjaGlsZHJlbj86IFJlYWN0LlJlYWN0Tm9kZVxufVxuXG5jb25zdCBMaXN0QWRkb24gPSAoeyBjbGFzc05hbWUsIGFzID0gJ3NwYW4nLCBjaGlsZHJlbiwgLi4ucmVzdCB9OiBMaXN0QWRkb25Qcm9wcykgPT4ge1xuICBjb25zdCBDb21wb25lbnQgPSBhc1xuICByZXR1cm4gKFxuICAgIDxMaXN0SWNvblxuICAgICAgaWNvbj17KHByb3BzKSA9PiA8Q29tcG9uZW50IHsuLi5wcm9wc30+e2NoaWxkcmVufTwvQ29tcG9uZW50Pn1cbiAgICAgIGNzcz17Y3NzYFxuICAgICAgICBmbGV4LWJhc2lzOiBhdXRvO1xuICAgICAgICBoZWlnaHQ6IGF1dG87XG4gICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgJjpmaXJzdC1vZi10eXBlIHtcbiAgICAgICAgICBtYXJnaW4tbGVmdDogLSR7dGhlbWUuc3BhY2luZy54c307XG4gICAgICAgIH1cbiAgICAgICAgJjpsYXN0LW9mLXR5cGUge1xuICAgICAgICAgIG1hcmdpbi1yaWdodDogLSR7dGhlbWUuc3BhY2luZy54c307XG4gICAgICAgIH1cbiAgICAgIGB9XG4gICAgICB7Li4ucmVzdH1cbiAgICAvPlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IExpc3RBZGRvblxuIl19 */")
|
|
22
29
|
}, rest));
|
package/lists/ListDivider.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DividerProps } from '../divider';
|
|
3
|
-
export
|
|
4
|
-
declare const ListDivider: ({ indent, margins, as, ...rest }: ListDividerProps) => JSX.Element;
|
|
3
|
+
export type ListDividerProps = Pick<DividerProps, 'as' | 'indent' | 'margins'>;
|
|
4
|
+
declare const ListDivider: ({ indent, margins, as, ...rest }: ListDividerProps) => React.JSX.Element;
|
|
5
5
|
export default ListDivider;
|