@dfds-ui/react-components 2.2.0-alpha.c35ceba3 → 2.2.0-alpha.c79adffa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/Accordion.js +3 -3
- package/accordion/AccordionContent.d.ts +0 -1
- package/accordion/AccordionContent.js +4 -4
- package/accordion/AccordionSmall.d.ts +0 -1
- package/accordion/AccordionSmall.js +7 -7
- package/app-bar/AppBar.js +5 -5
- package/app-bar/AppBarContext.js +2 -2
- 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 +16 -16
- package/app-bar/AppBarListItem.d.ts +1 -0
- package/assertions/banner/Banner.js +5 -5
- package/assertions/banner/BannerAction.js +3 -3
- package/assertions/banner/BannerTypography.d.ts +0 -2
- package/assertions/banner/BannerTypography.js +3 -3
- package/assertions/toast/Toast.d.ts +0 -1
- package/assertions/toast/Toast.js +9 -9
- package/assertions/toast/Toaster.js +21 -31
- package/badge/Badge.d.ts +1 -1
- package/badge/Badge.js +3 -3
- package/button/BadgeIcon.d.ts +2 -2
- package/button/BaseButton.d.ts +1 -1
- package/button/Button.js +3 -3
- package/button/IconButton.d.ts +1 -1
- package/button/IconButton.js +3 -3
- package/button/LinkButton.d.ts +1 -1
- package/button/LinkButton.js +1 -1
- package/button-stack/ButtonStack.d.ts +0 -1
- package/button-stack/ButtonStack.js +6 -6
- package/card/Card.d.ts +0 -1
- package/card/Card.js +15 -15
- package/card/CardActions.js +3 -3
- package/card/CardContent.d.ts +1 -2
- package/card/CardContent.js +4 -4
- package/card/CardMedia.d.ts +1 -2
- package/card/CardMedia.js +4 -4
- package/card/CardPriceTag.d.ts +2 -2
- package/card/CardPriceTag.js +2 -2
- package/card/CardTitle.d.ts +1 -2
- package/card/CardTitle.js +5 -5
- package/chip/Chip.d.ts +2 -2
- package/chip/Chip.js +5 -5
- package/cjs/accordion/Accordion.js +25 -22
- package/cjs/accordion/AccordionContent.d.ts +0 -1
- package/cjs/accordion/AccordionContent.js +10 -9
- package/cjs/accordion/AccordionSmall.d.ts +0 -1
- package/cjs/accordion/AccordionSmall.js +19 -17
- package/cjs/accordion/index.js +3 -3
- package/cjs/app-bar/AppBar.js +64 -44
- package/cjs/app-bar/AppBarContext.js +15 -3
- package/cjs/app-bar/AppBarDrawer.js +11 -11
- package/cjs/app-bar/AppBarIconButton.js +10 -8
- package/cjs/app-bar/AppBarItem.d.ts +1 -1
- package/cjs/app-bar/AppBarItem.js +44 -32
- package/cjs/app-bar/AppBarListItem.d.ts +1 -0
- package/cjs/app-bar/AppBarListItem.js +1 -2
- package/cjs/app-bar/index.js +8 -8
- package/cjs/assertions/banner/Banner.js +45 -27
- package/cjs/assertions/banner/BannerAction.js +9 -7
- package/cjs/assertions/banner/BannerTypography.d.ts +0 -2
- package/cjs/assertions/banner/BannerTypography.js +2 -2
- package/cjs/assertions/banner/index.js +3 -3
- package/cjs/assertions/index.js +2 -2
- package/cjs/assertions/toast/Toast.d.ts +0 -1
- package/cjs/assertions/toast/Toast.js +20 -17
- package/cjs/assertions/toast/Toaster.js +40 -22
- package/cjs/assertions/toast/index.js +4 -4
- package/cjs/badge/Badge.d.ts +1 -1
- package/cjs/badge/Badge.js +14 -9
- package/cjs/badge/index.js +3 -3
- package/cjs/button/BadgeIcon.d.ts +2 -2
- package/cjs/button/BadgeIcon.js +1 -2
- package/cjs/button/BaseButton.d.ts +1 -1
- package/cjs/button/BaseButton.js +2 -4
- package/cjs/button/Button.js +21 -15
- package/cjs/button/IconButton.d.ts +1 -1
- package/cjs/button/IconButton.js +28 -21
- package/cjs/button/LinkButton.d.ts +1 -1
- package/cjs/button/LinkButton.js +2 -3
- package/cjs/button/button-style.js +8 -15
- package/cjs/button/index.js +8 -8
- package/cjs/button-stack/ButtonStack.d.ts +0 -1
- package/cjs/button-stack/ButtonStack.js +16 -13
- package/cjs/button-stack/index.js +1 -1
- package/cjs/card/Card.d.ts +0 -1
- package/cjs/card/Card.js +44 -30
- package/cjs/card/CardActions.js +11 -8
- package/cjs/card/CardContent.d.ts +1 -2
- package/cjs/card/CardContent.js +17 -14
- package/cjs/card/CardMedia.d.ts +1 -2
- package/cjs/card/CardMedia.js +12 -10
- package/cjs/card/CardPriceTag.d.ts +2 -2
- package/cjs/card/CardPriceTag.js +12 -9
- package/cjs/card/CardTitle.d.ts +1 -2
- package/cjs/card/CardTitle.js +14 -13
- package/cjs/card/index.js +6 -6
- package/cjs/chip/Chip.d.ts +2 -2
- package/cjs/chip/Chip.js +29 -15
- package/cjs/chip/index.js +3 -3
- package/cjs/common/LockBodyScroll.js +9 -8
- package/cjs/common/emotionCloneElement.d.ts +1 -0
- package/cjs/common/emotionCloneElement.js +9 -7
- package/cjs/common/polymorphic.d.ts +2 -2
- package/cjs/common/polymorphic.js +3 -3
- package/cjs/common/use-media.js +10 -1
- package/cjs/common/useOnClickOutside.d.ts +1 -0
- package/cjs/counter/Counter.js +16 -8
- package/cjs/counter/PluralCounter.js +23 -12
- package/cjs/counter/index.js +2 -2
- package/cjs/data-table/DataTable.d.ts +1 -2
- package/cjs/data-table/DataTable.js +29 -19
- package/cjs/data-table/index.js +1 -1
- package/cjs/date-range-picker/DatePickerDefaultStyles.js +1 -2
- package/cjs/date-range-picker/DatePickerDfdsStyles.js +1 -2
- package/cjs/date-range-picker/DateRangePicker.js +56 -30
- package/cjs/date-range-picker/index.js +1 -1
- package/cjs/divider/Divider.d.ts +1 -1
- package/cjs/divider/Divider.js +10 -11
- package/cjs/divider/index.js +1 -1
- package/cjs/drawer/Drawer.js +16 -12
- package/cjs/drawer/index.js +1 -1
- package/cjs/dropdown-menu/Dropdown.d.ts +1 -1
- package/cjs/dropdown-menu/Dropdown.js +33 -20
- package/cjs/dropdown-menu/DropdownContext.js +3 -5
- package/cjs/dropdown-menu/MenuCheckbox.d.ts +1 -1
- package/cjs/dropdown-menu/MenuCheckbox.js +3 -5
- package/cjs/dropdown-menu/MenuItem.d.ts +1 -1
- package/cjs/dropdown-menu/MenuItem.js +31 -20
- package/cjs/dropdown-menu/MenuTitle.d.ts +1 -1
- package/cjs/dropdown-menu/MenuTitle.js +3 -5
- package/cjs/dropdown-menu/index.js +6 -6
- package/cjs/elevation/index.js +1 -2
- package/cjs/flexbox/FlexBox.d.ts +2 -2
- package/cjs/flexbox/FlexBox.js +15 -9
- package/cjs/flexbox/index.js +1 -1
- package/cjs/footer/Footer.js +1 -2
- package/cjs/footer/index.js +1 -1
- package/cjs/forms/assistive-text/AssistiveText.d.ts +2 -1
- package/cjs/forms/assistive-text/AssistiveText.js +1 -2
- package/cjs/forms/asterisk/Asterisk.d.ts +2 -2
- package/cjs/forms/asterisk/Asterisk.js +1 -2
- package/cjs/forms/checkbox/Checkbox.d.ts +1 -1
- package/cjs/forms/checkbox/Checkbox.js +20 -16
- package/cjs/forms/checkbox/ExampleControlComponent.d.ts +0 -1
- package/cjs/forms/checkbox/ExampleControlComponent.js +18 -8
- package/cjs/forms/checkbox/index.js +1 -1
- package/cjs/forms/email-field/EmailField.d.ts +1 -1
- package/cjs/forms/email-field/EmailField.js +2 -3
- package/cjs/forms/error-text/ErrorText.d.ts +2 -1
- package/cjs/forms/error-text/ErrorText.js +1 -2
- package/cjs/forms/field/Field.d.ts +0 -1
- package/cjs/forms/field/Field.js +4 -5
- package/cjs/forms/index.js +18 -18
- package/cjs/forms/input/Input.d.ts +1 -1
- package/cjs/forms/input/Input.js +16 -15
- package/cjs/forms/input/InputComposition.d.ts +2 -2
- package/cjs/forms/input/InputComposition.js +30 -29
- package/cjs/forms/label/Label.d.ts +0 -1
- package/cjs/forms/label/Label.js +12 -11
- package/cjs/forms/number-field/NumberField.d.ts +1 -1
- package/cjs/forms/number-field/NumberField.js +2 -3
- package/cjs/forms/password-field/PasswordField.d.ts +1 -1
- package/cjs/forms/password-field/PasswordField.js +12 -4
- package/cjs/forms/radio/Radio.d.ts +1 -1
- package/cjs/forms/radio/Radio.js +34 -31
- package/cjs/forms/reactselect/ReactSelect.d.ts +5 -5
- package/cjs/forms/reactselect/ReactSelect.js +51 -46
- package/cjs/forms/searchable-select/AsyncSearchableSelect.js +34 -31
- package/cjs/forms/select/Select.d.ts +1 -1
- package/cjs/forms/select/Select.js +13 -12
- package/cjs/forms/select-field/SelectField.d.ts +1 -1
- package/cjs/forms/select-field/SelectField.js +16 -16
- package/cjs/forms/switch/Switch.js +16 -13
- package/cjs/forms/tel-field/TelField.d.ts +1 -1
- package/cjs/forms/tel-field/TelField.js +2 -3
- package/cjs/forms/text-field/TextField.d.ts +1 -1
- package/cjs/forms/text-field/TextField.js +19 -19
- package/cjs/global-styles/GlobalStyles.d.ts +3 -3
- package/cjs/global-styles/ResetStyles.d.ts +2 -2
- package/cjs/global-styles/sanitize.js +2 -3
- package/cjs/grid/Column.js +11 -10
- package/cjs/grid/Container.js +12 -11
- package/cjs/grid/index.js +2 -2
- package/cjs/hero/Hero.js +1 -2
- package/cjs/hero/index.js +1 -1
- package/cjs/hero/stripes.js +1 -2
- package/cjs/ie-banner/IEBanner.d.ts +0 -1
- package/cjs/ie-banner/IEBanner.js +20 -6
- package/cjs/ie-banner/index.js +1 -1
- package/cjs/index.js +45 -45
- package/cjs/layout/LayoutLegacy.d.ts +2 -2
- package/cjs/lists/FeatureList.d.ts +4 -2
- package/cjs/lists/FeatureList.js +12 -11
- package/cjs/lists/ListAddon.d.ts +1 -1
- package/cjs/lists/ListAddon.js +10 -8
- package/cjs/lists/ListDivider.d.ts +2 -2
- package/cjs/lists/ListDivider.js +10 -8
- package/cjs/lists/ListIcon.d.ts +1 -1
- package/cjs/lists/ListIcon.js +16 -14
- package/cjs/lists/ListItem.d.ts +1 -1
- package/cjs/lists/ListItem.js +25 -17
- package/cjs/lists/ListText.d.ts +1 -1
- package/cjs/lists/ListText.js +12 -10
- package/cjs/lists/ListTextGroup.d.ts +1 -1
- package/cjs/lists/ListTextGroup.js +14 -11
- package/cjs/lists/ListTitle.d.ts +2 -2
- package/cjs/lists/ListTitle.js +8 -6
- package/cjs/lists/index.js +8 -8
- package/cjs/loader/DfdsLoader.js +3 -4
- package/cjs/loader/Loader.d.ts +2 -2
- package/cjs/loader/Loader.js +1 -2
- package/cjs/loader/index.js +2 -2
- package/cjs/localization/LocaleFlag.d.ts +2 -2
- package/cjs/localization/LocaleFlag.js +12 -8
- package/cjs/localization/index.js +2 -2
- package/cjs/localization/locales.js +3 -6
- package/cjs/logo/Logo.d.ts +2 -2
- package/cjs/logo/Logo.js +8 -7
- package/cjs/logo/index.js +1 -1
- package/cjs/media/index.js +1 -2
- package/cjs/menu/Menu.js +26 -25
- package/cjs/menu/index.js +3 -3
- package/cjs/mobile-stepper/MobileStepper.d.ts +2 -2
- package/cjs/mobile-stepper/MobileStepper.js +13 -10
- package/cjs/mobile-stepper/index.js +1 -1
- package/cjs/nav-bar/NavBar.d.ts +2 -4
- package/cjs/nav-bar/NavBar.js +51 -38
- package/cjs/nav-bar/index.js +3 -3
- package/cjs/nav-menu/NavMenuItem.js +1 -2
- package/cjs/nav-menu/index.js +1 -1
- package/cjs/pagination/Pagination.d.ts +1 -1
- package/cjs/pagination/Pagination.js +7 -9
- package/cjs/pagination/Pagination.styles.js +6 -12
- package/cjs/pagination/index.js +1 -1
- package/cjs/popper/Popper.d.ts +2 -2
- package/cjs/popper/Popper.js +26 -23
- package/cjs/popper/index.js +1 -1
- package/cjs/progress-bar/ProgressBar.d.ts +2 -2
- package/cjs/progress-bar/ProgressBar.js +1 -2
- package/cjs/progress-bar/index.js +3 -3
- package/cjs/schedule/ScheduleItem.d.ts +4 -2
- package/cjs/schedule/ScheduleItem.js +2 -4
- package/cjs/schedule/ScheduleList.js +7 -6
- package/cjs/schedule/index.js +2 -2
- package/cjs/side-sheet/SideSheet.d.ts +1 -1
- package/cjs/side-sheet/SideSheet.js +46 -31
- package/cjs/side-sheet/SideSheetCloseButton.d.ts +1 -1
- package/cjs/side-sheet/SideSheetCloseButton.js +14 -10
- package/cjs/side-sheet/SideSheetContent.d.ts +2 -2
- package/cjs/side-sheet/SideSheetContent.js +9 -8
- package/cjs/side-sheet/SideSheetFooter.d.ts +2 -2
- package/cjs/side-sheet/SideSheetFooter.js +9 -8
- package/cjs/side-sheet/SideSheetHeader.d.ts +2 -2
- package/cjs/side-sheet/SideSheetHeader.js +12 -10
- package/cjs/side-sheet/SideSheetHeadline.d.ts +2 -2
- package/cjs/side-sheet/SideSheetHeadline.js +1 -2
- package/cjs/side-sheet/index.js +5 -5
- package/cjs/site-layout/SiteLayout.d.ts +2 -6
- package/cjs/site-layout/SiteLayout.js +35 -34
- package/cjs/site-layout/index.js +3 -3
- package/cjs/skeleton/Skeleton.d.ts +2 -2
- package/cjs/skeleton/Skeleton.js +15 -12
- package/cjs/skeleton/index.js +1 -1
- package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +4 -2
- package/cjs/social-media-link-list/SocialMediaLinkList.js +17 -17
- package/cjs/social-media-link-list/index.js +1 -1
- package/cjs/spinner/Spinner.d.ts +2 -2
- package/cjs/spinner/Spinner.js +14 -12
- package/cjs/spinner/index.js +1 -1
- package/cjs/step/Step.d.ts +1 -1
- package/cjs/step/Step.js +30 -23
- package/cjs/step/Step.styles.js +4 -8
- package/cjs/step/StepButton.js +13 -16
- package/cjs/step/StepContent.d.ts +2 -2
- package/cjs/step/StepContent.js +3 -5
- package/cjs/step/StepContext.js +1 -2
- package/cjs/step/StepLabel.js +4 -6
- package/cjs/step/index.js +1 -1
- package/cjs/stepper/Stepper.d.ts +1 -1
- package/cjs/stepper/Stepper.js +23 -15
- 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 +1 -2
- package/cjs/stepper-feedback-message/index.js +1 -1
- package/cjs/styles/index.js +5 -5
- package/cjs/styles/media.js +2 -4
- package/cjs/styles/theme.js +2 -4
- package/cjs/surface/Surface.d.ts +1 -1
- package/cjs/surface/Surface.js +20 -15
- package/cjs/surface/index.js +1 -1
- package/cjs/tab/Tab.js +15 -15
- package/cjs/tab/TabPanel.js +3 -5
- package/cjs/tab/Tabs.js +38 -23
- package/cjs/tab/TabsContext.js +3 -5
- package/cjs/tab/index.js +4 -4
- package/cjs/table/Table.d.ts +1 -1
- package/cjs/table/Table.js +12 -10
- package/cjs/table/TableBody.d.ts +1 -1
- package/cjs/table/TableBody.js +8 -8
- package/cjs/table/TableDataCell.d.ts +1 -1
- package/cjs/table/TableDataCell.js +10 -9
- package/cjs/table/TableHead.d.ts +1 -1
- package/cjs/table/TableHead.js +12 -14
- package/cjs/table/TableHeaderCell.d.ts +1 -1
- package/cjs/table/TableHeaderCell.js +10 -9
- package/cjs/table/TableRow.d.ts +1 -1
- package/cjs/table/TableRow.js +13 -13
- package/cjs/table/index.js +6 -6
- package/cjs/test/Test.js +1 -2
- package/cjs/tooltip/Tooltip.d.ts +1 -1
- package/cjs/tooltip/Tooltip.js +13 -13
- package/cjs/tooltip/index.js +3 -3
- package/cjs/typography/Headlines.d.ts +24 -25
- package/cjs/typography/Headlines.js +30 -35
- package/cjs/typography/Text.d.ts +2 -1
- package/cjs/typography/Text.js +2 -3
- package/cjs/typography/index.js +2 -2
- package/common/LockBodyScroll.js +3 -3
- package/common/emotionCloneElement.d.ts +1 -0
- package/common/polymorphic.d.ts +2 -2
- package/common/polymorphic.js +1 -1
- package/common/use-media.js +2 -2
- package/common/useOnClickOutside.d.ts +1 -0
- package/counter/Counter.js +2 -2
- package/counter/PluralCounter.js +5 -5
- package/data-table/DataTable.d.ts +1 -2
- package/data-table/DataTable.js +6 -6
- package/date-range-picker/DateRangePicker.js +3 -3
- package/divider/Divider.d.ts +1 -1
- 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 +5 -5
- package/dropdown-menu/MenuCheckbox.d.ts +1 -1
- package/dropdown-menu/MenuCheckbox.js +1 -1
- package/dropdown-menu/MenuItem.d.ts +1 -1
- package/dropdown-menu/MenuItem.js +5 -5
- package/dropdown-menu/MenuTitle.d.ts +1 -1
- package/flexbox/FlexBox.d.ts +2 -2
- package/flexbox/FlexBox.js +4 -4
- package/forms/assistive-text/AssistiveText.d.ts +2 -1
- package/forms/asterisk/Asterisk.d.ts +2 -2
- package/forms/checkbox/Checkbox.d.ts +1 -1
- package/forms/checkbox/Checkbox.js +3 -3
- package/forms/checkbox/ExampleControlComponent.d.ts +0 -1
- package/forms/checkbox/ExampleControlComponent.js +5 -5
- package/forms/email-field/EmailField.d.ts +1 -1
- package/forms/email-field/EmailField.js +1 -1
- package/forms/error-text/ErrorText.d.ts +2 -1
- package/forms/field/Field.d.ts +0 -1
- package/forms/field/Field.js +3 -3
- package/forms/input/Input.d.ts +1 -1
- package/forms/input/Input.js +3 -3
- package/forms/input/InputComposition.d.ts +2 -2
- package/forms/input/InputComposition.js +3 -3
- package/forms/label/Label.d.ts +0 -1
- package/forms/label/Label.js +7 -7
- package/forms/number-field/NumberField.d.ts +1 -1
- package/forms/number-field/NumberField.js +1 -1
- package/forms/password-field/PasswordField.d.ts +1 -1
- package/forms/password-field/PasswordField.js +3 -3
- package/forms/radio/Radio.d.ts +1 -1
- package/forms/radio/Radio.js +3 -3
- package/forms/reactselect/ReactSelect.d.ts +5 -5
- package/forms/reactselect/ReactSelect.js +3 -3
- package/forms/searchable-select/AsyncSearchableSelect.js +3 -3
- package/forms/select/Select.d.ts +1 -1
- package/forms/select/Select.js +3 -3
- package/forms/select-field/SelectField.d.ts +1 -1
- package/forms/select-field/SelectField.js +3 -3
- package/forms/switch/Switch.js +3 -3
- package/forms/tel-field/TelField.d.ts +1 -1
- package/forms/tel-field/TelField.js +1 -1
- package/forms/text-field/TextField.d.ts +1 -1
- package/forms/text-field/TextField.js +3 -3
- package/global-styles/GlobalStyles.d.ts +3 -3
- package/global-styles/ResetStyles.d.ts +2 -2
- package/grid/Column.js +3 -3
- package/grid/Container.js +9 -10
- package/ie-banner/IEBanner.d.ts +0 -1
- package/ie-banner/IEBanner.js +2 -2
- package/layout/LayoutLegacy.d.ts +2 -2
- package/lists/FeatureList.d.ts +4 -2
- 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 +1 -1
- 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 +3 -3
- package/loader/Loader.d.ts +2 -2
- 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 +4 -4
- package/nav-bar/NavBar.d.ts +2 -4
- package/nav-bar/NavBar.js +19 -17
- package/package.json +15 -15
- package/pagination/Pagination.d.ts +1 -1
- package/pagination/Pagination.js +1 -1
- package/popper/Popper.d.ts +2 -2
- package/popper/Popper.js +3 -3
- package/progress-bar/ProgressBar.d.ts +2 -2
- package/schedule/ScheduleItem.d.ts +4 -2
- package/schedule/ScheduleList.js +3 -3
- package/side-sheet/SideSheet.d.ts +1 -1
- package/side-sheet/SideSheet.js +5 -5
- 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 +2 -6
- package/site-layout/SiteLayout.js +8 -8
- package/skeleton/Skeleton.d.ts +2 -2
- package/skeleton/Skeleton.js +3 -3
- package/social-media-link-list/SocialMediaLinkList.d.ts +4 -2
- package/social-media-link-list/SocialMediaLinkList.js +3 -3
- package/spinner/Spinner.d.ts +2 -2
- package/spinner/Spinner.js +3 -3
- package/step/Step.d.ts +1 -1
- package/step/Step.js +3 -3
- package/step/StepButton.js +1 -1
- package/step/StepContent.d.ts +2 -2
- package/stepper/Stepper.d.ts +1 -1
- package/stepper/Stepper.js +3 -3
- package/stepper-feedback-message/StepperFeedbackMessage.d.ts +2 -2
- package/surface/Surface.d.ts +1 -1
- package/surface/Surface.js +3 -3
- package/tab/Tab.js +3 -3
- package/tab/Tabs.js +5 -5
- 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 +1 -1
- package/table/TableHead.js +3 -3
- package/table/TableHeaderCell.d.ts +1 -1
- package/table/TableHeaderCell.js +3 -3
- package/table/TableRow.d.ts +1 -1
- package/table/TableRow.js +4 -5
- package/tooltip/Tooltip.d.ts +1 -1
- package/tooltip/Tooltip.js +3 -3
- package/typography/Headlines.d.ts +24 -25
- package/typography/Headlines.js +14 -14
- package/typography/Text.d.ts +2 -1
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
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 get() {
|
|
523
523
|
return _tooltip[key];
|
|
524
524
|
}
|
|
525
525
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Layout: () =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Layout: () => JSX.Element;
|
|
@@ -10,10 +10,12 @@ declare type FeatureListProps = {
|
|
|
10
10
|
declare type FeatureListComponent = FunctionComponent<FeatureListProps>;
|
|
11
11
|
export declare const ListItem: import("@emotion/styled").StyledComponent<{
|
|
12
12
|
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
-
as?: React.ElementType<any
|
|
13
|
+
as?: React.ElementType<any> | undefined;
|
|
14
14
|
} & FlexBoxProps & {
|
|
15
|
-
as?: React.ElementType<any
|
|
15
|
+
as?: React.ElementType<any> | undefined;
|
|
16
16
|
} & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
} & {
|
|
17
19
|
theme?: import("@emotion/react").Theme | undefined;
|
|
18
20
|
} & {
|
|
19
21
|
iconColor?: string | undefined;
|
package/cjs/lists/FeatureList.js
CHANGED
|
@@ -8,9 +8,12 @@ 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
|
+
const _excluded = ["icon", "items", "iconColor", "textTag"];
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
13
|
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
|
-
|
|
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 = exports.ListItem = /*#__PURE__*/(0, _base.default)(_FlexBox.default, process.env.NODE_ENV === "production" ? {
|
|
14
17
|
target: "e1hxsk0v0"
|
|
15
18
|
} : {
|
|
16
19
|
target: "e1hxsk0v0",
|
|
@@ -18,14 +21,13 @@ const ListItem = /*#__PURE__*/(0, _base.default)(_FlexBox.default, process.env.N
|
|
|
18
21
|
})("align-items:flex-start;svg{margin-right:20px;", ({
|
|
19
22
|
iconColor
|
|
20
23
|
}) => 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== */"));
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}) => {
|
|
24
|
+
const FeatureList = _ref => {
|
|
25
|
+
let icon = _ref.icon,
|
|
26
|
+
items = _ref.items,
|
|
27
|
+
iconColor = _ref.iconColor,
|
|
28
|
+
_ref$textTag = _ref.textTag,
|
|
29
|
+
textTag = _ref$textTag === void 0 ? 'p' : _ref$textTag,
|
|
30
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
31
|
const list = items.map((item, i) => {
|
|
30
32
|
const TextTag = textTag;
|
|
31
33
|
return (0, _react2.jsx)(ListItem, {
|
|
@@ -37,5 +39,4 @@ const FeatureList = ({
|
|
|
37
39
|
directionColumn: true
|
|
38
40
|
}), list));
|
|
39
41
|
};
|
|
40
|
-
var _default = FeatureList;
|
|
41
|
-
exports.default = _default;
|
|
42
|
+
var _default = exports.default = FeatureList;
|
package/cjs/lists/ListAddon.d.ts
CHANGED
|
@@ -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) =>
|
|
10
|
+
declare const ListAddon: ({ className, as, children, ...rest }: ListAddonProps) => JSX.Element;
|
|
11
11
|
export default ListAddon;
|
package/cjs/lists/ListAddon.js
CHANGED
|
@@ -8,19 +8,21 @@ 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
|
+
const _excluded = ["className", "as", "children"];
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
13
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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 ListAddon = _ref => {
|
|
17
|
+
let className = _ref.className,
|
|
18
|
+
_ref$as = _ref.as,
|
|
19
|
+
as = _ref$as === void 0 ? 'span' : _ref$as,
|
|
20
|
+
children = _ref.children,
|
|
21
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
22
|
const Component = as;
|
|
20
23
|
return (0, _react2.jsx)(_ListIcon.default, _extends({
|
|
21
24
|
icon: props => (0, _react2.jsx)(Component, props, children),
|
|
22
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 */")
|
|
23
26
|
}, rest));
|
|
24
27
|
};
|
|
25
|
-
var _default = ListAddon;
|
|
26
|
-
exports.default = _default;
|
|
28
|
+
var _default = exports.default = ListAddon;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { DividerProps } from '../divider';
|
|
3
3
|
export declare type ListDividerProps = Pick<DividerProps, 'as' | 'indent' | 'margins'>;
|
|
4
|
-
declare const ListDivider: ({ indent, margins, as, ...rest }: ListDividerProps) =>
|
|
4
|
+
declare const ListDivider: ({ indent, margins, as, ...rest }: ListDividerProps) => JSX.Element;
|
|
5
5
|
export default ListDivider;
|
package/cjs/lists/ListDivider.js
CHANGED
|
@@ -8,14 +8,17 @@ 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
|
+
const _excluded = ["indent", "margins", "as"];
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
13
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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 ListDivider = _ref => {
|
|
17
|
+
let indent = _ref.indent,
|
|
18
|
+
margins = _ref.margins,
|
|
19
|
+
_ref$as = _ref.as,
|
|
20
|
+
as = _ref$as === void 0 ? 'hr' : _ref$as,
|
|
21
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
22
|
return (0, _react2.jsx)(_divider.Divider, _extends({
|
|
20
23
|
indent: indent,
|
|
21
24
|
margins: margins,
|
|
@@ -23,5 +26,4 @@ const ListDivider = ({
|
|
|
23
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= */")
|
|
24
27
|
}, rest));
|
|
25
28
|
};
|
|
26
|
-
var _default = ListDivider;
|
|
27
|
-
exports.default = _default;
|
|
29
|
+
var _default = exports.default = ListDivider;
|
package/cjs/lists/ListIcon.d.ts
CHANGED
|
@@ -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) =>
|
|
17
|
+
declare const ListIcon: ({ icon: Icon, size, color, ...rest }: ListIconProps) => JSX.Element;
|
|
18
18
|
export default ListIcon;
|
package/cjs/lists/ListIcon.js
CHANGED
|
@@ -7,14 +7,16 @@ 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
|
+
const _excluded = ["icon", "size", "color"];
|
|
10
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
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); }
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
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; }
|
|
14
|
+
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; }
|
|
15
|
+
const _theme$spacing = _theme.theme.spacing,
|
|
16
|
+
xs = _theme$spacing.xs,
|
|
17
|
+
s = _theme$spacing.s,
|
|
18
|
+
m = _theme$spacing.m,
|
|
19
|
+
l = _theme$spacing.l;
|
|
18
20
|
const sizes = {
|
|
19
21
|
small: xs,
|
|
20
22
|
medium: s,
|
|
@@ -28,12 +30,13 @@ const listIconStyles = ({
|
|
|
28
30
|
size,
|
|
29
31
|
color
|
|
30
32
|
}) => /*#__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= */");
|
|
31
|
-
const ListIcon =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
const ListIcon = _ref => {
|
|
34
|
+
let Icon = _ref.icon,
|
|
35
|
+
_ref$size = _ref.size,
|
|
36
|
+
size = _ref$size === void 0 ? 'large' : _ref$size,
|
|
37
|
+
_ref$color = _ref.color,
|
|
38
|
+
color = _ref$color === void 0 ? _theme.theme.colors.text.dark.primary : _ref$color,
|
|
39
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
37
40
|
return (0, _react2.jsx)(Icon, _extends({
|
|
38
41
|
css: listIconStyles({
|
|
39
42
|
size,
|
|
@@ -41,5 +44,4 @@ const ListIcon = ({
|
|
|
41
44
|
})
|
|
42
45
|
}, rest));
|
|
43
46
|
};
|
|
44
|
-
var _default = ListIcon;
|
|
45
|
-
exports.default = _default;
|
|
47
|
+
var _default = exports.default = ListIcon;
|
package/cjs/lists/ListItem.d.ts
CHANGED
|
@@ -42,5 +42,5 @@ export declare type ListItemProps = {
|
|
|
42
42
|
children?: React.ReactNode;
|
|
43
43
|
} & PolymorphicComponentProps;
|
|
44
44
|
export declare const listItemStyles: ({ multiline, selected, clickable, condensed, flexBoxProps, divider, }: Partial<ListItemProps>) => import("@emotion/utils").SerializedStyles;
|
|
45
|
-
declare const ListItem: ({ children, multiline, condensed, selected, tabIndex, clickable, divider, onClick, as, flexBoxProps, ...rest }: ListItemProps) =>
|
|
45
|
+
declare const ListItem: ({ children, multiline, condensed, selected, tabIndex, clickable, divider, onClick, as, flexBoxProps, ...rest }: ListItemProps) => JSX.Element;
|
|
46
46
|
export default ListItem;
|