@dfds-ui/react-components 2.2.0-alpha.8d87a90d → 2.2.0-alpha.e010e72f
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.js +3 -3
- package/accordion/AccordionSmall.js +3 -3
- package/app-bar/AppBar.js +8 -8
- 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.js +24 -24
- package/assertions/banner/Banner.js +8 -8
- package/assertions/banner/BannerAction.js +3 -3
- package/assertions/banner/BannerTypography.js +1 -1
- package/assertions/toast/Toast.js +3 -3
- package/assertions/toast/Toaster.js +18 -10
- package/badge/Badge.js +3 -3
- package/button/Button.js +3 -3
- package/button/IconButton.js +3 -3
- package/button/LinkButton.js +1 -1
- package/button-stack/ButtonStack.js +4 -4
- package/card/Card.js +10 -10
- package/card/CardActions.js +3 -3
- package/card/CardContent.js +2 -2
- package/card/CardMedia.js +2 -2
- package/card/CardPriceTag.js +2 -2
- package/card/CardTitle.js +3 -3
- package/chip/Chip.js +7 -7
- package/cjs/accordion/Accordion.d.ts +101 -0
- package/cjs/accordion/Accordion.js +4 -4
- package/cjs/accordion/AccordionContent.d.ts +13 -0
- package/cjs/accordion/AccordionContent.js +4 -4
- package/cjs/accordion/AccordionSmall.d.ts +55 -0
- package/cjs/accordion/AccordionSmall.js +4 -4
- package/cjs/accordion/index.d.ts +3 -0
- package/cjs/app-bar/AppBar.d.ts +13 -0
- package/cjs/app-bar/AppBar.js +9 -10
- package/cjs/app-bar/AppBarContext.d.ts +12 -0
- package/cjs/app-bar/AppBarContext.js +5 -6
- package/cjs/app-bar/AppBarDrawer.d.ts +5 -0
- package/cjs/app-bar/AppBarDrawer.js +5 -6
- package/cjs/app-bar/AppBarIconButton.d.ts +10 -0
- package/cjs/app-bar/AppBarIconButton.js +4 -4
- package/cjs/app-bar/AppBarItem.d.ts +23 -0
- package/cjs/app-bar/AppBarItem.js +9 -10
- package/cjs/app-bar/AppBarListItem.d.ts +16 -0
- package/cjs/app-bar/AppBarListItem.js +1 -1
- package/cjs/app-bar/index.d.ts +7 -0
- package/cjs/app-bar/index.js +1 -1
- package/cjs/assertions/banner/Banner.d.ts +74 -0
- package/cjs/assertions/banner/Banner.js +9 -10
- package/cjs/assertions/banner/BannerAction.d.ts +19 -0
- package/cjs/assertions/banner/BannerAction.js +4 -4
- package/cjs/assertions/banner/BannerTypography.d.ts +7 -0
- package/cjs/assertions/banner/BannerTypography.js +2 -2
- package/cjs/assertions/banner/index.d.ts +3 -0
- package/cjs/assertions/index.d.ts +2 -0
- package/cjs/assertions/toast/Toast.d.ts +12 -0
- package/cjs/assertions/toast/Toast.js +4 -4
- package/cjs/assertions/toast/Toaster.d.ts +19 -0
- package/cjs/assertions/toast/Toaster.js +10 -11
- package/cjs/assertions/toast/index.d.ts +2 -0
- package/cjs/assertions/toast/index.js +2 -3
- package/cjs/badge/Badge.d.ts +26 -0
- package/cjs/badge/Badge.js +4 -4
- package/cjs/badge/index.d.ts +2 -0
- package/cjs/badge/index.js +1 -2
- 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 +4 -4
- package/cjs/button/IconButton.d.ts +75 -0
- package/cjs/button/IconButton.js +4 -5
- 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/index.d.ts +7 -0
- package/cjs/button/index.js +1 -2
- package/cjs/button-stack/ButtonStack.d.ts +11 -0
- package/cjs/button-stack/ButtonStack.js +4 -4
- package/cjs/button-stack/index.d.ts +1 -0
- package/cjs/button-stack/index.js +1 -1
- package/cjs/card/Card.d.ts +18 -0
- package/cjs/card/Card.js +9 -10
- package/cjs/card/CardActions.d.ts +4 -0
- package/cjs/card/CardActions.js +4 -4
- package/cjs/card/CardContent.d.ts +13 -0
- package/cjs/card/CardContent.js +3 -3
- package/cjs/card/CardMedia.d.ts +18 -0
- package/cjs/card/CardMedia.js +3 -3
- package/cjs/card/CardPriceTag.d.ts +25 -0
- package/cjs/card/CardPriceTag.js +3 -3
- package/cjs/card/CardTitle.d.ts +18 -0
- package/cjs/card/CardTitle.js +4 -4
- package/cjs/card/index.d.ts +6 -0
- package/cjs/card/index.js +1 -1
- package/cjs/chip/Chip.d.ts +19 -0
- package/cjs/chip/Chip.js +9 -10
- package/cjs/chip/index.d.ts +2 -0
- package/cjs/chip/index.js +1 -2
- package/cjs/common/LockBodyScroll.d.ts +25 -0
- package/cjs/common/LockBodyScroll.js +4 -4
- package/cjs/common/arrow.d.ts +6 -0
- package/cjs/common/emotionCloneElement.d.ts +3 -0
- package/cjs/common/emotionCloneElement.js +1 -1
- 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 +3 -3
- package/cjs/common/use-media.d.ts +1 -0
- package/cjs/common/use-media.js +4 -4
- package/cjs/common/useOnClickOutside.d.ts +4 -0
- package/cjs/common/utils.d.ts +3 -0
- package/cjs/counter/Counter.d.ts +26 -0
- package/cjs/counter/Counter.js +6 -7
- package/cjs/counter/PluralCounter.d.ts +13 -0
- package/cjs/counter/PluralCounter.js +9 -10
- package/cjs/counter/index.d.ts +2 -0
- package/cjs/counter/index.js +1 -1
- package/cjs/data-table/DataTable.d.ts +10 -0
- package/cjs/data-table/DataTable.js +8 -9
- package/cjs/data-table/index.d.ts +1 -0
- package/cjs/date-range-picker/DatePickerDefaultStyles.d.ts +2 -0
- 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 +8 -9
- package/cjs/date-range-picker/index.d.ts +1 -0
- package/cjs/date-range-picker/index.js +1 -1
- package/cjs/divider/Divider.d.ts +26 -0
- package/cjs/divider/Divider.js +4 -4
- package/cjs/divider/index.d.ts +1 -0
- package/cjs/drawer/Drawer.d.ts +31 -0
- package/cjs/drawer/Drawer.js +4 -4
- package/cjs/drawer/index.d.ts +1 -0
- package/cjs/dropdown-menu/Dropdown.d.ts +46 -0
- package/cjs/dropdown-menu/Dropdown.js +8 -8
- 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 +2 -2
- package/cjs/dropdown-menu/MenuItem.d.ts +45 -0
- package/cjs/dropdown-menu/MenuItem.js +8 -8
- package/cjs/dropdown-menu/MenuTitle.d.ts +14 -0
- package/cjs/dropdown-menu/MenuTitle.js +1 -1
- package/cjs/dropdown-menu/index.d.ts +5 -0
- package/cjs/dropdown-menu/index.js +2 -3
- package/cjs/elevation/index.d.ts +3 -0
- package/cjs/flexbox/FlexBox.d.ts +100 -0
- package/cjs/flexbox/FlexBox.js +6 -6
- package/cjs/flexbox/index.d.ts +1 -0
- 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 +1 -1
- package/cjs/forms/assistive-text/AssistiveText.d.ts +8 -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 +4 -4
- package/cjs/forms/checkbox/ExampleControlComponent.d.ts +10 -0
- package/cjs/forms/checkbox/ExampleControlComponent.js +8 -8
- package/cjs/forms/checkbox/index.d.ts +1 -0
- package/cjs/forms/checkbox/index.js +1 -1
- 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 +8 -0
- package/cjs/forms/error-text/ErrorText.js +1 -1
- package/cjs/forms/field/Field.d.ts +10 -0
- package/cjs/forms/field/Field.js +1 -1
- package/cjs/forms/index.d.ts +21 -0
- package/cjs/forms/index.js +1 -1
- package/cjs/forms/input/Input.d.ts +19 -0
- package/cjs/forms/input/Input.js +4 -4
- package/cjs/forms/input/InputComposition.d.ts +43 -0
- package/cjs/forms/input/InputComposition.js +5 -6
- package/cjs/forms/label/Label.d.ts +10 -0
- package/cjs/forms/label/Label.js +3 -3
- package/cjs/forms/number-field/NumberField.d.ts +6 -0
- package/cjs/forms/number-field/NumberField.js +3 -3
- package/cjs/forms/password-field/PasswordField.d.ts +4 -0
- package/cjs/forms/password-field/PasswordField.js +7 -8
- package/cjs/forms/radio/Radio.d.ts +35 -0
- package/cjs/forms/radio/Radio.js +4 -4
- package/cjs/forms/reactselect/ReactSelect.d.ts +25 -0
- package/cjs/forms/reactselect/ReactSelect.js +6 -7
- package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +6 -0
- package/cjs/forms/searchable-select/AsyncSearchableSelect.js +4 -4
- package/cjs/forms/select/Select.d.ts +16 -0
- package/cjs/forms/select/Select.js +4 -4
- package/cjs/forms/select-field/SelectField.d.ts +17 -0
- package/cjs/forms/select-field/SelectField.js +5 -5
- package/cjs/forms/switch/Switch.d.ts +13 -0
- package/cjs/forms/switch/Switch.js +4 -4
- 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 +5 -5
- 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 +1 -1
- package/cjs/global-styles/sanitize.d.ts +1 -0
- package/cjs/grid/Column.d.ts +10 -0
- package/cjs/grid/Column.js +4 -4
- package/cjs/grid/Container.d.ts +15 -0
- package/cjs/grid/Container.js +4 -4
- package/cjs/grid/index.d.ts +2 -0
- package/cjs/grid/index.js +1 -1
- package/cjs/hero/Hero.d.ts +10 -0
- package/cjs/hero/Hero.js +1 -1
- package/cjs/hero/index.d.ts +1 -0
- package/cjs/hero/index.js +1 -1
- package/cjs/hero/stripes.d.ts +6 -0
- package/cjs/hero/stripes.js +1 -1
- package/cjs/ie-banner/IEBanner.d.ts +11 -0
- package/cjs/ie-banner/IEBanner.js +5 -6
- package/cjs/ie-banner/index.d.ts +1 -0
- package/cjs/ie-banner/index.js +1 -1
- package/cjs/index.d.ts +44 -0
- package/cjs/index.js +1 -1
- package/cjs/layout/LayoutLegacy.d.ts +2 -0
- package/cjs/layout/LayoutLegacy.js +1 -1
- package/cjs/lists/FeatureList.d.ts +24 -0
- package/cjs/lists/FeatureList.js +4 -4
- package/cjs/lists/ListAddon.d.ts +11 -0
- package/cjs/lists/ListAddon.js +4 -4
- package/cjs/lists/ListDivider.d.ts +5 -0
- package/cjs/lists/ListDivider.js +4 -4
- package/cjs/lists/ListIcon.d.ts +18 -0
- package/cjs/lists/ListIcon.js +4 -4
- package/cjs/lists/ListItem.d.ts +46 -0
- package/cjs/lists/ListItem.js +4 -4
- package/cjs/lists/ListText.d.ts +39 -0
- package/cjs/lists/ListText.js +4 -4
- package/cjs/lists/ListTextGroup.d.ts +15 -0
- package/cjs/lists/ListTextGroup.js +4 -4
- package/cjs/lists/ListTitle.d.ts +4 -0
- package/cjs/lists/ListTitle.js +4 -4
- package/cjs/lists/index.d.ts +8 -0
- package/cjs/lists/index.js +1 -1
- package/cjs/loader/DfdsLoader.d.ts +9 -0
- package/cjs/loader/DfdsLoader.js +1 -1
- package/cjs/loader/Loader.d.ts +6 -0
- package/cjs/loader/Loader.js +1 -1
- package/cjs/loader/index.d.ts +2 -0
- package/cjs/loader/index.js +1 -1
- package/cjs/localization/LocaleFlag.d.ts +13 -0
- package/cjs/localization/LocaleFlag.js +5 -6
- package/cjs/localization/index.d.ts +2 -0
- package/cjs/localization/locales.d.ts +35 -0
- package/cjs/logo/Logo.d.ts +11 -0
- package/cjs/logo/Logo.js +5 -6
- package/cjs/logo/index.d.ts +1 -0
- package/cjs/media/index.d.ts +2 -0
- package/cjs/menu/Menu.d.ts +7 -0
- package/cjs/menu/Menu.js +4 -4
- package/cjs/menu/index.d.ts +2 -0
- package/cjs/menu/index.js +1 -2
- package/cjs/mobile-stepper/MobileStepper.d.ts +25 -0
- package/cjs/mobile-stepper/MobileStepper.js +4 -4
- package/cjs/mobile-stepper/index.d.ts +1 -0
- package/cjs/mobile-stepper/index.js +1 -1
- package/cjs/nav-bar/NavBar.d.ts +35 -0
- package/cjs/nav-bar/NavBar.js +9 -10
- package/cjs/nav-bar/index.d.ts +2 -0
- package/cjs/nav-bar/index.js +1 -2
- package/cjs/nav-menu/NavMenuItem.d.ts +10 -0
- package/cjs/nav-menu/NavMenuItem.js +1 -1
- package/cjs/nav-menu/index.d.ts +1 -0
- package/cjs/nav-menu/index.js +1 -1
- package/cjs/pagination/Pagination.d.ts +44 -0
- package/cjs/pagination/Pagination.js +3 -3
- package/cjs/pagination/Pagination.styles.d.ts +6 -0
- package/cjs/pagination/index.d.ts +1 -0
- package/cjs/popper/Popper.d.ts +29 -0
- package/cjs/popper/Popper.js +4 -4
- package/cjs/popper/index.d.ts +1 -0
- package/cjs/popper/index.js +1 -1
- package/cjs/progress-bar/ProgressBar.d.ts +8 -0
- package/cjs/progress-bar/ProgressBar.js +1 -1
- package/cjs/progress-bar/index.d.ts +2 -0
- package/cjs/progress-bar/index.js +1 -2
- package/cjs/schedule/ScheduleItem.d.ts +21 -0
- package/cjs/schedule/ScheduleItem.js +1 -1
- package/cjs/schedule/ScheduleList.d.ts +11 -0
- package/cjs/schedule/ScheduleList.js +4 -4
- package/cjs/schedule/index.d.ts +2 -0
- package/cjs/schedule/index.js +1 -1
- package/cjs/side-sheet/SideSheet.d.ts +57 -0
- package/cjs/side-sheet/SideSheet.js +9 -10
- package/cjs/side-sheet/SideSheetCloseButton.d.ts +13 -0
- package/cjs/side-sheet/SideSheetCloseButton.js +4 -4
- package/cjs/side-sheet/SideSheetContent.d.ts +7 -0
- package/cjs/side-sheet/SideSheetContent.js +4 -5
- package/cjs/side-sheet/SideSheetFooter.d.ts +7 -0
- package/cjs/side-sheet/SideSheetFooter.js +4 -5
- package/cjs/side-sheet/SideSheetHeader.d.ts +9 -0
- package/cjs/side-sheet/SideSheetHeader.js +5 -6
- 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 +2 -3
- package/cjs/site-layout/SiteLayout.d.ts +36 -0
- package/cjs/site-layout/SiteLayout.js +4 -4
- package/cjs/site-layout/index.d.ts +2 -0
- package/cjs/site-layout/index.js +1 -2
- package/cjs/skeleton/Skeleton.d.ts +8 -0
- package/cjs/skeleton/Skeleton.js +4 -4
- package/cjs/skeleton/index.d.ts +1 -0
- package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +26 -0
- package/cjs/social-media-link-list/SocialMediaLinkList.js +4 -4
- package/cjs/social-media-link-list/index.d.ts +1 -0
- package/cjs/spinner/Spinner.d.ts +58 -0
- package/cjs/spinner/Spinner.js +4 -4
- package/cjs/spinner/index.d.ts +1 -0
- package/cjs/step/Step.d.ts +45 -0
- package/cjs/step/Step.js +5 -6
- package/cjs/step/Step.styles.d.ts +4 -0
- package/cjs/step/StepButton.d.ts +4 -0
- package/cjs/step/StepButton.js +3 -3
- package/cjs/step/StepContent.d.ts +6 -0
- package/cjs/step/StepContent.js +1 -1
- 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 +1 -1
- package/cjs/step/index.d.ts +1 -0
- package/cjs/step/index.js +1 -1
- package/cjs/stepper/Stepper.d.ts +25 -0
- package/cjs/stepper/Stepper.js +6 -7
- 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 +1 -1
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.d.ts +5 -0
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.js +1 -1
- package/cjs/stepper-feedback-message/index.d.ts +1 -0
- package/cjs/stepper-feedback-message/index.js +1 -1
- package/cjs/styles/index.d.ts +3 -0
- package/cjs/styles/index.js +2 -3
- 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/theme.d.ts +39 -0
- package/cjs/surface/Surface.d.ts +32 -0
- package/cjs/surface/Surface.js +5 -6
- package/cjs/surface/index.d.ts +1 -0
- package/cjs/tab/Tab.d.ts +12 -0
- package/cjs/tab/Tab.js +4 -4
- package/cjs/tab/TabPanel.d.ts +7 -0
- package/cjs/tab/TabPanel.js +1 -1
- package/cjs/tab/Tabs.d.ts +11 -0
- package/cjs/tab/Tabs.js +9 -10
- 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 +1 -1
- package/cjs/table/Table.d.ts +22 -0
- package/cjs/table/Table.js +4 -5
- package/cjs/table/TableBody.d.ts +9 -0
- package/cjs/table/TableBody.js +4 -5
- package/cjs/table/TableDataCell.d.ts +14 -0
- package/cjs/table/TableDataCell.js +4 -5
- package/cjs/table/TableHead.d.ts +14 -0
- package/cjs/table/TableHead.js +5 -6
- package/cjs/table/TableHeaderCell.d.ts +15 -0
- package/cjs/table/TableHeaderCell.js +4 -5
- package/cjs/table/TableRow.d.ts +17 -0
- package/cjs/table/TableRow.js +5 -6
- package/cjs/table/index.d.ts +6 -0
- 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 +5 -6
- package/cjs/tooltip/index.d.ts +2 -0
- package/cjs/tooltip/index.js +1 -2
- package/cjs/typography/Headlines.d.ts +70 -0
- package/cjs/typography/Headlines.js +4 -4
- package/cjs/typography/Text.d.ts +5 -0
- package/cjs/typography/Text.js +1 -1
- package/cjs/typography/index.d.ts +2 -0
- package/common/LockBodyScroll.js +3 -3
- package/common/emotionCloneElement.js +1 -1
- package/common/polymorphic.js +2 -2
- package/common/use-media.js +4 -4
- package/common/utils.js +1 -1
- package/counter/Counter.js +4 -4
- package/counter/PluralCounter.js +7 -7
- package/data-table/DataTable.js +10 -10
- package/date-range-picker/DateRangePicker.js +8 -8
- package/divider/Divider.js +3 -3
- package/drawer/Drawer.js +3 -3
- package/dropdown-menu/Dropdown.js +7 -7
- package/dropdown-menu/MenuCheckbox.js +1 -1
- package/dropdown-menu/MenuItem.js +7 -7
- package/flexbox/FlexBox.js +5 -5
- package/forms/checkbox/Checkbox.js +3 -3
- package/forms/checkbox/ExampleControlComponent.js +7 -7
- package/forms/email-field/EmailField.js +2 -2
- package/forms/input/Input.js +3 -3
- package/forms/input/InputComposition.js +3 -3
- package/forms/label/Label.js +2 -2
- package/forms/number-field/NumberField.js +2 -2
- package/forms/password-field/PasswordField.js +5 -5
- package/forms/radio/Radio.js +3 -3
- package/forms/reactselect/ReactSelect.js +4 -4
- package/forms/searchable-select/AsyncSearchableSelect.js +3 -3
- package/forms/select/Select.js +3 -3
- package/forms/select-field/SelectField.js +4 -4
- package/forms/switch/Switch.js +3 -3
- package/forms/tel-field/TelField.js +2 -2
- package/forms/text-field/TextField.js +4 -4
- package/grid/Column.js +3 -3
- package/grid/Container.js +4 -4
- package/hero/Hero.js +1 -1
- package/ie-banner/IEBanner.js +4 -4
- package/lists/FeatureList.js +3 -3
- package/lists/ListAddon.js +3 -3
- package/lists/ListDivider.js +3 -3
- package/lists/ListIcon.js +3 -3
- package/lists/ListItem.js +3 -3
- package/lists/ListText.js +3 -3
- package/lists/ListTextGroup.js +3 -3
- package/lists/ListTitle.js +3 -3
- package/loader/DfdsLoader.js +1 -1
- package/loader/Loader.js +1 -1
- package/localization/LocaleFlag.js +3 -3
- package/logo/Logo.js +3 -3
- package/menu/Menu.js +3 -3
- package/mobile-stepper/MobileStepper.js +8 -8
- package/nav-bar/NavBar.js +7 -7
- package/package.json +10 -10
- package/pagination/Pagination.js +2 -2
- package/pagination/Pagination.styles.js +1 -1
- package/popper/Popper.js +3 -3
- package/schedule/ScheduleList.js +3 -3
- package/side-sheet/SideSheet.js +8 -8
- package/side-sheet/SideSheetCloseButton.js +3 -3
- package/side-sheet/SideSheetContent.js +3 -3
- package/side-sheet/SideSheetFooter.js +3 -3
- package/side-sheet/SideSheetHeader.js +3 -3
- package/site-layout/SiteLayout.js +3 -3
- package/skeleton/Skeleton.js +4 -4
- package/social-media-link-list/SocialMediaLinkList.js +3 -3
- package/spinner/Spinner.js +4 -4
- package/step/Step.js +3 -3
- package/step/StepButton.js +2 -2
- package/stepper/Stepper.js +4 -4
- package/surface/Surface.js +4 -4
- package/tab/Tab.js +3 -3
- package/tab/Tabs.js +7 -7
- package/table/Table.js +3 -3
- package/table/TableBody.js +3 -3
- package/table/TableDataCell.js +3 -3
- package/table/TableHead.js +4 -4
- package/table/TableHeaderCell.js +3 -3
- package/table/TableRow.js +4 -4
- package/tooltip/Tooltip.js +3 -3
- package/typography/Headlines.js +3 -3
|
@@ -9,10 +9,10 @@ var _button = require("../button");
|
|
|
9
9
|
var _theme = require("@dfds-ui/theme");
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
const _excluded = ["isActive", "ariaLabel", "showTooltip"];
|
|
12
|
-
function _interopRequireDefault(
|
|
13
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
14
|
-
function _objectWithoutProperties(
|
|
15
|
-
function _objectWithoutPropertiesLoose(
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
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); }
|
|
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
16
|
function iconButtonStyles({
|
|
17
17
|
isActive
|
|
18
18
|
}) {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PopperProps } from '@mui/material';
|
|
3
|
+
export declare type AppBarItemProps = {
|
|
4
|
+
id: string;
|
|
5
|
+
Icon?: React.ElementType;
|
|
6
|
+
LeadingIcon?: React.ElementType;
|
|
7
|
+
TrailingIcon?: React.ElementType;
|
|
8
|
+
title: string;
|
|
9
|
+
divider?: 'start' | 'end' | 'both';
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
as?: React.ElementType;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
placement?: 'bottom-start' | 'bottom-end';
|
|
14
|
+
isActive?: boolean;
|
|
15
|
+
AppBarPopperProps?: Omit<PopperProps, 'open'>;
|
|
16
|
+
};
|
|
17
|
+
export declare const MenuPopOverContext: React.Context<{
|
|
18
|
+
handlePopoverClose: () => void;
|
|
19
|
+
} | undefined>;
|
|
20
|
+
export declare const AppBarPopper: import("@emotion/styled").StyledComponent<Pick<PopperProps, "key" | "id" | "open" | "color" | "transition" | "translate" | "hidden" | "slot" | "style" | "title" | "dir" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "component" | "sx" | "components" | "container" | "placement" | "disablePortal" | "modifiers" | "anchorEl" | "componentsProps" | "keepMounted" | "popperOptions" | "popperRef"> & React.RefAttributes<HTMLDivElement> & {
|
|
21
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
+
}, {}, {}>;
|
|
23
|
+
export declare const AppBarItem: React.FC<AppBarItemProps & JSX.IntrinsicElements['a']>;
|
|
@@ -13,18 +13,17 @@ var _typography = require("@dfds-ui/typography");
|
|
|
13
13
|
var _base2 = require("@mui/base");
|
|
14
14
|
var _system = require("@dfds-ui/icons/system");
|
|
15
15
|
const _excluded = ["id", "Icon", "LeadingIcon", "TrailingIcon", "title", "divider", "children", "onClick", "placement", "isActive", "as", "AppBarPopperProps"];
|
|
16
|
-
function
|
|
17
|
-
function
|
|
18
|
-
function
|
|
19
|
-
function
|
|
20
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
+
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); }
|
|
19
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
21
20
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
22
|
-
function _unsupportedIterableToArray(
|
|
23
|
-
function _arrayLikeToArray(
|
|
21
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
22
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
24
23
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
25
|
-
function _arrayWithHoles(
|
|
26
|
-
function _objectWithoutProperties(
|
|
27
|
-
function _objectWithoutPropertiesLoose(
|
|
24
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
25
|
+
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; }
|
|
26
|
+
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; }
|
|
28
27
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
29
28
|
function menuCategoryStyles({
|
|
30
29
|
isActive
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const AppBarListItem: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
multiline?: boolean | undefined;
|
|
4
|
+
selected?: boolean | undefined;
|
|
5
|
+
condensed?: boolean | undefined;
|
|
6
|
+
tabIndex?: number | undefined;
|
|
7
|
+
clickable?: boolean | undefined;
|
|
8
|
+
divider?: boolean | undefined;
|
|
9
|
+
onClick?: (() => void) | undefined;
|
|
10
|
+
flexBoxProps?: import("../flexbox").FlexBoxProps | undefined;
|
|
11
|
+
className?: string | undefined;
|
|
12
|
+
children?: import("react").ReactNode;
|
|
13
|
+
} & import("..").PolymorphicComponentProps & {
|
|
14
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
15
|
+
}, {}, {}>;
|
|
16
|
+
export default AppBarListItem;
|
|
@@ -8,7 +8,7 @@ var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _ListItem = _interopRequireDefault(require("../lists/ListItem"));
|
|
10
10
|
var _theme = require("@dfds-ui/theme");
|
|
11
|
-
function _interopRequireDefault(
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
const AppBarListItem = /*#__PURE__*/(0, _base.default)(_ListItem.default, process.env.NODE_ENV === "production" ? {
|
|
13
13
|
target: "eno8yen0"
|
|
14
14
|
} : {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { useAppBarContext, AppBarProvider } from './AppBarContext';
|
|
2
|
+
import { AppBarItem, MenuPopOverContext } from './AppBarItem';
|
|
3
|
+
export { default as AppBarDrawer } from './AppBarDrawer';
|
|
4
|
+
export { default as AppBar } from './AppBar';
|
|
5
|
+
export { default as AppBarIconButton } from './AppBarIconButton';
|
|
6
|
+
export { default as AppBarListItem } from './AppBarListItem';
|
|
7
|
+
export { useAppBarContext, AppBarProvider, AppBarItem, MenuPopOverContext };
|
package/cjs/app-bar/index.js
CHANGED
|
@@ -57,4 +57,4 @@ var _AppBarDrawer = _interopRequireDefault(require("./AppBarDrawer"));
|
|
|
57
57
|
var _AppBar = _interopRequireDefault(require("./AppBar"));
|
|
58
58
|
var _AppBarIconButton = _interopRequireDefault(require("./AppBarIconButton"));
|
|
59
59
|
var _AppBarListItem = _interopRequireDefault(require("./AppBarListItem"));
|
|
60
|
-
function _interopRequireDefault(
|
|
60
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React, { ElementType, FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import { Intent } from '../../common/intent';
|
|
3
|
+
export declare type BannerVariant = 'lowEmphasis' | 'mediumEmphasis' | 'highEmphasis' | 'default' | 'inverted';
|
|
4
|
+
export declare type BannerStickyPosition = 'top' | 'bottom' | 'bottom-right';
|
|
5
|
+
export declare type BannerProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Specifies the intent of the Banner (change the color of the banner icon to match intended status)
|
|
8
|
+
*/
|
|
9
|
+
intent?: Intent;
|
|
10
|
+
/**
|
|
11
|
+
* Actions to be displayed inside the banner
|
|
12
|
+
*/
|
|
13
|
+
actions?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Class name to be added to the banner
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Add a close icon in the top-right corner which will invoke the provided callback
|
|
20
|
+
*/
|
|
21
|
+
onRequestClose?: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Specifies the ariaLabel to be added to the close(x) button
|
|
24
|
+
*/
|
|
25
|
+
closeLabel?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Specifies the variation of the banner.
|
|
28
|
+
*
|
|
29
|
+
* `default` and `inverted` variants are deprecated
|
|
30
|
+
*/
|
|
31
|
+
variant?: BannerVariant;
|
|
32
|
+
/**
|
|
33
|
+
* Specifies if the Banner should be displayed with `position: fixed;`
|
|
34
|
+
*
|
|
35
|
+
* When the value is `undefined` the Banner default to being sticky if `variant` is set to `inverted`
|
|
36
|
+
*/
|
|
37
|
+
sticky?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the position of the Sticky Banner.
|
|
40
|
+
*/
|
|
41
|
+
stickyPosition?: BannerStickyPosition;
|
|
42
|
+
/**
|
|
43
|
+
* Specifies if the Banner should have a border/divider at the bottom.
|
|
44
|
+
*/
|
|
45
|
+
divider?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Specify a custom icon to replace the one derived from `intent`
|
|
48
|
+
*
|
|
49
|
+
* @type {ElementType<{ className?: string }>}
|
|
50
|
+
*/
|
|
51
|
+
icon?: ElementType<{
|
|
52
|
+
className?: string;
|
|
53
|
+
}>;
|
|
54
|
+
/**
|
|
55
|
+
* Specifies if the actions should always appear below the content
|
|
56
|
+
*/
|
|
57
|
+
wrapActions?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Content of the Banner
|
|
60
|
+
*/
|
|
61
|
+
children?: ReactNode;
|
|
62
|
+
/**
|
|
63
|
+
* Specifies if the banner should be narrow
|
|
64
|
+
*/
|
|
65
|
+
isNarrow?: boolean;
|
|
66
|
+
};
|
|
67
|
+
interface BannerContextInterface {
|
|
68
|
+
intent: NonNullable<BannerProps['intent']>;
|
|
69
|
+
variant: NonNullable<BannerProps['variant']>;
|
|
70
|
+
}
|
|
71
|
+
export declare const BannerContext: React.Context<BannerContextInterface | undefined>;
|
|
72
|
+
export declare const useBannerContext: () => BannerContextInterface;
|
|
73
|
+
export declare const Banner: FunctionComponent<BannerProps>;
|
|
74
|
+
export default Banner;
|
|
@@ -14,18 +14,17 @@ var _divider = require("../../divider");
|
|
|
14
14
|
var _theme = require("@dfds-ui/theme");
|
|
15
15
|
var _typography = require("@dfds-ui/typography");
|
|
16
16
|
const _excluded = ["isNarrow", "intent", "actions", "onRequestClose", "closeLabel", "children", "variant", "sticky", "stickyPosition", "divider", "wrapActions", "icon"];
|
|
17
|
-
function
|
|
18
|
-
function
|
|
19
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
17
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
18
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
20
19
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
21
|
-
function _unsupportedIterableToArray(
|
|
22
|
-
function _arrayLikeToArray(
|
|
20
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
21
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
23
22
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
24
|
-
function _arrayWithHoles(
|
|
25
|
-
function _objectWithoutProperties(
|
|
26
|
-
function _objectWithoutPropertiesLoose(
|
|
27
|
-
function _objectDestructuringEmpty(
|
|
28
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
23
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
24
|
+
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; }
|
|
25
|
+
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; }
|
|
26
|
+
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
27
|
+
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); }
|
|
29
28
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
30
29
|
function normalizeIntent(intent) {
|
|
31
30
|
// for intent none we will use info instead
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export declare type BannerActionVariation = 'primary' | 'secondary' | 'primary-thick' | 'secondary-thick';
|
|
3
|
+
export interface BannerActionProps {
|
|
4
|
+
variation?: BannerActionVariation;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
/**
|
|
7
|
+
* className to be assigned to the button
|
|
8
|
+
*/
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* HTML tag or custom component being rendered
|
|
12
|
+
*/
|
|
13
|
+
as?: React.ElementType;
|
|
14
|
+
/**
|
|
15
|
+
* Updates component with children prop accordingly to the @types update
|
|
16
|
+
*/
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare const BannerAction: React.FunctionComponent<BannerActionProps>;
|
|
@@ -11,10 +11,10 @@ var _typography = require("@dfds-ui/typography");
|
|
|
11
11
|
var _button = require("../../button");
|
|
12
12
|
var _Banner = require("./Banner");
|
|
13
13
|
const _excluded = ["variation"];
|
|
14
|
-
function _interopRequireDefault(
|
|
15
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
16
|
-
function _objectWithoutProperties(
|
|
17
|
-
function _objectWithoutPropertiesLoose(
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
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
|
+
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; }
|
|
17
|
+
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; }
|
|
18
18
|
const getVariationStyle = bannerVariant => {
|
|
19
19
|
switch (bannerVariant) {
|
|
20
20
|
case 'lowEmphasis':
|
|
@@ -7,8 +7,8 @@ exports.BannerParagraph = exports.BannerHeadline = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _typography = require("@dfds-ui/typography");
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
|
-
function _interopRequireDefault(
|
|
11
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
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
12
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
13
13
|
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
14
14
|
name: "ti75j2",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Intent } from '../../common/intent';
|
|
3
|
+
export declare type ToastProps = {
|
|
4
|
+
intent?: Intent;
|
|
5
|
+
className?: string;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
onRequestClose?: () => void;
|
|
8
|
+
actionLabel?: string;
|
|
9
|
+
onRequestAction?: () => void;
|
|
10
|
+
};
|
|
11
|
+
declare const Toast: React.FunctionComponent<ToastProps>;
|
|
12
|
+
export default Toast;
|
|
@@ -14,10 +14,10 @@ var _button = require("../../button");
|
|
|
14
14
|
var _system = require("@dfds-ui/icons/system");
|
|
15
15
|
var _Spinner = require("../../spinner/Spinner");
|
|
16
16
|
const _excluded = ["intent", "actionLabel", "onRequestClose", "onRequestAction", "children", "loading"];
|
|
17
|
-
function _interopRequireDefault(
|
|
18
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
19
|
-
function _objectWithoutProperties(
|
|
20
|
-
function _objectWithoutPropertiesLoose(
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
+
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); }
|
|
19
|
+
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; }
|
|
20
|
+
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; }
|
|
21
21
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
22
22
|
const ToastWrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
23
23
|
target: "e145csjx4"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { PropsWithChildren, FunctionComponent } from 'react';
|
|
2
|
+
import { ToastProps } from './Toast';
|
|
3
|
+
declare type TimeoutType = {
|
|
4
|
+
timeout?: number;
|
|
5
|
+
};
|
|
6
|
+
declare type ToasterState = {
|
|
7
|
+
open: boolean;
|
|
8
|
+
hasActive: boolean;
|
|
9
|
+
toastProps: ToastProps | null;
|
|
10
|
+
} & TimeoutType;
|
|
11
|
+
export declare const useToaster: () => {
|
|
12
|
+
addToast: (props: PropsWithChildren<ToastProps & TimeoutType>) => Promise<void>;
|
|
13
|
+
state: ToasterState;
|
|
14
|
+
};
|
|
15
|
+
declare const Toaster: FunctionComponent<{
|
|
16
|
+
children: React.ReactNode | React.ReactNode[];
|
|
17
|
+
globalTimeout?: number;
|
|
18
|
+
}>;
|
|
19
|
+
export default Toaster;
|
|
@@ -9,23 +9,22 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _ = require(".");
|
|
10
10
|
var _material = require("@mui/material");
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
|
-
function
|
|
13
|
-
function
|
|
14
|
-
function
|
|
15
|
-
function
|
|
16
|
-
function
|
|
17
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
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); }
|
|
15
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
16
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
18
17
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
18
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
|
-
function _defineProperty(
|
|
19
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
21
20
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
22
21
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
23
|
-
function _slicedToArray(
|
|
22
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
24
23
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
25
|
-
function _unsupportedIterableToArray(
|
|
26
|
-
function _arrayLikeToArray(
|
|
24
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
25
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
27
26
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
28
|
-
function _arrayWithHoles(
|
|
27
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
29
28
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
30
29
|
const Container = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
31
30
|
target: "e271rjj0"
|
|
@@ -23,6 +23,5 @@ Object.defineProperty(exports, "useToaster", {
|
|
|
23
23
|
});
|
|
24
24
|
var _Toast = _interopRequireDefault(require("./Toast"));
|
|
25
25
|
var _Toaster = _interopRequireWildcard(require("./Toaster"));
|
|
26
|
-
function
|
|
27
|
-
function
|
|
28
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
26
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
27
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Intent } from '../common/intent';
|
|
3
|
+
import { FlexBoxProps } from '../flexbox/FlexBox';
|
|
4
|
+
export declare type BadgeProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Specifies the intent of the Badge
|
|
7
|
+
*/
|
|
8
|
+
intent?: Intent;
|
|
9
|
+
/**
|
|
10
|
+
* Text to be shown in the badge (usually just a string)
|
|
11
|
+
*/
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Class name to be added to the badge
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Props controlling the flexbox
|
|
19
|
+
*/
|
|
20
|
+
flexBoxProps?: FlexBoxProps;
|
|
21
|
+
/**
|
|
22
|
+
* HTML tag or custom component being rendered
|
|
23
|
+
*/
|
|
24
|
+
as?: React.ElementType;
|
|
25
|
+
};
|
|
26
|
+
export default function Badge({ as, children, intent, flexBoxProps, ...rest }: BadgeProps): JSX.Element;
|
package/cjs/badge/Badge.js
CHANGED
|
@@ -11,10 +11,10 @@ var _typography = require("@dfds-ui/typography");
|
|
|
11
11
|
var _intent = require("../common/intent");
|
|
12
12
|
var _FlexBox = _interopRequireDefault(require("../flexbox/FlexBox"));
|
|
13
13
|
const _excluded = ["as", "children", "intent", "flexBoxProps"];
|
|
14
|
-
function _interopRequireDefault(
|
|
15
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
16
|
-
function _objectWithoutProperties(
|
|
17
|
-
function _objectWithoutPropertiesLoose(
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
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
|
+
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; }
|
|
17
|
+
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; }
|
|
18
18
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
19
19
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
20
20
|
name: "1h52dri",
|
package/cjs/badge/index.js
CHANGED
|
@@ -24,5 +24,4 @@ Object.keys(_Badge).forEach(function (key) {
|
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
|
-
function
|
|
28
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
27
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
package/cjs/button/BadgeIcon.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.default = exports.BadgeIcon = 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
|
-
function _interopRequireDefault(
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
const BadgeIcon = ({
|
|
12
12
|
letter,
|
|
13
13
|
className
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const variations: readonly ["primary", "secondary", "outlined", "text", "danger", "link"];
|
|
3
|
+
export declare type BaseButtonProps = React.PropsWithoutRef<JSX.IntrinsicElements['button']>;
|
|
4
|
+
export declare type ButtonVariation = typeof variations[number];
|
|
5
|
+
export declare type ButtonVariationProps = {
|
|
6
|
+
variation?: ButtonVariation;
|
|
7
|
+
};
|
|
8
|
+
export declare const BaseButton: import("@emotion/styled").StyledComponent<{
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: React.ElementType<any> | undefined;
|
|
11
|
+
} & {
|
|
12
|
+
selected?: boolean | undefined;
|
|
13
|
+
}, React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
14
|
+
export declare function getButtonVariationStyle(variation?: ButtonVariation): import("@emotion/utils").SerializedStyles;
|
package/cjs/button/BaseButton.js
CHANGED
|
@@ -9,7 +9,7 @@ exports.variations = void 0;
|
|
|
9
9
|
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
10
10
|
var _buttonStyle = require("./button-style");
|
|
11
11
|
var _theme = require("@dfds-ui/theme");
|
|
12
|
-
function _interopRequireDefault(
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
const variations = ['primary', 'secondary', 'outlined', 'text', 'danger', 'link'];
|
|
14
14
|
exports.variations = variations;
|
|
15
15
|
const BaseButton = /*#__PURE__*/(0, _base.default)("button", process.env.NODE_ENV === "production" ? {
|