@dfds-ui/react-components 2.2.0-alpha.8d87a90d → 2.2.0-alpha.b94ad8b5
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.js +4 -5
- package/accordion/AccordionContent.d.ts +1 -0
- package/accordion/AccordionContent.js +4 -4
- package/accordion/AccordionSmall.d.ts +1 -0
- package/accordion/AccordionSmall.js +7 -8
- package/app-bar/AppBar.js +10 -12
- package/app-bar/AppBarContext.js +4 -4
- package/app-bar/AppBarDrawer.js +3 -3
- package/app-bar/AppBarIconButton.js +3 -3
- package/app-bar/AppBarItem.d.ts +1 -1
- package/app-bar/AppBarItem.js +35 -42
- package/app-bar/AppBarListItem.d.ts +0 -1
- package/assertions/banner/Banner.js +10 -12
- package/assertions/banner/BannerAction.js +3 -3
- package/assertions/banner/BannerTypography.d.ts +2 -0
- package/assertions/banner/BannerTypography.js +3 -5
- package/assertions/toast/Toast.d.ts +1 -0
- package/assertions/toast/Toast.js +9 -10
- package/assertions/toast/Toaster.js +19 -12
- package/badge/Badge.d.ts +1 -1
- package/badge/Badge.js +4 -5
- package/button/BadgeIcon.d.ts +2 -2
- package/button/BaseButton.d.ts +1 -1
- package/button/Button.js +4 -5
- package/button/IconButton.d.ts +1 -1
- package/button/IconButton.js +4 -5
- package/button/LinkButton.d.ts +1 -1
- package/button/LinkButton.js +1 -1
- package/button/button-style.d.ts +7 -7
- package/button/button-style.js +1 -2
- package/button-stack/ButtonStack.d.ts +1 -0
- package/button-stack/ButtonStack.js +7 -7
- package/card/Card.d.ts +1 -0
- package/card/Card.js +15 -15
- package/card/CardActions.js +3 -3
- package/card/CardContent.d.ts +2 -1
- package/card/CardContent.js +4 -4
- package/card/CardMedia.d.ts +2 -1
- package/card/CardMedia.js +4 -5
- package/card/CardPriceTag.d.ts +2 -2
- package/card/CardPriceTag.js +8 -14
- package/card/CardTitle.d.ts +2 -1
- package/card/CardTitle.js +5 -5
- package/chip/Chip.d.ts +2 -2
- package/chip/Chip.js +9 -11
- package/cjs/accordion/Accordion.d.ts +101 -0
- package/cjs/accordion/Accordion.js +23 -28
- package/cjs/accordion/AccordionContent.d.ts +14 -0
- package/cjs/accordion/AccordionContent.js +9 -11
- package/cjs/accordion/AccordionSmall.d.ts +56 -0
- package/cjs/accordion/AccordionSmall.js +17 -21
- package/cjs/accordion/index.d.ts +3 -0
- package/cjs/accordion/index.js +3 -3
- package/cjs/app-bar/AppBar.d.ts +13 -0
- package/cjs/app-bar/AppBar.js +46 -70
- package/cjs/app-bar/AppBarContext.d.ts +12 -0
- package/cjs/app-bar/AppBarContext.js +3 -16
- package/cjs/app-bar/AppBarDrawer.d.ts +5 -0
- package/cjs/app-bar/AppBarDrawer.js +11 -13
- package/cjs/app-bar/AppBarIconButton.d.ts +10 -0
- package/cjs/app-bar/AppBarIconButton.js +8 -11
- package/cjs/app-bar/AppBarItem.d.ts +23 -0
- package/cjs/app-bar/AppBarItem.js +30 -52
- package/cjs/app-bar/AppBarListItem.d.ts +15 -0
- package/cjs/app-bar/AppBarListItem.js +1 -1
- package/cjs/app-bar/index.d.ts +7 -0
- package/cjs/app-bar/index.js +9 -9
- package/cjs/assertions/banner/Banner.d.ts +74 -0
- package/cjs/assertions/banner/Banner.js +26 -49
- package/cjs/assertions/banner/BannerAction.d.ts +19 -0
- package/cjs/assertions/banner/BannerAction.js +9 -11
- package/cjs/assertions/banner/BannerTypography.d.ts +9 -0
- package/cjs/assertions/banner/BannerTypography.js +4 -6
- package/cjs/assertions/banner/index.d.ts +3 -0
- package/cjs/assertions/banner/index.js +3 -3
- package/cjs/assertions/index.d.ts +2 -0
- package/cjs/assertions/index.js +2 -2
- package/cjs/assertions/toast/Toast.d.ts +13 -0
- package/cjs/assertions/toast/Toast.js +17 -22
- package/cjs/assertions/toast/Toaster.d.ts +19 -0
- package/cjs/assertions/toast/Toaster.js +23 -44
- package/cjs/assertions/toast/index.d.ts +2 -0
- package/cjs/assertions/toast/index.js +5 -6
- package/cjs/badge/Badge.d.ts +26 -0
- package/cjs/badge/Badge.js +12 -18
- package/cjs/badge/index.d.ts +2 -0
- package/cjs/badge/index.js +3 -4
- package/cjs/button/BadgeIcon.d.ts +7 -0
- package/cjs/button/BadgeIcon.js +1 -1
- package/cjs/button/BaseButton.d.ts +14 -0
- package/cjs/button/BaseButton.js +1 -1
- package/cjs/button/Button.d.ts +19 -0
- package/cjs/button/Button.js +16 -24
- package/cjs/button/IconButton.d.ts +75 -0
- package/cjs/button/IconButton.js +21 -31
- package/cjs/button/LinkButton.d.ts +8 -0
- package/cjs/button/LinkButton.js +3 -4
- package/cjs/button/button-style.d.ts +7 -0
- package/cjs/button/button-style.js +1 -2
- package/cjs/button/index.d.ts +7 -0
- package/cjs/button/index.js +8 -9
- package/cjs/button-stack/ButtonStack.d.ts +12 -0
- package/cjs/button-stack/ButtonStack.js +13 -17
- package/cjs/button-stack/index.d.ts +1 -0
- package/cjs/button-stack/index.js +2 -2
- package/cjs/card/Card.d.ts +19 -0
- package/cjs/card/Card.js +27 -44
- package/cjs/card/CardActions.d.ts +4 -0
- package/cjs/card/CardActions.js +8 -12
- package/cjs/card/CardContent.d.ts +14 -0
- package/cjs/card/CardContent.js +13 -17
- package/cjs/card/CardMedia.d.ts +19 -0
- package/cjs/card/CardMedia.js +9 -13
- package/cjs/card/CardPriceTag.d.ts +25 -0
- package/cjs/card/CardPriceTag.js +14 -24
- package/cjs/card/CardTitle.d.ts +19 -0
- package/cjs/card/CardTitle.js +13 -15
- package/cjs/card/index.d.ts +6 -0
- package/cjs/card/index.js +7 -7
- package/cjs/chip/Chip.d.ts +19 -0
- package/cjs/chip/Chip.js +17 -35
- package/cjs/chip/index.d.ts +2 -0
- package/cjs/chip/index.js +3 -4
- package/cjs/common/LockBodyScroll.d.ts +25 -0
- package/cjs/common/LockBodyScroll.js +7 -10
- package/cjs/common/arrow.d.ts +6 -0
- package/cjs/common/arrow.js +2 -4
- package/cjs/common/emotionCloneElement.d.ts +2 -0
- package/cjs/common/emotionCloneElement.js +5 -8
- package/cjs/common/intent.d.ts +3 -0
- package/cjs/common/miniMoize.d.ts +1 -0
- package/cjs/common/polymorphic.d.ts +25 -0
- package/cjs/common/polymorphic.js +5 -5
- package/cjs/common/use-media.d.ts +1 -0
- package/cjs/common/use-media.js +1 -10
- package/cjs/common/useOnClickOutside.d.ts +3 -0
- package/cjs/common/utils.d.ts +3 -0
- package/cjs/counter/Counter.d.ts +26 -0
- package/cjs/counter/Counter.js +10 -26
- package/cjs/counter/PluralCounter.d.ts +13 -0
- package/cjs/counter/PluralCounter.js +13 -27
- package/cjs/counter/index.d.ts +2 -0
- package/cjs/counter/index.js +3 -3
- package/cjs/data-table/DataTable.d.ts +11 -0
- package/cjs/data-table/DataTable.js +17 -29
- package/cjs/data-table/index.d.ts +1 -0
- package/cjs/data-table/index.js +1 -1
- package/cjs/date-range-picker/DatePickerDefaultStyles.d.ts +2 -0
- package/cjs/date-range-picker/DatePickerDefaultStyles.js +1 -2
- package/cjs/date-range-picker/DatePickerDfdsStyles.d.ts +2 -0
- package/cjs/date-range-picker/DateRangePicker.d.ts +33 -0
- package/cjs/date-range-picker/DateRangePicker.js +29 -57
- package/cjs/date-range-picker/index.d.ts +1 -0
- package/cjs/date-range-picker/index.js +2 -2
- package/cjs/divider/Divider.d.ts +26 -0
- package/cjs/divider/Divider.js +11 -11
- package/cjs/divider/index.d.ts +1 -0
- package/cjs/divider/index.js +1 -1
- package/cjs/drawer/Drawer.d.ts +31 -0
- package/cjs/drawer/Drawer.js +11 -17
- package/cjs/drawer/index.d.ts +1 -0
- package/cjs/drawer/index.js +1 -1
- package/cjs/dropdown-menu/Dropdown.d.ts +46 -0
- package/cjs/dropdown-menu/Dropdown.js +21 -36
- package/cjs/dropdown-menu/DropdownContext.d.ts +13 -0
- package/cjs/dropdown-menu/DropdownContext.js +1 -2
- package/cjs/dropdown-menu/MenuCheckbox.d.ts +34 -0
- package/cjs/dropdown-menu/MenuCheckbox.js +5 -4
- package/cjs/dropdown-menu/MenuItem.d.ts +45 -0
- package/cjs/dropdown-menu/MenuItem.js +25 -42
- package/cjs/dropdown-menu/MenuTitle.d.ts +14 -0
- package/cjs/dropdown-menu/MenuTitle.js +5 -5
- package/cjs/dropdown-menu/index.d.ts +5 -0
- package/cjs/dropdown-menu/index.js +7 -8
- package/cjs/elevation/index.d.ts +3 -0
- package/cjs/elevation/index.js +3 -6
- package/cjs/flexbox/FlexBox.d.ts +100 -0
- package/cjs/flexbox/FlexBox.js +6 -14
- package/cjs/flexbox/index.d.ts +1 -0
- package/cjs/flexbox/index.js +1 -1
- package/cjs/footer/Footer.d.ts +7 -0
- package/cjs/footer/Footer.js +1 -1
- package/cjs/footer/index.d.ts +1 -0
- package/cjs/footer/index.js +2 -2
- package/cjs/forms/assistive-text/AssistiveText.d.ts +7 -0
- package/cjs/forms/assistive-text/AssistiveText.js +1 -1
- package/cjs/forms/asterisk/Asterisk.d.ts +3 -0
- package/cjs/forms/asterisk/Asterisk.js +1 -1
- package/cjs/forms/checkbox/Checkbox.d.ts +39 -0
- package/cjs/forms/checkbox/Checkbox.js +17 -23
- package/cjs/forms/checkbox/ExampleControlComponent.d.ts +11 -0
- package/cjs/forms/checkbox/ExampleControlComponent.js +8 -19
- package/cjs/forms/checkbox/index.d.ts +1 -0
- package/cjs/forms/checkbox/index.js +2 -2
- package/cjs/forms/email-field/EmailField.d.ts +6 -0
- package/cjs/forms/email-field/EmailField.js +3 -3
- package/cjs/forms/error-text/ErrorText.d.ts +7 -0
- package/cjs/forms/error-text/ErrorText.js +3 -5
- package/cjs/forms/field/Field.d.ts +11 -0
- package/cjs/forms/field/Field.js +4 -7
- package/cjs/forms/index.d.ts +21 -0
- package/cjs/forms/index.js +19 -19
- package/cjs/forms/input/Input.d.ts +19 -0
- package/cjs/forms/input/Input.js +23 -33
- package/cjs/forms/input/InputComposition.d.ts +43 -0
- package/cjs/forms/input/InputComposition.js +26 -32
- package/cjs/forms/label/Label.d.ts +11 -0
- package/cjs/forms/label/Label.js +10 -14
- package/cjs/forms/number-field/NumberField.d.ts +6 -0
- package/cjs/forms/number-field/NumberField.js +4 -5
- package/cjs/forms/password-field/PasswordField.d.ts +4 -0
- package/cjs/forms/password-field/PasswordField.js +5 -16
- package/cjs/forms/radio/Radio.d.ts +35 -0
- package/cjs/forms/radio/Radio.js +30 -36
- package/cjs/forms/reactselect/ReactSelect.d.ts +25 -0
- package/cjs/forms/reactselect/ReactSelect.js +43 -53
- package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +6 -0
- package/cjs/forms/searchable-select/AsyncSearchableSelect.js +30 -34
- package/cjs/forms/select/Select.d.ts +16 -0
- package/cjs/forms/select/Select.js +17 -24
- package/cjs/forms/select-field/SelectField.d.ts +17 -0
- package/cjs/forms/select-field/SelectField.js +20 -25
- package/cjs/forms/switch/Switch.d.ts +13 -0
- package/cjs/forms/switch/Switch.js +16 -23
- package/cjs/forms/tel-field/TelField.d.ts +6 -0
- package/cjs/forms/tel-field/TelField.js +3 -3
- package/cjs/forms/text-field/TextField.d.ts +26 -0
- package/cjs/forms/text-field/TextField.js +23 -28
- package/cjs/global-styles/GlobalStyles.d.ts +3 -0
- package/cjs/global-styles/GlobalStyles.js +1 -1
- package/cjs/global-styles/ResetStyles.d.ts +9 -0
- package/cjs/global-styles/ResetStyles.js +2 -3
- package/cjs/global-styles/sanitize.d.ts +1 -0
- package/cjs/global-styles/sanitize.js +1 -2
- package/cjs/grid/Column.d.ts +10 -0
- package/cjs/grid/Column.js +10 -12
- package/cjs/grid/Container.d.ts +15 -0
- package/cjs/grid/Container.js +11 -13
- package/cjs/grid/index.d.ts +2 -0
- package/cjs/grid/index.js +3 -3
- package/cjs/hero/Hero.d.ts +10 -0
- package/cjs/hero/Hero.js +5 -9
- package/cjs/hero/index.d.ts +1 -0
- package/cjs/hero/index.js +2 -2
- package/cjs/hero/stripes.d.ts +6 -0
- package/cjs/hero/stripes.js +1 -1
- package/cjs/ie-banner/IEBanner.d.ts +12 -0
- package/cjs/ie-banner/IEBanner.js +4 -20
- package/cjs/ie-banner/index.d.ts +1 -0
- package/cjs/ie-banner/index.js +2 -2
- package/cjs/index.d.ts +44 -0
- package/cjs/index.js +46 -46
- package/cjs/layout/LayoutLegacy.d.ts +2 -0
- package/cjs/layout/LayoutLegacy.js +1 -1
- package/cjs/lists/FeatureList.d.ts +22 -0
- package/cjs/lists/FeatureList.js +9 -12
- package/cjs/lists/ListAddon.d.ts +11 -0
- package/cjs/lists/ListAddon.js +8 -11
- package/cjs/lists/ListDivider.d.ts +5 -0
- package/cjs/lists/ListDivider.js +8 -11
- package/cjs/lists/ListIcon.d.ts +18 -0
- package/cjs/lists/ListIcon.js +14 -17
- package/cjs/lists/ListItem.d.ts +46 -0
- package/cjs/lists/ListItem.js +17 -26
- package/cjs/lists/ListText.d.ts +39 -0
- package/cjs/lists/ListText.js +10 -13
- package/cjs/lists/ListTextGroup.d.ts +15 -0
- package/cjs/lists/ListTextGroup.js +11 -15
- package/cjs/lists/ListTitle.d.ts +4 -0
- package/cjs/lists/ListTitle.js +7 -11
- package/cjs/lists/index.d.ts +8 -0
- package/cjs/lists/index.js +9 -9
- package/cjs/loader/DfdsLoader.d.ts +9 -0
- package/cjs/loader/DfdsLoader.js +4 -5
- package/cjs/loader/Loader.d.ts +6 -0
- package/cjs/loader/Loader.js +2 -3
- package/cjs/loader/index.d.ts +2 -0
- package/cjs/loader/index.js +3 -3
- package/cjs/localization/LocaleFlag.d.ts +13 -0
- package/cjs/localization/LocaleFlag.js +10 -15
- package/cjs/localization/index.d.ts +2 -0
- package/cjs/localization/index.js +2 -2
- package/cjs/localization/locales.d.ts +35 -0
- package/cjs/logo/Logo.d.ts +11 -0
- package/cjs/logo/Logo.js +7 -10
- package/cjs/logo/index.d.ts +1 -0
- package/cjs/logo/index.js +1 -1
- package/cjs/media/index.d.ts +2 -0
- package/cjs/menu/Menu.d.ts +7 -0
- package/cjs/menu/Menu.js +25 -27
- package/cjs/menu/index.d.ts +2 -0
- package/cjs/menu/index.js +3 -4
- package/cjs/mobile-stepper/MobileStepper.d.ts +25 -0
- package/cjs/mobile-stepper/MobileStepper.js +12 -18
- package/cjs/mobile-stepper/index.d.ts +1 -0
- package/cjs/mobile-stepper/index.js +2 -2
- package/cjs/nav-bar/NavBar.d.ts +37 -0
- package/cjs/nav-bar/NavBar.js +34 -52
- package/cjs/nav-bar/index.d.ts +2 -0
- package/cjs/nav-bar/index.js +3 -4
- package/cjs/nav-menu/NavMenuItem.d.ts +10 -0
- package/cjs/nav-menu/NavMenuItem.js +2 -3
- package/cjs/nav-menu/index.d.ts +1 -0
- package/cjs/nav-menu/index.js +2 -2
- package/cjs/pagination/Pagination.d.ts +44 -0
- package/cjs/pagination/Pagination.js +11 -12
- package/cjs/pagination/Pagination.styles.d.ts +6 -0
- package/cjs/pagination/Pagination.styles.js +1 -2
- package/cjs/pagination/index.d.ts +1 -0
- package/cjs/pagination/index.js +1 -1
- package/cjs/popper/Popper.d.ts +29 -0
- package/cjs/popper/Popper.js +24 -29
- package/cjs/popper/index.d.ts +1 -0
- package/cjs/popper/index.js +2 -2
- package/cjs/progress-bar/ProgressBar.d.ts +8 -0
- package/cjs/progress-bar/ProgressBar.js +3 -5
- package/cjs/progress-bar/index.d.ts +2 -0
- package/cjs/progress-bar/index.js +3 -4
- package/cjs/schedule/ScheduleItem.d.ts +19 -0
- package/cjs/schedule/ScheduleItem.js +1 -1
- package/cjs/schedule/ScheduleList.d.ts +11 -0
- package/cjs/schedule/ScheduleList.js +6 -8
- package/cjs/schedule/index.d.ts +2 -0
- package/cjs/schedule/index.js +3 -3
- package/cjs/side-sheet/SideSheet.d.ts +57 -0
- package/cjs/side-sheet/SideSheet.js +36 -58
- package/cjs/side-sheet/SideSheetCloseButton.d.ts +13 -0
- package/cjs/side-sheet/SideSheetCloseButton.js +10 -15
- package/cjs/side-sheet/SideSheetContent.d.ts +7 -0
- package/cjs/side-sheet/SideSheetContent.js +7 -10
- package/cjs/side-sheet/SideSheetFooter.d.ts +7 -0
- package/cjs/side-sheet/SideSheetFooter.js +7 -10
- package/cjs/side-sheet/SideSheetHeader.d.ts +9 -0
- package/cjs/side-sheet/SideSheetHeader.js +10 -14
- package/cjs/side-sheet/SideSheetHeadline.d.ts +7 -0
- package/cjs/side-sheet/SideSheetHeadline.js +1 -1
- package/cjs/side-sheet/index.d.ts +4 -0
- package/cjs/side-sheet/index.js +6 -7
- package/cjs/site-layout/SiteLayout.d.ts +40 -0
- package/cjs/site-layout/SiteLayout.js +31 -35
- package/cjs/site-layout/index.d.ts +2 -0
- package/cjs/site-layout/index.js +3 -4
- package/cjs/skeleton/Skeleton.d.ts +8 -0
- package/cjs/skeleton/Skeleton.js +12 -16
- package/cjs/skeleton/index.d.ts +1 -0
- package/cjs/skeleton/index.js +1 -1
- package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +24 -0
- package/cjs/social-media-link-list/SocialMediaLinkList.js +15 -17
- package/cjs/social-media-link-list/index.d.ts +1 -0
- package/cjs/social-media-link-list/index.js +1 -1
- package/cjs/spinner/Spinner.d.ts +58 -0
- package/cjs/spinner/Spinner.js +11 -16
- package/cjs/spinner/index.d.ts +1 -0
- package/cjs/spinner/index.js +1 -1
- package/cjs/step/Step.d.ts +45 -0
- package/cjs/step/Step.js +23 -32
- package/cjs/step/Step.styles.d.ts +4 -0
- package/cjs/step/Step.styles.js +1 -2
- package/cjs/step/StepButton.d.ts +4 -0
- package/cjs/step/StepButton.js +18 -18
- package/cjs/step/StepContent.d.ts +6 -0
- package/cjs/step/StepContent.js +6 -7
- package/cjs/step/StepContext.d.ts +12 -0
- package/cjs/step/StepContext.js +1 -1
- package/cjs/step/StepLabel.d.ts +7 -0
- package/cjs/step/StepLabel.js +6 -6
- package/cjs/step/index.d.ts +1 -0
- package/cjs/step/index.js +2 -2
- package/cjs/stepper/Stepper.d.ts +25 -0
- package/cjs/stepper/Stepper.js +17 -29
- package/cjs/stepper/StepperContext.d.ts +9 -0
- package/cjs/stepper/StepperContext.js +1 -1
- package/cjs/stepper/index.d.ts +1 -0
- package/cjs/stepper/index.js +2 -2
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.d.ts +5 -0
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.js +2 -3
- package/cjs/stepper-feedback-message/index.d.ts +1 -0
- package/cjs/stepper-feedback-message/index.js +2 -2
- package/cjs/styles/index.d.ts +3 -0
- package/cjs/styles/index.js +6 -7
- package/cjs/styles/media.d.ts +21 -0
- package/cjs/styles/rem.d.ts +1 -0
- package/cjs/styles/style-helpers.d.ts +1 -0
- package/cjs/styles/style-helpers.js +1 -2
- package/cjs/styles/theme.d.ts +39 -0
- package/cjs/surface/Surface.d.ts +32 -0
- package/cjs/surface/Surface.js +14 -21
- package/cjs/surface/index.d.ts +1 -0
- package/cjs/surface/index.js +1 -1
- package/cjs/tab/Tab.d.ts +12 -0
- package/cjs/tab/Tab.js +16 -18
- package/cjs/tab/TabPanel.d.ts +7 -0
- package/cjs/tab/TabPanel.js +4 -3
- package/cjs/tab/Tabs.d.ts +11 -0
- package/cjs/tab/Tabs.js +24 -42
- package/cjs/tab/TabsContext.d.ts +16 -0
- package/cjs/tab/TabsContext.js +1 -2
- package/cjs/tab/index.d.ts +4 -0
- package/cjs/tab/index.js +5 -5
- package/cjs/table/Table.d.ts +22 -0
- package/cjs/table/Table.js +8 -13
- package/cjs/table/TableBody.d.ts +9 -0
- package/cjs/table/TableBody.js +6 -9
- package/cjs/table/TableDataCell.d.ts +14 -0
- package/cjs/table/TableDataCell.js +7 -11
- package/cjs/table/TableHead.d.ts +14 -0
- package/cjs/table/TableHead.js +11 -13
- package/cjs/table/TableHeaderCell.d.ts +15 -0
- package/cjs/table/TableHeaderCell.js +7 -11
- package/cjs/table/TableRow.d.ts +17 -0
- package/cjs/table/TableRow.js +12 -15
- package/cjs/table/index.d.ts +6 -0
- package/cjs/table/index.js +6 -6
- package/cjs/test/Test.d.ts +8 -0
- package/cjs/test/Test.js +1 -1
- package/cjs/tooltip/Tooltip.d.ts +26 -0
- package/cjs/tooltip/Tooltip.js +14 -17
- package/cjs/tooltip/index.d.ts +2 -0
- package/cjs/tooltip/index.js +3 -4
- package/cjs/typography/Headlines.d.ts +71 -0
- package/cjs/typography/Headlines.js +21 -26
- package/cjs/typography/Text.d.ts +4 -0
- package/cjs/typography/Text.js +2 -3
- package/cjs/typography/index.d.ts +2 -0
- package/cjs/typography/index.js +2 -2
- package/common/LockBodyScroll.js +3 -3
- package/common/arrow.d.ts +1 -1
- package/common/arrow.js +2 -4
- package/common/emotionCloneElement.d.ts +0 -1
- package/common/emotionCloneElement.js +1 -1
- package/common/polymorphic.d.ts +2 -2
- package/common/polymorphic.js +2 -2
- package/common/use-media.js +4 -4
- package/common/useOnClickOutside.d.ts +0 -1
- package/common/utils.d.ts +3 -3
- package/common/utils.js +1 -1
- package/counter/Counter.js +9 -14
- package/counter/PluralCounter.js +8 -9
- package/data-table/DataTable.d.ts +2 -1
- package/data-table/DataTable.js +11 -11
- package/date-range-picker/DatePickerDefaultStyles.d.ts +1 -1
- package/date-range-picker/DatePickerDefaultStyles.js +1 -2
- package/date-range-picker/DatePickerDfdsStyles.d.ts +1 -1
- package/date-range-picker/DateRangePicker.js +8 -8
- package/divider/Divider.d.ts +2 -2
- package/divider/Divider.js +3 -3
- package/drawer/Drawer.js +3 -3
- package/dropdown-menu/Dropdown.d.ts +1 -1
- package/dropdown-menu/Dropdown.js +8 -9
- package/dropdown-menu/MenuCheckbox.d.ts +1 -1
- package/dropdown-menu/MenuCheckbox.js +1 -1
- package/dropdown-menu/MenuItem.d.ts +3 -3
- package/dropdown-menu/MenuItem.js +12 -17
- package/dropdown-menu/MenuTitle.d.ts +1 -1
- package/dropdown-menu/MenuTitle.js +1 -2
- package/elevation/index.d.ts +1 -1
- package/elevation/index.js +3 -6
- package/flexbox/FlexBox.d.ts +3 -3
- package/flexbox/FlexBox.js +7 -7
- package/forms/assistive-text/AssistiveText.d.ts +1 -2
- package/forms/asterisk/Asterisk.d.ts +2 -2
- package/forms/checkbox/Checkbox.d.ts +1 -1
- package/forms/checkbox/Checkbox.js +4 -5
- package/forms/checkbox/ExampleControlComponent.d.ts +1 -0
- package/forms/checkbox/ExampleControlComponent.js +7 -7
- package/forms/email-field/EmailField.d.ts +1 -1
- package/forms/email-field/EmailField.js +2 -2
- package/forms/error-text/ErrorText.d.ts +1 -2
- package/forms/error-text/ErrorText.js +2 -4
- package/forms/field/Field.d.ts +1 -0
- package/forms/field/Field.js +3 -6
- package/forms/input/Input.d.ts +1 -1
- package/forms/input/Input.js +11 -19
- package/forms/input/InputComposition.d.ts +3 -3
- package/forms/input/InputComposition.js +4 -5
- package/forms/label/Label.d.ts +1 -0
- package/forms/label/Label.js +7 -9
- package/forms/number-field/NumberField.d.ts +1 -1
- package/forms/number-field/NumberField.js +3 -4
- package/forms/password-field/PasswordField.d.ts +1 -1
- package/forms/password-field/PasswordField.js +6 -7
- package/forms/radio/Radio.d.ts +1 -1
- package/forms/radio/Radio.js +4 -5
- package/forms/reactselect/ReactSelect.d.ts +5 -5
- package/forms/reactselect/ReactSelect.js +5 -6
- package/forms/searchable-select/AsyncSearchableSelect.js +3 -3
- package/forms/select/Select.d.ts +1 -1
- package/forms/select/Select.js +8 -13
- package/forms/select-field/SelectField.d.ts +1 -1
- package/forms/select-field/SelectField.js +8 -12
- package/forms/switch/Switch.js +6 -9
- package/forms/tel-field/TelField.d.ts +1 -1
- package/forms/tel-field/TelField.js +2 -2
- package/forms/text-field/TextField.d.ts +1 -1
- package/forms/text-field/TextField.js +8 -12
- package/global-styles/GlobalStyles.d.ts +3 -3
- package/global-styles/ResetStyles.d.ts +2 -2
- package/global-styles/ResetStyles.js +1 -2
- package/global-styles/sanitize.d.ts +1 -1
- package/global-styles/sanitize.js +1 -2
- package/grid/Column.js +3 -3
- package/grid/Container.js +4 -4
- package/hero/Hero.js +5 -9
- package/ie-banner/IEBanner.d.ts +1 -0
- package/ie-banner/IEBanner.js +4 -4
- package/layout/LayoutLegacy.d.ts +2 -2
- package/lists/FeatureList.d.ts +2 -4
- package/lists/FeatureList.js +3 -3
- package/lists/ListAddon.d.ts +1 -1
- package/lists/ListAddon.js +3 -3
- package/lists/ListDivider.d.ts +2 -2
- package/lists/ListDivider.js +3 -3
- package/lists/ListIcon.d.ts +1 -1
- package/lists/ListIcon.js +3 -3
- package/lists/ListItem.d.ts +2 -2
- package/lists/ListItem.js +3 -3
- package/lists/ListText.d.ts +1 -1
- package/lists/ListText.js +3 -3
- package/lists/ListTextGroup.d.ts +1 -1
- package/lists/ListTextGroup.js +3 -3
- package/lists/ListTitle.d.ts +2 -2
- package/lists/ListTitle.js +4 -5
- package/loader/DfdsLoader.js +2 -3
- package/loader/Loader.d.ts +2 -2
- package/loader/Loader.js +2 -3
- package/localization/LocaleFlag.d.ts +2 -2
- package/localization/LocaleFlag.js +3 -3
- package/logo/Logo.d.ts +2 -2
- package/logo/Logo.js +3 -3
- package/menu/Menu.js +8 -8
- package/mobile-stepper/MobileStepper.d.ts +2 -2
- package/mobile-stepper/MobileStepper.js +10 -12
- package/nav-bar/NavBar.d.ts +4 -2
- package/nav-bar/NavBar.js +19 -22
- package/nav-menu/NavMenuItem.js +1 -2
- package/package.json +19 -19
- package/pagination/Pagination.d.ts +1 -1
- package/pagination/Pagination.js +4 -6
- package/pagination/Pagination.styles.d.ts +6 -6
- package/pagination/Pagination.styles.js +2 -3
- package/popper/Popper.d.ts +2 -2
- package/popper/Popper.js +4 -5
- package/progress-bar/ProgressBar.d.ts +2 -2
- package/progress-bar/ProgressBar.js +2 -4
- package/schedule/ScheduleItem.d.ts +2 -4
- package/schedule/ScheduleList.js +3 -3
- package/side-sheet/SideSheet.d.ts +1 -1
- package/side-sheet/SideSheet.js +13 -18
- package/side-sheet/SideSheetCloseButton.d.ts +1 -1
- package/side-sheet/SideSheetCloseButton.js +3 -3
- package/side-sheet/SideSheetContent.d.ts +2 -2
- package/side-sheet/SideSheetContent.js +3 -3
- package/side-sheet/SideSheetFooter.d.ts +2 -2
- package/side-sheet/SideSheetFooter.js +3 -3
- package/side-sheet/SideSheetHeader.d.ts +2 -2
- package/side-sheet/SideSheetHeader.js +3 -3
- package/side-sheet/SideSheetHeadline.d.ts +2 -2
- package/site-layout/SiteLayout.d.ts +6 -2
- package/site-layout/SiteLayout.js +8 -9
- package/skeleton/Skeleton.d.ts +2 -2
- package/skeleton/Skeleton.js +4 -4
- package/social-media-link-list/SocialMediaLinkList.d.ts +2 -4
- package/social-media-link-list/SocialMediaLinkList.js +3 -3
- package/spinner/Spinner.d.ts +2 -2
- package/spinner/Spinner.js +5 -6
- package/step/Step.d.ts +1 -1
- package/step/Step.js +3 -3
- package/step/Step.styles.d.ts +4 -4
- package/step/Step.styles.js +1 -2
- package/step/StepButton.js +4 -6
- package/step/StepContent.d.ts +2 -2
- package/step/StepContent.js +2 -4
- package/step/StepLabel.js +1 -2
- package/stepper/Stepper.d.ts +1 -1
- package/stepper/Stepper.js +6 -8
- package/stepper-feedback-message/StepperFeedbackMessage.d.ts +2 -2
- package/stepper-feedback-message/StepperFeedbackMessage.js +1 -2
- package/styles/style-helpers.d.ts +1 -1
- package/styles/style-helpers.js +1 -2
- package/surface/Surface.d.ts +1 -1
- package/surface/Surface.js +4 -4
- package/tab/Tab.js +4 -5
- package/tab/Tabs.js +8 -9
- package/table/Table.d.ts +1 -1
- package/table/Table.js +3 -3
- package/table/TableBody.d.ts +1 -1
- package/table/TableBody.js +3 -3
- package/table/TableDataCell.d.ts +1 -1
- package/table/TableDataCell.js +3 -3
- package/table/TableHead.d.ts +2 -2
- package/table/TableHead.js +4 -4
- package/table/TableHeaderCell.d.ts +2 -2
- package/table/TableHeaderCell.js +3 -3
- package/table/TableRow.d.ts +1 -1
- package/table/TableRow.js +4 -4
- package/tooltip/Tooltip.d.ts +1 -1
- package/tooltip/Tooltip.js +4 -5
- package/typography/Headlines.d.ts +29 -28
- package/typography/Headlines.js +14 -16
- package/typography/Text.d.ts +1 -2
- 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,9 +519,9 @@ 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
|
});
|
|
526
526
|
});
|
|
527
|
-
function _interopRequireDefault(
|
|
527
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -6,7 +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
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
const regular = 'https://unpkg.com/@dfds-ui/fonts@0.0.42/fonts/DFDS-Regular.woff2';
|
|
11
11
|
const italic = 'https://unpkg.com/@dfds-ui/fonts@0.0.42/fonts/DFDS-Italic.woff2';
|
|
12
12
|
const bold = 'https://unpkg.com/@dfds-ui/fonts@0.0.42/fonts/DFDS-Bold.woff2';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import { FlexBoxProps } from './../flexbox/FlexBox';
|
|
3
|
+
declare type FeatureListProps = {
|
|
4
|
+
icon: any;
|
|
5
|
+
items: string[];
|
|
6
|
+
iconColor?: string;
|
|
7
|
+
textTag?: React.ElementType;
|
|
8
|
+
as?: React.ElementType;
|
|
9
|
+
};
|
|
10
|
+
declare type FeatureListComponent = FunctionComponent<FeatureListProps>;
|
|
11
|
+
export declare const ListItem: import("@emotion/styled").StyledComponent<{
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
14
|
+
} & FlexBoxProps & {
|
|
15
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
16
|
+
} & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
iconColor?: string | undefined;
|
|
20
|
+
}, {}, {}>;
|
|
21
|
+
declare const FeatureList: FeatureListComponent;
|
|
22
|
+
export default FeatureList;
|
package/cjs/lists/FeatureList.js
CHANGED
|
@@ -8,11 +8,8 @@ var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _FlexBox = _interopRequireDefault(require("./../flexbox/FlexBox"));
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
|
-
|
|
12
|
-
function
|
|
13
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
15
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
16
13
|
const ListItem = /*#__PURE__*/(0, _base.default)(_FlexBox.default, process.env.NODE_ENV === "production" ? {
|
|
17
14
|
target: "e1hxsk0v0"
|
|
18
15
|
} : {
|
|
@@ -22,13 +19,13 @@ const ListItem = /*#__PURE__*/(0, _base.default)(_FlexBox.default, process.env.N
|
|
|
22
19
|
iconColor
|
|
23
20
|
}) => 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
21
|
exports.ListItem = ListItem;
|
|
25
|
-
const FeatureList =
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
const FeatureList = ({
|
|
23
|
+
icon,
|
|
24
|
+
items,
|
|
25
|
+
iconColor,
|
|
26
|
+
textTag = 'p',
|
|
27
|
+
...rest
|
|
28
|
+
}) => {
|
|
32
29
|
const list = items.map((item, i) => {
|
|
33
30
|
const TextTag = textTag;
|
|
34
31
|
return (0, _react2.jsx)(ListItem, {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type ListAddonProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
/**
|
|
5
|
+
* HTML tag or custom component being rendered.
|
|
6
|
+
*/
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
declare const ListAddon: ({ className, as, children, ...rest }: ListAddonProps) => React.JSX.Element;
|
|
11
|
+
export default ListAddon;
|
package/cjs/lists/ListAddon.js
CHANGED
|
@@ -8,17 +8,14 @@ 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
|
-
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
as = _ref$as === void 0 ? 'span' : _ref$as,
|
|
20
|
-
children = _ref.children,
|
|
21
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
13
|
+
const ListAddon = ({
|
|
14
|
+
className,
|
|
15
|
+
as = 'span',
|
|
16
|
+
children,
|
|
17
|
+
...rest
|
|
18
|
+
}) => {
|
|
22
19
|
const Component = as;
|
|
23
20
|
return (0, _react2.jsx)(_ListIcon.default, _extends({
|
|
24
21
|
icon: props => (0, _react2.jsx)(Component, props, children),
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DividerProps } from '../divider';
|
|
3
|
+
export declare type ListDividerProps = Pick<DividerProps, 'as' | 'indent' | 'margins'>;
|
|
4
|
+
declare const ListDivider: ({ indent, margins, as, ...rest }: ListDividerProps) => React.JSX.Element;
|
|
5
|
+
export default ListDivider;
|
package/cjs/lists/ListDivider.js
CHANGED
|
@@ -8,17 +8,14 @@ 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
|
-
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
_ref$as = _ref.as,
|
|
20
|
-
as = _ref$as === void 0 ? 'hr' : _ref$as,
|
|
21
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
13
|
+
const ListDivider = ({
|
|
14
|
+
indent,
|
|
15
|
+
margins,
|
|
16
|
+
as = 'hr',
|
|
17
|
+
...rest
|
|
18
|
+
}) => {
|
|
22
19
|
return (0, _react2.jsx)(_divider.Divider, _extends({
|
|
23
20
|
indent: indent,
|
|
24
21
|
margins: margins,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type Size = 'small' | 'medium' | 'large' | 'xl';
|
|
3
|
+
declare type ListIconProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Choose the needed icon.
|
|
6
|
+
*/
|
|
7
|
+
icon: React.ElementType;
|
|
8
|
+
/**
|
|
9
|
+
* Choose the size of the icon.
|
|
10
|
+
*/
|
|
11
|
+
size?: Size;
|
|
12
|
+
/**
|
|
13
|
+
* Choose the color of the icon.
|
|
14
|
+
*/
|
|
15
|
+
color?: string;
|
|
16
|
+
};
|
|
17
|
+
declare const ListIcon: ({ icon: Icon, size, color, ...rest }: ListIconProps) => React.JSX.Element;
|
|
18
|
+
export default ListIcon;
|
package/cjs/lists/ListIcon.js
CHANGED
|
@@ -7,16 +7,14 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _react2 = require("@emotion/react");
|
|
9
9
|
var _theme = require("@dfds-ui/theme");
|
|
10
|
-
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
m = _theme$spacing.m,
|
|
19
|
-
l = _theme$spacing.l;
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
12
|
+
const {
|
|
13
|
+
xs,
|
|
14
|
+
s,
|
|
15
|
+
m,
|
|
16
|
+
l
|
|
17
|
+
} = _theme.theme.spacing;
|
|
20
18
|
const sizes = {
|
|
21
19
|
small: xs,
|
|
22
20
|
medium: s,
|
|
@@ -30,13 +28,12 @@ const listIconStyles = ({
|
|
|
30
28
|
size,
|
|
31
29
|
color
|
|
32
30
|
}) => /*#__PURE__*/(0, _react2.css)("width:auto;height:", getSize(size), ";min-width:", getSize(size), ";object-fit:contain;flex-shrink:0;color:", color, ";flex:0;fill:", color, ";margin:0;&:not(:last-child){margin-right:", _theme.theme.spacing.xs, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:listIconStyles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saXN0cy9MaXN0SWNvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0N1RSIsImZpbGUiOiIuLi8uLi8uLi9zcmMvbGlzdHMvTGlzdEljb24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgeyB0aGVtZSB9IGZyb20gJ0BkZmRzLXVpL3RoZW1lJ1xuXG50eXBlIFNpemUgPSAnc21hbGwnIHwgJ21lZGl1bScgfCAnbGFyZ2UnIHwgJ3hsJ1xuXG5jb25zdCB7IHhzLCBzLCBtLCBsIH0gPSB0aGVtZS5zcGFjaW5nXG5cbmNvbnN0IHNpemVzID0ge1xuICBzbWFsbDogeHMsXG4gIG1lZGl1bTogcyxcbiAgbGFyZ2U6IG0sXG4gIHhsOiBsLFxufVxuXG50eXBlIExpc3RJY29uUHJvcHMgPSB7XG4gIC8qKlxuICAgKiBDaG9vc2UgdGhlIG5lZWRlZCBpY29uLlxuICAgKi9cbiAgaWNvbjogUmVhY3QuRWxlbWVudFR5cGVcbiAgLyoqXG4gICAqIENob29zZSB0aGUgc2l6ZSBvZiB0aGUgaWNvbi5cbiAgICovXG4gIHNpemU/OiBTaXplXG4gIC8qKlxuICAgKiBDaG9vc2UgdGhlIGNvbG9yIG9mIHRoZSBpY29uLlxuICAgKi9cbiAgY29sb3I/OiBzdHJpbmdcbn1cblxuZnVuY3Rpb24gZ2V0U2l6ZShzaXplOiBTaXplID0gJ21lZGl1bScpIHtcbiAgcmV0dXJuIHNpemVzW3NpemVdXG59XG5cbmNvbnN0IGxpc3RJY29uU3R5bGVzID0gKHsgc2l6ZSwgY29sb3IgfTogUGFydGlhbDxMaXN0SWNvblByb3BzPikgPT4gY3NzYFxuICB3aWR0aDogYXV0bztcbiAgaGVpZ2h0OiAke2dldFNpemUoc2l6ZSl9O1xuICBtaW4td2lkdGg6ICR7Z2V0U2l6ZShzaXplKX07XG4gIG9iamVjdC1maXQ6IGNvbnRhaW47XG4gIGZsZXgtc2hyaW5rOiAwO1xuICBjb2xvcjogJHtjb2xvcn07XG4gIGZsZXg6IDA7XG4gIGZpbGw6ICR7Y29sb3J9O1xuICBtYXJnaW46IDA7XG4gICY6bm90KDpsYXN0LWNoaWxkKSB7XG4gICAgbWFyZ2luLXJpZ2h0OiAke3RoZW1lLnNwYWNpbmcueHN9O1xuICB9XG5gXG5cbmNvbnN0IExpc3RJY29uID0gKHsgaWNvbjogSWNvbiwgc2l6ZSA9ICdsYXJnZScsIGNvbG9yID0gdGhlbWUuY29sb3JzLnRleHQuZGFyay5wcmltYXJ5LCAuLi5yZXN0IH06IExpc3RJY29uUHJvcHMpID0+IHtcbiAgcmV0dXJuIDxJY29uIGNzcz17bGlzdEljb25TdHlsZXMoeyBzaXplLCBjb2xvciB9KX0gey4uLnJlc3R9IC8+XG59XG5cbmV4cG9ydCBkZWZhdWx0IExpc3RJY29uXG4iXX0= */");
|
|
33
|
-
const ListIcon =
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
31
|
+
const ListIcon = ({
|
|
32
|
+
icon: Icon,
|
|
33
|
+
size = 'large',
|
|
34
|
+
color = _theme.theme.colors.text.dark.primary,
|
|
35
|
+
...rest
|
|
36
|
+
}) => {
|
|
40
37
|
return (0, _react2.jsx)(Icon, _extends({
|
|
41
38
|
css: listIconStyles({
|
|
42
39
|
size,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FlexBoxProps } from '../flexbox/FlexBox';
|
|
3
|
+
import { PolymorphicComponentProps } from '../common/polymorphic';
|
|
4
|
+
export declare type ListItemProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Will render the `ListItem` with a greater `min-height` and should be used when displaying multiple lines of text.
|
|
7
|
+
*/
|
|
8
|
+
multiline?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Indicates that the `ListItem` is selected.
|
|
11
|
+
*/
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Render the 'ListItem` without min-height.
|
|
15
|
+
*/
|
|
16
|
+
condensed?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Indicates that the `ListItem` can be focused.
|
|
19
|
+
*/
|
|
20
|
+
tabIndex?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Add interactive styles to the `ListItem`.
|
|
23
|
+
*/
|
|
24
|
+
clickable?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Add a divider to the `ListItem`. This will apply a border on the the `ListItem` only. If you need the indent/margin variants use
|
|
27
|
+
* the `ListDivider` component instead.
|
|
28
|
+
*/
|
|
29
|
+
divider?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Invoke the provided callback when the `ListItem` is clicked.
|
|
32
|
+
*/
|
|
33
|
+
onClick?: () => void;
|
|
34
|
+
/**
|
|
35
|
+
* Props controlling the flexbox.
|
|
36
|
+
*/
|
|
37
|
+
flexBoxProps?: FlexBoxProps;
|
|
38
|
+
/**
|
|
39
|
+
* className to be assigned to component.
|
|
40
|
+
*/
|
|
41
|
+
className?: string;
|
|
42
|
+
children?: React.ReactNode;
|
|
43
|
+
} & PolymorphicComponentProps;
|
|
44
|
+
export declare const listItemStyles: ({ multiline, selected, clickable, condensed, flexBoxProps, divider, }: Partial<ListItemProps>) => import("@emotion/react").SerializedStyles;
|
|
45
|
+
declare const ListItem: ({ children, multiline, condensed, selected, tabIndex, clickable, divider, onClick, as, flexBoxProps, ...rest }: ListItemProps) => React.JSX.Element;
|
|
46
|
+
export default ListItem;
|