@dfds-ui/react-components 2.2.0-alpha.8d87a90d → 2.2.0-alpha.e74a6756
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/AccordionContent.d.ts +1 -1
- package/accordion/AccordionSmall.d.ts +2 -2
- package/app-bar/AppBar.d.ts +1 -1
- package/app-bar/AppBarContext.d.ts +1 -1
- package/app-bar/AppBarIconButton.d.ts +1 -1
- package/app-bar/AppBarItem.d.ts +2 -2
- package/assertions/banner/Banner.d.ts +3 -3
- package/assertions/banner/BannerAction.d.ts +1 -1
- package/assertions/toast/Toast.d.ts +1 -1
- package/assertions/toast/Toaster.d.ts +2 -2
- package/badge/Badge.d.ts +1 -1
- package/button/BadgeIcon.d.ts +1 -1
- package/button/BaseButton.d.ts +3 -3
- package/button/Button.d.ts +3 -3
- package/button/IconButton.d.ts +2 -2
- package/button/LinkButton.d.ts +1 -1
- package/button-stack/ButtonStack.d.ts +3 -3
- package/card/Card.d.ts +2 -2
- package/card/CardContent.d.ts +1 -1
- package/card/CardMedia.d.ts +2 -2
- package/card/CardPriceTag.d.ts +1 -1
- package/card/CardTitle.d.ts +1 -1
- package/chip/Chip.d.ts +2 -2
- package/cjs/accordion/Accordion.d.ts +101 -0
- package/cjs/accordion/Accordion.js +20 -24
- package/cjs/accordion/AccordionContent.d.ts +13 -0
- package/cjs/accordion/AccordionContent.js +6 -8
- package/cjs/accordion/AccordionSmall.d.ts +55 -0
- package/cjs/accordion/AccordionSmall.js +11 -14
- package/cjs/accordion/index.d.ts +3 -0
- package/cjs/accordion/index.js +3 -3
- package/cjs/app-bar/AppBar.d.ts +13 -0
- package/cjs/app-bar/AppBar.js +42 -63
- package/cjs/app-bar/AppBarContext.d.ts +12 -0
- package/cjs/app-bar/AppBarContext.js +3 -15
- package/cjs/app-bar/AppBarDrawer.d.ts +5 -0
- package/cjs/app-bar/AppBarDrawer.js +9 -10
- package/cjs/app-bar/AppBarIconButton.d.ts +10 -0
- package/cjs/app-bar/AppBarIconButton.js +6 -9
- package/cjs/app-bar/AppBarItem.d.ts +23 -0
- package/cjs/app-bar/AppBarItem.js +17 -31
- package/cjs/app-bar/AppBarListItem.d.ts +16 -0
- package/cjs/app-bar/index.d.ts +7 -0
- package/cjs/app-bar/index.js +8 -8
- package/cjs/assertions/banner/Banner.d.ts +74 -0
- package/cjs/assertions/banner/Banner.js +23 -43
- package/cjs/assertions/banner/BannerAction.d.ts +19 -0
- package/cjs/assertions/banner/BannerAction.js +7 -9
- package/cjs/assertions/banner/BannerTypography.d.ts +7 -0
- package/cjs/assertions/banner/index.d.ts +3 -0
- package/cjs/assertions/banner/index.js +3 -3
- package/cjs/assertions/index.d.ts +2 -0
- package/cjs/assertions/index.js +2 -2
- package/cjs/assertions/toast/Toast.d.ts +12 -0
- package/cjs/assertions/toast/Toast.js +9 -13
- package/cjs/assertions/toast/Toaster.d.ts +19 -0
- package/cjs/assertions/toast/Toaster.js +20 -39
- package/cjs/assertions/toast/index.d.ts +2 -0
- package/cjs/assertions/toast/index.js +4 -4
- package/cjs/badge/Badge.d.ts +26 -0
- package/cjs/badge/Badge.js +9 -14
- package/cjs/badge/index.d.ts +2 -0
- package/cjs/badge/index.js +3 -3
- package/cjs/button/BadgeIcon.d.ts +7 -0
- package/cjs/button/BaseButton.d.ts +14 -0
- package/cjs/button/Button.d.ts +19 -0
- package/cjs/button/Button.js +13 -20
- package/cjs/button/IconButton.d.ts +75 -0
- package/cjs/button/IconButton.js +19 -27
- package/cjs/button/LinkButton.d.ts +8 -0
- package/cjs/button/LinkButton.js +1 -1
- package/cjs/button/button-style.d.ts +7 -0
- package/cjs/button/index.d.ts +7 -0
- package/cjs/button/index.js +8 -8
- package/cjs/button-stack/ButtonStack.d.ts +11 -0
- package/cjs/button-stack/ButtonStack.js +8 -12
- package/cjs/button-stack/index.d.ts +1 -0
- package/cjs/button-stack/index.js +1 -1
- package/cjs/card/Card.d.ts +18 -0
- package/cjs/card/Card.js +21 -37
- package/cjs/card/CardActions.d.ts +4 -0
- package/cjs/card/CardActions.js +6 -10
- package/cjs/card/CardContent.d.ts +13 -0
- package/cjs/card/CardContent.js +10 -14
- package/cjs/card/CardMedia.d.ts +18 -0
- package/cjs/card/CardMedia.js +6 -9
- package/cjs/card/CardPriceTag.d.ts +25 -0
- package/cjs/card/CardPriceTag.js +7 -11
- package/cjs/card/CardTitle.d.ts +18 -0
- package/cjs/card/CardTitle.js +9 -11
- package/cjs/card/index.d.ts +6 -0
- package/cjs/card/index.js +6 -6
- package/cjs/chip/Chip.d.ts +19 -0
- package/cjs/chip/Chip.js +13 -28
- package/cjs/chip/index.d.ts +2 -0
- package/cjs/chip/index.js +3 -3
- package/cjs/common/LockBodyScroll.d.ts +25 -0
- package/cjs/common/LockBodyScroll.js +5 -8
- package/cjs/common/arrow.d.ts +6 -0
- package/cjs/common/emotionCloneElement.d.ts +3 -0
- package/cjs/common/emotionCloneElement.js +5 -8
- package/cjs/common/intent.d.ts +3 -0
- package/cjs/common/miniMoize.d.ts +1 -0
- package/cjs/common/polymorphic.d.ts +25 -0
- package/cjs/common/polymorphic.js +3 -3
- package/cjs/common/use-media.d.ts +1 -0
- package/cjs/common/use-media.js +1 -10
- package/cjs/common/useOnClickOutside.d.ts +4 -0
- package/cjs/common/utils.d.ts +3 -0
- package/cjs/counter/Counter.d.ts +26 -0
- package/cjs/counter/Counter.js +4 -14
- package/cjs/counter/PluralCounter.d.ts +13 -0
- package/cjs/counter/PluralCounter.js +10 -22
- package/cjs/counter/index.d.ts +2 -0
- package/cjs/counter/index.js +2 -2
- package/cjs/data-table/DataTable.d.ts +10 -0
- package/cjs/data-table/DataTable.js +16 -27
- package/cjs/data-table/index.d.ts +1 -0
- package/cjs/data-table/index.js +1 -1
- package/cjs/date-range-picker/DatePickerDefaultStyles.d.ts +2 -0
- package/cjs/date-range-picker/DatePickerDfdsStyles.d.ts +2 -0
- package/cjs/date-range-picker/DateRangePicker.d.ts +33 -0
- package/cjs/date-range-picker/DateRangePicker.js +28 -55
- package/cjs/date-range-picker/index.d.ts +1 -0
- package/cjs/date-range-picker/index.js +1 -1
- package/cjs/divider/Divider.d.ts +26 -0
- package/cjs/divider/Divider.js +9 -9
- package/cjs/divider/index.d.ts +1 -0
- package/cjs/divider/index.js +1 -1
- package/cjs/drawer/Drawer.d.ts +31 -0
- package/cjs/drawer/Drawer.js +9 -15
- package/cjs/drawer/index.d.ts +1 -0
- package/cjs/drawer/index.js +1 -1
- package/cjs/dropdown-menu/Dropdown.d.ts +46 -0
- package/cjs/dropdown-menu/Dropdown.js +18 -32
- package/cjs/dropdown-menu/DropdownContext.d.ts +13 -0
- package/cjs/dropdown-menu/DropdownContext.js +1 -1
- package/cjs/dropdown-menu/MenuCheckbox.d.ts +34 -0
- package/cjs/dropdown-menu/MenuCheckbox.js +3 -2
- package/cjs/dropdown-menu/MenuItem.d.ts +45 -0
- package/cjs/dropdown-menu/MenuItem.js +18 -30
- package/cjs/dropdown-menu/MenuTitle.d.ts +14 -0
- package/cjs/dropdown-menu/MenuTitle.js +3 -2
- package/cjs/dropdown-menu/index.d.ts +5 -0
- package/cjs/dropdown-menu/index.js +6 -6
- package/cjs/elevation/index.d.ts +3 -0
- package/cjs/flexbox/FlexBox.d.ts +100 -0
- package/cjs/flexbox/FlexBox.js +3 -11
- package/cjs/flexbox/index.d.ts +1 -0
- package/cjs/flexbox/index.js +1 -1
- package/cjs/footer/Footer.d.ts +7 -0
- package/cjs/footer/index.d.ts +1 -0
- package/cjs/footer/index.js +1 -1
- package/cjs/forms/assistive-text/AssistiveText.d.ts +8 -0
- package/cjs/forms/asterisk/Asterisk.d.ts +3 -0
- package/cjs/forms/checkbox/Checkbox.d.ts +39 -0
- package/cjs/forms/checkbox/Checkbox.js +14 -19
- package/cjs/forms/checkbox/ExampleControlComponent.d.ts +10 -0
- package/cjs/forms/checkbox/ExampleControlComponent.js +6 -17
- package/cjs/forms/checkbox/index.d.ts +1 -0
- package/cjs/forms/checkbox/index.js +1 -1
- package/cjs/forms/email-field/EmailField.d.ts +6 -0
- package/cjs/forms/error-text/ErrorText.d.ts +8 -0
- package/cjs/forms/field/Field.d.ts +10 -0
- package/cjs/forms/index.d.ts +21 -0
- package/cjs/forms/index.js +18 -18
- package/cjs/forms/input/Input.d.ts +19 -0
- package/cjs/forms/input/Input.js +13 -15
- package/cjs/forms/input/InputComposition.d.ts +43 -0
- package/cjs/forms/input/InputComposition.js +23 -27
- package/cjs/forms/label/Label.d.ts +10 -0
- package/cjs/forms/label/Label.js +6 -8
- package/cjs/forms/number-field/NumberField.d.ts +6 -0
- package/cjs/forms/password-field/PasswordField.d.ts +4 -0
- package/cjs/forms/password-field/PasswordField.js +2 -11
- package/cjs/forms/radio/Radio.d.ts +35 -0
- package/cjs/forms/radio/Radio.js +27 -32
- package/cjs/forms/reactselect/ReactSelect.d.ts +25 -0
- package/cjs/forms/reactselect/ReactSelect.js +40 -48
- package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +6 -0
- package/cjs/forms/searchable-select/AsyncSearchableSelect.js +29 -33
- package/cjs/forms/select/Select.d.ts +16 -0
- package/cjs/forms/select/Select.js +10 -12
- package/cjs/forms/select-field/SelectField.d.ts +17 -0
- package/cjs/forms/select-field/SelectField.js +13 -14
- package/cjs/forms/switch/Switch.d.ts +13 -0
- package/cjs/forms/switch/Switch.js +11 -15
- package/cjs/forms/tel-field/TelField.d.ts +6 -0
- package/cjs/forms/text-field/TextField.d.ts +26 -0
- package/cjs/forms/text-field/TextField.js +16 -17
- package/cjs/global-styles/GlobalStyles.d.ts +3 -0
- package/cjs/global-styles/ResetStyles.d.ts +9 -0
- package/cjs/global-styles/sanitize.d.ts +1 -0
- package/cjs/grid/Column.d.ts +10 -0
- package/cjs/grid/Column.js +8 -10
- package/cjs/grid/Container.d.ts +15 -0
- package/cjs/grid/Container.js +9 -11
- package/cjs/grid/index.d.ts +2 -0
- package/cjs/grid/index.js +2 -2
- package/cjs/hero/Hero.d.ts +10 -0
- package/cjs/hero/index.d.ts +1 -0
- package/cjs/hero/index.js +1 -1
- package/cjs/hero/stripes.d.ts +6 -0
- package/cjs/ie-banner/IEBanner.d.ts +11 -0
- package/cjs/ie-banner/IEBanner.js +4 -19
- package/cjs/ie-banner/index.d.ts +1 -0
- package/cjs/ie-banner/index.js +1 -1
- package/cjs/index.d.ts +44 -0
- package/cjs/index.js +45 -45
- package/cjs/layout/LayoutLegacy.d.ts +2 -0
- package/cjs/lists/FeatureList.d.ts +24 -0
- package/cjs/lists/FeatureList.js +7 -10
- package/cjs/lists/ListAddon.d.ts +11 -0
- package/cjs/lists/ListAddon.js +6 -9
- package/cjs/lists/ListDivider.d.ts +5 -0
- package/cjs/lists/ListDivider.js +6 -9
- package/cjs/lists/ListIcon.d.ts +18 -0
- package/cjs/lists/ListIcon.js +12 -15
- package/cjs/lists/ListItem.d.ts +46 -0
- package/cjs/lists/ListItem.js +15 -24
- package/cjs/lists/ListText.d.ts +39 -0
- package/cjs/lists/ListText.js +8 -11
- package/cjs/lists/ListTextGroup.d.ts +15 -0
- package/cjs/lists/ListTextGroup.js +9 -13
- package/cjs/lists/ListTitle.d.ts +4 -0
- package/cjs/lists/ListTitle.js +4 -7
- package/cjs/lists/index.d.ts +8 -0
- package/cjs/lists/index.js +8 -8
- package/cjs/loader/DfdsLoader.d.ts +9 -0
- package/cjs/loader/DfdsLoader.js +2 -2
- package/cjs/loader/Loader.d.ts +6 -0
- package/cjs/loader/index.d.ts +2 -0
- package/cjs/loader/index.js +2 -2
- package/cjs/localization/LocaleFlag.d.ts +13 -0
- package/cjs/localization/LocaleFlag.js +8 -12
- package/cjs/localization/index.d.ts +2 -0
- package/cjs/localization/index.js +2 -2
- package/cjs/localization/locales.d.ts +35 -0
- package/cjs/logo/Logo.d.ts +11 -0
- package/cjs/logo/Logo.js +5 -7
- package/cjs/logo/index.d.ts +1 -0
- package/cjs/logo/index.js +1 -1
- package/cjs/media/index.d.ts +2 -0
- package/cjs/menu/Menu.d.ts +7 -0
- package/cjs/menu/Menu.js +18 -20
- package/cjs/menu/index.d.ts +2 -0
- package/cjs/menu/index.js +3 -3
- package/cjs/mobile-stepper/MobileStepper.d.ts +25 -0
- package/cjs/mobile-stepper/MobileStepper.js +8 -12
- package/cjs/mobile-stepper/index.d.ts +1 -0
- package/cjs/mobile-stepper/index.js +1 -1
- package/cjs/nav-bar/NavBar.d.ts +35 -0
- package/cjs/nav-bar/NavBar.js +24 -36
- package/cjs/nav-bar/index.d.ts +2 -0
- package/cjs/nav-bar/index.js +3 -3
- package/cjs/nav-menu/NavMenuItem.d.ts +10 -0
- package/cjs/nav-menu/index.d.ts +1 -0
- package/cjs/nav-menu/index.js +1 -1
- package/cjs/pagination/Pagination.d.ts +44 -0
- package/cjs/pagination/Pagination.js +7 -6
- package/cjs/pagination/Pagination.styles.d.ts +6 -0
- package/cjs/pagination/index.d.ts +1 -0
- package/cjs/pagination/index.js +1 -1
- package/cjs/popper/Popper.d.ts +29 -0
- package/cjs/popper/Popper.js +21 -25
- package/cjs/popper/index.d.ts +1 -0
- package/cjs/popper/index.js +1 -1
- package/cjs/progress-bar/ProgressBar.d.ts +8 -0
- package/cjs/progress-bar/index.d.ts +2 -0
- package/cjs/progress-bar/index.js +3 -3
- package/cjs/schedule/ScheduleItem.d.ts +21 -0
- package/cjs/schedule/ScheduleList.d.ts +11 -0
- package/cjs/schedule/ScheduleList.js +4 -6
- package/cjs/schedule/index.d.ts +2 -0
- package/cjs/schedule/index.js +2 -2
- package/cjs/side-sheet/SideSheet.d.ts +57 -0
- package/cjs/side-sheet/SideSheet.js +29 -45
- package/cjs/side-sheet/SideSheetCloseButton.d.ts +13 -0
- package/cjs/side-sheet/SideSheetCloseButton.js +8 -13
- package/cjs/side-sheet/SideSheetContent.d.ts +7 -0
- package/cjs/side-sheet/SideSheetContent.js +6 -8
- package/cjs/side-sheet/SideSheetFooter.d.ts +7 -0
- package/cjs/side-sheet/SideSheetFooter.js +6 -8
- package/cjs/side-sheet/SideSheetHeader.d.ts +9 -0
- package/cjs/side-sheet/SideSheetHeader.js +8 -11
- package/cjs/side-sheet/SideSheetHeadline.d.ts +7 -0
- package/cjs/side-sheet/index.d.ts +4 -0
- package/cjs/side-sheet/index.js +5 -5
- package/cjs/site-layout/SiteLayout.d.ts +36 -0
- package/cjs/site-layout/SiteLayout.js +24 -27
- package/cjs/site-layout/index.d.ts +2 -0
- package/cjs/site-layout/index.js +3 -3
- package/cjs/skeleton/Skeleton.d.ts +8 -0
- package/cjs/skeleton/Skeleton.js +10 -14
- package/cjs/skeleton/index.d.ts +1 -0
- package/cjs/skeleton/index.js +1 -1
- package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +26 -0
- package/cjs/social-media-link-list/SocialMediaLinkList.js +13 -15
- package/cjs/social-media-link-list/index.d.ts +1 -0
- package/cjs/social-media-link-list/index.js +1 -1
- package/cjs/spinner/Spinner.d.ts +58 -0
- package/cjs/spinner/Spinner.js +8 -12
- package/cjs/spinner/index.d.ts +1 -0
- package/cjs/spinner/index.js +1 -1
- package/cjs/step/Step.d.ts +45 -0
- package/cjs/step/Step.js +21 -29
- package/cjs/step/Step.styles.d.ts +4 -0
- package/cjs/step/StepButton.d.ts +4 -0
- package/cjs/step/StepButton.js +14 -12
- package/cjs/step/StepContent.d.ts +6 -0
- package/cjs/step/StepContent.js +3 -2
- package/cjs/step/StepContext.d.ts +12 -0
- package/cjs/step/StepLabel.d.ts +7 -0
- package/cjs/step/StepLabel.js +4 -3
- package/cjs/step/index.d.ts +1 -0
- package/cjs/step/index.js +1 -1
- package/cjs/stepper/Stepper.d.ts +25 -0
- package/cjs/stepper/Stepper.js +13 -22
- package/cjs/stepper/StepperContext.d.ts +9 -0
- package/cjs/stepper/index.d.ts +1 -0
- package/cjs/stepper/index.js +1 -1
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.d.ts +5 -0
- package/cjs/stepper-feedback-message/index.d.ts +1 -0
- package/cjs/stepper-feedback-message/index.js +1 -1
- package/cjs/styles/index.d.ts +3 -0
- package/cjs/styles/index.js +5 -5
- package/cjs/styles/media.d.ts +21 -0
- package/cjs/styles/rem.d.ts +1 -0
- package/cjs/styles/style-helpers.d.ts +1 -0
- package/cjs/styles/theme.d.ts +39 -0
- package/cjs/surface/Surface.d.ts +32 -0
- package/cjs/surface/Surface.js +13 -19
- package/cjs/surface/index.d.ts +1 -0
- package/cjs/surface/index.js +1 -1
- package/cjs/tab/Tab.d.ts +12 -0
- package/cjs/tab/Tab.js +13 -14
- package/cjs/tab/TabPanel.d.ts +7 -0
- package/cjs/tab/TabPanel.js +3 -2
- package/cjs/tab/Tabs.d.ts +11 -0
- package/cjs/tab/Tabs.js +21 -37
- package/cjs/tab/TabsContext.d.ts +16 -0
- package/cjs/tab/TabsContext.js +1 -1
- package/cjs/tab/index.d.ts +4 -0
- package/cjs/tab/index.js +4 -4
- package/cjs/table/Table.d.ts +22 -0
- package/cjs/table/Table.js +7 -11
- package/cjs/table/TableBody.d.ts +9 -0
- package/cjs/table/TableBody.js +5 -7
- package/cjs/table/TableDataCell.d.ts +14 -0
- package/cjs/table/TableDataCell.js +6 -9
- package/cjs/table/TableHead.d.ts +14 -0
- package/cjs/table/TableHead.js +9 -10
- package/cjs/table/TableHeaderCell.d.ts +15 -0
- package/cjs/table/TableHeaderCell.js +6 -9
- package/cjs/table/TableRow.d.ts +17 -0
- package/cjs/table/TableRow.js +10 -12
- package/cjs/table/index.d.ts +6 -0
- package/cjs/table/index.js +6 -6
- package/cjs/test/Test.d.ts +8 -0
- package/cjs/tooltip/Tooltip.d.ts +26 -0
- package/cjs/tooltip/Tooltip.js +11 -12
- package/cjs/tooltip/index.d.ts +2 -0
- package/cjs/tooltip/index.js +3 -3
- package/cjs/typography/Headlines.d.ts +70 -0
- package/cjs/typography/Headlines.js +8 -11
- package/cjs/typography/Text.d.ts +5 -0
- package/cjs/typography/index.d.ts +2 -0
- package/cjs/typography/index.js +2 -2
- package/common/LockBodyScroll.d.ts +2 -2
- package/common/arrow.d.ts +1 -1
- package/common/intent.d.ts +1 -1
- package/common/polymorphic.d.ts +2 -2
- package/common/useOnClickOutside.d.ts +1 -1
- package/counter/Counter.d.ts +1 -1
- package/counter/PluralCounter.d.ts +1 -1
- package/data-table/DataTable.d.ts +1 -1
- package/divider/Divider.d.ts +1 -1
- package/drawer/Drawer.d.ts +4 -4
- package/dropdown-menu/Dropdown.d.ts +2 -2
- package/dropdown-menu/DropdownContext.d.ts +2 -2
- package/elevation/index.d.ts +1 -1
- package/flexbox/FlexBox.d.ts +2 -2
- package/forms/checkbox/Checkbox.d.ts +4 -4
- package/forms/checkbox/ExampleControlComponent.d.ts +1 -1
- package/forms/email-field/EmailField.d.ts +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/InputComposition.d.ts +7 -7
- package/forms/label/Label.d.ts +1 -1
- package/forms/number-field/NumberField.d.ts +1 -1
- package/forms/password-field/PasswordField.d.ts +1 -1
- package/forms/radio/Radio.d.ts +4 -4
- package/forms/reactselect/ReactSelect.d.ts +2 -2
- package/forms/searchable-select/AsyncSearchableSelect.d.ts +2 -2
- package/forms/select/Select.d.ts +4 -4
- package/forms/select-field/SelectField.d.ts +2 -2
- package/forms/switch/Switch.d.ts +2 -2
- package/forms/tel-field/TelField.d.ts +1 -1
- package/forms/text-field/TextField.d.ts +3 -3
- package/grid/Column.d.ts +1 -1
- package/grid/Container.d.ts +1 -1
- package/hero/Hero.d.ts +1 -1
- package/hero/stripes.d.ts +1 -1
- package/ie-banner/IEBanner.d.ts +1 -1
- package/lists/FeatureList.d.ts +2 -2
- package/lists/ListAddon.d.ts +1 -1
- package/lists/ListDivider.d.ts +1 -1
- package/lists/ListIcon.d.ts +2 -2
- package/lists/ListItem.d.ts +1 -1
- package/lists/ListText.d.ts +3 -3
- package/lists/ListTextGroup.d.ts +1 -1
- package/loader/Loader.d.ts +1 -1
- package/localization/LocaleFlag.d.ts +1 -1
- package/localization/locales.d.ts +2 -2
- package/logo/Logo.d.ts +1 -1
- package/menu/Menu.d.ts +1 -1
- package/mobile-stepper/MobileStepper.d.ts +1 -1
- package/nav-bar/NavBar.d.ts +4 -4
- package/nav-menu/NavMenuItem.d.ts +1 -1
- package/package.json +10 -10
- package/pagination/Pagination.d.ts +2 -2
- package/popper/Popper.d.ts +2 -2
- package/progress-bar/ProgressBar.d.ts +1 -1
- package/schedule/ScheduleItem.d.ts +2 -2
- package/schedule/ScheduleList.d.ts +3 -3
- package/side-sheet/SideSheet.d.ts +4 -4
- package/side-sheet/SideSheetCloseButton.d.ts +1 -1
- package/side-sheet/SideSheetContent.d.ts +1 -1
- package/side-sheet/SideSheetFooter.d.ts +1 -1
- package/side-sheet/SideSheetHeader.d.ts +1 -1
- package/side-sheet/SideSheetHeadline.d.ts +1 -1
- package/site-layout/SiteLayout.d.ts +3 -3
- package/skeleton/Skeleton.d.ts +1 -1
- package/social-media-link-list/SocialMediaLinkList.d.ts +2 -2
- package/spinner/Spinner.d.ts +2 -2
- package/step/Step.d.ts +1 -1
- package/step/StepButton.d.ts +1 -1
- 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/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/tab/Tab.d.ts +2 -2
- package/tab/TabPanel.d.ts +1 -1
- package/tab/Tabs.d.ts +2 -2
- package/tab/TabsContext.d.ts +1 -1
- package/table/Table.d.ts +2 -2
- package/table/TableBody.d.ts +1 -1
- package/table/TableDataCell.d.ts +1 -1
- package/table/TableHead.d.ts +1 -1
- package/table/TableHeaderCell.d.ts +2 -2
- package/table/TableRow.d.ts +1 -1
- package/tooltip/Tooltip.d.ts +2 -2
package/cjs/nav-bar/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var _exportNames = {
|
|
|
8
8
|
};
|
|
9
9
|
Object.defineProperty(exports, "NavBar", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function
|
|
11
|
+
get: function () {
|
|
12
12
|
return _NavBar.default;
|
|
13
13
|
}
|
|
14
14
|
});
|
|
@@ -19,10 +19,10 @@ Object.keys(_NavBar).forEach(function (key) {
|
|
|
19
19
|
if (key in exports && exports[key] === _NavBar[key]) return;
|
|
20
20
|
Object.defineProperty(exports, key, {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function
|
|
22
|
+
get: function () {
|
|
23
23
|
return _NavBar[key];
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function
|
|
27
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
28
28
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type NavMenuItemProps = {
|
|
3
|
+
isActive?: boolean;
|
|
4
|
+
leftIcon?: React.ElementType;
|
|
5
|
+
rightIcon?: React.ElementType;
|
|
6
|
+
as?: React.ElementType;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
declare const NavMenuItem: React.FunctionComponent<NavMenuItemProps>;
|
|
10
|
+
export default NavMenuItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as NavMenuItem } from './NavMenuItem';
|
package/cjs/nav-menu/index.js
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Option = {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
label: string;
|
|
5
|
+
value: number;
|
|
6
|
+
};
|
|
7
|
+
export type PaginationProps = {
|
|
8
|
+
/**
|
|
9
|
+
* The current page.
|
|
10
|
+
*/
|
|
11
|
+
currentPage?: number;
|
|
12
|
+
/**
|
|
13
|
+
* The current offset
|
|
14
|
+
*/
|
|
15
|
+
offset?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Callback when the page is changed.
|
|
18
|
+
*/
|
|
19
|
+
onChangePageLimit?: (e: any) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Callback when the page is changed.
|
|
22
|
+
*/
|
|
23
|
+
onPageChange?: (event: React.ChangeEvent<unknown>, page: number) => void;
|
|
24
|
+
/**
|
|
25
|
+
* Options passed to the PageLimitSelector
|
|
26
|
+
*/
|
|
27
|
+
options?: Option[] | null;
|
|
28
|
+
/**
|
|
29
|
+
* Number of records per page.
|
|
30
|
+
*/
|
|
31
|
+
pageLimit: number;
|
|
32
|
+
/**
|
|
33
|
+
* Total number of records.
|
|
34
|
+
*/
|
|
35
|
+
totalRecords: number;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the content of the overview.
|
|
38
|
+
*
|
|
39
|
+
* Use this if you need to localize the overview being rendered.
|
|
40
|
+
*/
|
|
41
|
+
renderOverview?: (rangeShown: string, totalRecords: number) => React.ReactNode;
|
|
42
|
+
};
|
|
43
|
+
export declare const Pagination: ({ currentPage, offset, onChangePageLimit, onPageChange, options, pageLimit, totalRecords, renderOverview, }: PaginationProps) => JSX.Element;
|
|
44
|
+
export default Pagination;
|
|
@@ -12,12 +12,12 @@ var _Pagination = require("./Pagination.styles");
|
|
|
12
12
|
var _material = require("@mui/material");
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
|
16
15
|
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); }
|
|
17
16
|
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)."; }
|
|
18
17
|
const defaultOverview = (rangeShown, totalRecords) => `Showing ${rangeShown} of ${totalRecords}`;
|
|
19
|
-
const PaginationItem =
|
|
20
|
-
|
|
18
|
+
const PaginationItem = ({
|
|
19
|
+
...item
|
|
20
|
+
}) => {
|
|
21
21
|
return (0, _react2.jsx)(_material.PaginationItem, _extends({
|
|
22
22
|
css: _Pagination.paginationItemStyles
|
|
23
23
|
}, item));
|
|
@@ -50,12 +50,13 @@ const Pagination = ({
|
|
|
50
50
|
totalRecords = 1,
|
|
51
51
|
renderOverview = defaultOverview
|
|
52
52
|
}) => {
|
|
53
|
-
const
|
|
54
|
-
greaterThan
|
|
53
|
+
const {
|
|
54
|
+
greaterThan
|
|
55
|
+
} = (0, _theme.useBreakpoint)();
|
|
55
56
|
const totalPages = Math.ceil(totalRecords / pageLimit);
|
|
56
57
|
const rangeShown = totalRecords === 1 ? String(totalRecords) : `${totalRecords === 0 ? totalRecords : offset + 1}-${pageLimit + offset > totalRecords ? totalRecords : pageLimit + offset}`;
|
|
57
58
|
const currentPageLimit = () => {
|
|
58
|
-
const option = options
|
|
59
|
+
const option = options?.find(option => {
|
|
59
60
|
return option.value === pageLimit;
|
|
60
61
|
});
|
|
61
62
|
return option;
|
|
@@ -0,0 +1,6 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Pagination';
|
package/cjs/pagination/index.js
CHANGED
|
@@ -9,7 +9,7 @@ Object.keys(_Pagination).forEach(function (key) {
|
|
|
9
9
|
if (key in exports && exports[key] === _Pagination[key]) return;
|
|
10
10
|
Object.defineProperty(exports, key, {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function
|
|
12
|
+
get: function () {
|
|
13
13
|
return _Pagination[key];
|
|
14
14
|
}
|
|
15
15
|
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PopperProps, PopperPlacementType } from '@mui/material';
|
|
3
|
+
export type PopperBaseProps = {
|
|
4
|
+
open?: boolean;
|
|
5
|
+
children: React.ReactElement | string;
|
|
6
|
+
anchorEl?: any;
|
|
7
|
+
id?: string;
|
|
8
|
+
placement?: PopperPlacementType;
|
|
9
|
+
disablePortal?: PopperProps['disablePortal'];
|
|
10
|
+
/**
|
|
11
|
+
* By default the max-width will be set to 100%. This will allow for child elements to have a width of 100vw and also
|
|
12
|
+
* a max-width of 100% so it will not be overflowing the potential vertical scrollbars.
|
|
13
|
+
*
|
|
14
|
+
* You can disable this by setting `noMaxWidthRestriction` to `false`
|
|
15
|
+
*/
|
|
16
|
+
noMaxWidthRestriction?: boolean;
|
|
17
|
+
role?: string;
|
|
18
|
+
onClickAway?: (e: any) => void;
|
|
19
|
+
className?: string;
|
|
20
|
+
style?: PopperProps['style'];
|
|
21
|
+
popperRef?: PopperProps['popperRef'];
|
|
22
|
+
modifiers?: PopperProps['modifiers'];
|
|
23
|
+
};
|
|
24
|
+
export declare const PopperBase: ({ open, children, anchorEl, id, placement, onClickAway, className, noMaxWidthRestriction, ...rest }: PopperBaseProps) => JSX.Element;
|
|
25
|
+
type PopperComponentProps = {
|
|
26
|
+
setAnchorEl: React.Dispatch<React.SetStateAction<HTMLElement | null>>;
|
|
27
|
+
} & Omit<PopperBaseProps, 'onClickAway'>;
|
|
28
|
+
declare const Popper: ({ children, anchorEl, id, setAnchorEl, placement, popperRef, ...rest }: PopperComponentProps) => JSX.Element;
|
|
29
|
+
export default Popper;
|
package/cjs/popper/Popper.js
CHANGED
|
@@ -9,12 +9,8 @@ var _material = require("@mui/material");
|
|
|
9
9
|
var _base = require("@mui/base");
|
|
10
10
|
var _theme = require("@dfds-ui/theme");
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
|
-
const _excluded = ["open", "children", "anchorEl", "id", "placement", "onClickAway", "className", "noMaxWidthRestriction"],
|
|
13
|
-
_excluded2 = ["children", "anchorEl", "id", "setAnchorEl", "placement", "popperRef"];
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
13
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
16
|
-
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; }
|
|
17
|
-
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; }
|
|
18
14
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
19
15
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
20
16
|
name: "qhxz92",
|
|
@@ -25,18 +21,17 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
25
21
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wb3BwZXIvUG9wcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFpRFciLCJmaWxlIjoiLi4vLi4vLi4vc3JjL3BvcHBlci9Qb3BwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgUG9wcGVyIGFzIE1hdGVyaWFsUG9wcGVyLCBQb3BwZXJQcm9wcywgUG9wcGVyUGxhY2VtZW50VHlwZSB9IGZyb20gJ0BtdWkvbWF0ZXJpYWwnXG5pbXBvcnQgeyBDbGlja0F3YXlMaXN0ZW5lciB9IGZyb20gJ0BtdWkvYmFzZSdcbmltcG9ydCB7IHRoZW1lIH0gZnJvbSAnQGRmZHMtdWkvdGhlbWUnXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcblxuZXhwb3J0IHR5cGUgUG9wcGVyQmFzZVByb3BzID0ge1xuICBvcGVuPzogYm9vbGVhblxuICAvLyBUT0RPOiBDb25zaWRlciBjaGFuZ2luZyB0aGUgdHlwZSB0byBSZWFjdC5SZWFjdE5vZGVcbiAgY2hpbGRyZW46IFJlYWN0LlJlYWN0RWxlbWVudCB8IHN0cmluZ1xuICBhbmNob3JFbD86IGFueVxuICBpZD86IHN0cmluZ1xuICBwbGFjZW1lbnQ/OiBQb3BwZXJQbGFjZW1lbnRUeXBlXG4gIGRpc2FibGVQb3J0YWw/OiBQb3BwZXJQcm9wc1snZGlzYWJsZVBvcnRhbCddXG4gIC8qKlxuICAgKiBCeSBkZWZhdWx0IHRoZSBtYXgtd2lkdGggd2lsbCBiZSBzZXQgdG8gMTAwJS4gVGhpcyB3aWxsIGFsbG93IGZvciBjaGlsZCBlbGVtZW50cyB0byBoYXZlIGEgd2lkdGggb2YgMTAwdncgYW5kIGFsc29cbiAgICogYSBtYXgtd2lkdGggb2YgMTAwJSBzbyBpdCB3aWxsIG5vdCBiZSBvdmVyZmxvd2luZyB0aGUgcG90ZW50aWFsIHZlcnRpY2FsIHNjcm9sbGJhcnMuXG4gICAqXG4gICAqIFlvdSBjYW4gZGlzYWJsZSB0aGlzIGJ5IHNldHRpbmcgYG5vTWF4V2lkdGhSZXN0cmljdGlvbmAgdG8gYGZhbHNlYFxuICAgKi9cbiAgbm9NYXhXaWR0aFJlc3RyaWN0aW9uPzogYm9vbGVhblxuICByb2xlPzogc3RyaW5nXG4gIG9uQ2xpY2tBd2F5PzogKGU6IGFueSkgPT4gdm9pZFxuICBjbGFzc05hbWU/OiBzdHJpbmdcbiAgc3R5bGU/OiBQb3BwZXJQcm9wc1snc3R5bGUnXVxuICBwb3BwZXJSZWY/OiBQb3BwZXJQcm9wc1sncG9wcGVyUmVmJ11cbiAgbW9kaWZpZXJzPzogUG9wcGVyUHJvcHNbJ21vZGlmaWVycyddXG59XG5cbmV4cG9ydCBjb25zdCBQb3BwZXJCYXNlID0gKHtcbiAgb3BlbiA9IGZhbHNlLFxuICBjaGlsZHJlbixcbiAgYW5jaG9yRWwsXG4gIGlkLFxuICBwbGFjZW1lbnQsXG4gIG9uQ2xpY2tBd2F5LFxuICBjbGFzc05hbWUsXG4gIG5vTWF4V2lkdGhSZXN0cmljdGlvbiA9IGZhbHNlLFxuICAuLi5yZXN0XG59OiBQb3BwZXJCYXNlUHJvcHMpID0+IHtcbiAgcmV0dXJuIChcbiAgICA8TWF0ZXJpYWxQb3BwZXJcbiAgICAgIHBsYWNlbWVudD17cGxhY2VtZW50fVxuICAgICAgaWQ9e2lkfVxuICAgICAgb3Blbj17b3Blbn1cbiAgICAgIGNsYXNzTmFtZT17Y2xhc3NOYW1lfVxuICAgICAgYW5jaG9yRWw9e2FuY2hvckVsfVxuICAgICAgY3NzPXtcbiAgICAgICAgIW5vTWF4V2lkdGhSZXN0cmljdGlvbiAmJlxuICAgICAgICBjc3NgXG4gICAgICAgICAgbWF4LXdpZHRoOiAxMDAlO1xuICAgICAgICBgXG4gICAgICB9XG4gICAgICB7Li4ucmVzdH1cbiAgICA+XG4gICAgICA8Q2xpY2tBd2F5TGlzdGVuZXJcbiAgICAgICAgb25DbGlja0F3YXk9eyhlKSA9PiB7XG4gICAgICAgICAgb25DbGlja0F3YXkgJiYgb25DbGlja0F3YXkoZSlcbiAgICAgICAgfX1cbiAgICAgID5cbiAgICAgICAgPGRpdj57Y2hpbGRyZW59PC9kaXY+XG4gICAgICA8L0NsaWNrQXdheUxpc3RlbmVyPlxuICAgIDwvTWF0ZXJpYWxQb3BwZXI+XG4gIClcbn1cblxudHlwZSBQb3BwZXJDb21wb25lbnRQcm9wcyA9IHtcbiAgc2V0QW5jaG9yRWw6IFJlYWN0LkRpc3BhdGNoPFJlYWN0LlNldFN0YXRlQWN0aW9uPEhUTUxFbGVtZW50IHwgbnVsbD4+XG59ICYgT21pdDxQb3BwZXJCYXNlUHJvcHMsICdvbkNsaWNrQXdheSc+XG5cbmNvbnN0IFBvcHBlciA9ICh7IGNoaWxkcmVuLCBhbmNob3JFbCwgaWQsIHNldEFuY2hvckVsLCBwbGFjZW1lbnQsIHBvcHBlclJlZiwgLi4ucmVzdCB9OiBQb3BwZXJDb21wb25lbnRQcm9wcykgPT4ge1xuICBjb25zdCBvcGVuID0gQm9vbGVhbihhbmNob3JFbClcblxuICByZXR1cm4gKFxuICAgIDxQb3BwZXJCYXNlXG4gICAgICBwbGFjZW1lbnQ9e3BsYWNlbWVudH1cbiAgICAgIGlkPXtpZH1cbiAgICAgIG9wZW49e29wZW59XG4gICAgICBhbmNob3JFbD17YW5jaG9yRWx9XG4gICAgICB7Li4ucmVzdH1cbiAgICAgIG9uQ2xpY2tBd2F5PXsoKSA9PiBzZXRBbmNob3JFbChudWxsKX1cbiAgICAgIGNzcz17Y3NzYFxuICAgICAgICBiYWNrZ3JvdW5kOiAke3RoZW1lLmNvbG9ycy5zdXJmYWNlLnByaW1hcnl9O1xuICAgICAgICBib3gtc2hhZG93OiAke3RoZW1lLmVsZXZhdGlvblsxNl19O1xuICAgICAgICBwYWRkaW5nOiAke3RoZW1lLnNwYWNpbmcubX07XG4gICAgICBgfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbn1cbiAgICA8L1BvcHBlckJhc2U+XG4gIClcbn1cblxuZXhwb3J0IGRlZmF1bHQgUG9wcGVyXG4iXX0= */",
|
|
26
22
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
27
23
|
};
|
|
28
|
-
const PopperBase =
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
24
|
+
const PopperBase = ({
|
|
25
|
+
open = false,
|
|
26
|
+
children,
|
|
27
|
+
anchorEl,
|
|
28
|
+
id,
|
|
29
|
+
placement,
|
|
30
|
+
onClickAway,
|
|
31
|
+
className,
|
|
32
|
+
noMaxWidthRestriction = false,
|
|
33
|
+
...rest
|
|
34
|
+
}) => {
|
|
40
35
|
return (0, _react2.jsx)(_material.Popper, _extends({
|
|
41
36
|
placement: placement,
|
|
42
37
|
id: id,
|
|
@@ -46,19 +41,20 @@ const PopperBase = _ref2 => {
|
|
|
46
41
|
css: !noMaxWidthRestriction && _ref
|
|
47
42
|
}, rest), (0, _react2.jsx)(_base.ClickAwayListener, {
|
|
48
43
|
onClickAway: e => {
|
|
49
|
-
|
|
44
|
+
onClickAway && onClickAway(e);
|
|
50
45
|
}
|
|
51
46
|
}, (0, _react2.jsx)("div", null, children)));
|
|
52
47
|
};
|
|
53
48
|
exports.PopperBase = PopperBase;
|
|
54
|
-
const Popper =
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
49
|
+
const Popper = ({
|
|
50
|
+
children,
|
|
51
|
+
anchorEl,
|
|
52
|
+
id,
|
|
53
|
+
setAnchorEl,
|
|
54
|
+
placement,
|
|
55
|
+
popperRef,
|
|
56
|
+
...rest
|
|
57
|
+
}) => {
|
|
62
58
|
const open = Boolean(anchorEl);
|
|
63
59
|
return (0, _react2.jsx)(PopperBase, _extends({
|
|
64
60
|
placement: placement,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Popper } from './Popper';
|
package/cjs/popper/index.js
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type ProgressBarProps = {
|
|
3
|
+
light?: boolean;
|
|
4
|
+
indeterminate?: boolean;
|
|
5
|
+
progress?: number;
|
|
6
|
+
};
|
|
7
|
+
declare const ProgressBar: ({ light, indeterminate, progress }: ProgressBarProps) => JSX.Element;
|
|
8
|
+
export default ProgressBar;
|
|
@@ -8,7 +8,7 @@ var _exportNames = {
|
|
|
8
8
|
};
|
|
9
9
|
Object.defineProperty(exports, "ProgressBar", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function
|
|
11
|
+
get: function () {
|
|
12
12
|
return _ProgressBar.default;
|
|
13
13
|
}
|
|
14
14
|
});
|
|
@@ -19,10 +19,10 @@ Object.keys(_ProgressBar).forEach(function (key) {
|
|
|
19
19
|
if (key in exports && exports[key] === _ProgressBar[key]) return;
|
|
20
20
|
Object.defineProperty(exports, key, {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function
|
|
22
|
+
get: function () {
|
|
23
23
|
return _ProgressBar[key];
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function
|
|
27
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
28
28
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export type ListItemProps = {
|
|
3
|
+
time: string;
|
|
4
|
+
text: string;
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const ListItemBase: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: React.ElementType<any> | undefined;
|
|
10
|
+
} & import("./../flexbox/FlexBox").FlexBoxProps & {
|
|
11
|
+
as?: React.ElementType<any> | undefined;
|
|
12
|
+
} & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
} & {
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
} & {
|
|
17
|
+
backgroundColor?: string | undefined;
|
|
18
|
+
}, {}, {}>;
|
|
19
|
+
type ScheduleItemComponent = FunctionComponent<ListItemProps>;
|
|
20
|
+
declare const ScheduleItem: ScheduleItemComponent;
|
|
21
|
+
export default ScheduleItem;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
type ScheduleListItem = {
|
|
3
|
+
time: string;
|
|
4
|
+
text: string;
|
|
5
|
+
};
|
|
6
|
+
type ScheduleListProps = {
|
|
7
|
+
items: ScheduleListItem[];
|
|
8
|
+
};
|
|
9
|
+
type ScheduleListComponent = FunctionComponent<ScheduleListProps>;
|
|
10
|
+
declare const ScheduleList: ScheduleListComponent;
|
|
11
|
+
export default ScheduleList;
|
|
@@ -8,14 +8,12 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _FlexBox = _interopRequireDefault(require("../flexbox/FlexBox"));
|
|
9
9
|
var _ = require("./");
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
|
-
const _excluded = ["items"];
|
|
12
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
12
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
const ScheduleList = ({
|
|
14
|
+
items,
|
|
15
|
+
...rest
|
|
16
|
+
}) => {
|
|
19
17
|
const list = items.map((item, i) => {
|
|
20
18
|
return (0, _react2.jsx)(_.ScheduleItem, {
|
|
21
19
|
time: item.time,
|
package/cjs/schedule/index.js
CHANGED
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "ScheduleItem", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _ScheduleItem.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "ScheduleList", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _ScheduleList.default;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Variant = 'nested' | 'elevated';
|
|
3
|
+
type BackdropEmphasis = 'low' | 'high';
|
|
4
|
+
type Align = 'left' | 'right';
|
|
5
|
+
export type SideSheetProps = {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Choose the `width` of the `SideSheet`.
|
|
9
|
+
*/
|
|
10
|
+
header?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Choose the `width` of the `SideSheet`.
|
|
13
|
+
*/
|
|
14
|
+
width?: string;
|
|
15
|
+
/**
|
|
16
|
+
* When you trigger a close.
|
|
17
|
+
*/
|
|
18
|
+
onRequestClose?: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* If set to true, the `SideSheet` is shown.
|
|
21
|
+
*/
|
|
22
|
+
isOpen: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Choose if the SideSheet should be nested or elevated.
|
|
25
|
+
*/
|
|
26
|
+
variant?: Variant;
|
|
27
|
+
/**
|
|
28
|
+
* Align the elevated SideSheet to left or right.
|
|
29
|
+
*/
|
|
30
|
+
alignSideSheet?: Align;
|
|
31
|
+
/**
|
|
32
|
+
* Style the SideSheet by adding a className to it.
|
|
33
|
+
*/
|
|
34
|
+
className?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Add or remove the backdrop for the elevated side sheet.
|
|
37
|
+
*/
|
|
38
|
+
backdrop?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Specify the emphasis of the backdrop.
|
|
41
|
+
*/
|
|
42
|
+
backdropEmphasis?: BackdropEmphasis;
|
|
43
|
+
/**
|
|
44
|
+
* Specify the custom zIndex.
|
|
45
|
+
*/
|
|
46
|
+
zIndex?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Fullscreen on large mobile (breakpoint at 500px).
|
|
49
|
+
*/
|
|
50
|
+
largeMobileFullScreen?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Fullscreen on small mobile (breakpoint at 375px).
|
|
53
|
+
*/
|
|
54
|
+
smallMobileFullScreen?: boolean;
|
|
55
|
+
};
|
|
56
|
+
declare const SideSheet: ({ variant, className, isOpen, backdrop, width, header, zIndex, largeMobileFullScreen, smallMobileFullScreen, onRequestClose, backdropEmphasis, alignSideSheet, children, ...rest }: SideSheetProps) => JSX.Element;
|
|
57
|
+
export default SideSheet;
|