@dfds-ui/react-components 2.2.0-alpha.32eece3d → 2.2.0-alpha.3a6cc444
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 +67 -49
- package/accordion/AccordionContent.d.ts +1 -1
- package/accordion/AccordionContent.js +13 -6
- package/accordion/AccordionSmall.d.ts +2 -2
- package/accordion/AccordionSmall.js +51 -38
- package/app-bar/AppBar.d.ts +3 -3
- package/app-bar/AppBar.js +54 -42
- 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 +4 -6
- package/app-bar/AppBarItem.js +71 -65
- package/app-bar/AppBarListItem.d.ts +11 -12
- package/assertions/banner/Banner.d.ts +3 -3
- package/assertions/banner/Banner.js +67 -55
- package/assertions/banner/BannerAction.d.ts +1 -1
- package/assertions/banner/BannerAction.js +10 -5
- package/assertions/banner/BannerTypography.js +11 -8
- package/assertions/toast/Toast.d.ts +1 -1
- package/assertions/toast/Toast.js +29 -19
- package/assertions/toast/Toaster.d.ts +2 -2
- package/assertions/toast/Toaster.js +53 -58
- package/badge/Badge.d.ts +1 -1
- package/badge/Badge.js +18 -11
- 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 -31
- package/button/IconButton.d.ts +1 -1
- package/button/IconButton.js +21 -15
- package/button/LinkButton.d.ts +1 -1
- package/button/LinkButton.js +9 -4
- package/button/button-style.js +1 -2
- package/button-stack/ButtonStack.d.ts +3 -3
- package/button-stack/ButtonStack.js +27 -19
- 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 +16 -8
- package/card/CardPriceTag.d.ts +1 -1
- package/card/CardPriceTag.js +28 -16
- package/card/CardTitle.d.ts +1 -1
- package/card/CardTitle.js +25 -15
- package/chip/Chip.d.ts +4 -4
- package/chip/Chip.js +24 -17
- package/cjs/accordion/Accordion.d.ts +2 -2
- package/cjs/accordion/Accordion.js +61 -49
- 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 +44 -37
- package/cjs/app-bar/AppBar.d.ts +3 -3
- package/cjs/app-bar/AppBar.js +51 -43
- 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 +4 -6
- package/cjs/app-bar/AppBarItem.js +64 -62
- package/cjs/app-bar/AppBarListItem.d.ts +11 -12
- package/cjs/app-bar/AppBarListItem.js +1 -2
- package/cjs/assertions/banner/Banner.d.ts +3 -3
- package/cjs/assertions/banner/Banner.js +58 -53
- package/cjs/assertions/banner/BannerAction.d.ts +1 -1
- package/cjs/assertions/banner/BannerAction.js +5 -4
- package/cjs/assertions/banner/BannerTypography.js +11 -11
- package/cjs/assertions/toast/Toast.d.ts +1 -1
- package/cjs/assertions/toast/Toast.js +23 -19
- package/cjs/assertions/toast/Toaster.d.ts +2 -2
- package/cjs/assertions/toast/Toaster.js +37 -30
- package/cjs/badge/Badge.d.ts +1 -1
- package/cjs/badge/Badge.js +12 -9
- 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 -30
- package/cjs/button/IconButton.d.ts +1 -1
- package/cjs/button/IconButton.js +16 -16
- package/cjs/button/LinkButton.d.ts +1 -1
- package/cjs/button/LinkButton.js +6 -6
- package/cjs/button/button-style.js +9 -17
- package/cjs/button-stack/ButtonStack.d.ts +3 -3
- package/cjs/button-stack/ButtonStack.js +19 -17
- 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 +10 -8
- package/cjs/card/CardPriceTag.d.ts +1 -1
- package/cjs/card/CardPriceTag.js +22 -16
- 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 +20 -19
- package/cjs/common/LockBodyScroll.d.ts +2 -2
- package/cjs/common/LockBodyScroll.js +15 -11
- package/cjs/common/arrow.d.ts +1 -1
- package/cjs/common/arrow.js +2 -4
- package/cjs/common/emotionCloneElement.d.ts +0 -1
- package/cjs/common/emotionCloneElement.js +1 -2
- 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/useOnClickOutside.d.ts +1 -2
- package/cjs/counter/Counter.d.ts +1 -1
- package/cjs/counter/Counter.js +55 -53
- package/cjs/counter/PluralCounter.d.ts +1 -1
- package/cjs/counter/PluralCounter.js +14 -13
- package/cjs/data-table/DataTable.d.ts +1 -1
- package/cjs/data-table/DataTable.js +46 -38
- package/cjs/date-range-picker/DatePickerDefaultStyles.js +2 -4
- package/cjs/date-range-picker/DatePickerDfdsStyles.js +1 -2
- package/cjs/date-range-picker/DateRangePicker.d.ts +1 -1
- package/cjs/date-range-picker/DateRangePicker.js +145 -123
- package/cjs/divider/Divider.d.ts +2 -2
- package/cjs/divider/Divider.js +6 -6
- package/cjs/drawer/Drawer.d.ts +4 -4
- package/cjs/drawer/Drawer.js +11 -9
- package/cjs/dropdown-menu/Dropdown.d.ts +2 -2
- package/cjs/dropdown-menu/Dropdown.js +35 -31
- 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.js +35 -38
- package/cjs/dropdown-menu/MenuTitle.js +16 -14
- package/cjs/elevation/index.d.ts +1 -1
- package/cjs/elevation/index.js +4 -8
- package/cjs/flexbox/FlexBox.d.ts +4 -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 -4
- package/cjs/forms/assistive-text/AssistiveText.js +1 -2
- package/cjs/forms/asterisk/Asterisk.js +5 -4
- package/cjs/forms/checkbox/Checkbox.d.ts +4 -4
- 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 +1 -1
- package/cjs/forms/email-field/EmailField.js +7 -7
- package/cjs/forms/error-text/ErrorText.d.ts +3 -4
- package/cjs/forms/error-text/ErrorText.js +3 -6
- package/cjs/forms/field/Field.d.ts +1 -1
- package/cjs/forms/field/Field.js +13 -12
- package/cjs/forms/index.d.ts +3 -3
- package/cjs/forms/input/Input.d.ts +2 -2
- package/cjs/forms/input/Input.js +31 -37
- package/cjs/forms/input/InputComposition.d.ts +10 -10
- package/cjs/forms/input/InputComposition.js +39 -34
- package/cjs/forms/label/Label.d.ts +1 -1
- package/cjs/forms/label/Label.js +8 -7
- package/cjs/forms/number-field/NumberField.d.ts +1 -1
- package/cjs/forms/number-field/NumberField.js +7 -8
- package/cjs/forms/password-field/PasswordField.js +12 -13
- package/cjs/forms/radio/Radio.d.ts +3 -3
- package/cjs/forms/radio/Radio.js +23 -23
- package/cjs/forms/reactselect/ReactSelect.d.ts +12 -12
- package/cjs/forms/reactselect/ReactSelect.js +74 -66
- package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +2 -2
- package/cjs/forms/searchable-select/AsyncSearchableSelect.js +47 -38
- package/cjs/forms/select/Select.d.ts +3 -3
- package/cjs/forms/select/Select.js +33 -35
- package/cjs/forms/select-field/SelectField.d.ts +2 -2
- package/cjs/forms/select-field/SelectField.js +37 -37
- package/cjs/forms/switch/Switch.d.ts +2 -2
- package/cjs/forms/switch/Switch.js +41 -38
- package/cjs/forms/tel-field/TelField.d.ts +1 -1
- package/cjs/forms/tel-field/TelField.js +7 -7
- package/cjs/forms/text-field/TextField.d.ts +3 -3
- package/cjs/forms/text-field/TextField.js +42 -43
- package/cjs/global-styles/GlobalStyles.js +3 -2
- package/cjs/global-styles/ResetStyles.js +3 -3
- package/cjs/global-styles/sanitize.js +3 -5
- 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 +33 -24
- package/cjs/hero/Hero.d.ts +2 -2
- package/cjs/hero/Hero.js +42 -26
- 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/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 +1 -1
- 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 +7 -8
- package/cjs/loader/DfdsLoader.d.ts +1 -1
- package/cjs/loader/DfdsLoader.js +29 -24
- package/cjs/loader/Loader.d.ts +1 -1
- package/cjs/loader/Loader.js +10 -5
- 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 +27 -20
- package/cjs/mobile-stepper/MobileStepper.d.ts +1 -1
- package/cjs/mobile-stepper/MobileStepper.js +19 -19
- package/cjs/nav-bar/NavBar.d.ts +9 -9
- package/cjs/nav-bar/NavBar.js +35 -26
- package/cjs/nav-menu/NavMenuItem.d.ts +1 -1
- package/cjs/nav-menu/NavMenuItem.js +14 -13
- package/cjs/pagination/Pagination.d.ts +2 -2
- package/cjs/pagination/Pagination.js +52 -42
- package/cjs/pagination/Pagination.styles.js +7 -14
- package/cjs/popper/Popper.d.ts +2 -2
- package/cjs/popper/Popper.js +22 -21
- package/cjs/progress-bar/ProgressBar.d.ts +1 -1
- package/cjs/progress-bar/ProgressBar.js +5 -7
- 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 +46 -43
- 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 +31 -21
- 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 +14 -15
- package/cjs/step/Step.d.ts +1 -1
- package/cjs/step/Step.js +29 -20
- package/cjs/step/Step.styles.js +5 -10
- package/cjs/step/StepButton.d.ts +2 -2
- package/cjs/step/StepButton.js +30 -29
- package/cjs/step/StepContent.d.ts +1 -1
- package/cjs/step/StepContent.js +14 -14
- 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 +10 -9
- package/cjs/stepper/Stepper.d.ts +1 -1
- package/cjs/stepper/Stepper.js +14 -14
- package/cjs/stepper/StepperContext.d.ts +1 -1
- package/cjs/stepper/StepperContext.js +1 -2
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.js +11 -9
- package/cjs/styles/media.d.ts +1 -1
- package/cjs/styles/media.js +2 -4
- package/cjs/styles/style-helpers.js +1 -2
- 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 -9
- 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 -32
- package/cjs/tab/TabsContext.d.ts +3 -3
- package/cjs/tab/TabsContext.js +7 -8
- package/cjs/table/Table.d.ts +2 -2
- package/cjs/table/Table.js +15 -15
- package/cjs/table/TableBody.d.ts +1 -1
- package/cjs/table/TableBody.js +8 -9
- package/cjs/table/TableDataCell.d.ts +1 -1
- package/cjs/table/TableDataCell.js +9 -10
- package/cjs/table/TableHead.d.ts +1 -1
- package/cjs/table/TableHead.js +10 -12
- package/cjs/table/TableHeaderCell.d.ts +2 -2
- package/cjs/table/TableHeaderCell.js +9 -10
- package/cjs/table/TableRow.d.ts +1 -1
- package/cjs/table/TableRow.js +9 -10
- package/cjs/test/Test.js +5 -4
- package/cjs/tooltip/Tooltip.d.ts +3 -3
- package/cjs/tooltip/Tooltip.js +30 -25
- package/cjs/typography/Headlines.d.ts +32 -32
- package/cjs/typography/Headlines.js +25 -33
- package/cjs/typography/Text.d.ts +2 -3
- package/cjs/typography/Text.js +3 -5
- package/common/LockBodyScroll.d.ts +2 -2
- package/common/LockBodyScroll.js +20 -10
- package/common/arrow.d.ts +1 -1
- package/common/arrow.js +2 -4
- package/common/emotionCloneElement.d.ts +0 -1
- 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 +2 -2
- package/common/useOnClickOutside.d.ts +1 -2
- package/counter/Counter.d.ts +1 -1
- package/counter/Counter.js +55 -52
- package/counter/PluralCounter.d.ts +1 -1
- package/counter/PluralCounter.js +21 -13
- package/data-table/DataTable.d.ts +1 -1
- package/data-table/DataTable.js +53 -40
- package/date-range-picker/DatePickerDefaultStyles.js +1 -2
- package/date-range-picker/DateRangePicker.d.ts +1 -1
- package/date-range-picker/DateRangePicker.js +152 -132
- package/divider/Divider.d.ts +2 -2
- package/divider/Divider.js +10 -5
- package/drawer/Drawer.d.ts +4 -4
- package/drawer/Drawer.js +16 -7
- package/dropdown-menu/Dropdown.d.ts +2 -2
- package/dropdown-menu/Dropdown.js +42 -34
- 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.js +31 -28
- package/dropdown-menu/MenuTitle.js +15 -13
- package/elevation/index.d.ts +1 -1
- package/elevation/index.js +3 -6
- package/flexbox/FlexBox.d.ts +4 -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 -4
- package/forms/asterisk/Asterisk.js +4 -2
- package/forms/checkbox/Checkbox.d.ts +4 -4
- package/forms/checkbox/Checkbox.js +49 -40
- package/forms/checkbox/ExampleControlComponent.d.ts +1 -1
- package/forms/checkbox/ExampleControlComponent.js +15 -8
- package/forms/email-field/EmailField.d.ts +1 -1
- package/forms/email-field/EmailField.js +9 -4
- package/forms/error-text/ErrorText.d.ts +3 -4
- package/forms/error-text/ErrorText.js +2 -4
- package/forms/field/Field.d.ts +1 -1
- package/forms/field/Field.js +12 -10
- package/forms/index.d.ts +3 -3
- package/forms/input/Input.d.ts +2 -2
- package/forms/input/Input.js +37 -38
- package/forms/input/InputComposition.d.ts +10 -10
- package/forms/input/InputComposition.js +40 -29
- package/forms/label/Label.d.ts +1 -1
- package/forms/label/Label.js +14 -8
- package/forms/number-field/NumberField.d.ts +1 -1
- package/forms/number-field/NumberField.js +10 -6
- package/forms/password-field/PasswordField.js +17 -12
- package/forms/radio/Radio.d.ts +3 -3
- package/forms/radio/Radio.js +29 -23
- package/forms/reactselect/ReactSelect.d.ts +12 -12
- package/forms/reactselect/ReactSelect.js +71 -64
- package/forms/searchable-select/AsyncSearchableSelect.d.ts +2 -2
- package/forms/searchable-select/AsyncSearchableSelect.js +51 -39
- package/forms/select/Select.d.ts +3 -3
- package/forms/select/Select.js +40 -37
- package/forms/select-field/SelectField.d.ts +2 -2
- package/forms/select-field/SelectField.js +42 -37
- package/forms/switch/Switch.d.ts +2 -2
- package/forms/switch/Switch.js +52 -43
- package/forms/tel-field/TelField.d.ts +1 -1
- package/forms/tel-field/TelField.js +9 -4
- package/forms/text-field/TextField.d.ts +3 -3
- package/forms/text-field/TextField.js +49 -44
- package/global-styles/GlobalStyles.js +3 -3
- package/global-styles/ResetStyles.js +3 -4
- package/global-styles/sanitize.js +1 -2
- package/grid/Column.d.ts +1 -1
- package/grid/Column.js +13 -6
- package/grid/Container.d.ts +2 -2
- package/grid/Container.js +42 -32
- package/hero/Hero.d.ts +2 -2
- package/hero/Hero.js +42 -24
- 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/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 +1 -1
- 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 +11 -7
- package/loader/DfdsLoader.d.ts +1 -1
- package/loader/DfdsLoader.js +26 -21
- package/loader/Loader.d.ts +1 -1
- package/loader/Loader.js +9 -4
- 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 +30 -17
- package/mobile-stepper/MobileStepper.d.ts +1 -1
- package/mobile-stepper/MobileStepper.js +28 -22
- package/nav-bar/NavBar.d.ts +9 -9
- package/nav-bar/NavBar.js +42 -25
- package/nav-menu/NavMenuItem.d.ts +1 -1
- package/nav-menu/NavMenuItem.js +13 -12
- package/package.json +19 -19
- package/pagination/Pagination.d.ts +2 -2
- package/pagination/Pagination.js +55 -39
- package/pagination/Pagination.styles.js +1 -2
- package/popper/Popper.d.ts +2 -2
- package/popper/Popper.js +26 -21
- package/progress-bar/ProgressBar.d.ts +1 -1
- package/progress-bar/ProgressBar.js +4 -6
- 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 +52 -44
- 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 +32 -14
- 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 +18 -12
- package/step/Step.d.ts +1 -1
- package/step/Step.js +34 -20
- package/step/Step.styles.js +1 -2
- package/step/StepButton.d.ts +2 -2
- package/step/StepButton.js +27 -21
- package/step/StepContent.d.ts +1 -1
- package/step/StepContent.js +13 -13
- package/step/StepContext.d.ts +1 -1
- package/step/StepLabel.d.ts +1 -1
- package/step/StepLabel.js +9 -8
- package/stepper/Stepper.d.ts +1 -1
- package/stepper/Stepper.js +15 -15
- package/stepper/StepperContext.d.ts +1 -1
- package/stepper-feedback-message/StepperFeedbackMessage.js +10 -8
- package/styles/media.d.ts +1 -1
- package/styles/style-helpers.js +1 -2
- 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 -12
- 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 -40
- package/tab/TabsContext.d.ts +3 -3
- package/tab/TabsContext.js +5 -4
- package/table/Table.d.ts +2 -2
- package/table/Table.js +20 -13
- package/table/TableBody.d.ts +1 -1
- package/table/TableBody.js +13 -7
- package/table/TableDataCell.d.ts +1 -1
- package/table/TableDataCell.js +14 -8
- package/table/TableHead.d.ts +1 -1
- package/table/TableHead.js +10 -8
- package/table/TableHeaderCell.d.ts +2 -2
- package/table/TableHeaderCell.js +14 -8
- package/table/TableRow.d.ts +1 -1
- package/table/TableRow.js +11 -10
- package/test/Test.js +4 -2
- package/tooltip/Tooltip.d.ts +3 -3
- package/tooltip/Tooltip.js +33 -24
- package/typography/Headlines.d.ts +32 -32
- package/typography/Headlines.js +24 -19
- package/typography/Text.d.ts +2 -3
- package/typography/Text.js +1 -2
|
@@ -1,18 +1,27 @@
|
|
|
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 = ["children", "className"];
|
|
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, { Fragment } from 'react';
|
|
6
11
|
import { css } from '@emotion/react';
|
|
7
12
|
import { theme } from '@dfds-ui/theme';
|
|
8
|
-
import { jsx as
|
|
13
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
9
14
|
export var SideSheetFooter = function SideSheetFooter(_ref) {
|
|
10
15
|
var children = _ref.children,
|
|
11
16
|
className = _ref.className,
|
|
12
17
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
return _jsx(Fragment, {
|
|
19
|
+
children: _jsx("div", _objectSpread(_objectSpread({
|
|
20
|
+
className: className,
|
|
21
|
+
css: /*#__PURE__*/css("flex:0 0 auto;display:flex;padding:", theme.spacing.s, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:SideSheetFooter;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zaWRlLXNoZWV0L1NpZGVTaGVldEZvb3Rlci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBY2dCIiwiZmlsZSI6Ii4uLy4uL3NyYy9zaWRlLXNoZWV0L1NpZGVTaGVldEZvb3Rlci50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgUmVhY3ROb2RlLCBGcmFnbWVudCB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgeyB0aGVtZSB9IGZyb20gJ0BkZmRzLXVpL3RoZW1lJ1xuXG5leHBvcnQgdHlwZSBTaWRlU2hlZXRGb290ZXJQcm9wcyA9IHtcbiAgY2xhc3NOYW1lPzogc3RyaW5nXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlXG59XG5cbmV4cG9ydCBjb25zdCBTaWRlU2hlZXRGb290ZXIgPSAoeyBjaGlsZHJlbiwgY2xhc3NOYW1lLCAuLi5yZXN0IH06IFNpZGVTaGVldEZvb3RlclByb3BzKSA9PiB7XG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAgPGRpdlxuICAgICAgICBjbGFzc05hbWU9e2NsYXNzTmFtZX1cbiAgICAgICAgY3NzPXtjc3NgXG4gICAgICAgICAgZmxleDogMCAwIGF1dG87XG4gICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICBwYWRkaW5nOiAke3RoZW1lLnNwYWNpbmcuc307XG4gICAgICAgIGB9XG4gICAgICAgIHsuLi5yZXN0fVxuICAgICAgPlxuICAgICAgICB7Y2hpbGRyZW59XG4gICAgICA8L2Rpdj5cbiAgICA8L0ZyYWdtZW50PlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IFNpZGVTaGVldEZvb3RlclxuIl19 */")
|
|
22
|
+
}, rest), {}, {
|
|
23
|
+
children: children
|
|
24
|
+
}))
|
|
25
|
+
});
|
|
17
26
|
};
|
|
18
27
|
export default SideSheetFooter;
|
|
@@ -1,12 +1,17 @@
|
|
|
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 = ["children", "className", "sticky", "noDivider"];
|
|
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, { Fragment } from 'react';
|
|
6
11
|
import { css } from '@emotion/react';
|
|
7
12
|
import { theme } from '@dfds-ui/theme';
|
|
8
13
|
import Divider from '../divider/Divider';
|
|
9
|
-
import { jsx as
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
10
15
|
export var SideSheetHeader = function SideSheetHeader(_ref) {
|
|
11
16
|
var children = _ref.children,
|
|
12
17
|
className = _ref.className,
|
|
@@ -14,9 +19,13 @@ export var SideSheetHeader = function SideSheetHeader(_ref) {
|
|
|
14
19
|
_ref$noDivider = _ref.noDivider,
|
|
15
20
|
noDivider = _ref$noDivider === void 0 ? false : _ref$noDivider,
|
|
16
21
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
return _jsxs(Fragment, {
|
|
23
|
+
children: [_jsx("div", _objectSpread(_objectSpread({
|
|
24
|
+
className: className,
|
|
25
|
+
css: /*#__PURE__*/css("min-height:3rem;display:flex;align-items:center;justify-content:space-between;padding-left:", theme.spacing.s, ";background-color:", theme.colors.surface.primary, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:SideSheetHeader;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zaWRlLXNoZWV0L1NpZGVTaGVldEhlYWRlci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBaUJnQiIsImZpbGUiOiIuLi8uLi9zcmMvc2lkZS1zaGVldC9TaWRlU2hlZXRIZWFkZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IFJlYWN0Tm9kZSwgRnJhZ21lbnQgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuaW1wb3J0IHsgdGhlbWUgfSBmcm9tICdAZGZkcy11aS90aGVtZSdcbmltcG9ydCBEaXZpZGVyIGZyb20gJy4uL2RpdmlkZXIvRGl2aWRlcidcblxuZXhwb3J0IHR5cGUgTW9kYWxIZWFkZXJQcm9wcyA9IHtcbiAgY2xhc3NOYW1lPzogc3RyaW5nXG4gIHN0aWNreT86IGJvb2xlYW5cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGVcbiAgbm9EaXZpZGVyPzogYm9vbGVhblxufVxuXG5leHBvcnQgY29uc3QgU2lkZVNoZWV0SGVhZGVyID0gKHsgY2hpbGRyZW4sIGNsYXNzTmFtZSwgc3RpY2t5LCBub0RpdmlkZXIgPSBmYWxzZSwgLi4ucmVzdCB9OiBNb2RhbEhlYWRlclByb3BzKSA9PiB7XG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAgPGRpdlxuICAgICAgICBjbGFzc05hbWU9e2NsYXNzTmFtZX1cbiAgICAgICAgY3NzPXtjc3NgXG4gICAgICAgICAgbWluLWhlaWdodDogM3JlbTtcbiAgICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICAgICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICAgICAgICAgIHBhZGRpbmctbGVmdDogJHt0aGVtZS5zcGFjaW5nLnN9O1xuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICR7dGhlbWUuY29sb3JzLnN1cmZhY2UucHJpbWFyeX07XG4gICAgICAgIGB9XG4gICAgICAgIHsuLi5yZXN0fVxuICAgICAgPlxuICAgICAgICB7Y2hpbGRyZW59XG4gICAgICA8L2Rpdj5cbiAgICAgIHshbm9EaXZpZGVyICYmIDxEaXZpZGVyIC8+fVxuICAgIDwvRnJhZ21lbnQ+XG4gIClcbn1cblxuZXhwb3J0IGRlZmF1bHQgU2lkZVNoZWV0SGVhZGVyXG4iXX0= */")
|
|
26
|
+
}, rest), {}, {
|
|
27
|
+
children: children
|
|
28
|
+
})), !noDivider && _jsx(Divider, {})]
|
|
29
|
+
});
|
|
21
30
|
};
|
|
22
31
|
export default SideSheetHeader;
|
|
@@ -2,13 +2,14 @@ import React from 'react';
|
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { theme } from '@dfds-ui/theme';
|
|
4
4
|
import { SmallHeadline } from '../typography/Headlines';
|
|
5
|
-
import { jsx as
|
|
5
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
6
6
|
export var SideSheetHeadline = function SideSheetHeadline(_ref) {
|
|
7
7
|
var className = _ref.className,
|
|
8
8
|
children = _ref.children;
|
|
9
|
-
return
|
|
9
|
+
return _jsx(SmallHeadline, {
|
|
10
10
|
css: /*#__PURE__*/css("color:", theme.colors.primary.dark, ";margin:0.625rem 0;" + (process.env.NODE_ENV === "production" ? "" : ";label:SideSheetHeadline;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zaWRlLXNoZWV0L1NpZGVTaGVldEhlYWRsaW5lLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFhYyIsImZpbGUiOiIuLi8uLi9zcmMvc2lkZS1zaGVldC9TaWRlU2hlZXRIZWFkbGluZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcbmltcG9ydCB7IHRoZW1lIH0gZnJvbSAnQGRmZHMtdWkvdGhlbWUnXG5pbXBvcnQgeyBTbWFsbEhlYWRsaW5lIH0gZnJvbSAnLi4vdHlwb2dyYXBoeS9IZWFkbGluZXMnXG5cbmV4cG9ydCB0eXBlIFNpZGVTaGVldEhlYWRsaW5lUHJvcHMgPSB7XG4gIGNsYXNzTmFtZT86IHN0cmluZ1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZVxufVxuXG5leHBvcnQgY29uc3QgU2lkZVNoZWV0SGVhZGxpbmUgPSAoeyBjbGFzc05hbWUsIGNoaWxkcmVuIH06IFNpZGVTaGVldEhlYWRsaW5lUHJvcHMpID0+IHtcbiAgcmV0dXJuIChcbiAgICA8U21hbGxIZWFkbGluZVxuICAgICAgY3NzPXtjc3NgXG4gICAgICAgIGNvbG9yOiAke3RoZW1lLmNvbG9ycy5wcmltYXJ5LmRhcmt9O1xuICAgICAgICBtYXJnaW46IDAuNjI1cmVtIDA7XG4gICAgICBgfVxuICAgICAgY2xhc3NOYW1lPXtjbGFzc05hbWV9XG4gICAgPlxuICAgICAge2NoaWxkcmVufVxuICAgIDwvU21hbGxIZWFkbGluZT5cbiAgKVxufVxuXG5leHBvcnQgZGVmYXVsdCBTaWRlU2hlZXRIZWFkbGluZVxuIl19 */"),
|
|
11
|
-
className: className
|
|
12
|
-
|
|
11
|
+
className: className,
|
|
12
|
+
children: children
|
|
13
|
+
});
|
|
13
14
|
};
|
|
14
15
|
export default SideSheetHeadline;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type RenderAs = {
|
|
3
3
|
as?: React.ElementType;
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
type LayoutProps = {
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
fullWidth?: boolean;
|
|
8
8
|
className?: string;
|
|
9
9
|
} & RenderAs;
|
|
10
|
-
|
|
10
|
+
type LayoutChildProps = {
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
fullWidth?: boolean;
|
|
13
13
|
className?: string;
|
|
14
14
|
} & RenderAs;
|
|
15
15
|
export declare const LayoutGrid: import("@emotion/styled").StyledComponent<{
|
|
16
|
-
theme?: import("@emotion/react").Theme
|
|
17
|
-
as?: React.ElementType
|
|
16
|
+
theme?: import("@emotion/react").Theme;
|
|
17
|
+
as?: React.ElementType;
|
|
18
18
|
} & {
|
|
19
19
|
children?: React.ReactNode;
|
|
20
|
-
fullWidth?: boolean
|
|
21
|
-
className?: string
|
|
20
|
+
fullWidth?: boolean;
|
|
21
|
+
className?: string;
|
|
22
22
|
} & RenderAs, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
23
|
export declare const Layout: React.FunctionComponent<LayoutProps>;
|
|
24
24
|
export declare const LayoutHeader: React.FunctionComponent<LayoutChildProps>;
|
|
@@ -26,12 +26,12 @@ export declare const LayoutMain: React.FunctionComponent<LayoutChildProps>;
|
|
|
26
26
|
export declare const LayoutFooter: React.FunctionComponent<LayoutChildProps>;
|
|
27
27
|
declare const _default: {
|
|
28
28
|
Grid: import("@emotion/styled").StyledComponent<{
|
|
29
|
-
theme?: import("@emotion/react").Theme
|
|
30
|
-
as?: React.ElementType
|
|
29
|
+
theme?: import("@emotion/react").Theme;
|
|
30
|
+
as?: React.ElementType;
|
|
31
31
|
} & {
|
|
32
32
|
children?: React.ReactNode;
|
|
33
|
-
fullWidth?: boolean
|
|
34
|
-
className?: string
|
|
33
|
+
fullWidth?: boolean;
|
|
34
|
+
className?: string;
|
|
35
35
|
} & RenderAs, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
36
36
|
Header: React.FunctionComponent<LayoutChildProps>;
|
|
37
37
|
Main: React.FunctionComponent<LayoutChildProps>;
|
|
@@ -1,15 +1,20 @@
|
|
|
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
|
import _styled from "@emotion/styled/base";
|
|
2
3
|
var _excluded = ["children", "className", "as"],
|
|
3
4
|
_excluded2 = ["children", "className", "as"],
|
|
4
5
|
_excluded3 = ["children", "className", "as"],
|
|
5
6
|
_excluded4 = ["children", "className", "as"];
|
|
6
|
-
function
|
|
7
|
-
function
|
|
8
|
-
function
|
|
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; }
|
|
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; }
|
|
9
|
+
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; }
|
|
10
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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); }
|
|
12
|
+
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; }
|
|
13
|
+
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; }
|
|
9
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)."; }
|
|
10
15
|
import React from 'react';
|
|
11
16
|
import { theme } from '@dfds-ui/theme';
|
|
12
|
-
import { jsx as
|
|
17
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
13
18
|
var Container = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
|
|
14
19
|
target: "edj7or84"
|
|
15
20
|
} : {
|
|
@@ -20,8 +25,7 @@ var Container = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production
|
|
|
20
25
|
styles: "margin:0 auto"
|
|
21
26
|
} : {
|
|
22
27
|
name: "9th5i",
|
|
23
|
-
styles: "margin:0 auto",
|
|
24
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zaXRlLWxheW91dC9TaXRlTGF5b3V0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFZNEIiLCJmaWxlIjoiLi4vLi4vc3JjL3NpdGUtbGF5b3V0L1NpdGVMYXlvdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQgeyB0aGVtZSB9IGZyb20gJ0BkZmRzLXVpL3RoZW1lJ1xuXG50eXBlIFJlbmRlckFzID0ge1xuICBhcz86IFJlYWN0LkVsZW1lbnRUeXBlXG59XG5cbnR5cGUgTGF5b3V0UHJvcHMgPSB7IGNoaWxkcmVuPzogUmVhY3QuUmVhY3ROb2RlOyBmdWxsV2lkdGg/OiBib29sZWFuOyBjbGFzc05hbWU/OiBzdHJpbmcgfSAmIFJlbmRlckFzXG5cbnR5cGUgTGF5b3V0Q2hpbGRQcm9wcyA9IHsgY2hpbGRyZW4/OiBSZWFjdC5SZWFjdE5vZGU7IGZ1bGxXaWR0aD86IGJvb2xlYW47IGNsYXNzTmFtZT86IHN0cmluZyB9ICYgUmVuZGVyQXNcblxuY29uc3Qg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XG5cbmV4cG9ydCBjb25zdCBMYXlvdXRNYWluOiBSZWFjdC5GdW5jdGlvbkNvbXBvbmVudDxMYXlvdXRDaGlsZFByb3BzPiA9ICh7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGFzLCAuLi5yZXN0IH0pID0+IHtcbiAgcmV0dXJuIChcbiAgICA8R3JpZE1haW4gY2xhc3NOYW1lPXtjbGFzc05hbWV9IGFzPXthc30gey4uLnJlc3R9PlxuICAgICAgPENvbnRhaW5lcj57Y2hpbGRyZW59PC9Db250YWluZXI+XG4gICAgPC9HcmlkTWFpbj5cbiAgKVxufVxuXG5leHBvcnQgY29uc3QgTGF5b3V0Rm9vdGVyOiBSZWFjdC5GdW5jdGlvbkNvbXBvbmVudDxMYXlvdXRDaGlsZFByb3BzPiA9ICh7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGFzLCAuLi5yZXN0IH0pID0+IHtcbiAgcmV0dXJuIChcbiAgICA8R3JpZEZvb3RlciBjbGFzc05hbWU9e2NsYXNzTmFtZX0gYXM9e2FzfSB7Li4ucmVzdH0+XG4gICAgICA8Q29udGFpbmVyPntjaGlsZHJlbn08L0NvbnRhaW5lcj5cbiAgICA8L0dyaWRGb290ZXI+XG4gIClcbn1cblxuZXhwb3J0IGRlZmF1bHQge1xuICBHcmlkOiBMYXlvdXRHcmlkLFxuICBIZWFkZXI6IExheW91dEhlYWRlcixcbiAgTWFpbjogTGF5b3V0TWFpbixcbiAgRm9vdGVyOiBMYXlvdXRGb290ZXIsXG59XG4iXX0= */",
|
|
25
29
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
26
30
|
});
|
|
27
31
|
export var LayoutGrid = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
|
|
@@ -66,40 +70,54 @@ export var Layout = function Layout(_ref5) {
|
|
|
66
70
|
_ref5$as = _ref5.as,
|
|
67
71
|
as = _ref5$as === void 0 ? 'div' : _ref5$as,
|
|
68
72
|
rest = _objectWithoutProperties(_ref5, _excluded);
|
|
69
|
-
return
|
|
73
|
+
return _jsx(LayoutGrid, _objectSpread(_objectSpread({
|
|
70
74
|
className: className,
|
|
71
75
|
as: as
|
|
72
|
-
}, rest),
|
|
76
|
+
}, rest), {}, {
|
|
77
|
+
children: children
|
|
78
|
+
}));
|
|
73
79
|
};
|
|
74
80
|
export var LayoutHeader = function LayoutHeader(_ref6) {
|
|
75
81
|
var children = _ref6.children,
|
|
76
82
|
className = _ref6.className,
|
|
77
83
|
as = _ref6.as,
|
|
78
84
|
rest = _objectWithoutProperties(_ref6, _excluded2);
|
|
79
|
-
return
|
|
85
|
+
return _jsx(GridHeader, _objectSpread(_objectSpread({
|
|
80
86
|
className: className,
|
|
81
87
|
as: as
|
|
82
|
-
}, rest),
|
|
88
|
+
}, rest), {}, {
|
|
89
|
+
children: _jsx(Container, {
|
|
90
|
+
children: children
|
|
91
|
+
})
|
|
92
|
+
}));
|
|
83
93
|
};
|
|
84
94
|
export var LayoutMain = function LayoutMain(_ref7) {
|
|
85
95
|
var children = _ref7.children,
|
|
86
96
|
className = _ref7.className,
|
|
87
97
|
as = _ref7.as,
|
|
88
98
|
rest = _objectWithoutProperties(_ref7, _excluded3);
|
|
89
|
-
return
|
|
99
|
+
return _jsx(GridMain, _objectSpread(_objectSpread({
|
|
90
100
|
className: className,
|
|
91
101
|
as: as
|
|
92
|
-
}, rest),
|
|
102
|
+
}, rest), {}, {
|
|
103
|
+
children: _jsx(Container, {
|
|
104
|
+
children: children
|
|
105
|
+
})
|
|
106
|
+
}));
|
|
93
107
|
};
|
|
94
108
|
export var LayoutFooter = function LayoutFooter(_ref8) {
|
|
95
109
|
var children = _ref8.children,
|
|
96
110
|
className = _ref8.className,
|
|
97
111
|
as = _ref8.as,
|
|
98
112
|
rest = _objectWithoutProperties(_ref8, _excluded4);
|
|
99
|
-
return
|
|
113
|
+
return _jsx(GridFooter, _objectSpread(_objectSpread({
|
|
100
114
|
className: className,
|
|
101
115
|
as: as
|
|
102
|
-
}, rest),
|
|
116
|
+
}, rest), {}, {
|
|
117
|
+
children: _jsx(Container, {
|
|
118
|
+
children: children
|
|
119
|
+
})
|
|
120
|
+
}));
|
|
103
121
|
};
|
|
104
122
|
export default {
|
|
105
123
|
Grid: LayoutGrid,
|
package/skeleton/Skeleton.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ export interface SkeletonProps {
|
|
|
3
3
|
variant: SkeletonVariant;
|
|
4
4
|
disableAnimation?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type SkeletonVariant = 'text' | 'circle' | 'rect';
|
|
7
7
|
export declare const Skeleton: ({ variant, disableAnimation, ...rest }: SkeletonProps) => React.JSX.Element;
|
|
8
8
|
export default Skeleton;
|
package/skeleton/Skeleton.js
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
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 = ["variant", "disableAnimation"];
|
|
2
3
|
var _templateObject;
|
|
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 _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
7
12
|
import { theme } from '@dfds-ui/theme';
|
|
8
13
|
import { keyframes } from '@emotion/react';
|
|
9
14
|
import { css } from '@emotion/react';
|
|
10
15
|
import React from 'react';
|
|
11
|
-
import { jsx as
|
|
16
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
12
17
|
var Pulse = function Pulse() {
|
|
13
18
|
return keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% { background-color: rgba(77, 78, 76, 0.16); }\n 50% { background-color: rgba(255,255,255, 0.32); }\n 100% { background-color: rgba(77, 78, 76, 0.16); }\n"])));
|
|
14
19
|
};
|
|
@@ -26,7 +31,7 @@ export var Skeleton = function Skeleton(_ref2) {
|
|
|
26
31
|
var variant = _ref2.variant,
|
|
27
32
|
disableAnimation = _ref2.disableAnimation,
|
|
28
33
|
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
29
|
-
return
|
|
34
|
+
return _jsx("div", _objectSpread({
|
|
30
35
|
css: skeletonStyles({
|
|
31
36
|
variant: variant,
|
|
32
37
|
disableAnimation: disableAnimation
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type SocialMediaLinkListProps = {
|
|
3
3
|
instagramLink?: string;
|
|
4
4
|
facebookLink?: string;
|
|
5
5
|
blogLink?: string;
|
|
@@ -12,13 +12,13 @@ export declare type SocialMediaLinkListProps = {
|
|
|
12
12
|
colorOverwrite?: string;
|
|
13
13
|
};
|
|
14
14
|
export declare const SoMeWrapper: import("@emotion/styled").StyledComponent<{
|
|
15
|
-
theme?: import("@emotion/react").Theme
|
|
16
|
-
as?: React.ElementType
|
|
17
|
-
} & import("../flexbox
|
|
18
|
-
as?: React.ElementType
|
|
15
|
+
theme?: import("@emotion/react").Theme;
|
|
16
|
+
as?: React.ElementType;
|
|
17
|
+
} & import("../flexbox").FlexBoxProps & {
|
|
18
|
+
as?: React.ElementType;
|
|
19
19
|
} & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
20
|
-
theme?: import("@emotion/react").Theme
|
|
20
|
+
theme?: import("@emotion/react").Theme;
|
|
21
21
|
} & SocialMediaLinkListProps, {}, {}>;
|
|
22
|
-
|
|
22
|
+
type socialMediaLinkListComponent = FunctionComponent<SocialMediaLinkListProps>;
|
|
23
23
|
export declare const SocialMediaLinkList: socialMediaLinkListComponent;
|
|
24
24
|
export default SocialMediaLinkList;
|
|
@@ -1,12 +1,17 @@
|
|
|
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
|
import _styled from "@emotion/styled/base";
|
|
2
3
|
var _excluded = ["instagramLink", "facebookLink", "blogLink", "twitterLink", "linkedinLink", "youtubeLink", "mailshareLink", "iconSize", "noPadding", "colorOverwrite"];
|
|
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
|
import React from 'react';
|
|
7
12
|
import FlexBox from '../flexbox/FlexBox';
|
|
8
13
|
import { Blog, Facebook, Instagram, LinkedIn, MailShare, Twitter, Youtube } from '@dfds-ui/icons';
|
|
9
|
-
import { jsx as
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
10
15
|
export var SoMeWrapper = /*#__PURE__*/_styled(FlexBox, process.env.NODE_ENV === "production" ? {
|
|
11
16
|
target: "e1vhyn6d0"
|
|
12
17
|
} : {
|
|
@@ -37,60 +42,69 @@ export var SocialMediaLinkList = function SocialMediaLinkList(_ref5) {
|
|
|
37
42
|
noPadding = _ref5.noPadding,
|
|
38
43
|
colorOverwrite = _ref5.colorOverwrite,
|
|
39
44
|
rest = _objectWithoutProperties(_ref5, _excluded);
|
|
40
|
-
return
|
|
45
|
+
return _jsxs(SoMeWrapper, _objectSpread(_objectSpread({
|
|
41
46
|
colorOverwrite: colorOverwrite,
|
|
42
47
|
noPadding: noPadding,
|
|
43
48
|
wrapWrap: true,
|
|
44
49
|
iconSize: iconSize
|
|
45
|
-
}, rest),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
50
|
+
}, rest), {}, {
|
|
51
|
+
children: [facebookLink && _jsx("a", {
|
|
52
|
+
href: facebookLink,
|
|
53
|
+
target: "_blank",
|
|
54
|
+
rel: "noopener noreferrer",
|
|
55
|
+
children: _jsx(Facebook, {
|
|
56
|
+
height: iconSize,
|
|
57
|
+
width: iconSize
|
|
58
|
+
})
|
|
59
|
+
}), blogLink && _jsx("a", {
|
|
60
|
+
href: blogLink,
|
|
61
|
+
target: "_blank",
|
|
62
|
+
rel: "noopener noreferrer",
|
|
63
|
+
children: _jsx(Blog, {
|
|
64
|
+
height: iconSize,
|
|
65
|
+
width: iconSize
|
|
66
|
+
})
|
|
67
|
+
}), instagramLink && _jsx("a", {
|
|
68
|
+
href: instagramLink,
|
|
69
|
+
target: "_blank",
|
|
70
|
+
rel: "noopener noreferrer",
|
|
71
|
+
children: _jsx(Instagram, {
|
|
72
|
+
height: iconSize,
|
|
73
|
+
width: iconSize
|
|
74
|
+
})
|
|
75
|
+
}), linkedinLink && _jsx("a", {
|
|
76
|
+
href: linkedinLink,
|
|
77
|
+
target: "_blank",
|
|
78
|
+
rel: "noopener noreferrer",
|
|
79
|
+
children: _jsx(LinkedIn, {
|
|
80
|
+
height: iconSize,
|
|
81
|
+
width: iconSize
|
|
82
|
+
})
|
|
83
|
+
}), twitterLink && _jsx("a", {
|
|
84
|
+
href: twitterLink,
|
|
85
|
+
target: "_blank",
|
|
86
|
+
rel: "noopener noreferrer",
|
|
87
|
+
children: _jsx(Twitter, {
|
|
88
|
+
height: iconSize,
|
|
89
|
+
width: iconSize
|
|
90
|
+
})
|
|
91
|
+
}), youtubeLink && _jsx("a", {
|
|
92
|
+
href: youtubeLink,
|
|
93
|
+
target: "_blank",
|
|
94
|
+
rel: "noopener noreferrer",
|
|
95
|
+
children: _jsx(Youtube, {
|
|
96
|
+
height: iconSize,
|
|
97
|
+
width: iconSize
|
|
98
|
+
})
|
|
99
|
+
}), mailshareLink && _jsx("a", {
|
|
100
|
+
href: mailshareLink,
|
|
101
|
+
target: "_blank",
|
|
102
|
+
rel: "noopener noreferrer",
|
|
103
|
+
children: _jsx(MailShare, {
|
|
104
|
+
height: iconSize,
|
|
105
|
+
width: iconSize
|
|
106
|
+
})
|
|
107
|
+
})]
|
|
108
|
+
}));
|
|
95
109
|
};
|
|
96
110
|
export default SocialMediaLinkList;
|
package/spinner/Spinner.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PolymorphicComponentProps } from '../common/polymorphic';
|
|
3
|
-
|
|
4
|
-
export
|
|
3
|
+
type Color = 'dark' | 'secondary' | 'light';
|
|
4
|
+
export type SpinnerProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Indicates that Spinner will show up instantaneously (instead of fading in).
|
|
7
7
|
*
|
|
@@ -37,22 +37,22 @@ export declare const CenteredSpinner: import("@emotion/styled").StyledComponent<
|
|
|
37
37
|
* Indicates that Spinner will show up instantaneously (instead of fading in).
|
|
38
38
|
*
|
|
39
39
|
*/
|
|
40
|
-
instant?: boolean
|
|
40
|
+
instant?: boolean;
|
|
41
41
|
/**
|
|
42
42
|
* Specifies the size of the Spinner.
|
|
43
43
|
*
|
|
44
44
|
* @deprecated Use css instead.
|
|
45
45
|
*/
|
|
46
|
-
size?: string
|
|
46
|
+
size?: string;
|
|
47
47
|
/**
|
|
48
48
|
* Class name to be assigned to component.
|
|
49
49
|
*/
|
|
50
|
-
className?: string
|
|
50
|
+
className?: string;
|
|
51
51
|
/**
|
|
52
52
|
* Set the color variant to use.
|
|
53
53
|
*/
|
|
54
|
-
color?: Color
|
|
54
|
+
color?: Color;
|
|
55
55
|
} & PolymorphicComponentProps & {
|
|
56
|
-
theme?: import("@emotion/react").Theme
|
|
56
|
+
theme?: import("@emotion/react").Theme;
|
|
57
57
|
}, {}, {}>;
|
|
58
58
|
export default Spinner;
|