@dfds-ui/react-components 2.0.29-alpha.fae844df → 2.2.0-alpha.4e495871
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/Accordion.d.ts +2 -2
- package/accordion/Accordion.js +3 -3
- package/accordion/AccordionContent.d.ts +1 -1
- package/accordion/AccordionContent.js +3 -3
- package/accordion/AccordionSmall.d.ts +2 -2
- package/accordion/AccordionSmall.js +3 -3
- package/app-bar/AppBar.d.ts +1 -1
- package/app-bar/AppBar.js +8 -8
- package/app-bar/AppBarContext.d.ts +1 -1
- package/app-bar/AppBarContext.js +4 -4
- package/app-bar/AppBarDrawer.js +3 -3
- package/app-bar/AppBarIconButton.d.ts +1 -1
- package/app-bar/AppBarIconButton.js +3 -3
- package/app-bar/AppBarItem.d.ts +2 -2
- package/app-bar/AppBarItem.js +24 -24
- package/assertions/banner/Banner.d.ts +3 -3
- package/assertions/banner/Banner.js +8 -8
- package/assertions/banner/BannerAction.d.ts +1 -1
- package/assertions/banner/BannerAction.js +3 -3
- package/assertions/banner/BannerTypography.js +1 -1
- package/assertions/toast/Toast.d.ts +1 -1
- package/assertions/toast/Toast.js +3 -3
- package/assertions/toast/Toaster.d.ts +2 -2
- package/assertions/toast/Toaster.js +9 -17
- package/badge/Badge.d.ts +1 -1
- package/badge/Badge.js +3 -3
- package/button/BadgeIcon.d.ts +1 -1
- package/button/BaseButton.d.ts +3 -3
- package/button/Button.d.ts +3 -3
- package/button/Button.js +3 -3
- package/button/IconButton.d.ts +2 -2
- 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 +3 -3
- package/button-stack/ButtonStack.js +4 -4
- package/card/Card.d.ts +2 -2
- package/card/Card.js +10 -10
- package/card/CardActions.js +3 -3
- package/card/CardContent.d.ts +1 -1
- package/card/CardContent.js +2 -2
- package/card/CardMedia.d.ts +2 -2
- package/card/CardMedia.js +2 -2
- package/card/CardPriceTag.d.ts +1 -1
- package/card/CardPriceTag.js +2 -2
- package/card/CardTitle.d.ts +1 -1
- package/card/CardTitle.js +3 -3
- package/chip/Chip.d.ts +2 -2
- package/chip/Chip.js +7 -7
- package/cjs/accordion/Accordion.d.ts +2 -2
- package/cjs/accordion/Accordion.js +22 -26
- package/cjs/accordion/AccordionContent.d.ts +1 -1
- package/cjs/accordion/AccordionContent.js +8 -10
- package/cjs/accordion/AccordionSmall.d.ts +2 -2
- package/cjs/accordion/AccordionSmall.js +13 -16
- package/cjs/accordion/index.js +3 -3
- package/cjs/app-bar/AppBar.d.ts +1 -1
- package/cjs/app-bar/AppBar.js +45 -65
- package/cjs/app-bar/AppBarContext.d.ts +1 -1
- package/cjs/app-bar/AppBarContext.js +4 -15
- package/cjs/app-bar/AppBarDrawer.js +12 -12
- package/cjs/app-bar/AppBarIconButton.d.ts +1 -1
- package/cjs/app-bar/AppBarIconButton.js +8 -11
- package/cjs/app-bar/AppBarItem.d.ts +2 -2
- package/cjs/app-bar/AppBarItem.js +20 -33
- package/cjs/app-bar/AppBarListItem.js +1 -1
- package/cjs/app-bar/index.js +9 -9
- package/cjs/assertions/banner/Banner.d.ts +3 -3
- package/cjs/assertions/banner/Banner.js +25 -44
- package/cjs/assertions/banner/BannerAction.d.ts +1 -1
- package/cjs/assertions/banner/BannerAction.js +9 -11
- 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 +1 -1
- package/cjs/assertions/toast/Toast.js +11 -15
- package/cjs/assertions/toast/Toaster.d.ts +2 -2
- package/cjs/assertions/toast/Toaster.js +23 -41
- package/cjs/assertions/toast/index.js +6 -5
- package/cjs/badge/Badge.d.ts +1 -1
- package/cjs/badge/Badge.js +11 -16
- package/cjs/badge/index.js +4 -3
- package/cjs/button/BadgeIcon.d.ts +1 -1
- package/cjs/button/BadgeIcon.js +1 -1
- package/cjs/button/BaseButton.d.ts +3 -3
- package/cjs/button/BaseButton.js +1 -1
- package/cjs/button/Button.d.ts +3 -3
- package/cjs/button/Button.js +15 -22
- package/cjs/button/IconButton.d.ts +2 -2
- package/cjs/button/IconButton.js +21 -28
- package/cjs/button/LinkButton.d.ts +1 -1
- package/cjs/button/LinkButton.js +4 -3
- package/cjs/button/index.js +9 -8
- package/cjs/button-stack/ButtonStack.d.ts +3 -3
- package/cjs/button-stack/ButtonStack.js +10 -14
- package/cjs/button-stack/index.js +2 -2
- package/cjs/card/Card.d.ts +2 -2
- package/cjs/card/Card.js +23 -38
- package/cjs/card/CardActions.js +8 -12
- package/cjs/card/CardContent.d.ts +1 -1
- package/cjs/card/CardContent.js +11 -15
- package/cjs/card/CardMedia.d.ts +2 -2
- package/cjs/card/CardMedia.js +7 -10
- package/cjs/card/CardPriceTag.d.ts +1 -1
- package/cjs/card/CardPriceTag.js +8 -12
- package/cjs/card/CardTitle.d.ts +1 -1
- package/cjs/card/CardTitle.js +11 -13
- package/cjs/card/index.js +7 -7
- package/cjs/chip/Chip.d.ts +2 -2
- package/cjs/chip/Chip.js +16 -30
- package/cjs/chip/index.js +4 -3
- package/cjs/common/LockBodyScroll.d.ts +2 -2
- package/cjs/common/LockBodyScroll.js +7 -10
- package/cjs/common/arrow.d.ts +1 -1
- package/cjs/common/emotionCloneElement.js +5 -8
- package/cjs/common/intent.d.ts +1 -1
- package/cjs/common/polymorphic.d.ts +2 -2
- package/cjs/common/polymorphic.js +5 -5
- package/cjs/common/use-media.js +1 -10
- package/cjs/common/useOnClickOutside.d.ts +1 -1
- package/cjs/counter/Counter.d.ts +1 -1
- package/cjs/counter/Counter.js +6 -15
- package/cjs/counter/PluralCounter.d.ts +1 -1
- package/cjs/counter/PluralCounter.js +13 -24
- package/cjs/counter/index.js +3 -3
- package/cjs/data-table/DataTable.d.ts +1 -1
- package/cjs/data-table/DataTable.js +17 -27
- package/cjs/data-table/index.js +1 -1
- package/cjs/date-range-picker/DateRangePicker.js +30 -56
- package/cjs/date-range-picker/index.js +2 -2
- package/cjs/divider/Divider.d.ts +1 -1
- package/cjs/divider/Divider.js +11 -11
- package/cjs/divider/index.js +1 -1
- package/cjs/drawer/Drawer.d.ts +4 -4
- package/cjs/drawer/Drawer.js +11 -17
- package/cjs/drawer/index.js +1 -1
- package/cjs/dropdown-menu/Dropdown.d.ts +2 -2
- package/cjs/dropdown-menu/Dropdown.js +20 -34
- package/cjs/dropdown-menu/DropdownContext.d.ts +2 -2
- package/cjs/dropdown-menu/DropdownContext.js +2 -1
- package/cjs/dropdown-menu/MenuCheckbox.js +5 -4
- package/cjs/dropdown-menu/MenuItem.js +20 -32
- package/cjs/dropdown-menu/MenuTitle.js +4 -3
- package/cjs/dropdown-menu/index.js +8 -7
- package/cjs/elevation/index.d.ts +1 -1
- package/cjs/flexbox/FlexBox.d.ts +2 -2
- package/cjs/flexbox/FlexBox.js +4 -12
- package/cjs/flexbox/index.js +1 -1
- package/cjs/footer/Footer.js +1 -1
- package/cjs/footer/index.js +2 -2
- package/cjs/forms/assistive-text/AssistiveText.js +1 -1
- package/cjs/forms/asterisk/Asterisk.js +1 -1
- package/cjs/forms/checkbox/Checkbox.d.ts +4 -4
- package/cjs/forms/checkbox/Checkbox.js +16 -21
- package/cjs/forms/checkbox/ExampleControlComponent.d.ts +1 -1
- package/cjs/forms/checkbox/ExampleControlComponent.js +8 -19
- package/cjs/forms/checkbox/index.js +2 -2
- package/cjs/forms/email-field/EmailField.d.ts +1 -1
- package/cjs/forms/email-field/EmailField.js +2 -2
- package/cjs/forms/error-text/ErrorText.js +1 -1
- package/cjs/forms/field/Field.d.ts +1 -1
- package/cjs/forms/field/Field.js +1 -1
- package/cjs/forms/index.d.ts +3 -3
- package/cjs/forms/index.js +19 -19
- package/cjs/forms/input/Input.d.ts +3 -3
- package/cjs/forms/input/Input.js +15 -17
- package/cjs/forms/input/InputComposition.d.ts +7 -7
- package/cjs/forms/input/InputComposition.js +26 -29
- package/cjs/forms/label/Label.d.ts +1 -1
- package/cjs/forms/label/Label.js +7 -9
- package/cjs/forms/number-field/NumberField.d.ts +1 -1
- package/cjs/forms/number-field/NumberField.js +2 -2
- package/cjs/forms/password-field/PasswordField.d.ts +1 -1
- package/cjs/forms/password-field/PasswordField.js +5 -13
- package/cjs/forms/radio/Radio.d.ts +4 -4
- package/cjs/forms/radio/Radio.js +29 -34
- package/cjs/forms/reactselect/ReactSelect.d.ts +2 -2
- package/cjs/forms/reactselect/ReactSelect.js +43 -50
- package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +2 -2
- package/cjs/forms/searchable-select/AsyncSearchableSelect.js +30 -34
- package/cjs/forms/select/Select.d.ts +4 -4
- package/cjs/forms/select/Select.js +12 -14
- package/cjs/forms/select-field/SelectField.d.ts +2 -2
- package/cjs/forms/select-field/SelectField.js +15 -16
- package/cjs/forms/switch/Switch.d.ts +2 -2
- package/cjs/forms/switch/Switch.js +13 -17
- package/cjs/forms/tel-field/TelField.d.ts +1 -1
- package/cjs/forms/tel-field/TelField.js +2 -2
- package/cjs/forms/text-field/TextField.d.ts +3 -3
- package/cjs/forms/text-field/TextField.js +18 -19
- package/cjs/global-styles/GlobalStyles.js +1 -1
- package/cjs/global-styles/ResetStyles.js +1 -1
- package/cjs/grid/Column.d.ts +1 -1
- package/cjs/grid/Column.js +10 -12
- package/cjs/grid/Container.d.ts +1 -1
- package/cjs/grid/Container.js +11 -13
- package/cjs/grid/index.js +3 -3
- package/cjs/hero/Hero.d.ts +1 -1
- package/cjs/hero/Hero.js +1 -1
- package/cjs/hero/index.js +2 -2
- package/cjs/hero/stripes.d.ts +1 -1
- package/cjs/hero/stripes.js +1 -1
- package/cjs/ie-banner/IEBanner.d.ts +1 -1
- package/cjs/ie-banner/IEBanner.js +5 -19
- package/cjs/ie-banner/index.js +2 -2
- package/cjs/index.js +46 -46
- package/cjs/layout/LayoutLegacy.js +1 -1
- package/cjs/lists/FeatureList.d.ts +2 -2
- package/cjs/lists/FeatureList.js +9 -12
- package/cjs/lists/ListAddon.d.ts +1 -1
- package/cjs/lists/ListAddon.js +8 -11
- package/cjs/lists/ListDivider.d.ts +1 -1
- package/cjs/lists/ListDivider.js +8 -11
- package/cjs/lists/ListIcon.d.ts +2 -2
- package/cjs/lists/ListIcon.js +14 -17
- package/cjs/lists/ListItem.d.ts +1 -1
- package/cjs/lists/ListItem.js +17 -26
- package/cjs/lists/ListText.d.ts +3 -3
- package/cjs/lists/ListText.js +10 -13
- package/cjs/lists/ListTextGroup.d.ts +1 -1
- package/cjs/lists/ListTextGroup.js +11 -15
- package/cjs/lists/ListTitle.js +6 -9
- package/cjs/lists/index.js +9 -9
- package/cjs/loader/DfdsLoader.js +3 -3
- package/cjs/loader/Loader.d.ts +1 -1
- package/cjs/loader/Loader.js +1 -1
- package/cjs/loader/index.js +3 -3
- package/cjs/localization/LocaleFlag.d.ts +1 -1
- package/cjs/localization/LocaleFlag.js +11 -14
- package/cjs/localization/index.js +2 -2
- package/cjs/localization/locales.d.ts +2 -2
- package/cjs/logo/Logo.d.ts +1 -1
- package/cjs/logo/Logo.js +8 -9
- package/cjs/logo/index.js +1 -1
- package/cjs/menu/Menu.d.ts +1 -1
- package/cjs/menu/Menu.js +20 -22
- package/cjs/menu/index.js +4 -3
- package/cjs/mobile-stepper/MobileStepper.d.ts +1 -1
- package/cjs/mobile-stepper/MobileStepper.js +10 -14
- package/cjs/mobile-stepper/index.js +2 -2
- package/cjs/nav-bar/NavBar.d.ts +4 -4
- package/cjs/nav-bar/NavBar.js +27 -38
- package/cjs/nav-bar/index.js +4 -3
- package/cjs/nav-menu/NavMenuItem.d.ts +1 -1
- package/cjs/nav-menu/NavMenuItem.js +1 -1
- package/cjs/nav-menu/index.js +2 -2
- package/cjs/pagination/Pagination.d.ts +2 -2
- package/cjs/pagination/Pagination.js +9 -8
- package/cjs/pagination/index.js +1 -1
- package/cjs/popper/Popper.d.ts +2 -2
- package/cjs/popper/Popper.js +23 -27
- package/cjs/popper/index.js +2 -2
- package/cjs/progress-bar/ProgressBar.d.ts +1 -1
- package/cjs/progress-bar/ProgressBar.js +1 -1
- package/cjs/progress-bar/index.js +4 -3
- package/cjs/schedule/ScheduleItem.d.ts +2 -2
- package/cjs/schedule/ScheduleItem.js +1 -1
- package/cjs/schedule/ScheduleList.d.ts +3 -3
- package/cjs/schedule/ScheduleList.js +6 -8
- package/cjs/schedule/index.js +3 -3
- package/cjs/side-sheet/SideSheet.d.ts +4 -4
- package/cjs/side-sheet/SideSheet.js +32 -47
- package/cjs/side-sheet/SideSheetCloseButton.d.ts +1 -1
- package/cjs/side-sheet/SideSheetCloseButton.js +10 -15
- package/cjs/side-sheet/SideSheetContent.d.ts +1 -1
- package/cjs/side-sheet/SideSheetContent.js +8 -9
- package/cjs/side-sheet/SideSheetFooter.d.ts +1 -1
- package/cjs/side-sheet/SideSheetFooter.js +8 -9
- package/cjs/side-sheet/SideSheetHeader.d.ts +1 -1
- package/cjs/side-sheet/SideSheetHeader.js +11 -13
- package/cjs/side-sheet/SideSheetHeadline.d.ts +1 -1
- package/cjs/side-sheet/SideSheetHeadline.js +1 -1
- package/cjs/side-sheet/index.js +7 -6
- package/cjs/site-layout/SiteLayout.d.ts +3 -3
- package/cjs/site-layout/SiteLayout.js +26 -29
- package/cjs/site-layout/index.js +4 -3
- package/cjs/skeleton/Skeleton.d.ts +1 -1
- package/cjs/skeleton/Skeleton.js +12 -16
- package/cjs/skeleton/index.js +1 -1
- package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +2 -2
- package/cjs/social-media-link-list/SocialMediaLinkList.js +15 -17
- package/cjs/social-media-link-list/index.js +1 -1
- package/cjs/spinner/Spinner.d.ts +2 -2
- package/cjs/spinner/Spinner.js +10 -14
- package/cjs/spinner/index.js +1 -1
- package/cjs/step/Step.d.ts +1 -1
- package/cjs/step/Step.js +24 -31
- package/cjs/step/StepButton.d.ts +1 -1
- package/cjs/step/StepButton.js +16 -14
- package/cjs/step/StepContent.d.ts +1 -1
- package/cjs/step/StepContent.js +4 -3
- package/cjs/step/StepContext.d.ts +1 -1
- package/cjs/step/StepContext.js +1 -1
- package/cjs/step/StepLabel.d.ts +1 -1
- package/cjs/step/StepLabel.js +5 -4
- package/cjs/step/index.js +2 -2
- package/cjs/stepper/Stepper.d.ts +1 -1
- package/cjs/stepper/Stepper.js +16 -24
- package/cjs/stepper/StepperContext.d.ts +1 -1
- package/cjs/stepper/StepperContext.js +1 -1
- package/cjs/stepper/index.js +2 -2
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.js +1 -1
- package/cjs/stepper-feedback-message/index.js +2 -2
- package/cjs/styles/index.js +7 -6
- package/cjs/styles/media.d.ts +1 -1
- package/cjs/styles/theme.d.ts +1 -1
- package/cjs/surface/Surface.d.ts +2 -2
- package/cjs/surface/Surface.js +15 -20
- package/cjs/surface/index.js +1 -1
- package/cjs/tab/Tab.d.ts +2 -2
- package/cjs/tab/Tab.js +15 -16
- package/cjs/tab/TabPanel.d.ts +1 -1
- package/cjs/tab/TabPanel.js +4 -3
- package/cjs/tab/Tabs.d.ts +2 -2
- package/cjs/tab/Tabs.js +24 -39
- package/cjs/tab/TabsContext.d.ts +1 -1
- package/cjs/tab/TabsContext.js +2 -1
- package/cjs/tab/index.js +5 -5
- package/cjs/table/Table.d.ts +2 -2
- package/cjs/table/Table.js +9 -12
- package/cjs/table/TableBody.d.ts +1 -1
- package/cjs/table/TableBody.js +7 -8
- package/cjs/table/TableDataCell.d.ts +1 -1
- package/cjs/table/TableDataCell.js +8 -10
- package/cjs/table/TableHead.d.ts +1 -1
- package/cjs/table/TableHead.js +12 -12
- package/cjs/table/TableHeaderCell.d.ts +2 -2
- package/cjs/table/TableHeaderCell.js +8 -10
- package/cjs/table/TableRow.d.ts +1 -1
- package/cjs/table/TableRow.js +13 -14
- package/cjs/table/index.js +6 -6
- package/cjs/test/Test.js +1 -1
- package/cjs/tooltip/Tooltip.d.ts +2 -2
- package/cjs/tooltip/Tooltip.js +14 -14
- package/cjs/tooltip/index.js +4 -3
- package/cjs/typography/Headlines.js +10 -13
- package/cjs/typography/Text.js +1 -1
- package/cjs/typography/index.js +2 -2
- package/common/LockBodyScroll.d.ts +2 -2
- package/common/LockBodyScroll.js +3 -3
- package/common/arrow.d.ts +1 -1
- package/common/emotionCloneElement.js +1 -1
- package/common/intent.d.ts +1 -1
- package/common/polymorphic.d.ts +2 -2
- package/common/polymorphic.js +2 -2
- package/common/use-media.js +4 -4
- package/common/useOnClickOutside.d.ts +1 -1
- package/common/utils.js +1 -1
- package/counter/Counter.d.ts +1 -1
- package/counter/Counter.js +4 -4
- package/counter/PluralCounter.d.ts +1 -1
- package/counter/PluralCounter.js +7 -7
- package/data-table/DataTable.d.ts +1 -1
- package/data-table/DataTable.js +10 -10
- package/date-range-picker/DateRangePicker.js +8 -8
- package/divider/Divider.d.ts +1 -1
- package/divider/Divider.js +3 -3
- package/drawer/Drawer.d.ts +4 -4
- package/drawer/Drawer.js +3 -3
- package/dropdown-menu/Dropdown.d.ts +2 -2
- package/dropdown-menu/Dropdown.js +7 -7
- package/dropdown-menu/DropdownContext.d.ts +2 -2
- package/dropdown-menu/MenuCheckbox.js +1 -1
- package/dropdown-menu/MenuItem.js +7 -7
- package/elevation/index.d.ts +1 -1
- package/flexbox/FlexBox.d.ts +2 -2
- package/flexbox/FlexBox.js +5 -5
- package/forms/checkbox/Checkbox.d.ts +4 -4
- package/forms/checkbox/Checkbox.js +3 -3
- package/forms/checkbox/ExampleControlComponent.d.ts +1 -1
- package/forms/checkbox/ExampleControlComponent.js +7 -7
- package/forms/email-field/EmailField.d.ts +1 -1
- package/forms/email-field/EmailField.js +1 -1
- package/forms/field/Field.d.ts +1 -1
- package/forms/index.d.ts +3 -3
- package/forms/input/Input.d.ts +3 -3
- package/forms/input/Input.js +3 -3
- package/forms/input/InputComposition.d.ts +7 -7
- package/forms/input/InputComposition.js +3 -3
- package/forms/label/Label.d.ts +1 -1
- package/forms/label/Label.js +2 -2
- 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 +5 -5
- package/forms/radio/Radio.d.ts +4 -4
- package/forms/radio/Radio.js +3 -3
- package/forms/reactselect/ReactSelect.d.ts +2 -2
- package/forms/reactselect/ReactSelect.js +4 -4
- package/forms/searchable-select/AsyncSearchableSelect.d.ts +2 -2
- package/forms/searchable-select/AsyncSearchableSelect.js +3 -3
- package/forms/select/Select.d.ts +4 -4
- package/forms/select/Select.js +3 -3
- package/forms/select-field/SelectField.d.ts +2 -2
- package/forms/select-field/SelectField.js +3 -3
- package/forms/switch/Switch.d.ts +2 -2
- 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 +3 -3
- package/forms/text-field/TextField.js +3 -3
- package/grid/Column.d.ts +1 -1
- package/grid/Column.js +3 -3
- package/grid/Container.d.ts +1 -1
- package/grid/Container.js +4 -4
- package/hero/Hero.d.ts +1 -1
- package/hero/Hero.js +1 -1
- package/hero/stripes.d.ts +1 -1
- package/ie-banner/IEBanner.d.ts +1 -1
- package/ie-banner/IEBanner.js +4 -4
- package/lists/FeatureList.d.ts +2 -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 +1 -1
- package/lists/ListDivider.js +3 -3
- package/lists/ListIcon.d.ts +2 -2
- package/lists/ListIcon.js +3 -3
- package/lists/ListItem.d.ts +1 -1
- package/lists/ListItem.js +3 -3
- package/lists/ListText.d.ts +3 -3
- package/lists/ListText.js +3 -3
- package/lists/ListTextGroup.d.ts +1 -1
- package/lists/ListTextGroup.js +3 -3
- package/lists/ListTitle.js +3 -3
- package/loader/DfdsLoader.js +1 -1
- package/loader/Loader.d.ts +1 -1
- package/loader/Loader.js +1 -1
- package/localization/LocaleFlag.d.ts +1 -1
- package/localization/LocaleFlag.js +3 -3
- package/localization/locales.d.ts +2 -2
- package/logo/Logo.d.ts +1 -1
- package/logo/Logo.js +3 -3
- package/menu/Menu.d.ts +1 -1
- package/menu/Menu.js +3 -3
- package/mobile-stepper/MobileStepper.d.ts +1 -1
- package/mobile-stepper/MobileStepper.js +8 -8
- package/nav-bar/NavBar.d.ts +4 -4
- package/nav-bar/NavBar.js +7 -7
- package/nav-menu/NavMenuItem.d.ts +1 -1
- package/package.json +10 -10
- package/pagination/Pagination.d.ts +2 -2
- package/pagination/Pagination.js +2 -2
- package/pagination/Pagination.styles.js +1 -1
- package/popper/Popper.d.ts +2 -2
- package/popper/Popper.js +3 -3
- package/progress-bar/ProgressBar.d.ts +1 -1
- package/schedule/ScheduleItem.d.ts +2 -2
- package/schedule/ScheduleList.d.ts +3 -3
- package/schedule/ScheduleList.js +3 -3
- package/side-sheet/SideSheet.d.ts +4 -4
- package/side-sheet/SideSheet.js +8 -8
- package/side-sheet/SideSheetCloseButton.d.ts +1 -1
- package/side-sheet/SideSheetCloseButton.js +3 -3
- package/side-sheet/SideSheetContent.d.ts +1 -1
- package/side-sheet/SideSheetContent.js +3 -3
- package/side-sheet/SideSheetFooter.d.ts +1 -1
- package/side-sheet/SideSheetFooter.js +3 -3
- package/side-sheet/SideSheetHeader.d.ts +1 -1
- package/side-sheet/SideSheetHeader.js +3 -3
- package/side-sheet/SideSheetHeadline.d.ts +1 -1
- package/site-layout/SiteLayout.d.ts +3 -3
- package/site-layout/SiteLayout.js +3 -3
- package/skeleton/Skeleton.d.ts +1 -1
- package/skeleton/Skeleton.js +4 -4
- package/social-media-link-list/SocialMediaLinkList.d.ts +2 -2
- package/social-media-link-list/SocialMediaLinkList.js +3 -3
- package/spinner/Spinner.d.ts +2 -2
- package/spinner/Spinner.js +4 -4
- package/step/Step.d.ts +1 -1
- package/step/Step.js +3 -3
- package/step/StepButton.d.ts +1 -1
- package/step/StepButton.js +2 -2
- package/step/StepContent.d.ts +1 -1
- package/step/StepContext.d.ts +1 -1
- package/step/StepLabel.d.ts +1 -1
- package/stepper/Stepper.d.ts +1 -1
- package/stepper/Stepper.js +4 -4
- package/stepper/StepperContext.d.ts +1 -1
- package/styles/media.d.ts +1 -1
- package/styles/theme.d.ts +1 -1
- package/surface/Surface.d.ts +2 -2
- package/surface/Surface.js +4 -4
- package/tab/Tab.d.ts +2 -2
- package/tab/Tab.js +3 -3
- package/tab/TabPanel.d.ts +1 -1
- package/tab/Tabs.d.ts +2 -2
- package/tab/Tabs.js +7 -7
- package/tab/TabsContext.d.ts +1 -1
- package/table/Table.d.ts +2 -2
- 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 +4 -4
- package/table/TableHeaderCell.d.ts +2 -2
- package/table/TableHeaderCell.js +3 -3
- package/table/TableRow.d.ts +1 -1
- package/table/TableRow.js +4 -4
- package/tooltip/Tooltip.d.ts +2 -2
- package/tooltip/Tooltip.js +3 -3
- package/typography/Headlines.js +3 -3
|
@@ -1,28 +1,20 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
2
|
import _styled from "@emotion/styled/base";
|
|
3
|
-
function _extends() {
|
|
4
|
-
function _regeneratorRuntime() { "use strict";
|
|
5
|
-
function
|
|
6
|
-
function
|
|
7
|
-
function _regeneratorAsync(n, e, r, t, o) { var a = _regeneratorAsyncGen(n, e, r, t, o); return a.next().then(function (n) { return n.done ? n.value : a.next(); }); }
|
|
8
|
-
function _regeneratorAsyncGen(r, e, t, o, n) { return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise); }
|
|
9
|
-
function _regeneratorAsyncIterator(t, e) { function n(r, o, i, f) { try { var c = t[r](o), u = c.value; return u instanceof _OverloadYield ? e.resolve(u.v).then(function (t) { n("next", t, i, f); }, function (t) { n("throw", t, i, f); }) : e.resolve(u).then(function (t) { c.value = t, i(c); }, function (t) { return n("throw", t, i, f); }); } catch (t) { f(t); } } var r; this.next || (_regeneratorDefine2(_regeneratorAsyncIterator.prototype), _regeneratorDefine2(_regeneratorAsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () { return this; })), _regeneratorDefine2(this, "_invoke", function (t, o, i) { function f() { return new e(function (e, r) { n(t, i, e, r); }); } return r = r ? r.then(f, f) : f(); }, !0); }
|
|
10
|
-
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
11
|
-
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
12
|
-
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
13
|
-
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); }
|
|
14
|
-
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); }); }; }
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) { if (n.call(e, o)) return next.value = e[o], next.done = !1, next; } return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) { r.push(n); } return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) { "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); } }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
5
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
6
|
+
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); }); }; }
|
|
15
7
|
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; }
|
|
16
8
|
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; }
|
|
17
|
-
function _defineProperty(
|
|
9
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
10
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
11
|
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); }
|
|
20
|
-
function _slicedToArray(
|
|
12
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
21
13
|
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(
|
|
14
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
15
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
24
16
|
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(
|
|
17
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
26
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)."; }
|
|
27
19
|
import React, { useEffect, useReducer, useCallback, useRef, useContext, createContext } from 'react';
|
|
28
20
|
import { Toast } from '.';
|
package/badge/Badge.d.ts
CHANGED
package/badge/Badge.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["as", "children", "intent", "flexBoxProps"];
|
|
2
|
-
function _extends() {
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
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)."; }
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { css } from '@emotion/react';
|
package/button/BadgeIcon.d.ts
CHANGED
package/button/BaseButton.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export declare const variations: readonly ["primary", "secondary", "outlined", "text", "danger", "link"];
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export type BaseButtonProps = React.PropsWithoutRef<JSX.IntrinsicElements['button']>;
|
|
4
|
+
export type ButtonVariation = typeof variations[number];
|
|
5
|
+
export type ButtonVariationProps = {
|
|
6
6
|
variation?: ButtonVariation;
|
|
7
7
|
};
|
|
8
8
|
export declare const BaseButton: import("@emotion/styled").StyledComponent<{
|
package/button/Button.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseButtonProps, ButtonVariationProps } from './BaseButton';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
3
|
+
type ButtonSize = 'medium' | 'small';
|
|
4
|
+
type IconAlign = 'left' | 'right';
|
|
5
|
+
export type ButtonProps = BaseButtonProps & ButtonVariationProps & {
|
|
6
6
|
className?: string;
|
|
7
7
|
replace?: boolean;
|
|
8
8
|
submitting?: boolean;
|
package/button/Button.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
|
2
2
|
var _excluded = ["variation", "children", "submitting", "size", "icon", "iconSpacing", "iconAlign", "iconColor", "title", "disabled"];
|
|
3
|
-
function _extends() {
|
|
4
|
-
function _objectWithoutProperties(
|
|
5
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
5
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
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)."; }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { primaryButtonStyles, secondaryButtonStyles, outlinedButtonStyles, textButtonStyles, dangerButtonStyles, linkButtonStyles } from './button-style';
|
package/button/IconButton.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ElementType, ComponentPropsWithRef } from 'react';
|
|
2
2
|
import { OverlayOptions } from '@dfds-ui/theme/states';
|
|
3
3
|
import { PolymorphicComponentProps } from '../common/polymorphic';
|
|
4
|
-
export
|
|
4
|
+
export type IconButtonSize = 'small' | 'medium' | 'large' | 's' | 'm' | 'l';
|
|
5
5
|
export interface IconButtonProps extends PolymorphicComponentProps, ComponentPropsWithRef<'button'> {
|
|
6
6
|
/**
|
|
7
7
|
* Icon to be displayed on the button.
|
|
@@ -71,5 +71,5 @@ export declare const getDefaultIconButtonDimensions: (size: IconButtonSize) => {
|
|
|
71
71
|
height: string;
|
|
72
72
|
width: string;
|
|
73
73
|
};
|
|
74
|
-
declare const IconButton: React.ForwardRefExoticComponent<Pick<IconButtonProps, "type" | "key" | "id" | "name" | "color" | "translate" | "value" | "hidden" | "form" | "slot" | "style" | "title" | "dir" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "ariaLabel" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "disabled" | "size" | "icon" | "tooltip" | "as" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "
|
|
74
|
+
declare const IconButton: React.ForwardRefExoticComponent<Pick<IconButtonProps, "type" | "key" | "id" | "name" | "color" | "translate" | "value" | "hidden" | "form" | "slot" | "style" | "title" | "dir" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "ariaLabel" | "role" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "disabled" | "size" | "icon" | "tooltip" | "as" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "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" | "css" | "disableOverlay" | "disableTooltip" | "hoverColor" | "activeColor" | "focusColor" | "overlayOptions"> & React.RefAttributes<HTMLButtonElement>>;
|
|
75
75
|
export default IconButton;
|
package/button/IconButton.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["type", "tooltip", "title", "size", "icon", "disableTooltip", "disableOverlay", "disabled", "color", "hoverColor", "focusColor", "activeColor", "overlayOptions", "as", "ariaLabel"];
|
|
2
|
-
function _extends() {
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
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)."; }
|
|
6
6
|
import React, { forwardRef } from 'react';
|
|
7
7
|
import { css } from '@emotion/react';
|
package/button/LinkButton.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonProps } from './Button';
|
|
3
|
-
export
|
|
3
|
+
export type LinkButtonProps = React.PropsWithoutRef<JSX.IntrinsicElements['a']> & ButtonProps & {
|
|
4
4
|
href?: string;
|
|
5
5
|
target?: string;
|
|
6
6
|
};
|
package/button/LinkButton.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() {
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import Button from './Button';
|
|
4
4
|
import { theme } from '@dfds-ui/theme';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
type Orientation = 'horizontal' | 'vertical';
|
|
3
|
+
type Alignment = 'left' | 'right' | 'center';
|
|
4
|
+
type ButtonStackProps = {
|
|
5
5
|
align?: Alignment;
|
|
6
6
|
orientation?: Orientation;
|
|
7
7
|
className?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var _excluded = ["align", "orientation", "reverse", "className", "children"];
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
3
|
-
function _extends() {
|
|
4
|
-
function _objectWithoutProperties(
|
|
5
|
-
function _objectWithoutPropertiesLoose(
|
|
6
|
-
function _taggedTemplateLiteral(
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
5
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { css } from '@emotion/react';
|
|
9
9
|
import emotionCloneElement from '../common/emotionCloneElement';
|
package/card/Card.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { SurfaceType } from '../surface';
|
|
3
3
|
export declare const CardContext: React.Context<{}>;
|
|
4
|
-
export
|
|
4
|
+
export type CardContextType = {
|
|
5
5
|
cardSize: 's' | 'm' | 'l' | 'xl';
|
|
6
6
|
cardVariant: 'outline' | 'fill' | 'surface';
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type CardProps = {
|
|
9
9
|
size: 's' | 'm' | 'l' | 'xl';
|
|
10
10
|
variant: 'outline' | 'fill' | 'surface';
|
|
11
11
|
surface?: SurfaceType;
|
package/card/Card.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
|
2
2
|
var _excluded = ["children", "media", "variant", "size", "ratio", "className", "surface"];
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9,
|
|
4
|
-
function _extends() {
|
|
5
|
-
function _objectWithoutProperties(
|
|
6
|
-
function _objectWithoutPropertiesLoose(
|
|
7
|
-
function _slicedToArray(
|
|
3
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
|
4
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
6
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
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."); }
|
|
9
|
-
function _unsupportedIterableToArray(
|
|
10
|
-
function _arrayLikeToArray(
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
11
11
|
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; } }
|
|
12
|
-
function _arrayWithHoles(
|
|
13
|
-
function _taggedTemplateLiteral(
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
14
14
|
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
|
15
15
|
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
16
16
|
import React, { useState } from 'react';
|
|
@@ -79,7 +79,7 @@ var MediaContent = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "product
|
|
|
79
79
|
}, " ", function (props /* outline xl cards and greater than medium */) {
|
|
80
80
|
return props.variant === 'outline' && props.size === 'xl' && !props.reverse && media.greaterThan('l')(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n padding: ", " 0px ", " ", ";\n "])), theme.spacing.s, theme.spacing.s, theme.spacing.s);
|
|
81
81
|
}, " ", function (props /* outline xl cards with reverse and greater than medium */) {
|
|
82
|
-
return props.variant === 'outline' && props.size === 'xl' && props.reverse && media.greaterThan('l')(
|
|
82
|
+
return props.variant === 'outline' && props.size === 'xl' && props.reverse && media.greaterThan('l')(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n padding: ", " ", " ", " 0px;\n "])), theme.spacing.s, theme.spacing.s, theme.spacing.s);
|
|
83
83
|
}, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jYXJkL0NhcmQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1KMEMiLCJmaWxlIjoiLi4vLi4vc3JjL2NhcmQvQ2FyZC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tdW5zYWZlLWNhbGwgKi9cbi8qIGVzbGludC1kaXNhYmxlIEB0eXBlc2NyaXB0LWVzbGludC9uby11bnNhZmUtYXNzaWdubWVudCAqL1xuaW1wb3J0IFJlYWN0LCB7IEZ1bmN0aW9uQ29tcG9uZW50LCBSZWFjdE5vZGUsIHVzZVN0YXRlIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHRoZW1lLCBtZWRpYSB9IGZyb20gJ0BkZmRzLXVpL3RoZW1lJ1xuaW1wb3J0IHsgRmxleEJveFByb3BzIH0gZnJvbSAnLi8uLi9mbGV4Ym94L0ZsZXhCb3gnXG5pbXBvcnQgeyB1c2VEaW1lbnNpb25zIH0gZnJvbSAnQGRmZHMtdWkvaG9va3MnXG5pbXBvcnQgY3ggZnJvbSAnY2xhc3NuYW1lcydcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuaW1wb3J0IHsgdXNlU3VyZmFjZUNvbnRleHQsIFN1cmZhY2VUeXBlLCBNYXliZVN1cmZhY2VQcm92aWRlciB9IGZyb20gJy4uL3N1cmZhY2UnXG5cbmV4cG9ydCBjb25zdCBDYXJkQ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G4gICAgICB9fVxuICAgID5cbiAgICAgIDxNYXliZVN1cmZhY2VQcm92aWRlciBzdXJmYWNlPXtzdXJmYWNlUHJvcH0+XG4gICAgICAgIDxDYXJkQ29udGFpbmVyXG4gICAgICAgICAgY3NzPXtjc3NgXG4gICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke2JhY2tncm91bmRDb2xvcn07XG4gICAgICAgICAgICBjb2xvcjogJHt0ZXh0Q29sb3JzLnByaW1hcnl9O1xuICAgICAgICAgIGB9XG4gICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgICB2YXJpYW50PXt2YXJpYW50fVxuICAgICAgICAgIHJlZj17cmVmfVxuICAgICAgICAgIGNsYXNzTmFtZT17Y3goJ0NhcmRDb250YWluZXInLCBjbGFzc05hbWUpfVxuICAgICAgICAgIHsuLi5yZXN0fVxuICAgICAgICA+XG4gICAgICAgICAge21lZGlhICYmIChcbiAgICAgICAgICAgIDxNZWRpYUNvbnRhaW5lciByYXRpbz17bWVkaWFSYXRpbyAvIChtZWRpYVJhdGlvICsgY29udGVudFJhdGlvKX0+XG4gICAgICAgICAgICAgIDxNZWRpYUNvbnRlbnQgc2l6ZT17c2l6ZX0gdmFyaWFudD17dmFyaWFudH0gY2xhc3NOYW1lPVwiTWVkaWFDb250ZW50XCIgey4uLnJlc3R9PlxuICAgICAgICAgICAgICAgIHttZWRpYX1cbiAgICAgICAgICAgICAgPC9NZWRpYUNvbnRlbnQ+XG4gICAgICAgICAgICA8L01lZGlhQ29udGFpbmVyPlxuICAgICAgICAgICl9XG4gICAgICAgICAge2NoaWxkcmVuICYmIChcbiAgICAgICAgICAgIDxDYXJkQ29udGVudFxuICAgICAgICAgICAgICBjbGFzc05hbWU9XCJDYXJkQ29udGVudFwiXG4gICAgICAgICAgICAgIHZhcmlhbnQ9e3ZhcmlhbnR9XG4gICAgICAgICAgICAgIHNpemU9e3NpemV9XG4gICAgICAgICAgICAgIHdpZHRoPXt3aWR0aH1cbiAgICAgICAgICAgICAgcmV2ZXJzZT17cmVzdC5yZXZlcnNlID09IHRydWV9XG4gICAgICAgICAgICAgIHJhdGlvPXtjb250ZW50UmF0aW8gLyAobWVkaWFSYXRpbyArIGNvbnRlbnRSYXRpbyl9XG4gICAgICAgICAgICAgIHsuLi5yZXN0fVxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICB7Y2hpbGRyZW59XG4gICAgICAgICAgICA8L0NhcmRDb250ZW50PlxuICAgICAgICAgICl9XG4gICAgICAgIDwvQ2FyZENvbnRhaW5lcj5cbiAgICAgIDwvTWF5YmVTdXJmYWNlUHJvdmlkZXI+XG4gICAgPC9DYXJkQ29udGV4dC5Qcm92aWRlcj5cbiAgKVxufVxuXG5leHBvcnQgZGVmYXVsdCBDYXJkXG4iXX0= */"));
|
|
84
84
|
var Card = function Card(_ref) {
|
|
85
85
|
var children = _ref.children,
|
package/card/CardActions.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
|
2
2
|
var _excluded = ["children"];
|
|
3
|
-
function _extends() {
|
|
4
|
-
function _objectWithoutProperties(
|
|
5
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
5
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { FlexBox } from '../flexbox';
|
|
8
8
|
import { theme } from '@dfds-ui/theme';
|
package/card/CardContent.d.ts
CHANGED
package/card/CardContent.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
|
2
2
|
var _excluded = ["children", "color"];
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { theme } from '@dfds-ui/theme';
|
|
7
7
|
import { Text } from '@dfds-ui/typography';
|
package/card/CardMedia.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type CardMediaProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Media component to be displayed
|
|
5
5
|
*/
|
|
@@ -13,6 +13,6 @@ export declare type CardMediaProps = {
|
|
|
13
13
|
*/
|
|
14
14
|
className?: string;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type AspectRatio = '2:1' | '3:2';
|
|
17
17
|
declare const CardMedia: FunctionComponent<CardMediaProps>;
|
|
18
18
|
export default CardMedia;
|
package/card/CardMedia.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
|
2
2
|
var _excluded = ["children", "media", "aspectRatio"];
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
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)."; }
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
package/card/CardPriceTag.d.ts
CHANGED
package/card/CardPriceTag.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
|
2
2
|
var _excluded = ["price", "topText", "bottomText", "currency"];
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
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)."; }
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
package/card/CardTitle.d.ts
CHANGED
package/card/CardTitle.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { css as _css } from "@emotion/react";
|
|
2
2
|
var _excluded = ["children", "color", "largeTitle"];
|
|
3
|
-
function _extends() {
|
|
4
|
-
function _objectWithoutProperties(
|
|
5
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
5
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { Text } from '@dfds-ui/typography';
|
|
8
8
|
import { theme, useBreakpoint } from '@dfds-ui/theme';
|
package/chip/Chip.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
type InteractionEvent = React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>;
|
|
3
|
+
export type ChipProps = {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
dismissable?: boolean;
|
|
6
6
|
disabled?: boolean;
|
package/chip/Chip.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
|
2
2
|
var _excluded = ["children", "dismissable", "disabled", "selectable", "selected", "onToggle", "onDismiss", "className"];
|
|
3
|
-
function _extends() {
|
|
4
|
-
function _slicedToArray(
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5
5
|
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."); }
|
|
6
|
-
function _unsupportedIterableToArray(
|
|
7
|
-
function _arrayLikeToArray(
|
|
6
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
7
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8
8
|
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; } }
|
|
9
|
-
function _arrayWithHoles(
|
|
10
|
-
function _objectWithoutProperties(
|
|
11
|
-
function _objectWithoutPropertiesLoose(
|
|
9
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
10
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
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
|
import React, { useState } from 'react';
|
|
14
14
|
import { css } from '@emotion/react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { CollapseProps } from '@kunukn/react-collapse';
|
|
3
|
-
export
|
|
3
|
+
export type AccordionHeaderProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Add heading to the Accordion.
|
|
6
6
|
*/
|
|
@@ -35,7 +35,7 @@ export declare type AccordionHeaderProps = {
|
|
|
35
35
|
onToggle?: () => void;
|
|
36
36
|
};
|
|
37
37
|
export declare const AccordionHeader: React.FunctionComponent<AccordionHeaderProps>;
|
|
38
|
-
export
|
|
38
|
+
export type AccordionProps = {
|
|
39
39
|
/**
|
|
40
40
|
* Add heading to the Accordion.
|
|
41
41
|
*/
|