@dfds-ui/react-components 2.2.0-alpha.853cab6b → 2.2.0-alpha.88cbd504
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 +70 -51
- package/accordion/AccordionContent.d.ts +1 -1
- package/accordion/AccordionContent.js +13 -6
- package/accordion/AccordionSmall.d.ts +2 -2
- package/accordion/AccordionSmall.js +52 -38
- package/app-bar/AppBar.d.ts +3 -3
- package/app-bar/AppBar.js +54 -40
- package/app-bar/AppBarContext.d.ts +3 -3
- package/app-bar/AppBarContext.js +7 -6
- package/app-bar/AppBarDrawer.d.ts +2 -2
- package/app-bar/AppBarDrawer.js +14 -7
- package/app-bar/AppBarIconButton.d.ts +2 -2
- package/app-bar/AppBarIconButton.js +11 -6
- package/app-bar/AppBarItem.d.ts +3 -3
- package/app-bar/AppBarItem.js +76 -60
- package/app-bar/AppBarListItem.d.ts +11 -11
- package/assertions/banner/Banner.d.ts +3 -3
- package/assertions/banner/Banner.js +71 -57
- package/assertions/banner/BannerAction.d.ts +1 -1
- package/assertions/banner/BannerAction.js +10 -5
- package/assertions/banner/BannerTypography.js +9 -4
- package/assertions/toast/Toast.d.ts +1 -1
- package/assertions/toast/Toast.js +28 -17
- package/assertions/toast/Toaster.d.ts +2 -2
- package/assertions/toast/Toaster.js +52 -56
- package/badge/Badge.d.ts +1 -1
- package/badge/Badge.js +17 -9
- package/button/BadgeIcon.d.ts +1 -1
- package/button/BadgeIcon.js +18 -16
- package/button/BaseButton.d.ts +6 -6
- package/button/BaseButton.js +1 -1
- package/button/Button.d.ts +4 -4
- package/button/Button.js +38 -30
- package/button/IconButton.d.ts +2 -2
- package/button/IconButton.js +24 -18
- package/button/LinkButton.d.ts +1 -1
- package/button/LinkButton.js +9 -4
- package/button/button-style.d.ts +7 -7
- package/button-stack/ButtonStack.d.ts +3 -3
- package/button-stack/ButtonStack.js +30 -22
- package/card/Card.d.ts +2 -2
- package/card/Card.js +49 -35
- package/card/CardActions.js +13 -6
- package/card/CardContent.d.ts +1 -1
- package/card/CardContent.js +19 -9
- package/card/CardMedia.d.ts +2 -2
- package/card/CardMedia.js +15 -6
- package/card/CardPriceTag.d.ts +1 -1
- package/card/CardPriceTag.js +22 -4
- package/card/CardTitle.d.ts +1 -1
- package/card/CardTitle.js +25 -15
- package/chip/Chip.d.ts +4 -4
- package/chip/Chip.js +22 -13
- package/cjs/accordion/Accordion.d.ts +2 -2
- package/cjs/accordion/Accordion.js +63 -50
- package/cjs/accordion/AccordionContent.d.ts +1 -1
- package/cjs/accordion/AccordionContent.js +7 -6
- package/cjs/accordion/AccordionSmall.d.ts +2 -2
- package/cjs/accordion/AccordionSmall.js +45 -37
- package/cjs/app-bar/AppBar.d.ts +3 -3
- package/cjs/app-bar/AppBar.js +51 -41
- package/cjs/app-bar/AppBarContext.d.ts +3 -3
- package/cjs/app-bar/AppBarContext.js +5 -4
- package/cjs/app-bar/AppBarDrawer.d.ts +2 -2
- package/cjs/app-bar/AppBarDrawer.js +8 -8
- package/cjs/app-bar/AppBarIconButton.d.ts +2 -2
- package/cjs/app-bar/AppBarIconButton.js +7 -7
- package/cjs/app-bar/AppBarItem.d.ts +3 -3
- package/cjs/app-bar/AppBarItem.js +69 -60
- package/cjs/app-bar/AppBarListItem.d.ts +11 -11
- package/cjs/app-bar/AppBarListItem.js +1 -2
- package/cjs/assertions/banner/Banner.d.ts +3 -3
- package/cjs/assertions/banner/Banner.js +62 -55
- package/cjs/assertions/banner/BannerAction.d.ts +1 -1
- package/cjs/assertions/banner/BannerAction.js +5 -4
- package/cjs/assertions/banner/BannerTypography.js +9 -7
- package/cjs/assertions/toast/Toast.d.ts +1 -1
- package/cjs/assertions/toast/Toast.js +22 -17
- package/cjs/assertions/toast/Toaster.d.ts +2 -2
- package/cjs/assertions/toast/Toaster.js +36 -28
- package/cjs/badge/Badge.d.ts +1 -1
- package/cjs/badge/Badge.js +11 -7
- package/cjs/button/BadgeIcon.d.ts +1 -1
- package/cjs/button/BadgeIcon.js +19 -17
- package/cjs/button/BaseButton.d.ts +6 -6
- package/cjs/button/BaseButton.js +3 -5
- package/cjs/button/Button.d.ts +4 -4
- package/cjs/button/Button.js +31 -29
- package/cjs/button/IconButton.d.ts +2 -2
- package/cjs/button/IconButton.js +20 -20
- package/cjs/button/LinkButton.d.ts +1 -1
- package/cjs/button/LinkButton.js +6 -6
- package/cjs/button/button-style.d.ts +7 -7
- package/cjs/button/button-style.js +8 -15
- package/cjs/button-stack/ButtonStack.d.ts +3 -3
- package/cjs/button-stack/ButtonStack.js +22 -20
- package/cjs/card/Card.d.ts +2 -2
- package/cjs/card/Card.js +39 -29
- package/cjs/card/CardActions.js +7 -7
- package/cjs/card/CardContent.d.ts +1 -1
- package/cjs/card/CardContent.js +13 -9
- package/cjs/card/CardMedia.d.ts +2 -2
- package/cjs/card/CardMedia.js +9 -6
- package/cjs/card/CardPriceTag.d.ts +1 -1
- package/cjs/card/CardPriceTag.js +16 -4
- package/cjs/card/CardTitle.d.ts +1 -1
- package/cjs/card/CardTitle.js +16 -12
- package/cjs/chip/Chip.d.ts +4 -4
- package/cjs/chip/Chip.js +18 -15
- package/cjs/common/LockBodyScroll.d.ts +4 -3
- package/cjs/common/LockBodyScroll.js +23 -16
- package/cjs/common/arrow.d.ts +2 -2
- package/cjs/common/emotionCloneElement.js +1 -3
- package/cjs/common/intent.d.ts +1 -1
- package/cjs/common/polymorphic.d.ts +3 -3
- package/cjs/common/polymorphic.js +9 -5
- package/cjs/common/use-media.js +1 -1
- package/cjs/common/useOnClickOutside.d.ts +2 -2
- package/cjs/common/useOnClickOutside.js +2 -2
- package/cjs/common/utils.d.ts +3 -3
- package/cjs/counter/Counter.d.ts +3 -2
- package/cjs/counter/Counter.js +57 -49
- package/cjs/counter/PluralCounter.d.ts +4 -3
- package/cjs/counter/PluralCounter.js +15 -14
- package/cjs/data-table/DataTable.d.ts +1 -1
- package/cjs/data-table/DataTable.js +47 -39
- package/cjs/divider/Divider.d.ts +2 -2
- package/cjs/divider/Divider.js +6 -6
- package/cjs/drawer/Drawer.d.ts +6 -5
- package/cjs/drawer/Drawer.js +12 -10
- package/cjs/dropdown-menu/Dropdown.d.ts +3 -3
- package/cjs/dropdown-menu/Dropdown.js +39 -35
- package/cjs/dropdown-menu/DropdownContext.d.ts +4 -4
- package/cjs/dropdown-menu/DropdownContext.js +7 -8
- package/cjs/dropdown-menu/MenuCheckbox.js +24 -23
- package/cjs/dropdown-menu/MenuItem.d.ts +2 -2
- package/cjs/dropdown-menu/MenuItem.js +30 -28
- package/cjs/dropdown-menu/MenuTitle.js +15 -12
- package/cjs/elevation/index.d.ts +2 -2
- package/cjs/elevation/index.js +1 -2
- package/cjs/flexbox/FlexBox.d.ts +5 -5
- package/cjs/flexbox/FlexBox.js +2 -4
- package/cjs/footer/Footer.d.ts +2 -2
- package/cjs/footer/Footer.js +13 -9
- package/cjs/forms/assistive-text/AssistiveText.d.ts +3 -3
- package/cjs/forms/assistive-text/AssistiveText.js +1 -2
- package/cjs/forms/asterisk/Asterisk.js +5 -4
- package/cjs/forms/checkbox/Checkbox.d.ts +6 -6
- package/cjs/forms/checkbox/Checkbox.js +41 -37
- package/cjs/forms/checkbox/ExampleControlComponent.d.ts +1 -1
- package/cjs/forms/checkbox/ExampleControlComponent.js +7 -7
- package/cjs/forms/email-field/EmailField.d.ts +19 -3
- package/cjs/forms/email-field/EmailField.js +12 -8
- package/cjs/forms/error-text/ErrorText.d.ts +3 -3
- package/cjs/forms/error-text/ErrorText.js +1 -2
- package/cjs/forms/field/Field.d.ts +1 -1
- package/cjs/forms/field/Field.js +10 -6
- package/cjs/forms/index.d.ts +3 -3
- package/cjs/forms/input/Input.d.ts +4 -4
- package/cjs/forms/input/Input.js +34 -33
- package/cjs/forms/input/InputComposition.d.ts +12 -12
- package/cjs/forms/input/InputComposition.js +40 -35
- package/cjs/forms/label/Label.d.ts +1 -1
- package/cjs/forms/label/Label.js +6 -3
- package/cjs/forms/number-field/NumberField.d.ts +19 -3
- package/cjs/forms/number-field/NumberField.js +12 -8
- package/cjs/forms/password-field/PasswordField.d.ts +2 -2
- package/cjs/forms/password-field/PasswordField.js +13 -14
- package/cjs/forms/radio/Radio.d.ts +4 -4
- package/cjs/forms/radio/Radio.js +25 -23
- package/cjs/forms/reactselect/ReactSelect.d.ts +14 -14
- package/cjs/forms/reactselect/ReactSelect.js +76 -68
- package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +3 -3
- package/cjs/forms/searchable-select/AsyncSearchableSelect.js +47 -38
- package/cjs/forms/select/Select.d.ts +5 -5
- package/cjs/forms/select/Select.js +33 -31
- package/cjs/forms/select-field/SelectField.d.ts +13 -5
- package/cjs/forms/select-field/SelectField.js +37 -34
- package/cjs/forms/switch/Switch.d.ts +2 -2
- package/cjs/forms/switch/Switch.js +41 -35
- package/cjs/forms/tel-field/TelField.d.ts +19 -3
- package/cjs/forms/tel-field/TelField.js +12 -8
- package/cjs/forms/text-field/TextField.d.ts +22 -5
- package/cjs/forms/text-field/TextField.js +42 -40
- package/cjs/global-styles/GlobalStyles.js +3 -2
- package/cjs/global-styles/ResetStyles.js +2 -1
- package/cjs/global-styles/sanitize.d.ts +1 -1
- package/cjs/global-styles/sanitize.js +2 -3
- package/cjs/grid/Column.d.ts +1 -1
- package/cjs/grid/Column.js +7 -7
- package/cjs/grid/Container.d.ts +2 -2
- package/cjs/grid/Container.js +34 -29
- package/cjs/hero/Hero.d.ts +2 -2
- package/cjs/hero/Hero.js +42 -22
- package/cjs/hero/stripes.d.ts +2 -2
- package/cjs/hero/stripes.js +177 -162
- package/cjs/ie-banner/IEBanner.d.ts +1 -1
- package/cjs/ie-banner/IEBanner.js +13 -8
- package/cjs/index.d.ts +0 -1
- package/cjs/index.js +0 -12
- package/cjs/layout/LayoutLegacy.js +2 -1
- package/cjs/lists/FeatureList.d.ts +7 -7
- package/cjs/lists/FeatureList.js +16 -13
- package/cjs/lists/ListAddon.d.ts +1 -1
- package/cjs/lists/ListAddon.js +10 -7
- package/cjs/lists/ListDivider.d.ts +1 -1
- package/cjs/lists/ListDivider.js +6 -6
- package/cjs/lists/ListIcon.d.ts +2 -2
- package/cjs/lists/ListIcon.js +6 -6
- package/cjs/lists/ListItem.d.ts +2 -2
- package/cjs/lists/ListItem.js +7 -6
- package/cjs/lists/ListText.d.ts +3 -3
- package/cjs/lists/ListText.js +6 -6
- package/cjs/lists/ListTextGroup.d.ts +1 -1
- package/cjs/lists/ListTextGroup.js +6 -6
- package/cjs/lists/ListTitle.js +6 -6
- package/cjs/loader/DfdsLoader.d.ts +1 -1
- package/cjs/loader/DfdsLoader.js +29 -23
- package/cjs/loader/Loader.d.ts +1 -1
- package/cjs/loader/Loader.js +9 -3
- package/cjs/localization/LocaleFlag.d.ts +1 -1
- package/cjs/localization/LocaleFlag.js +5 -4
- package/cjs/localization/locales.d.ts +2 -2
- package/cjs/localization/locales.js +3 -6
- package/cjs/logo/Logo.d.ts +1 -1
- package/cjs/logo/Logo.js +12 -9
- package/cjs/media/index.js +1 -2
- package/cjs/menu/Menu.d.ts +1 -1
- package/cjs/menu/Menu.js +29 -23
- package/cjs/mobile-stepper/MobileStepper.d.ts +1 -1
- package/cjs/mobile-stepper/MobileStepper.js +17 -15
- package/cjs/nav-bar/NavBar.d.ts +9 -9
- package/cjs/nav-bar/NavBar.js +34 -24
- package/cjs/nav-menu/NavMenuItem.d.ts +1 -1
- package/cjs/nav-menu/NavMenuItem.js +13 -11
- package/cjs/pagination/Pagination.d.ts +2 -2
- package/cjs/pagination/Pagination.js +50 -38
- package/cjs/pagination/Pagination.styles.d.ts +6 -6
- package/cjs/pagination/Pagination.styles.js +6 -12
- package/cjs/popper/Popper.d.ts +3 -3
- package/cjs/popper/Popper.js +21 -17
- package/cjs/progress-bar/ProgressBar.d.ts +1 -1
- package/cjs/progress-bar/ProgressBar.js +3 -3
- package/cjs/schedule/ScheduleItem.d.ts +8 -8
- package/cjs/schedule/ScheduleItem.js +11 -8
- package/cjs/schedule/ScheduleList.d.ts +3 -3
- package/cjs/schedule/ScheduleList.js +10 -11
- package/cjs/side-sheet/SideSheet.d.ts +4 -4
- package/cjs/side-sheet/SideSheet.js +41 -33
- package/cjs/side-sheet/SideSheetCloseButton.d.ts +1 -1
- package/cjs/side-sheet/SideSheetCloseButton.js +6 -6
- package/cjs/side-sheet/SideSheetContent.d.ts +1 -1
- package/cjs/side-sheet/SideSheetContent.js +10 -7
- package/cjs/side-sheet/SideSheetFooter.d.ts +1 -1
- package/cjs/side-sheet/SideSheetFooter.js +10 -7
- package/cjs/side-sheet/SideSheetHeader.d.ts +1 -1
- package/cjs/side-sheet/SideSheetHeader.js +10 -7
- package/cjs/side-sheet/SideSheetHeadline.d.ts +1 -1
- package/cjs/side-sheet/SideSheetHeadline.js +6 -5
- package/cjs/site-layout/SiteLayout.d.ts +11 -11
- package/cjs/site-layout/SiteLayout.js +30 -19
- package/cjs/skeleton/Skeleton.d.ts +1 -1
- package/cjs/skeleton/Skeleton.js +6 -6
- package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +7 -7
- package/cjs/social-media-link-list/SocialMediaLinkList.js +64 -58
- package/cjs/spinner/Spinner.d.ts +7 -7
- package/cjs/spinner/Spinner.js +13 -13
- package/cjs/step/Step.d.ts +1 -1
- package/cjs/step/Step.js +29 -20
- package/cjs/step/Step.styles.d.ts +4 -4
- package/cjs/step/Step.styles.js +4 -8
- package/cjs/step/StepButton.d.ts +2 -2
- package/cjs/step/StepButton.js +30 -27
- package/cjs/step/StepContent.d.ts +1 -1
- package/cjs/step/StepContent.js +12 -10
- package/cjs/step/StepContext.d.ts +1 -1
- package/cjs/step/StepContext.js +1 -2
- package/cjs/step/StepLabel.d.ts +1 -1
- package/cjs/step/StepLabel.js +9 -7
- package/cjs/stepper/Stepper.d.ts +1 -1
- package/cjs/stepper/Stepper.js +12 -10
- package/cjs/stepper/StepperContext.d.ts +1 -1
- package/cjs/stepper/StepperContext.js +1 -2
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.js +10 -7
- package/cjs/styles/media.d.ts +1 -1
- package/cjs/styles/media.js +2 -4
- package/cjs/styles/style-helpers.d.ts +1 -1
- package/cjs/styles/theme.d.ts +1 -1
- package/cjs/styles/theme.js +2 -4
- package/cjs/surface/Surface.d.ts +6 -6
- package/cjs/surface/Surface.js +20 -14
- package/cjs/tab/Tab.d.ts +3 -3
- package/cjs/tab/Tab.js +9 -8
- package/cjs/tab/TabPanel.d.ts +2 -2
- package/cjs/tab/TabPanel.js +7 -7
- package/cjs/tab/Tabs.d.ts +3 -3
- package/cjs/tab/Tabs.js +32 -31
- package/cjs/tab/TabsContext.d.ts +3 -3
- package/cjs/tab/TabsContext.js +7 -8
- package/cjs/table/Table.d.ts +3 -3
- package/cjs/table/Table.js +17 -17
- package/cjs/table/TableBody.d.ts +2 -2
- package/cjs/table/TableBody.js +11 -12
- package/cjs/table/TableDataCell.d.ts +2 -2
- package/cjs/table/TableDataCell.js +13 -14
- package/cjs/table/TableHead.d.ts +3 -3
- package/cjs/table/TableHead.js +12 -15
- package/cjs/table/TableHeaderCell.d.ts +4 -4
- package/cjs/table/TableHeaderCell.js +14 -15
- package/cjs/table/TableRow.d.ts +2 -2
- package/cjs/table/TableRow.js +12 -14
- package/cjs/test/Test.js +5 -4
- package/cjs/tooltip/Tooltip.d.ts +3 -3
- package/cjs/tooltip/Tooltip.js +31 -25
- package/cjs/typography/Headlines.d.ts +36 -36
- package/cjs/typography/Headlines.js +25 -31
- package/cjs/typography/Text.d.ts +2 -2
- package/cjs/typography/Text.js +2 -3
- package/common/LockBodyScroll.d.ts +4 -3
- package/common/LockBodyScroll.js +28 -16
- package/common/arrow.d.ts +2 -2
- package/common/emotionCloneElement.js +1 -2
- package/common/intent.d.ts +1 -1
- package/common/polymorphic.d.ts +3 -3
- package/common/polymorphic.js +9 -3
- package/common/use-media.js +3 -3
- package/common/useOnClickOutside.d.ts +2 -2
- package/common/useOnClickOutside.js +2 -2
- package/common/utils.d.ts +3 -3
- package/counter/Counter.d.ts +3 -2
- package/counter/Counter.js +59 -51
- package/counter/PluralCounter.d.ts +4 -3
- package/counter/PluralCounter.js +24 -17
- package/data-table/DataTable.d.ts +1 -1
- package/data-table/DataTable.js +54 -41
- package/divider/Divider.d.ts +2 -2
- package/divider/Divider.js +10 -5
- package/drawer/Drawer.d.ts +6 -5
- package/drawer/Drawer.js +19 -11
- package/dropdown-menu/Dropdown.d.ts +3 -3
- package/dropdown-menu/Dropdown.js +47 -38
- package/dropdown-menu/DropdownContext.d.ts +4 -4
- package/dropdown-menu/DropdownContext.js +5 -4
- package/dropdown-menu/MenuCheckbox.js +24 -17
- package/dropdown-menu/MenuItem.d.ts +2 -2
- package/dropdown-menu/MenuItem.js +26 -18
- package/dropdown-menu/MenuTitle.js +14 -11
- package/elevation/index.d.ts +2 -2
- package/flexbox/FlexBox.d.ts +5 -5
- package/flexbox/FlexBox.js +2 -2
- package/footer/Footer.d.ts +2 -2
- package/footer/Footer.js +12 -7
- package/forms/assistive-text/AssistiveText.d.ts +3 -3
- package/forms/asterisk/Asterisk.js +4 -2
- package/forms/checkbox/Checkbox.d.ts +6 -6
- package/forms/checkbox/Checkbox.js +50 -41
- package/forms/checkbox/ExampleControlComponent.d.ts +1 -1
- package/forms/checkbox/ExampleControlComponent.js +15 -8
- package/forms/email-field/EmailField.d.ts +19 -3
- package/forms/email-field/EmailField.js +16 -6
- package/forms/error-text/ErrorText.d.ts +3 -3
- package/forms/field/Field.d.ts +1 -1
- package/forms/field/Field.js +9 -4
- package/forms/index.d.ts +3 -3
- package/forms/input/Input.d.ts +4 -4
- package/forms/input/Input.js +42 -36
- package/forms/input/InputComposition.d.ts +12 -12
- package/forms/input/InputComposition.js +41 -31
- package/forms/label/Label.d.ts +1 -1
- package/forms/label/Label.js +12 -4
- package/forms/number-field/NumberField.d.ts +19 -3
- package/forms/number-field/NumberField.js +17 -7
- package/forms/password-field/PasswordField.d.ts +2 -2
- package/forms/password-field/PasswordField.js +19 -14
- package/forms/radio/Radio.d.ts +4 -4
- package/forms/radio/Radio.js +33 -25
- package/forms/reactselect/ReactSelect.d.ts +14 -14
- package/forms/reactselect/ReactSelect.js +73 -67
- package/forms/searchable-select/AsyncSearchableSelect.d.ts +3 -3
- package/forms/searchable-select/AsyncSearchableSelect.js +51 -39
- package/forms/select/Select.d.ts +5 -5
- package/forms/select/Select.js +41 -34
- package/forms/select-field/SelectField.d.ts +13 -5
- package/forms/select-field/SelectField.js +44 -36
- package/forms/switch/Switch.d.ts +2 -2
- package/forms/switch/Switch.js +52 -40
- package/forms/tel-field/TelField.d.ts +19 -3
- package/forms/tel-field/TelField.js +16 -6
- package/forms/text-field/TextField.d.ts +22 -5
- package/forms/text-field/TextField.js +50 -42
- package/global-styles/GlobalStyles.js +3 -3
- package/global-styles/ResetStyles.js +2 -2
- package/global-styles/sanitize.d.ts +1 -1
- package/grid/Column.d.ts +1 -1
- package/grid/Column.js +14 -7
- package/grid/Container.d.ts +2 -2
- package/grid/Container.js +41 -35
- package/hero/Hero.d.ts +2 -2
- package/hero/Hero.js +42 -20
- package/hero/stripes.d.ts +2 -2
- package/hero/stripes.js +176 -160
- package/ie-banner/IEBanner.d.ts +1 -1
- package/ie-banner/IEBanner.js +14 -8
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/layout/LayoutLegacy.js +2 -2
- package/lists/FeatureList.d.ts +7 -7
- package/lists/FeatureList.js +21 -11
- package/lists/ListAddon.d.ts +1 -1
- package/lists/ListAddon.js +13 -6
- package/lists/ListDivider.d.ts +1 -1
- package/lists/ListDivider.js +10 -5
- package/lists/ListIcon.d.ts +2 -2
- package/lists/ListIcon.js +10 -5
- package/lists/ListItem.d.ts +2 -2
- package/lists/ListItem.js +13 -6
- package/lists/ListText.d.ts +3 -3
- package/lists/ListText.js +10 -5
- package/lists/ListTextGroup.d.ts +1 -1
- package/lists/ListTextGroup.js +10 -5
- package/lists/ListTitle.js +10 -5
- package/loader/DfdsLoader.d.ts +1 -1
- package/loader/DfdsLoader.js +26 -20
- package/loader/Loader.d.ts +1 -1
- package/loader/Loader.js +8 -2
- package/localization/LocaleFlag.d.ts +1 -1
- package/localization/LocaleFlag.js +10 -5
- package/localization/locales.d.ts +2 -2
- package/logo/Logo.d.ts +1 -1
- package/logo/Logo.js +14 -7
- package/menu/Menu.d.ts +1 -1
- package/menu/Menu.js +33 -21
- package/mobile-stepper/MobileStepper.d.ts +1 -1
- package/mobile-stepper/MobileStepper.js +26 -18
- package/nav-bar/NavBar.d.ts +9 -9
- package/nav-bar/NavBar.js +41 -23
- package/nav-menu/NavMenuItem.d.ts +1 -1
- package/nav-menu/NavMenuItem.js +12 -10
- package/package.json +16 -20
- package/pagination/Pagination.d.ts +2 -2
- package/pagination/Pagination.js +53 -35
- package/pagination/Pagination.styles.d.ts +6 -6
- package/popper/Popper.d.ts +3 -3
- package/popper/Popper.js +27 -17
- package/progress-bar/ProgressBar.d.ts +1 -1
- package/progress-bar/ProgressBar.js +2 -2
- package/schedule/ScheduleItem.d.ts +8 -8
- package/schedule/ScheduleItem.js +9 -4
- package/schedule/ScheduleList.d.ts +3 -3
- package/schedule/ScheduleList.js +16 -10
- package/side-sheet/SideSheet.d.ts +4 -4
- package/side-sheet/SideSheet.js +47 -34
- package/side-sheet/SideSheetCloseButton.d.ts +1 -1
- package/side-sheet/SideSheetCloseButton.js +10 -5
- package/side-sheet/SideSheetContent.d.ts +1 -1
- package/side-sheet/SideSheetContent.js +17 -8
- package/side-sheet/SideSheetFooter.d.ts +1 -1
- package/side-sheet/SideSheetFooter.js +17 -8
- package/side-sheet/SideSheetHeader.d.ts +1 -1
- package/side-sheet/SideSheetHeader.js +17 -8
- package/side-sheet/SideSheetHeadline.d.ts +1 -1
- package/side-sheet/SideSheetHeadline.js +5 -4
- package/site-layout/SiteLayout.d.ts +11 -11
- package/site-layout/SiteLayout.js +31 -12
- package/skeleton/Skeleton.d.ts +1 -1
- package/skeleton/Skeleton.js +10 -5
- package/social-media-link-list/SocialMediaLinkList.d.ts +7 -7
- package/social-media-link-list/SocialMediaLinkList.js +69 -55
- package/spinner/Spinner.d.ts +7 -7
- package/spinner/Spinner.js +17 -10
- package/step/Step.d.ts +1 -1
- package/step/Step.js +34 -20
- package/step/Step.styles.d.ts +4 -4
- package/step/StepButton.d.ts +2 -2
- package/step/StepButton.js +27 -19
- package/step/StepContent.d.ts +1 -1
- package/step/StepContent.js +11 -9
- package/step/StepContext.d.ts +1 -1
- package/step/StepLabel.d.ts +1 -1
- package/step/StepLabel.js +8 -6
- package/stepper/Stepper.d.ts +1 -1
- package/stepper/Stepper.js +13 -11
- package/stepper/StepperContext.d.ts +1 -1
- package/stepper-feedback-message/StepperFeedbackMessage.js +9 -6
- package/styles/media.d.ts +1 -1
- package/styles/style-helpers.d.ts +1 -1
- package/styles/theme.d.ts +1 -1
- package/surface/Surface.d.ts +6 -6
- package/surface/Surface.js +17 -14
- package/tab/Tab.d.ts +3 -3
- package/tab/Tab.js +18 -11
- package/tab/TabPanel.d.ts +2 -2
- package/tab/TabPanel.js +6 -5
- package/tab/Tabs.d.ts +3 -3
- package/tab/Tabs.js +46 -39
- package/tab/TabsContext.d.ts +3 -3
- package/tab/TabsContext.js +5 -4
- package/table/Table.d.ts +3 -3
- package/table/Table.js +23 -17
- package/table/TableBody.d.ts +2 -2
- package/table/TableBody.js +15 -10
- package/table/TableDataCell.d.ts +2 -2
- package/table/TableDataCell.js +17 -12
- package/table/TableHead.d.ts +3 -3
- package/table/TableHead.js +13 -12
- package/table/TableHeaderCell.d.ts +4 -4
- package/table/TableHeaderCell.js +18 -13
- package/table/TableRow.d.ts +2 -2
- package/table/TableRow.js +14 -14
- package/test/Test.js +4 -2
- package/tooltip/Tooltip.d.ts +3 -3
- package/tooltip/Tooltip.js +34 -24
- package/typography/Headlines.d.ts +36 -36
- package/typography/Headlines.js +24 -17
- package/typography/Text.d.ts +2 -2
- package/cjs/date-range-picker/DatePickerDefaultStyles.d.ts +0 -2
- package/cjs/date-range-picker/DatePickerDefaultStyles.js +0 -19
- package/cjs/date-range-picker/DatePickerDfdsStyles.d.ts +0 -2
- package/cjs/date-range-picker/DatePickerDfdsStyles.js +0 -11
- package/cjs/date-range-picker/DateRangePicker.d.ts +0 -33
- package/cjs/date-range-picker/DateRangePicker.js +0 -263
- package/cjs/date-range-picker/index.d.ts +0 -1
- package/cjs/date-range-picker/index.js +0 -13
- package/date-range-picker/DatePickerDefaultStyles.d.ts +0 -2
- package/date-range-picker/DatePickerDefaultStyles.js +0 -12
- package/date-range-picker/DatePickerDfdsStyles.d.ts +0 -2
- package/date-range-picker/DatePickerDfdsStyles.js +0 -4
- package/date-range-picker/DateRangePicker.d.ts +0 -33
- package/date-range-picker/DateRangePicker.js +0 -310
- package/date-range-picker/index.d.ts +0 -1
- package/date-range-picker/index.js +0 -1
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Shared react components within DFDS",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "2.2.0-alpha.
|
|
6
|
+
"version": "2.2.0-alpha.88cbd504",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./cjs/index.js",
|
|
9
9
|
"module": "./index.js",
|
|
@@ -12,31 +12,27 @@
|
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"@emotion/react": "11.14.0",
|
|
14
14
|
"@emotion/styled": "11.14.1",
|
|
15
|
-
"react": ">=
|
|
16
|
-
"react-
|
|
17
|
-
"react-
|
|
18
|
-
"react-select": "^5.0.0"
|
|
15
|
+
"react": ">= 19.0.0",
|
|
16
|
+
"react-dom": ">= 19.0.0",
|
|
17
|
+
"react-select": "^5.10.2"
|
|
19
18
|
},
|
|
20
19
|
"dependencies": {
|
|
21
|
-
"@dfds-ui/colors": "2.2.0-alpha.
|
|
22
|
-
"@dfds-ui/fonts": "2.2.0-alpha.
|
|
23
|
-
"@dfds-ui/hooks": "2.2.0-alpha.
|
|
24
|
-
"@dfds-ui/icons": "2.2.0-alpha.
|
|
25
|
-
"@dfds-ui/spacing": "2.2.0-alpha.
|
|
26
|
-
"@dfds-ui/theme": "2.2.0-alpha.
|
|
27
|
-
"@dfds-ui/typography": "2.2.0-alpha.
|
|
28
|
-
"@kunukn/react-collapse": "^
|
|
29
|
-
"@mui/
|
|
30
|
-
"@mui/
|
|
31
|
-
"@mui/styles": "^5.18.0",
|
|
32
|
-
"@mui/system": "^5.18.0",
|
|
20
|
+
"@dfds-ui/colors": "2.2.0-alpha.88cbd504",
|
|
21
|
+
"@dfds-ui/fonts": "2.2.0-alpha.88cbd504",
|
|
22
|
+
"@dfds-ui/hooks": "2.2.0-alpha.88cbd504",
|
|
23
|
+
"@dfds-ui/icons": "2.2.0-alpha.88cbd504",
|
|
24
|
+
"@dfds-ui/spacing": "2.2.0-alpha.88cbd504",
|
|
25
|
+
"@dfds-ui/theme": "2.2.0-alpha.88cbd504",
|
|
26
|
+
"@dfds-ui/typography": "2.2.0-alpha.88cbd504",
|
|
27
|
+
"@kunukn/react-collapse": "^3.0.15",
|
|
28
|
+
"@mui/material": "^7.3.11",
|
|
29
|
+
"@mui/system": "^7.3.11",
|
|
33
30
|
"@tippyjs/react": "^4.2.6",
|
|
34
31
|
"classnames": "^2.5.1",
|
|
35
32
|
"humps": "^2.0.1",
|
|
36
|
-
"
|
|
37
|
-
"uuid": "^9.0.0"
|
|
33
|
+
"uuid": "^14.0.0"
|
|
38
34
|
},
|
|
39
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "88cbd50499ab005748b7f98bffd5886f2ff7e7f4",
|
|
40
36
|
"publishConfig": {
|
|
41
37
|
"access": "public"
|
|
42
38
|
}
|
package/pagination/Pagination.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
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; }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
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); }
|
|
1
7
|
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
2
|
-
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)
|
|
8
|
+
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); }
|
|
3
9
|
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)."; }
|
|
4
10
|
import React from 'react';
|
|
5
11
|
import { useBreakpoint } from '@dfds-ui/theme';
|
|
@@ -8,13 +14,13 @@ import ReactSelect from '../forms/reactselect/ReactSelect';
|
|
|
8
14
|
import { PageLimitStyles, PageLimitWrapperStyles, PageOverviewStyles, paginationItemStyles, TextStyles, wrapperStyles } from './Pagination.styles';
|
|
9
15
|
import { Pagination as MaterialPagination, PaginationItem as MaterialPaginationItem } from '@mui/material';
|
|
10
16
|
import { css } from '@emotion/react';
|
|
11
|
-
import { jsx as
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@emotion/react/jsx-runtime";
|
|
12
18
|
var defaultOverview = function defaultOverview(rangeShown, totalRecords) {
|
|
13
19
|
return "Showing ".concat(rangeShown, " of ").concat(totalRecords);
|
|
14
20
|
};
|
|
15
21
|
var PaginationItem = function PaginationItem(_ref3) {
|
|
16
22
|
var item = _extends({}, (_objectDestructuringEmpty(_ref3), _ref3));
|
|
17
|
-
return
|
|
23
|
+
return _jsx(MaterialPaginationItem, _objectSpread({
|
|
18
24
|
css: paginationItemStyles
|
|
19
25
|
}, item));
|
|
20
26
|
};
|
|
@@ -57,7 +63,7 @@ export var Pagination = function Pagination(_ref4) {
|
|
|
57
63
|
});
|
|
58
64
|
return option;
|
|
59
65
|
};
|
|
60
|
-
var PageLimitSelector =
|
|
66
|
+
var PageLimitSelector = _jsx(ReactSelect, {
|
|
61
67
|
onChange: onChangePageLimit,
|
|
62
68
|
options: options,
|
|
63
69
|
size: "small",
|
|
@@ -65,36 +71,48 @@ export var Pagination = function Pagination(_ref4) {
|
|
|
65
71
|
css: PageLimitStyles,
|
|
66
72
|
menuPlacement: "auto"
|
|
67
73
|
});
|
|
68
|
-
return
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
74
|
+
return _jsx(_Fragment, {
|
|
75
|
+
children: greaterThan('l') ? _jsx(_Fragment, {
|
|
76
|
+
children: _jsxs("div", {
|
|
77
|
+
css: wrapperStyles,
|
|
78
|
+
children: [_jsx(Text, {
|
|
79
|
+
css: PageOverviewStyles,
|
|
80
|
+
styledAs: "bodyInterface",
|
|
81
|
+
children: renderOverview(rangeShown, totalRecords)
|
|
82
|
+
}), _jsx(MaterialPagination, {
|
|
83
|
+
count: totalPages,
|
|
84
|
+
onChange: onPageChange,
|
|
85
|
+
page: currentPage,
|
|
86
|
+
renderItem: PaginationItem,
|
|
87
|
+
showFirstButton: true,
|
|
88
|
+
showLastButton: true,
|
|
89
|
+
size: "large"
|
|
90
|
+
}), _jsx("div", {
|
|
91
|
+
css: PageLimitWrapperStyles,
|
|
92
|
+
children: PageLimitSelector
|
|
93
|
+
})]
|
|
94
|
+
})
|
|
95
|
+
}) : _jsxs(_Fragment, {
|
|
96
|
+
children: [_jsxs("div", {
|
|
97
|
+
css: _ref2,
|
|
98
|
+
children: [_jsx(Text, {
|
|
99
|
+
css: TextStyles,
|
|
100
|
+
styledAs: "bodyInterfaceSmall",
|
|
101
|
+
children: renderOverview(rangeShown, totalRecords)
|
|
102
|
+
}), PageLimitSelector]
|
|
103
|
+
}), _jsx("div", {
|
|
104
|
+
css: _ref,
|
|
105
|
+
children: _jsx(MaterialPagination, {
|
|
106
|
+
boundaryCount: 1,
|
|
107
|
+
count: totalPages,
|
|
108
|
+
onChange: onPageChange,
|
|
109
|
+
page: currentPage,
|
|
110
|
+
renderItem: PaginationItem,
|
|
111
|
+
siblingCount: 0,
|
|
112
|
+
size: "large"
|
|
113
|
+
})
|
|
114
|
+
})]
|
|
115
|
+
})
|
|
116
|
+
});
|
|
99
117
|
};
|
|
100
118
|
export default Pagination;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const paginationItemStyles: import("@emotion/
|
|
2
|
-
export declare const wrapperStyles: import("@emotion/
|
|
3
|
-
export declare const TextStyles: import("@emotion/
|
|
4
|
-
export declare const PageOverviewStyles: import("@emotion/
|
|
5
|
-
export declare const PageLimitStyles: import("@emotion/
|
|
6
|
-
export declare const PageLimitWrapperStyles: import("@emotion/
|
|
1
|
+
export declare const paginationItemStyles: import("@emotion/utils").SerializedStyles;
|
|
2
|
+
export declare const wrapperStyles: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const TextStyles: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const PageOverviewStyles: import("@emotion/utils").SerializedStyles;
|
|
5
|
+
export declare const PageLimitStyles: import("@emotion/utils").SerializedStyles;
|
|
6
|
+
export declare const PageLimitWrapperStyles: import("@emotion/utils").SerializedStyles;
|
package/popper/Popper.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PopperProps, PopperPlacementType } from '@mui/material';
|
|
3
|
-
export
|
|
3
|
+
export type PopperBaseProps = {
|
|
4
4
|
open?: boolean;
|
|
5
|
-
children: React.ReactElement | string;
|
|
5
|
+
children: React.ReactElement<any> | string;
|
|
6
6
|
anchorEl?: any;
|
|
7
7
|
id?: string;
|
|
8
8
|
placement?: PopperPlacementType;
|
|
@@ -22,7 +22,7 @@ export declare type PopperBaseProps = {
|
|
|
22
22
|
modifiers?: PopperProps['modifiers'];
|
|
23
23
|
};
|
|
24
24
|
export declare const PopperBase: ({ open, children, anchorEl, id, placement, onClickAway, className, noMaxWidthRestriction, ...rest }: PopperBaseProps) => React.JSX.Element;
|
|
25
|
-
|
|
25
|
+
type PopperComponentProps = {
|
|
26
26
|
setAnchorEl: React.Dispatch<React.SetStateAction<HTMLElement | null>>;
|
|
27
27
|
} & Omit<PopperBaseProps, 'onClickAway'>;
|
|
28
28
|
declare const Popper: ({ children, anchorEl, id, setAnchorEl, placement, popperRef, ...rest }: PopperComponentProps) => React.JSX.Element;
|
package/popper/Popper.js
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
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); }
|
|
1
2
|
var _excluded = ["open", "children", "anchorEl", "id", "placement", "onClickAway", "className", "noMaxWidthRestriction"],
|
|
2
3
|
_excluded2 = ["children", "anchorEl", "id", "setAnchorEl", "placement", "popperRef"];
|
|
3
|
-
function
|
|
4
|
-
function
|
|
5
|
-
function
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
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; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
|
+
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); }
|
|
9
|
+
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; }
|
|
10
|
+
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; }
|
|
6
11
|
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
12
|
import React from 'react';
|
|
8
|
-
import { Popper as MaterialPopper } from '@mui/material';
|
|
9
|
-
import { ClickAwayListener } from '@mui/base';
|
|
13
|
+
import { Popper as MaterialPopper, ClickAwayListener } from '@mui/material';
|
|
10
14
|
import { theme } from '@dfds-ui/theme';
|
|
11
15
|
import { css } from '@emotion/react';
|
|
12
|
-
import { jsx as
|
|
16
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
13
17
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
14
18
|
name: "qhxz92",
|
|
15
19
|
styles: "max-width:100%"
|
|
16
20
|
} : {
|
|
17
21
|
name: "h02qvt-PopperBase",
|
|
18
|
-
styles: "max-width:100%;label:PopperBase;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
22
|
+
styles: "max-width:100%;label:PopperBase;/*# sourceMappingUR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dzogJHt0aGVtZS5lbGV2YXRpb25bMTZdfTtcbiAgICAgICAgcGFkZGluZzogJHt0aGVtZS5zcGFjaW5nLm19O1xuICAgICAgYH1cbiAgICA+XG4gICAgICB7Y2hpbGRyZW59XG4gICAgPC9Qb3BwZXJCYXNlPlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IFBvcHBlclxuIl19 */",
|
|
19
23
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
20
24
|
};
|
|
21
25
|
export var PopperBase = function PopperBase(_ref2) {
|
|
@@ -30,18 +34,23 @@ export var PopperBase = function PopperBase(_ref2) {
|
|
|
30
34
|
_ref2$noMaxWidthRestr = _ref2.noMaxWidthRestriction,
|
|
31
35
|
noMaxWidthRestriction = _ref2$noMaxWidthRestr === void 0 ? false : _ref2$noMaxWidthRestr,
|
|
32
36
|
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
33
|
-
return
|
|
37
|
+
return _jsx(MaterialPopper, _objectSpread(_objectSpread({
|
|
34
38
|
placement: placement,
|
|
35
39
|
id: id,
|
|
36
40
|
open: open,
|
|
37
41
|
className: className,
|
|
38
42
|
anchorEl: anchorEl,
|
|
39
43
|
css: !noMaxWidthRestriction && _ref
|
|
40
|
-
}, rest),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
}, rest), {}, {
|
|
45
|
+
children: _jsx(ClickAwayListener, {
|
|
46
|
+
onClickAway: function onClickAway(e) {
|
|
47
|
+
_onClickAway && _onClickAway(e);
|
|
48
|
+
},
|
|
49
|
+
children: _jsx("div", {
|
|
50
|
+
children: children
|
|
51
|
+
})
|
|
52
|
+
})
|
|
53
|
+
}));
|
|
45
54
|
};
|
|
46
55
|
var Popper = function Popper(_ref3) {
|
|
47
56
|
var children = _ref3.children,
|
|
@@ -52,16 +61,17 @@ var Popper = function Popper(_ref3) {
|
|
|
52
61
|
popperRef = _ref3.popperRef,
|
|
53
62
|
rest = _objectWithoutProperties(_ref3, _excluded2);
|
|
54
63
|
var open = Boolean(anchorEl);
|
|
55
|
-
return
|
|
64
|
+
return _jsx(PopperBase, _objectSpread(_objectSpread({
|
|
56
65
|
placement: placement,
|
|
57
66
|
id: id,
|
|
58
67
|
open: open,
|
|
59
68
|
anchorEl: anchorEl
|
|
60
|
-
}, rest, {
|
|
69
|
+
}, rest), {}, {
|
|
61
70
|
onClickAway: function onClickAway() {
|
|
62
71
|
return setAnchorEl(null);
|
|
63
72
|
},
|
|
64
|
-
css: /*#__PURE__*/css("background:", theme.colors.surface.primary, ";box-shadow:", theme.elevation[16], ";padding:", theme.spacing.m, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:Popper;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
65
|
-
|
|
73
|
+
css: /*#__PURE__*/css("background:", theme.colors.surface.primary, ";box-shadow:", theme.elevation[16], ";padding:", theme.spacing.m, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:Popper;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wb3BwZXIvUG9wcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFnRmMiLCJmaWxlIjoiLi4vLi4vc3JjL3BvcHBlci9Qb3BwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgUG9wcGVyIGFzIE1hdGVyaWFsUG9wcGVyLCBQb3BwZXJQcm9wcywgUG9wcGVyUGxhY2VtZW50VHlwZSwgQ2xpY2tBd2F5TGlzdGVuZXIgfSBmcm9tICdAbXVpL21hdGVyaWFsJ1xuaW1wb3J0IHsgdGhlbWUgfSBmcm9tICdAZGZkcy11aS90aGVtZSdcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW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Byb3BzLCAnb25DbGlja0F3YXknPlxuXG5jb25zdCBQb3BwZXIgPSAoeyBjaGlsZHJlbiwgYW5jaG9yRWwsIGlkLCBzZXRBbmNob3JFbCwgcGxhY2VtZW50LCBwb3BwZXJSZWYsIC4uLnJlc3QgfTogUG9wcGVyQ29tcG9uZW50UHJvcHMpID0+IHtcbiAgY29uc3Qgb3BlbiA9IEJvb2xlYW4oYW5jaG9yRWwpXG5cbiAgcmV0dXJuIChcbiAgICA8UG9wcGVyQmFzZVxuICAgICAgcGxhY2VtZW50PXtwbGFjZW1lbnR9XG4gICAgICBpZD17aWR9XG4gICAgICBvcGVuPXtvcGVufVxuICAgICAgYW5jaG9yRWw9e2FuY2hvckVsfVxuICAgICAgey4uLnJlc3R9XG4gICAgICBvbkNsaWNrQXdheT17KCkgPT4gc2V0QW5jaG9yRWwobnVsbCl9XG4gICAgICBjc3M9e2Nzc2BcbiAgICAgICAgYmFja2dyb3VuZDogJHt0aGVtZS5jb2xvcnMuc3VyZmFjZS5wcmltYXJ5fTtcbiAgICAgICAgYm94LXNoYWRvdzogJHt0aGVtZS5lbGV2YXRpb25bMTZdfTtcbiAgICAgICAgcGFkZGluZzogJHt0aGVtZS5zcGFjaW5nLm19O1xuICAgICAgYH1cbiAgICA+XG4gICAgICB7Y2hpbGRyZW59XG4gICAgPC9Qb3BwZXJCYXNlPlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IFBvcHBlclxuIl19 */"),
|
|
74
|
+
children: children
|
|
75
|
+
}));
|
|
66
76
|
};
|
|
67
77
|
export default Popper;
|
|
@@ -3,7 +3,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import { theme } from '@dfds-ui/theme';
|
|
6
|
-
import { jsx as
|
|
6
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
7
7
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
8
8
|
name: "1oo5a6n",
|
|
9
9
|
styles: "width:100%;will-change:max-width,transform;transform-origin:0 0;animation:loading-beta 2s linear infinite;@keyframes loading-beta{0%,60%{max-width:0;transform:translateX(0);}75%{max-width:35%;transform:translateX(0);}100%{max-width:5%;transform:translateX(100vw);}}"
|
|
@@ -43,7 +43,7 @@ var ProgressBar = function ProgressBar(_ref4) {
|
|
|
43
43
|
indeterminate = _ref4$indeterminate === void 0 ? false : _ref4$indeterminate,
|
|
44
44
|
_ref4$progress = _ref4.progress,
|
|
45
45
|
progress = _ref4$progress === void 0 ? 0 : _ref4$progress;
|
|
46
|
-
return
|
|
46
|
+
return _jsx(StyledProgressBar, {
|
|
47
47
|
light: light,
|
|
48
48
|
indeterminate: indeterminate,
|
|
49
49
|
progress: progress
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type ListItemProps = {
|
|
3
3
|
time: string;
|
|
4
4
|
text: string;
|
|
5
5
|
backgroundColor?: string;
|
|
6
6
|
};
|
|
7
7
|
export declare const ListItemBase: import("@emotion/styled").StyledComponent<{
|
|
8
|
-
theme?: import("@emotion/react").Theme
|
|
9
|
-
as?: React.ElementType
|
|
10
|
-
} & import("
|
|
11
|
-
as?: React.ElementType
|
|
8
|
+
theme?: import("@emotion/react").Theme;
|
|
9
|
+
as?: React.ElementType;
|
|
10
|
+
} & import("../flexbox").FlexBoxProps & {
|
|
11
|
+
as?: React.ElementType;
|
|
12
12
|
} & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
13
|
-
theme?: import("@emotion/react").Theme
|
|
13
|
+
theme?: import("@emotion/react").Theme;
|
|
14
14
|
} & {
|
|
15
|
-
backgroundColor?: string
|
|
15
|
+
backgroundColor?: string;
|
|
16
16
|
}, {}, {}>;
|
|
17
|
-
|
|
17
|
+
type ScheduleItemComponent = FunctionComponent<ListItemProps>;
|
|
18
18
|
declare const ScheduleItem: ScheduleItemComponent;
|
|
19
19
|
export default ScheduleItem;
|
package/schedule/ScheduleItem.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import FlexBox from './../flexbox/FlexBox';
|
|
4
|
-
import { jsx as
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
5
5
|
export var ListItemBase = /*#__PURE__*/_styled(FlexBox, process.env.NODE_ENV === "production" ? {
|
|
6
6
|
target: "e8dkwfo0"
|
|
7
7
|
} : {
|
|
@@ -15,8 +15,13 @@ var ScheduleItem = function ScheduleItem(_ref2) {
|
|
|
15
15
|
var time = _ref2.time,
|
|
16
16
|
text = _ref2.text,
|
|
17
17
|
backgroundColor = _ref2.backgroundColor;
|
|
18
|
-
return
|
|
19
|
-
backgroundColor: backgroundColor
|
|
20
|
-
|
|
18
|
+
return _jsxs(ListItemBase, {
|
|
19
|
+
backgroundColor: backgroundColor,
|
|
20
|
+
children: [_jsx("b", {
|
|
21
|
+
children: time
|
|
22
|
+
}), _jsx("p", {
|
|
23
|
+
children: text
|
|
24
|
+
})]
|
|
25
|
+
});
|
|
21
26
|
};
|
|
22
27
|
export default ScheduleItem;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
|
|
2
|
+
type ScheduleListItem = {
|
|
3
3
|
time: string;
|
|
4
4
|
text: string;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type ScheduleListProps = {
|
|
7
7
|
items: ScheduleListItem[];
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type ScheduleListComponent = FunctionComponent<ScheduleListProps>;
|
|
10
10
|
declare const ScheduleList: ScheduleListComponent;
|
|
11
11
|
export default ScheduleList;
|
package/schedule/ScheduleList.js
CHANGED
|
@@ -1,24 +1,30 @@
|
|
|
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); }
|
|
1
2
|
var _excluded = ["items"];
|
|
2
|
-
function
|
|
3
|
-
function
|
|
4
|
-
function
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
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); }
|
|
8
|
+
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; }
|
|
9
|
+
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; }
|
|
5
10
|
import React from 'react';
|
|
6
11
|
import FlexBox from '../flexbox/FlexBox';
|
|
7
12
|
import { ScheduleItem } from './';
|
|
8
|
-
import { jsx as
|
|
13
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
9
14
|
var ScheduleList = function ScheduleList(_ref) {
|
|
10
15
|
var items = _ref.items,
|
|
11
16
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12
17
|
var list = items.map(function (item, i) {
|
|
13
|
-
return
|
|
18
|
+
return _jsx(ScheduleItem, {
|
|
14
19
|
time: item.time,
|
|
15
20
|
text: item.text,
|
|
16
|
-
backgroundColor: i % 2 ? '#f5f6f7' : ''
|
|
17
|
-
|
|
18
|
-
});
|
|
21
|
+
backgroundColor: i % 2 ? '#f5f6f7' : ''
|
|
22
|
+
}, i);
|
|
19
23
|
});
|
|
20
|
-
return
|
|
24
|
+
return _jsx(FlexBox, _objectSpread(_objectSpread({
|
|
21
25
|
directionColumn: true
|
|
22
|
-
}, rest),
|
|
26
|
+
}, rest), {}, {
|
|
27
|
+
children: list
|
|
28
|
+
}));
|
|
23
29
|
};
|
|
24
30
|
export default ScheduleList;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
2
|
+
type Variant = 'nested' | 'elevated';
|
|
3
|
+
type BackdropEmphasis = 'low' | 'high';
|
|
4
|
+
type Align = 'left' | 'right';
|
|
5
|
+
export type SideSheetProps = {
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
/**
|
|
8
8
|
* Choose the `width` of the `SideSheet`.
|