@dfds-ui/react-components 2.2.0-alpha.e010e72f → 2.2.0-alpha.eac8b0de
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 +81 -73
- package/cjs/accordion/AccordionContent.d.ts +2 -1
- package/cjs/accordion/AccordionContent.js +13 -14
- package/cjs/accordion/AccordionSmall.d.ts +3 -2
- package/cjs/accordion/AccordionSmall.js +55 -51
- package/cjs/accordion/index.js +3 -3
- package/cjs/app-bar/AppBar.d.ts +3 -3
- package/cjs/app-bar/AppBar.js +93 -106
- package/cjs/app-bar/AppBarContext.d.ts +3 -3
- package/cjs/app-bar/AppBarContext.js +8 -19
- package/cjs/app-bar/AppBarDrawer.d.ts +2 -2
- package/cjs/app-bar/AppBarDrawer.js +17 -18
- package/cjs/app-bar/AppBarIconButton.d.ts +2 -2
- package/cjs/app-bar/AppBarIconButton.js +13 -16
- package/cjs/app-bar/AppBarItem.d.ts +4 -4
- package/cjs/app-bar/AppBarItem.js +80 -91
- package/cjs/app-bar/AppBarListItem.d.ts +11 -12
- package/cjs/app-bar/AppBarListItem.js +1 -2
- package/cjs/app-bar/index.js +8 -8
- package/cjs/assertions/banner/Banner.d.ts +3 -3
- package/cjs/assertions/banner/Banner.js +81 -96
- package/cjs/assertions/banner/BannerAction.d.ts +1 -1
- package/cjs/assertions/banner/BannerAction.js +12 -13
- package/cjs/assertions/banner/BannerTypography.d.ts +2 -0
- 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 +2 -1
- package/cjs/assertions/toast/Toast.js +37 -37
- package/cjs/assertions/toast/Toaster.d.ts +2 -2
- package/cjs/assertions/toast/Toaster.js +56 -68
- package/cjs/assertions/toast/index.js +4 -4
- package/cjs/badge/Badge.d.ts +2 -2
- package/cjs/badge/Badge.js +21 -23
- package/cjs/badge/index.js +3 -3
- 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 +44 -50
- package/cjs/button/IconButton.d.ts +2 -2
- package/cjs/button/IconButton.js +35 -43
- package/cjs/button/LinkButton.d.ts +2 -2
- package/cjs/button/LinkButton.js +7 -7
- package/cjs/button/button-style.js +9 -17
- package/cjs/button/index.js +8 -8
- package/cjs/button-stack/ButtonStack.d.ts +4 -3
- package/cjs/button-stack/ButtonStack.js +30 -32
- package/cjs/button-stack/index.js +1 -1
- package/cjs/card/Card.d.ts +3 -2
- package/cjs/card/Card.js +63 -69
- package/cjs/card/CardActions.js +10 -14
- package/cjs/card/CardContent.d.ts +3 -2
- package/cjs/card/CardContent.js +19 -19
- package/cjs/card/CardMedia.d.ts +4 -3
- package/cjs/card/CardMedia.js +17 -18
- package/cjs/card/CardPriceTag.d.ts +3 -3
- package/cjs/card/CardPriceTag.js +28 -26
- package/cjs/card/CardTitle.d.ts +3 -2
- package/cjs/card/CardTitle.js +25 -23
- package/cjs/card/index.js +6 -6
- package/cjs/chip/Chip.d.ts +5 -5
- package/cjs/chip/Chip.js +33 -47
- package/cjs/chip/index.js +3 -3
- package/cjs/common/LockBodyScroll.d.ts +2 -2
- package/cjs/common/LockBodyScroll.js +19 -18
- 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 +6 -10
- package/cjs/common/intent.d.ts +1 -1
- package/cjs/common/polymorphic.d.ts +5 -5
- package/cjs/common/polymorphic.js +12 -8
- package/cjs/common/use-media.js +1 -10
- package/cjs/common/useOnClickOutside.d.ts +1 -2
- package/cjs/counter/Counter.d.ts +1 -1
- package/cjs/counter/Counter.js +58 -66
- package/cjs/counter/PluralCounter.d.ts +1 -1
- package/cjs/counter/PluralCounter.js +23 -34
- package/cjs/counter/index.js +2 -2
- package/cjs/data-table/DataTable.d.ts +3 -2
- package/cjs/data-table/DataTable.js +56 -59
- package/cjs/data-table/index.js +1 -1
- 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 +172 -177
- package/cjs/date-range-picker/index.js +1 -1
- package/cjs/divider/Divider.d.ts +3 -3
- package/cjs/divider/Divider.js +15 -15
- package/cjs/divider/index.js +1 -1
- package/cjs/drawer/Drawer.d.ts +4 -4
- package/cjs/drawer/Drawer.js +19 -23
- package/cjs/drawer/index.js +1 -1
- package/cjs/dropdown-menu/Dropdown.d.ts +3 -3
- package/cjs/dropdown-menu/Dropdown.js +50 -59
- package/cjs/dropdown-menu/DropdownContext.d.ts +4 -4
- package/cjs/dropdown-menu/DropdownContext.js +8 -9
- package/cjs/dropdown-menu/MenuCheckbox.d.ts +1 -1
- package/cjs/dropdown-menu/MenuCheckbox.js +27 -25
- package/cjs/dropdown-menu/MenuItem.d.ts +1 -1
- package/cjs/dropdown-menu/MenuItem.js +53 -68
- package/cjs/dropdown-menu/MenuTitle.d.ts +1 -1
- package/cjs/dropdown-menu/MenuTitle.js +19 -16
- package/cjs/dropdown-menu/index.js +6 -6
- 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 +7 -17
- package/cjs/flexbox/index.js +1 -1
- package/cjs/footer/Footer.d.ts +2 -2
- package/cjs/footer/Footer.js +13 -9
- package/cjs/footer/index.js +1 -1
- 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 +55 -56
- package/cjs/forms/checkbox/ExampleControlComponent.d.ts +2 -1
- package/cjs/forms/checkbox/ExampleControlComponent.js +13 -24
- 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 +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/index.js +18 -18
- package/cjs/forms/input/Input.d.ts +3 -3
- package/cjs/forms/input/Input.js +44 -52
- package/cjs/forms/input/InputComposition.d.ts +12 -12
- package/cjs/forms/input/InputComposition.js +61 -60
- package/cjs/forms/label/Label.d.ts +2 -1
- package/cjs/forms/label/Label.js +15 -16
- 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 +14 -24
- package/cjs/forms/radio/Radio.d.ts +4 -4
- package/cjs/forms/radio/Radio.js +29 -34
- package/cjs/forms/reactselect/ReactSelect.d.ts +15 -15
- package/cjs/forms/reactselect/ReactSelect.js +103 -103
- package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +2 -2
- package/cjs/forms/searchable-select/AsyncSearchableSelect.js +73 -68
- package/cjs/forms/select/Select.d.ts +4 -4
- package/cjs/forms/select/Select.js +43 -47
- package/cjs/forms/select-field/SelectField.d.ts +3 -3
- package/cjs/forms/select-field/SelectField.js +50 -51
- package/cjs/forms/switch/Switch.d.ts +2 -2
- package/cjs/forms/switch/Switch.js +52 -53
- 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 +58 -60
- 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 +15 -17
- package/cjs/grid/Container.d.ts +2 -2
- package/cjs/grid/Container.js +42 -35
- package/cjs/grid/index.js +2 -2
- package/cjs/hero/Hero.d.ts +2 -2
- package/cjs/hero/Hero.js +42 -26
- package/cjs/hero/index.js +1 -1
- 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 +17 -27
- 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 +2 -1
- package/cjs/lists/FeatureList.d.ts +7 -9
- package/cjs/lists/FeatureList.js +23 -23
- package/cjs/lists/ListAddon.d.ts +2 -2
- package/cjs/lists/ListAddon.js +16 -16
- package/cjs/lists/ListDivider.d.ts +3 -3
- package/cjs/lists/ListDivider.js +12 -15
- package/cjs/lists/ListIcon.d.ts +3 -3
- package/cjs/lists/ListIcon.js +18 -21
- package/cjs/lists/ListItem.d.ts +2 -2
- package/cjs/lists/ListItem.js +22 -30
- package/cjs/lists/ListText.d.ts +4 -4
- package/cjs/lists/ListText.js +14 -17
- package/cjs/lists/ListTextGroup.d.ts +2 -2
- package/cjs/lists/ListTextGroup.js +15 -19
- package/cjs/lists/ListTitle.d.ts +2 -2
- package/cjs/lists/ListTitle.js +11 -15
- package/cjs/lists/index.js +8 -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/loader/index.js +2 -2
- package/cjs/localization/LocaleFlag.d.ts +3 -3
- package/cjs/localization/LocaleFlag.js +13 -16
- package/cjs/localization/index.js +2 -2
- 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 +17 -16
- package/cjs/logo/index.js +1 -1
- package/cjs/media/index.js +1 -2
- package/cjs/menu/Menu.d.ts +1 -1
- package/cjs/menu/Menu.js +45 -40
- package/cjs/menu/index.js +3 -3
- package/cjs/mobile-stepper/MobileStepper.d.ts +3 -3
- package/cjs/mobile-stepper/MobileStepper.js +27 -31
- package/cjs/mobile-stepper/index.js +1 -1
- package/cjs/nav-bar/NavBar.d.ts +11 -9
- package/cjs/nav-bar/NavBar.js +66 -73
- package/cjs/nav-bar/index.js +3 -3
- package/cjs/nav-menu/NavMenuItem.d.ts +1 -1
- package/cjs/nav-menu/NavMenuItem.js +14 -13
- package/cjs/nav-menu/index.js +1 -1
- package/cjs/pagination/Pagination.d.ts +3 -3
- package/cjs/pagination/Pagination.js +59 -48
- package/cjs/pagination/Pagination.styles.js +7 -14
- package/cjs/pagination/index.js +1 -1
- package/cjs/popper/Popper.d.ts +4 -4
- package/cjs/popper/Popper.js +41 -41
- package/cjs/popper/index.js +1 -1
- package/cjs/progress-bar/ProgressBar.d.ts +3 -3
- package/cjs/progress-bar/ProgressBar.js +5 -7
- package/cjs/progress-bar/index.js +3 -3
- 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 +14 -17
- package/cjs/schedule/index.js +2 -2
- package/cjs/side-sheet/SideSheet.d.ts +5 -5
- package/cjs/side-sheet/SideSheet.js +75 -88
- package/cjs/side-sheet/SideSheetCloseButton.d.ts +2 -2
- package/cjs/side-sheet/SideSheetCloseButton.js +14 -19
- package/cjs/side-sheet/SideSheetContent.d.ts +3 -3
- package/cjs/side-sheet/SideSheetContent.js +16 -15
- package/cjs/side-sheet/SideSheetFooter.d.ts +3 -3
- package/cjs/side-sheet/SideSheetFooter.js +16 -15
- package/cjs/side-sheet/SideSheetHeader.d.ts +3 -3
- package/cjs/side-sheet/SideSheetHeader.js +18 -18
- package/cjs/side-sheet/SideSheetHeadline.d.ts +3 -3
- package/cjs/side-sheet/SideSheetHeadline.js +6 -5
- package/cjs/side-sheet/index.js +5 -5
- package/cjs/site-layout/SiteLayout.d.ts +15 -11
- package/cjs/site-layout/SiteLayout.js +59 -52
- package/cjs/site-layout/index.js +3 -3
- package/cjs/skeleton/Skeleton.d.ts +3 -3
- package/cjs/skeleton/Skeleton.js +13 -17
- package/cjs/skeleton/index.js +1 -1
- package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +7 -9
- package/cjs/social-media-link-list/SocialMediaLinkList.js +77 -73
- package/cjs/social-media-link-list/index.js +1 -1
- package/cjs/spinner/Spinner.d.ts +9 -9
- package/cjs/spinner/Spinner.js +22 -27
- package/cjs/spinner/index.js +1 -1
- package/cjs/step/Step.d.ts +2 -2
- package/cjs/step/Step.js +50 -49
- package/cjs/step/Step.styles.js +5 -10
- package/cjs/step/StepButton.d.ts +2 -2
- package/cjs/step/StepButton.js +44 -41
- package/cjs/step/StepContent.d.ts +3 -3
- package/cjs/step/StepContent.js +17 -16
- 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 +14 -12
- package/cjs/step/index.js +1 -1
- package/cjs/stepper/Stepper.d.ts +2 -2
- package/cjs/stepper/Stepper.js +27 -36
- package/cjs/stepper/StepperContext.d.ts +1 -1
- package/cjs/stepper/StepperContext.js +1 -2
- package/cjs/stepper/index.js +1 -1
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.d.ts +2 -2
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.js +11 -9
- 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/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 +33 -33
- package/cjs/surface/index.js +1 -1
- package/cjs/tab/Tab.d.ts +3 -3
- package/cjs/tab/Tab.js +22 -23
- package/cjs/tab/TabPanel.d.ts +2 -2
- package/cjs/tab/TabPanel.js +10 -9
- package/cjs/tab/Tabs.d.ts +3 -3
- package/cjs/tab/Tabs.js +53 -69
- package/cjs/tab/TabsContext.d.ts +3 -3
- package/cjs/tab/TabsContext.js +8 -9
- package/cjs/tab/index.js +4 -4
- package/cjs/table/Table.d.ts +3 -3
- package/cjs/table/Table.js +21 -25
- package/cjs/table/TableBody.d.ts +2 -2
- package/cjs/table/TableBody.js +12 -15
- package/cjs/table/TableDataCell.d.ts +2 -2
- package/cjs/table/TableDataCell.js +14 -18
- package/cjs/table/TableHead.d.ts +2 -2
- package/cjs/table/TableHead.js +18 -21
- package/cjs/table/TableHeaderCell.d.ts +3 -3
- package/cjs/table/TableHeaderCell.js +14 -18
- package/cjs/table/TableRow.d.ts +2 -2
- package/cjs/table/TableRow.js +18 -21
- package/cjs/table/index.js +6 -6
- package/cjs/test/Test.js +5 -4
- package/cjs/tooltip/Tooltip.d.ts +4 -4
- package/cjs/tooltip/Tooltip.js +41 -37
- package/cjs/tooltip/index.js +3 -3
- package/cjs/typography/Headlines.d.ts +41 -40
- package/cjs/typography/Headlines.js +33 -44
- package/cjs/typography/Text.d.ts +2 -3
- package/cjs/typography/Text.js +3 -5
- package/cjs/typography/index.js +2 -2
- 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 +21 -21
- 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/cjs/index.js
CHANGED
|
@@ -12,31 +12,31 @@ var _exportNames = {
|
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "DfdsFontFace", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function
|
|
15
|
+
get: function () {
|
|
16
16
|
return _GlobalStyles.DfdsFontFace;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "GlobalStyles", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function
|
|
21
|
+
get: function () {
|
|
22
22
|
return _GlobalStyles.GlobalStyles;
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "ResetStyles", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function
|
|
27
|
+
get: function () {
|
|
28
28
|
return _ResetStyles.ResetStyles;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "elevation", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function
|
|
33
|
+
get: function () {
|
|
34
34
|
return _elevation.default;
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "media", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function
|
|
39
|
+
get: function () {
|
|
40
40
|
return _media.default;
|
|
41
41
|
}
|
|
42
42
|
});
|
|
@@ -51,7 +51,7 @@ Object.keys(_accordion).forEach(function (key) {
|
|
|
51
51
|
if (key in exports && exports[key] === _accordion[key]) return;
|
|
52
52
|
Object.defineProperty(exports, key, {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function
|
|
54
|
+
get: function () {
|
|
55
55
|
return _accordion[key];
|
|
56
56
|
}
|
|
57
57
|
});
|
|
@@ -63,7 +63,7 @@ Object.keys(_appBar).forEach(function (key) {
|
|
|
63
63
|
if (key in exports && exports[key] === _appBar[key]) return;
|
|
64
64
|
Object.defineProperty(exports, key, {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function
|
|
66
|
+
get: function () {
|
|
67
67
|
return _appBar[key];
|
|
68
68
|
}
|
|
69
69
|
});
|
|
@@ -75,7 +75,7 @@ Object.keys(_assertions).forEach(function (key) {
|
|
|
75
75
|
if (key in exports && exports[key] === _assertions[key]) return;
|
|
76
76
|
Object.defineProperty(exports, key, {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function
|
|
78
|
+
get: function () {
|
|
79
79
|
return _assertions[key];
|
|
80
80
|
}
|
|
81
81
|
});
|
|
@@ -87,7 +87,7 @@ Object.keys(_badge).forEach(function (key) {
|
|
|
87
87
|
if (key in exports && exports[key] === _badge[key]) return;
|
|
88
88
|
Object.defineProperty(exports, key, {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function
|
|
90
|
+
get: function () {
|
|
91
91
|
return _badge[key];
|
|
92
92
|
}
|
|
93
93
|
});
|
|
@@ -99,7 +99,7 @@ Object.keys(_buttonStack).forEach(function (key) {
|
|
|
99
99
|
if (key in exports && exports[key] === _buttonStack[key]) return;
|
|
100
100
|
Object.defineProperty(exports, key, {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function
|
|
102
|
+
get: function () {
|
|
103
103
|
return _buttonStack[key];
|
|
104
104
|
}
|
|
105
105
|
});
|
|
@@ -111,7 +111,7 @@ Object.keys(_button).forEach(function (key) {
|
|
|
111
111
|
if (key in exports && exports[key] === _button[key]) return;
|
|
112
112
|
Object.defineProperty(exports, key, {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function
|
|
114
|
+
get: function () {
|
|
115
115
|
return _button[key];
|
|
116
116
|
}
|
|
117
117
|
});
|
|
@@ -123,7 +123,7 @@ Object.keys(_card).forEach(function (key) {
|
|
|
123
123
|
if (key in exports && exports[key] === _card[key]) return;
|
|
124
124
|
Object.defineProperty(exports, key, {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function
|
|
126
|
+
get: function () {
|
|
127
127
|
return _card[key];
|
|
128
128
|
}
|
|
129
129
|
});
|
|
@@ -135,7 +135,7 @@ Object.keys(_chip).forEach(function (key) {
|
|
|
135
135
|
if (key in exports && exports[key] === _chip[key]) return;
|
|
136
136
|
Object.defineProperty(exports, key, {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function
|
|
138
|
+
get: function () {
|
|
139
139
|
return _chip[key];
|
|
140
140
|
}
|
|
141
141
|
});
|
|
@@ -147,7 +147,7 @@ Object.keys(_polymorphic).forEach(function (key) {
|
|
|
147
147
|
if (key in exports && exports[key] === _polymorphic[key]) return;
|
|
148
148
|
Object.defineProperty(exports, key, {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function
|
|
150
|
+
get: function () {
|
|
151
151
|
return _polymorphic[key];
|
|
152
152
|
}
|
|
153
153
|
});
|
|
@@ -159,7 +159,7 @@ Object.keys(_counter).forEach(function (key) {
|
|
|
159
159
|
if (key in exports && exports[key] === _counter[key]) return;
|
|
160
160
|
Object.defineProperty(exports, key, {
|
|
161
161
|
enumerable: true,
|
|
162
|
-
get: function
|
|
162
|
+
get: function () {
|
|
163
163
|
return _counter[key];
|
|
164
164
|
}
|
|
165
165
|
});
|
|
@@ -171,7 +171,7 @@ Object.keys(_dataTable).forEach(function (key) {
|
|
|
171
171
|
if (key in exports && exports[key] === _dataTable[key]) return;
|
|
172
172
|
Object.defineProperty(exports, key, {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function
|
|
174
|
+
get: function () {
|
|
175
175
|
return _dataTable[key];
|
|
176
176
|
}
|
|
177
177
|
});
|
|
@@ -183,7 +183,7 @@ Object.keys(_dateRangePicker).forEach(function (key) {
|
|
|
183
183
|
if (key in exports && exports[key] === _dateRangePicker[key]) return;
|
|
184
184
|
Object.defineProperty(exports, key, {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function
|
|
186
|
+
get: function () {
|
|
187
187
|
return _dateRangePicker[key];
|
|
188
188
|
}
|
|
189
189
|
});
|
|
@@ -195,7 +195,7 @@ Object.keys(_drawer).forEach(function (key) {
|
|
|
195
195
|
if (key in exports && exports[key] === _drawer[key]) return;
|
|
196
196
|
Object.defineProperty(exports, key, {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function
|
|
198
|
+
get: function () {
|
|
199
199
|
return _drawer[key];
|
|
200
200
|
}
|
|
201
201
|
});
|
|
@@ -207,7 +207,7 @@ Object.keys(_footer).forEach(function (key) {
|
|
|
207
207
|
if (key in exports && exports[key] === _footer[key]) return;
|
|
208
208
|
Object.defineProperty(exports, key, {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function
|
|
210
|
+
get: function () {
|
|
211
211
|
return _footer[key];
|
|
212
212
|
}
|
|
213
213
|
});
|
|
@@ -219,7 +219,7 @@ Object.keys(_forms).forEach(function (key) {
|
|
|
219
219
|
if (key in exports && exports[key] === _forms[key]) return;
|
|
220
220
|
Object.defineProperty(exports, key, {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function
|
|
222
|
+
get: function () {
|
|
223
223
|
return _forms[key];
|
|
224
224
|
}
|
|
225
225
|
});
|
|
@@ -231,7 +231,7 @@ Object.keys(_grid).forEach(function (key) {
|
|
|
231
231
|
if (key in exports && exports[key] === _grid[key]) return;
|
|
232
232
|
Object.defineProperty(exports, key, {
|
|
233
233
|
enumerable: true,
|
|
234
|
-
get: function
|
|
234
|
+
get: function () {
|
|
235
235
|
return _grid[key];
|
|
236
236
|
}
|
|
237
237
|
});
|
|
@@ -243,7 +243,7 @@ Object.keys(_hero).forEach(function (key) {
|
|
|
243
243
|
if (key in exports && exports[key] === _hero[key]) return;
|
|
244
244
|
Object.defineProperty(exports, key, {
|
|
245
245
|
enumerable: true,
|
|
246
|
-
get: function
|
|
246
|
+
get: function () {
|
|
247
247
|
return _hero[key];
|
|
248
248
|
}
|
|
249
249
|
});
|
|
@@ -255,7 +255,7 @@ Object.keys(_ieBanner).forEach(function (key) {
|
|
|
255
255
|
if (key in exports && exports[key] === _ieBanner[key]) return;
|
|
256
256
|
Object.defineProperty(exports, key, {
|
|
257
257
|
enumerable: true,
|
|
258
|
-
get: function
|
|
258
|
+
get: function () {
|
|
259
259
|
return _ieBanner[key];
|
|
260
260
|
}
|
|
261
261
|
});
|
|
@@ -267,7 +267,7 @@ Object.keys(_lists).forEach(function (key) {
|
|
|
267
267
|
if (key in exports && exports[key] === _lists[key]) return;
|
|
268
268
|
Object.defineProperty(exports, key, {
|
|
269
269
|
enumerable: true,
|
|
270
|
-
get: function
|
|
270
|
+
get: function () {
|
|
271
271
|
return _lists[key];
|
|
272
272
|
}
|
|
273
273
|
});
|
|
@@ -279,7 +279,7 @@ Object.keys(_loader).forEach(function (key) {
|
|
|
279
279
|
if (key in exports && exports[key] === _loader[key]) return;
|
|
280
280
|
Object.defineProperty(exports, key, {
|
|
281
281
|
enumerable: true,
|
|
282
|
-
get: function
|
|
282
|
+
get: function () {
|
|
283
283
|
return _loader[key];
|
|
284
284
|
}
|
|
285
285
|
});
|
|
@@ -291,7 +291,7 @@ Object.keys(_localization).forEach(function (key) {
|
|
|
291
291
|
if (key in exports && exports[key] === _localization[key]) return;
|
|
292
292
|
Object.defineProperty(exports, key, {
|
|
293
293
|
enumerable: true,
|
|
294
|
-
get: function
|
|
294
|
+
get: function () {
|
|
295
295
|
return _localization[key];
|
|
296
296
|
}
|
|
297
297
|
});
|
|
@@ -303,7 +303,7 @@ Object.keys(_menu).forEach(function (key) {
|
|
|
303
303
|
if (key in exports && exports[key] === _menu[key]) return;
|
|
304
304
|
Object.defineProperty(exports, key, {
|
|
305
305
|
enumerable: true,
|
|
306
|
-
get: function
|
|
306
|
+
get: function () {
|
|
307
307
|
return _menu[key];
|
|
308
308
|
}
|
|
309
309
|
});
|
|
@@ -315,7 +315,7 @@ Object.keys(_navBar).forEach(function (key) {
|
|
|
315
315
|
if (key in exports && exports[key] === _navBar[key]) return;
|
|
316
316
|
Object.defineProperty(exports, key, {
|
|
317
317
|
enumerable: true,
|
|
318
|
-
get: function
|
|
318
|
+
get: function () {
|
|
319
319
|
return _navBar[key];
|
|
320
320
|
}
|
|
321
321
|
});
|
|
@@ -327,7 +327,7 @@ Object.keys(_navMenu).forEach(function (key) {
|
|
|
327
327
|
if (key in exports && exports[key] === _navMenu[key]) return;
|
|
328
328
|
Object.defineProperty(exports, key, {
|
|
329
329
|
enumerable: true,
|
|
330
|
-
get: function
|
|
330
|
+
get: function () {
|
|
331
331
|
return _navMenu[key];
|
|
332
332
|
}
|
|
333
333
|
});
|
|
@@ -339,7 +339,7 @@ Object.keys(_pagination).forEach(function (key) {
|
|
|
339
339
|
if (key in exports && exports[key] === _pagination[key]) return;
|
|
340
340
|
Object.defineProperty(exports, key, {
|
|
341
341
|
enumerable: true,
|
|
342
|
-
get: function
|
|
342
|
+
get: function () {
|
|
343
343
|
return _pagination[key];
|
|
344
344
|
}
|
|
345
345
|
});
|
|
@@ -351,7 +351,7 @@ Object.keys(_popper).forEach(function (key) {
|
|
|
351
351
|
if (key in exports && exports[key] === _popper[key]) return;
|
|
352
352
|
Object.defineProperty(exports, key, {
|
|
353
353
|
enumerable: true,
|
|
354
|
-
get: function
|
|
354
|
+
get: function () {
|
|
355
355
|
return _popper[key];
|
|
356
356
|
}
|
|
357
357
|
});
|
|
@@ -363,7 +363,7 @@ Object.keys(_progressBar).forEach(function (key) {
|
|
|
363
363
|
if (key in exports && exports[key] === _progressBar[key]) return;
|
|
364
364
|
Object.defineProperty(exports, key, {
|
|
365
365
|
enumerable: true,
|
|
366
|
-
get: function
|
|
366
|
+
get: function () {
|
|
367
367
|
return _progressBar[key];
|
|
368
368
|
}
|
|
369
369
|
});
|
|
@@ -375,7 +375,7 @@ Object.keys(_sideSheet).forEach(function (key) {
|
|
|
375
375
|
if (key in exports && exports[key] === _sideSheet[key]) return;
|
|
376
376
|
Object.defineProperty(exports, key, {
|
|
377
377
|
enumerable: true,
|
|
378
|
-
get: function
|
|
378
|
+
get: function () {
|
|
379
379
|
return _sideSheet[key];
|
|
380
380
|
}
|
|
381
381
|
});
|
|
@@ -387,7 +387,7 @@ Object.keys(_schedule).forEach(function (key) {
|
|
|
387
387
|
if (key in exports && exports[key] === _schedule[key]) return;
|
|
388
388
|
Object.defineProperty(exports, key, {
|
|
389
389
|
enumerable: true,
|
|
390
|
-
get: function
|
|
390
|
+
get: function () {
|
|
391
391
|
return _schedule[key];
|
|
392
392
|
}
|
|
393
393
|
});
|
|
@@ -399,7 +399,7 @@ Object.keys(_siteLayout).forEach(function (key) {
|
|
|
399
399
|
if (key in exports && exports[key] === _siteLayout[key]) return;
|
|
400
400
|
Object.defineProperty(exports, key, {
|
|
401
401
|
enumerable: true,
|
|
402
|
-
get: function
|
|
402
|
+
get: function () {
|
|
403
403
|
return _siteLayout[key];
|
|
404
404
|
}
|
|
405
405
|
});
|
|
@@ -411,7 +411,7 @@ Object.keys(_socialMediaLinkList).forEach(function (key) {
|
|
|
411
411
|
if (key in exports && exports[key] === _socialMediaLinkList[key]) return;
|
|
412
412
|
Object.defineProperty(exports, key, {
|
|
413
413
|
enumerable: true,
|
|
414
|
-
get: function
|
|
414
|
+
get: function () {
|
|
415
415
|
return _socialMediaLinkList[key];
|
|
416
416
|
}
|
|
417
417
|
});
|
|
@@ -423,7 +423,7 @@ Object.keys(_spinner).forEach(function (key) {
|
|
|
423
423
|
if (key in exports && exports[key] === _spinner[key]) return;
|
|
424
424
|
Object.defineProperty(exports, key, {
|
|
425
425
|
enumerable: true,
|
|
426
|
-
get: function
|
|
426
|
+
get: function () {
|
|
427
427
|
return _spinner[key];
|
|
428
428
|
}
|
|
429
429
|
});
|
|
@@ -435,7 +435,7 @@ Object.keys(_styles).forEach(function (key) {
|
|
|
435
435
|
if (key in exports && exports[key] === _styles[key]) return;
|
|
436
436
|
Object.defineProperty(exports, key, {
|
|
437
437
|
enumerable: true,
|
|
438
|
-
get: function
|
|
438
|
+
get: function () {
|
|
439
439
|
return _styles[key];
|
|
440
440
|
}
|
|
441
441
|
});
|
|
@@ -447,7 +447,7 @@ Object.keys(_tab).forEach(function (key) {
|
|
|
447
447
|
if (key in exports && exports[key] === _tab[key]) return;
|
|
448
448
|
Object.defineProperty(exports, key, {
|
|
449
449
|
enumerable: true,
|
|
450
|
-
get: function
|
|
450
|
+
get: function () {
|
|
451
451
|
return _tab[key];
|
|
452
452
|
}
|
|
453
453
|
});
|
|
@@ -459,7 +459,7 @@ Object.keys(_table).forEach(function (key) {
|
|
|
459
459
|
if (key in exports && exports[key] === _table[key]) return;
|
|
460
460
|
Object.defineProperty(exports, key, {
|
|
461
461
|
enumerable: true,
|
|
462
|
-
get: function
|
|
462
|
+
get: function () {
|
|
463
463
|
return _table[key];
|
|
464
464
|
}
|
|
465
465
|
});
|
|
@@ -471,7 +471,7 @@ Object.keys(_typography).forEach(function (key) {
|
|
|
471
471
|
if (key in exports && exports[key] === _typography[key]) return;
|
|
472
472
|
Object.defineProperty(exports, key, {
|
|
473
473
|
enumerable: true,
|
|
474
|
-
get: function
|
|
474
|
+
get: function () {
|
|
475
475
|
return _typography[key];
|
|
476
476
|
}
|
|
477
477
|
});
|
|
@@ -483,7 +483,7 @@ Object.keys(_LockBodyScroll).forEach(function (key) {
|
|
|
483
483
|
if (key in exports && exports[key] === _LockBodyScroll[key]) return;
|
|
484
484
|
Object.defineProperty(exports, key, {
|
|
485
485
|
enumerable: true,
|
|
486
|
-
get: function
|
|
486
|
+
get: function () {
|
|
487
487
|
return _LockBodyScroll[key];
|
|
488
488
|
}
|
|
489
489
|
});
|
|
@@ -495,7 +495,7 @@ Object.keys(_dropdownMenu).forEach(function (key) {
|
|
|
495
495
|
if (key in exports && exports[key] === _dropdownMenu[key]) return;
|
|
496
496
|
Object.defineProperty(exports, key, {
|
|
497
497
|
enumerable: true,
|
|
498
|
-
get: function
|
|
498
|
+
get: function () {
|
|
499
499
|
return _dropdownMenu[key];
|
|
500
500
|
}
|
|
501
501
|
});
|
|
@@ -507,7 +507,7 @@ Object.keys(_skeleton).forEach(function (key) {
|
|
|
507
507
|
if (key in exports && exports[key] === _skeleton[key]) return;
|
|
508
508
|
Object.defineProperty(exports, key, {
|
|
509
509
|
enumerable: true,
|
|
510
|
-
get: function
|
|
510
|
+
get: function () {
|
|
511
511
|
return _skeleton[key];
|
|
512
512
|
}
|
|
513
513
|
});
|
|
@@ -519,7 +519,7 @@ Object.keys(_tooltip).forEach(function (key) {
|
|
|
519
519
|
if (key in exports && exports[key] === _tooltip[key]) return;
|
|
520
520
|
Object.defineProperty(exports, key, {
|
|
521
521
|
enumerable: true,
|
|
522
|
-
get: function
|
|
522
|
+
get: function () {
|
|
523
523
|
return _tooltip[key];
|
|
524
524
|
}
|
|
525
525
|
});
|
|
@@ -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;
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Layout = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _react2 = require("@emotion/react");
|
|
9
|
+
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
11
|
const regular = 'https://unpkg.com/@dfds-ui/fonts@0.0.42/fonts/DFDS-Regular.woff2';
|
|
11
12
|
const italic = 'https://unpkg.com/@dfds-ui/fonts@0.0.42/fonts/DFDS-Italic.woff2';
|
|
@@ -47,7 +48,7 @@ function fontFace({
|
|
|
47
48
|
}
|
|
48
49
|
const Layout = () => {
|
|
49
50
|
const sty = /*#__PURE__*/(0, _react2.css)(DFDS_FONTS.reduce((prev, cur) => prev += fontFace(cur), ''), " *{font-family:DFDS;}" + (process.env.NODE_ENV === "production" ? "" : ";label:sty;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9sYXlvdXQvTGF5b3V0TGVnYWN5LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEwQ2lCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9sYXlvdXQvTGF5b3V0TGVnYWN5LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcblxuY29uc3QgcmVndWxhciA9ICdodHRwczovL3VucGtnLmNvbS9AZGZkcy11aS9mb250c0AwLjAuNDIvZm9udHMvREZEUy1SZWd1bGFyLndvZmYyJ1xuY29uc3QgaXRhbGljID0gJ2h0dHBzOi8vdW5wa2cuY29tL0BkZmRzLXVpL2ZvbnRzQDAuMC40Mi9mb250cy9ERkRTLUl0YWxpYy53b2ZmMidcbmNvbnN0IGJvbGQgPSAnaHR0cHM6Ly91bnBrZy5jb20vQGRmZHMtdWkvZm9udHNAMC4wLjQyL2ZvbnRzL0RGRFMtQm9sZC53b2ZmMidcbmNvbnN0IGxpZ2h0ID0gJ2h0dHBzOi8vdW5wa2cuY29tL0BkZmRzLXVpL2ZvbnRzQDAuMC40Mi9mb250cy9ERkRTLUxpZ2h0LndvZmYyJ1xuXG5pbXBvcnQgeyBHbG9iYWwsIGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuXG50eXBlIEZvbnREZWZpbml0aW9uID0ge1xuICBmb250RmFtaWx5OiBzdHJpbmdcbiAgd29mZjI6IHN0cmluZ1xuICBmb250V2VpZ2h0PzogMTAwIHwgMjAwIHwgMzAwIHwgNDAwIHwgNTAwIHwgNjAwIHwgNzAwIHwgODAwXG4gIGZvbnRTdHlsZT86ICdub3JtYWwnIHwgJ2l0YWxpYycgfCAnb2JsaXF1ZSdcbiAgZm9udERpc3BsYXk/OiAnYXV0bycgfCAnYmxvY2snIHwgJ3N3YXAnIHwgJ2ZhbGxiYWNrJyB8ICdvcHRpb25hbCdcbn1cblxuY29uc3QgREZEU19GT05UUzogRm9udERlZmluaXRpb25bXSA9IFtcbiAgeyBmb250RmFtaWx5OiAnREZEUycsIHdvZmYyOiByZWd1bGFyLCBmb250V2VpZ2h0OiA0MDAgfSxcbiAgeyBmb250RmFtaWx5OiAnREZEUycsIHdvZmYyOiBpdGFsaWMsIGZvbnRXZWlnaHQ6IDQwMCwgZm9udFN0eWxlOiAnaXRhbGljJyB9LFxuICB7IGZvbnRGYW1pbHk6ICdERkRTJywgd29mZjI6IGJvbGQsIGZvbnRXZWlnaHQ6IDcwMCB9LFxuICB7IGZvbnRGYW1pbHk6ICdERkRTJywgd29mZjI6IGxpZ2h0LCBmb250V2VpZ2h0OiAzMDAgfSxcbl1cblxuZnVuY3Rpb24gZm9udEZhY2Uoe1xuICBmb250RmFtaWx5LFxuICB3b2ZmMixcbiAgZm9udFdlaWdodCA9IDQwMCxcbiAgZm9udFN0eWxlID0gJ25vcm1hbCcsXG4gIGZvbnREaXNwbGF5ID0gJ2ZhbGxiYWNrJyxcbn06IEZvbnREZWZpbml0aW9uKSB7XG4gIHJldHVybiBgXG4gIEBmb250LWZhY2Uge1xuICAgIGZvbnQtZmFtaWx5OiAke2ZvbnRGYW1pbHl9O1xuICAgIHNyYzp1cmwoJHt3b2ZmMn0pIGZvcm1hdCgnd29mZjInKTtcbiAgICBmb250LXdlaWdodDogJHtmb250V2VpZ2h0fTtcbiAgICBmb250LXN0eWxlOiAke2ZvbnRTdHlsZX07XG4gICAgZm9udC1kaXNwbGF5OiAke2ZvbnREaXNwbGF5fTtcbiAgfWBcbn1cblxuZXhwb3J0IGNvbnN0IExheW91dCA9ICgpID0+IHtcbiAgY29uc3Qgc3R5ID0gY3NzYFxuICAgICR7REZEU19GT05UUy5yZWR1Y2UoKHByZXYsIGN1cikgPT4gKHByZXYgKz0gZm9udEZhY2UoY3VyKSksICcnKX1cblxuICAgICoge1xuICAgICAgZm9udC1mYW1pbHk6IERGRFM7XG4gICAgfVxuICBgXG4gIHJldHVybiA8R2xvYmFsIHN0eWxlcz17c3R5fSAvPlxufVxuIl19 */");
|
|
50
|
-
return (0,
|
|
51
|
+
return (0, _jsxRuntime.jsx)(_react2.Global, {
|
|
51
52
|
styles: sty
|
|
52
53
|
});
|
|
53
54
|
};
|
|
@@ -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/cjs/lists/FeatureList.js
CHANGED
|
@@ -7,13 +7,9 @@ exports.default = exports.ListItem = void 0;
|
|
|
7
7
|
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _FlexBox = _interopRequireDefault(require("./../flexbox/FlexBox"));
|
|
10
|
-
var
|
|
11
|
-
const _excluded = ["icon", "items", "iconColor", "textTag"];
|
|
10
|
+
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
12
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
|
|
14
|
-
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; }
|
|
15
|
-
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; }
|
|
16
|
-
const ListItem = /*#__PURE__*/(0, _base.default)(_FlexBox.default, process.env.NODE_ENV === "production" ? {
|
|
12
|
+
const ListItem = exports.ListItem = /*#__PURE__*/(0, _base.default)(_FlexBox.default, process.env.NODE_ENV === "production" ? {
|
|
17
13
|
target: "e1hxsk0v0"
|
|
18
14
|
} : {
|
|
19
15
|
target: "e1hxsk0v0",
|
|
@@ -21,24 +17,28 @@ const ListItem = /*#__PURE__*/(0, _base.default)(_FlexBox.default, process.env.N
|
|
|
21
17
|
})("align-items:flex-start;svg{margin-right:20px;", ({
|
|
22
18
|
iconColor
|
|
23
19
|
}) => iconColor && `color: ${iconColor}`, ";}p{margin:0 0 1em;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saXN0cy9GZWF0dXJlTGlzdC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBYzhFIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9saXN0cy9GZWF0dXJlTGlzdC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCdcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IEZsZXhCb3gsIHsgRmxleEJveFByb3BzIH0gZnJvbSAnLi8uLi9mbGV4Ym94L0ZsZXhCb3gnXG5cbnR5cGUgRmVhdHVyZUxpc3RQcm9wcyA9IHtcbiAgaWNvbjogYW55XG4gIGl0ZW1zOiBzdHJpbmdbXVxuICBpY29uQ29sb3I/OiBzdHJpbmdcbiAgdGV4dFRhZz86IFJlYWN0LkVsZW1lbnRUeXBlXG4gIGFzPzogUmVhY3QuRWxlbWVudFR5cGVcbn1cblxudHlwZSBGZWF0dXJlTGlzdENvbXBvbmVudCA9IEZ1bmN0aW9uQ29tcG9uZW50PEZlYXR1cmVMaXN0UHJvcHM+XG5cbmV4cG9ydCBjb25zdCBMaXN0SXRlbSA9IHN0eWxlZChGbGV4Qm94KTxGbGV4Qm94UHJvcHMgJiB7IGljb25Db2xvcj86IHN0cmluZyB9PmBcbiAgYWxpZ24taXRlbXM6IGZsZXgtc3RhcnQ7XG4gIHN2ZyB7XG4gICAgbWFyZ2luLXJpZ2h0OiAyMHB4O1xuICAgICR7KHsgaWNvbkNvbG9yIH0pID0+IGljb25Db2xvciAmJiBgY29sb3I6ICR7aWNvbkNvbG9yfWB9XG4gIH1cbiAgcCB7XG4gICAgbWFyZ2luOiAwIDAgMWVtO1xuICB9XG5gXG5cbmNvbnN0IEZlYXR1cmVMaXN0OiBGZWF0dXJlTGlzdENvbXBvbmVudCA9ICh7IGljb24sIGl0ZW1zLCBpY29uQ29sb3IsIHRleHRUYWcgPSAncCcsIC4uLnJlc3QgfSkgPT4ge1xuICBjb25zdCBsaXN0ID0gaXRlbXMubWFwKChpdGVtOiBzdHJpbmcsIGkpID0+IHtcbiAgICBjb25zdCBUZXh0VGFnID0gdGV4dFRhZ1xuICAgIHJldHVybiAoXG4gICAgICA8TGlzdEl0ZW0ga2V5PXtpfSBpY29uQ29sb3I9e2ljb25Db2xvcn0+XG4gICAgICAgIHtpY29ufVxuICAgICAgICA8VGV4dFRhZz57aXRlbX08L1RleHRUYWc+XG4gICAgICA8L0xpc3RJdGVtPlxuICAgIClcbiAgfSlcbiAgcmV0dXJuIChcbiAgICA8PlxuICAgICAgPEZsZXhCb3ggey4uLnJlc3R9IGRpcmVjdGlvbkNvbHVtbj5cbiAgICAgICAge2xpc3R9XG4gICAgICA8L0ZsZXhCb3g+XG4gICAgPC8+XG4gIClcbn1cblxuZXhwb3J0IGRlZmF1bHQgRmVhdHVyZUxpc3RcbiJdfQ== */"));
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
const FeatureList = ({
|
|
21
|
+
icon,
|
|
22
|
+
items,
|
|
23
|
+
iconColor,
|
|
24
|
+
textTag = 'p',
|
|
25
|
+
...rest
|
|
26
|
+
}) => {
|
|
32
27
|
const list = items.map((item, i) => {
|
|
33
28
|
const TextTag = textTag;
|
|
34
|
-
return (0,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
return (0, _jsxRuntime.jsxs)(ListItem, {
|
|
30
|
+
iconColor: iconColor,
|
|
31
|
+
children: [icon, (0, _jsxRuntime.jsx)(TextTag, {
|
|
32
|
+
children: item
|
|
33
|
+
})]
|
|
34
|
+
}, i);
|
|
35
|
+
});
|
|
36
|
+
return (0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
37
|
+
children: (0, _jsxRuntime.jsx)(_FlexBox.default, {
|
|
38
|
+
...rest,
|
|
39
|
+
directionColumn: true,
|
|
40
|
+
children: list
|
|
41
|
+
})
|
|
38
42
|
});
|
|
39
|
-
return (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_FlexBox.default, _extends({}, rest, {
|
|
40
|
-
directionColumn: true
|
|
41
|
-
}), list));
|
|
42
43
|
};
|
|
43
|
-
var _default = FeatureList;
|
|
44
|
-
exports.default = _default;
|
|
44
|
+
var _default = exports.default = FeatureList;
|
package/cjs/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/cjs/lists/ListAddon.js
CHANGED
|
@@ -8,22 +8,22 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _react2 = require("@emotion/react");
|
|
9
9
|
var _theme = require("@dfds-ui/theme");
|
|
10
10
|
var _ListIcon = _interopRequireDefault(require("./ListIcon"));
|
|
11
|
-
|
|
11
|
+
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
as = _ref$as === void 0 ? 'span' : _ref$as,
|
|
20
|
-
children = _ref.children,
|
|
21
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
const ListAddon = ({
|
|
14
|
+
className,
|
|
15
|
+
as = 'span',
|
|
16
|
+
children,
|
|
17
|
+
...rest
|
|
18
|
+
}) => {
|
|
22
19
|
const Component = as;
|
|
23
|
-
return (0,
|
|
24
|
-
icon: props => (0,
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
return (0, _jsxRuntime.jsx)(_ListIcon.default, {
|
|
21
|
+
icon: props => (0, _jsxRuntime.jsx)(Component, {
|
|
22
|
+
...props,
|
|
23
|
+
children: children
|
|
24
|
+
}),
|
|
25
|
+
css: /*#__PURE__*/(0, _react2.css)("flex-basis:auto;height:auto;margin:0;&:first-of-type{margin-left:-", _theme.theme.spacing.xs, ";}&:last-of-type{margin-right:-", _theme.theme.spacing.xs, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:ListAddon;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saXN0cy9MaXN0QWRkb24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1CYyIsImZpbGUiOiIuLi8uLi8uLi9zcmMvbGlzdHMvTGlzdEFkZG9uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuaW1wb3J0IHsgdGhlbWUgfSBmcm9tICdAZGZkcy11aS90aGVtZSdcbmltcG9ydCBMaXN0SWNvbiBmcm9tICcuL0xpc3RJY29uJ1xuXG5leHBvcnQgdHlwZSBMaXN0QWRkb25Qcm9wcyA9IHtcbiAgY2xhc3NOYW1lPzogc3RyaW5nXG4gIC8qKlxuICAgKiBIVE1MIHRhZyBvciBjdXN0b20gY29tcG9uZW50IGJlaW5nIHJlbmRlcmVkLlxuICAgKi9cbiAgYXM/OiBSZWFjdC5FbGVtZW50VHlwZVxuICBjaGlsZHJlbj86IFJlYWN0LlJlYWN0Tm9kZVxufVxuXG5jb25zdCBMaXN0QWRkb24gPSAoeyBjbGFzc05hbWUsIGFzID0gJ3NwYW4nLCBjaGlsZHJlbiwgLi4ucmVzdCB9OiBMaXN0QWRkb25Qcm9wcykgPT4ge1xuICBjb25zdCBDb21wb25lbnQgPSBhc1xuICByZXR1cm4gKFxuICAgIDxMaXN0SWNvblxuICAgICAgaWNvbj17KHByb3BzKSA9PiA8Q29tcG9uZW50IHsuLi5wcm9wc30+e2NoaWxkcmVufTwvQ29tcG9uZW50Pn1cbiAgICAgIGNzcz17Y3NzYFxuICAgICAgICBmbGV4LWJhc2lzOiBhdXRvO1xuICAgICAgICBoZWlnaHQ6IGF1dG87XG4gICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgJjpmaXJzdC1vZi10eXBlIHtcbiAgICAgICAgICBtYXJnaW4tbGVmdDogLSR7dGhlbWUuc3BhY2luZy54c307XG4gICAgICAgIH1cbiAgICAgICAgJjpsYXN0LW9mLXR5cGUge1xuICAgICAgICAgIG1hcmdpbi1yaWdodDogLSR7dGhlbWUuc3BhY2luZy54c307XG4gICAgICAgIH1cbiAgICAgIGB9XG4gICAgICB7Li4ucmVzdH1cbiAgICAvPlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IExpc3RBZGRvblxuIl19 */"),
|
|
26
|
+
...rest
|
|
27
|
+
});
|
|
27
28
|
};
|
|
28
|
-
var _default = ListAddon;
|
|
29
|
-
exports.default = _default;
|
|
29
|
+
var _default = exports.default = ListAddon;
|
|
@@ -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;
|
package/cjs/lists/ListDivider.js
CHANGED
|
@@ -8,23 +8,20 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _divider = require("../divider");
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
10
|
var _theme = require("@dfds-ui/theme");
|
|
11
|
-
|
|
11
|
+
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
as = _ref$as === void 0 ? 'hr' : _ref$as,
|
|
21
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
22
|
-
return (0, _react2.jsx)(_divider.Divider, _extends({
|
|
13
|
+
const ListDivider = ({
|
|
14
|
+
indent,
|
|
15
|
+
margins,
|
|
16
|
+
as = 'hr',
|
|
17
|
+
...rest
|
|
18
|
+
}) => {
|
|
19
|
+
return (0, _jsxRuntime.jsx)(_divider.Divider, {
|
|
23
20
|
indent: indent,
|
|
24
21
|
margins: margins,
|
|
25
22
|
as: as,
|
|
26
|
-
css: /*#__PURE__*/(0, _react2.css)("margin:0 ", margins ? _theme.theme.spacing.s : 0, " 0 ", margins || indent ? _theme.theme.spacing.s : 0, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:ListDivider;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saXN0cy9MaXN0RGl2aWRlci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBYWMiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2xpc3RzL0xpc3REaXZpZGVyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCB7IERpdmlkZXJQcm9wcywgRGl2aWRlciB9IGZyb20gJy4uL2RpdmlkZXInXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcbmltcG9ydCB7IHRoZW1lIH0gZnJvbSAnQGRmZHMtdWkvdGhlbWUnXG5cbmV4cG9ydCB0eXBlIExpc3REaXZpZGVyUHJvcHMgPSBQaWNrPERpdmlkZXJQcm9wcywgJ2FzJyB8ICdpbmRlbnQnIHwgJ21hcmdpbnMnPlxuXG5jb25zdCBMaXN0RGl2aWRlciA9ICh7IGluZGVudCwgbWFyZ2lucywgYXMgPSAnaHInLCAuLi5yZXN0IH06IExpc3REaXZpZGVyUHJvcHMpID0+IHtcbiAgcmV0dXJuIChcbiAgICA8RGl2aWRlclxuICAgICAgaW5kZW50PXtpbmRlbnR9XG4gICAgICBtYXJnaW5zPXttYXJnaW5zfVxuICAgICAgYXM9e2FzfVxuICAgICAgY3NzPXtjc3NgXG4gICAgICAgIG1hcmdpbjogMCAke21hcmdpbnMgPyB0aGVtZS5zcGFjaW5nLnMgOiAwfSAwICR7bWFyZ2lucyB8fCBpbmRlbnQgPyB0aGVtZS5zcGFjaW5nLnMgOiAwfTtcbiAgICAgIGB9XG4gICAgICB7Li4ucmVzdH1cbiAgICAvPlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IExpc3REaXZpZGVyXG4iXX0= */")
|
|
27
|
-
|
|
23
|
+
css: /*#__PURE__*/(0, _react2.css)("margin:0 ", margins ? _theme.theme.spacing.s : 0, " 0 ", margins || indent ? _theme.theme.spacing.s : 0, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:ListDivider;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saXN0cy9MaXN0RGl2aWRlci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBYWMiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2xpc3RzL0xpc3REaXZpZGVyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCB7IERpdmlkZXJQcm9wcywgRGl2aWRlciB9IGZyb20gJy4uL2RpdmlkZXInXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcbmltcG9ydCB7IHRoZW1lIH0gZnJvbSAnQGRmZHMtdWkvdGhlbWUnXG5cbmV4cG9ydCB0eXBlIExpc3REaXZpZGVyUHJvcHMgPSBQaWNrPERpdmlkZXJQcm9wcywgJ2FzJyB8ICdpbmRlbnQnIHwgJ21hcmdpbnMnPlxuXG5jb25zdCBMaXN0RGl2aWRlciA9ICh7IGluZGVudCwgbWFyZ2lucywgYXMgPSAnaHInLCAuLi5yZXN0IH06IExpc3REaXZpZGVyUHJvcHMpID0+IHtcbiAgcmV0dXJuIChcbiAgICA8RGl2aWRlclxuICAgICAgaW5kZW50PXtpbmRlbnR9XG4gICAgICBtYXJnaW5zPXttYXJnaW5zfVxuICAgICAgYXM9e2FzfVxuICAgICAgY3NzPXtjc3NgXG4gICAgICAgIG1hcmdpbjogMCAke21hcmdpbnMgPyB0aGVtZS5zcGFjaW5nLnMgOiAwfSAwICR7bWFyZ2lucyB8fCBpbmRlbnQgPyB0aGVtZS5zcGFjaW5nLnMgOiAwfTtcbiAgICAgIGB9XG4gICAgICB7Li4ucmVzdH1cbiAgICAvPlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IExpc3REaXZpZGVyXG4iXX0= */"),
|
|
24
|
+
...rest
|
|
25
|
+
});
|
|
28
26
|
};
|
|
29
|
-
var _default = ListDivider;
|
|
30
|
-
exports.default = _default;
|
|
27
|
+
var _default = exports.default = ListDivider;
|
package/cjs/lists/ListIcon.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type Size = 'small' | 'medium' | 'large' | 'xl';
|
|
3
|
+
type ListIconProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Choose the needed icon.
|
|
6
6
|
*/
|
|
@@ -14,5 +14,5 @@ declare type ListIconProps = {
|
|
|
14
14
|
*/
|
|
15
15
|
color?: string;
|
|
16
16
|
};
|
|
17
|
-
declare const ListIcon: ({ icon: Icon, size, color, ...rest }: ListIconProps) => JSX.Element;
|
|
17
|
+
declare const ListIcon: ({ icon: Icon, size, color, ...rest }: ListIconProps) => React.JSX.Element;
|
|
18
18
|
export default ListIcon;
|