@dfds-ui/react-components 2.0.29 → 2.2.0-alpha.4e495871
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/Accordion.d.ts +2 -2
- package/accordion/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 +2 -2
- package/cjs/accordion/Accordion.js +20 -24
- package/cjs/accordion/AccordionContent.d.ts +1 -1
- package/cjs/accordion/AccordionContent.js +6 -8
- package/cjs/accordion/AccordionSmall.d.ts +2 -2
- package/cjs/accordion/AccordionSmall.js +11 -14
- package/cjs/accordion/index.js +3 -3
- package/cjs/app-bar/AppBar.d.ts +1 -1
- package/cjs/app-bar/AppBar.js +42 -63
- package/cjs/app-bar/AppBarContext.d.ts +1 -1
- package/cjs/app-bar/AppBarContext.js +3 -15
- package/cjs/app-bar/AppBarDrawer.js +9 -10
- package/cjs/app-bar/AppBarIconButton.d.ts +1 -1
- package/cjs/app-bar/AppBarIconButton.js +6 -9
- package/cjs/app-bar/AppBarItem.d.ts +2 -2
- package/cjs/app-bar/AppBarItem.js +17 -31
- package/cjs/app-bar/index.js +8 -8
- package/cjs/assertions/banner/Banner.d.ts +3 -3
- package/cjs/assertions/banner/Banner.js +23 -43
- package/cjs/assertions/banner/BannerAction.d.ts +1 -1
- package/cjs/assertions/banner/BannerAction.js +7 -9
- package/cjs/assertions/banner/index.js +3 -3
- package/cjs/assertions/index.js +2 -2
- package/cjs/assertions/toast/Toast.d.ts +1 -1
- package/cjs/assertions/toast/Toast.js +9 -13
- package/cjs/assertions/toast/Toaster.d.ts +2 -2
- package/cjs/assertions/toast/Toaster.js +20 -39
- package/cjs/assertions/toast/index.js +4 -4
- package/cjs/badge/Badge.d.ts +1 -1
- package/cjs/badge/Badge.js +9 -14
- package/cjs/badge/index.js +3 -3
- package/cjs/button/BadgeIcon.d.ts +1 -1
- package/cjs/button/BaseButton.d.ts +3 -3
- package/cjs/button/Button.d.ts +3 -3
- package/cjs/button/Button.js +13 -20
- package/cjs/button/IconButton.d.ts +2 -2
- package/cjs/button/IconButton.js +19 -27
- package/cjs/button/LinkButton.d.ts +1 -1
- package/cjs/button/LinkButton.js +1 -1
- package/cjs/button/index.js +8 -8
- package/cjs/button-stack/ButtonStack.d.ts +3 -3
- package/cjs/button-stack/ButtonStack.js +8 -12
- package/cjs/button-stack/index.js +1 -1
- package/cjs/card/Card.d.ts +2 -2
- package/cjs/card/Card.js +21 -37
- package/cjs/card/CardActions.js +6 -10
- package/cjs/card/CardContent.d.ts +1 -1
- package/cjs/card/CardContent.js +10 -14
- package/cjs/card/CardMedia.d.ts +2 -2
- package/cjs/card/CardMedia.js +6 -9
- package/cjs/card/CardPriceTag.d.ts +1 -1
- package/cjs/card/CardPriceTag.js +7 -11
- package/cjs/card/CardTitle.d.ts +1 -1
- package/cjs/card/CardTitle.js +9 -11
- package/cjs/card/index.js +6 -6
- package/cjs/chip/Chip.d.ts +2 -2
- package/cjs/chip/Chip.js +13 -28
- package/cjs/chip/index.js +3 -3
- package/cjs/common/LockBodyScroll.d.ts +2 -2
- package/cjs/common/LockBodyScroll.js +5 -8
- package/cjs/common/arrow.d.ts +1 -1
- package/cjs/common/emotionCloneElement.js +5 -8
- package/cjs/common/intent.d.ts +1 -1
- package/cjs/common/polymorphic.d.ts +2 -2
- package/cjs/common/polymorphic.js +3 -3
- package/cjs/common/use-media.js +1 -10
- package/cjs/common/useOnClickOutside.d.ts +1 -1
- package/cjs/counter/Counter.d.ts +1 -1
- package/cjs/counter/Counter.js +4 -14
- package/cjs/counter/PluralCounter.d.ts +1 -1
- package/cjs/counter/PluralCounter.js +10 -22
- package/cjs/counter/index.js +2 -2
- package/cjs/data-table/DataTable.d.ts +1 -1
- package/cjs/data-table/DataTable.js +16 -27
- package/cjs/data-table/index.js +1 -1
- package/cjs/date-range-picker/DateRangePicker.js +28 -55
- package/cjs/date-range-picker/index.js +1 -1
- package/cjs/divider/Divider.d.ts +1 -1
- package/cjs/divider/Divider.js +9 -9
- package/cjs/divider/index.js +1 -1
- package/cjs/drawer/Drawer.d.ts +4 -4
- package/cjs/drawer/Drawer.js +9 -15
- package/cjs/drawer/index.js +1 -1
- package/cjs/dropdown-menu/Dropdown.d.ts +2 -2
- package/cjs/dropdown-menu/Dropdown.js +18 -32
- package/cjs/dropdown-menu/DropdownContext.d.ts +2 -2
- package/cjs/dropdown-menu/DropdownContext.js +1 -1
- package/cjs/dropdown-menu/MenuCheckbox.js +3 -2
- package/cjs/dropdown-menu/MenuItem.js +18 -30
- package/cjs/dropdown-menu/MenuTitle.js +3 -2
- package/cjs/dropdown-menu/index.js +6 -6
- package/cjs/elevation/index.d.ts +1 -1
- package/cjs/flexbox/FlexBox.d.ts +2 -2
- package/cjs/flexbox/FlexBox.js +3 -11
- package/cjs/flexbox/index.js +1 -1
- package/cjs/footer/index.js +1 -1
- package/cjs/forms/checkbox/Checkbox.d.ts +4 -4
- package/cjs/forms/checkbox/Checkbox.js +14 -19
- package/cjs/forms/checkbox/ExampleControlComponent.d.ts +1 -1
- package/cjs/forms/checkbox/ExampleControlComponent.js +6 -17
- package/cjs/forms/checkbox/index.js +1 -1
- package/cjs/forms/email-field/EmailField.d.ts +1 -1
- package/cjs/forms/field/Field.d.ts +1 -1
- package/cjs/forms/index.d.ts +3 -3
- package/cjs/forms/index.js +18 -18
- package/cjs/forms/input/Input.d.ts +3 -3
- package/cjs/forms/input/Input.js +13 -15
- package/cjs/forms/input/InputComposition.d.ts +7 -7
- package/cjs/forms/input/InputComposition.js +23 -27
- package/cjs/forms/label/Label.d.ts +1 -1
- package/cjs/forms/label/Label.js +6 -8
- package/cjs/forms/number-field/NumberField.d.ts +1 -1
- package/cjs/forms/password-field/PasswordField.d.ts +1 -1
- package/cjs/forms/password-field/PasswordField.js +2 -11
- package/cjs/forms/radio/Radio.d.ts +4 -4
- package/cjs/forms/radio/Radio.js +27 -32
- package/cjs/forms/reactselect/ReactSelect.d.ts +2 -2
- package/cjs/forms/reactselect/ReactSelect.js +40 -48
- package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +2 -2
- package/cjs/forms/searchable-select/AsyncSearchableSelect.js +29 -33
- package/cjs/forms/select/Select.d.ts +4 -4
- package/cjs/forms/select/Select.js +10 -12
- package/cjs/forms/select-field/SelectField.d.ts +2 -2
- package/cjs/forms/select-field/SelectField.js +13 -14
- package/cjs/forms/switch/Switch.d.ts +2 -2
- package/cjs/forms/switch/Switch.js +11 -15
- package/cjs/forms/tel-field/TelField.d.ts +1 -1
- package/cjs/forms/text-field/TextField.d.ts +3 -3
- package/cjs/forms/text-field/TextField.js +16 -17
- package/cjs/grid/Column.d.ts +1 -1
- package/cjs/grid/Column.js +8 -10
- package/cjs/grid/Container.d.ts +1 -1
- package/cjs/grid/Container.js +9 -11
- package/cjs/grid/index.js +2 -2
- package/cjs/hero/Hero.d.ts +1 -1
- package/cjs/hero/index.js +1 -1
- package/cjs/hero/stripes.d.ts +1 -1
- package/cjs/ie-banner/IEBanner.d.ts +1 -1
- package/cjs/ie-banner/IEBanner.js +4 -19
- package/cjs/ie-banner/index.js +1 -1
- package/cjs/index.js +45 -45
- package/cjs/lists/FeatureList.d.ts +2 -2
- package/cjs/lists/FeatureList.js +7 -10
- package/cjs/lists/ListAddon.d.ts +1 -1
- package/cjs/lists/ListAddon.js +6 -9
- package/cjs/lists/ListDivider.d.ts +1 -1
- package/cjs/lists/ListDivider.js +6 -9
- package/cjs/lists/ListIcon.d.ts +2 -2
- package/cjs/lists/ListIcon.js +12 -15
- package/cjs/lists/ListItem.d.ts +1 -1
- package/cjs/lists/ListItem.js +15 -24
- package/cjs/lists/ListText.d.ts +3 -3
- package/cjs/lists/ListText.js +8 -11
- package/cjs/lists/ListTextGroup.d.ts +1 -1
- package/cjs/lists/ListTextGroup.js +9 -13
- package/cjs/lists/ListTitle.js +4 -7
- package/cjs/lists/index.js +8 -8
- package/cjs/loader/DfdsLoader.js +2 -2
- package/cjs/loader/Loader.d.ts +1 -1
- package/cjs/loader/index.js +2 -2
- package/cjs/localization/LocaleFlag.d.ts +1 -1
- package/cjs/localization/LocaleFlag.js +8 -12
- package/cjs/localization/index.js +2 -2
- package/cjs/localization/locales.d.ts +2 -2
- package/cjs/logo/Logo.d.ts +1 -1
- package/cjs/logo/Logo.js +5 -7
- package/cjs/logo/index.js +1 -1
- package/cjs/menu/Menu.d.ts +1 -1
- package/cjs/menu/Menu.js +18 -20
- package/cjs/menu/index.js +3 -3
- package/cjs/mobile-stepper/MobileStepper.d.ts +1 -1
- package/cjs/mobile-stepper/MobileStepper.js +8 -12
- package/cjs/mobile-stepper/index.js +1 -1
- package/cjs/nav-bar/NavBar.d.ts +4 -4
- package/cjs/nav-bar/NavBar.js +24 -36
- package/cjs/nav-bar/index.js +3 -3
- package/cjs/nav-menu/NavMenuItem.d.ts +1 -1
- package/cjs/nav-menu/index.js +1 -1
- package/cjs/pagination/Pagination.d.ts +2 -2
- package/cjs/pagination/Pagination.js +7 -6
- package/cjs/pagination/index.js +1 -1
- package/cjs/popper/Popper.d.ts +2 -2
- package/cjs/popper/Popper.js +21 -25
- package/cjs/popper/index.js +1 -1
- package/cjs/progress-bar/ProgressBar.d.ts +1 -1
- package/cjs/progress-bar/index.js +3 -3
- package/cjs/schedule/ScheduleItem.d.ts +2 -2
- package/cjs/schedule/ScheduleList.d.ts +3 -3
- package/cjs/schedule/ScheduleList.js +4 -6
- package/cjs/schedule/index.js +2 -2
- package/cjs/side-sheet/SideSheet.d.ts +4 -4
- package/cjs/side-sheet/SideSheet.js +29 -45
- package/cjs/side-sheet/SideSheetCloseButton.d.ts +1 -1
- package/cjs/side-sheet/SideSheetCloseButton.js +8 -13
- package/cjs/side-sheet/SideSheetContent.d.ts +1 -1
- package/cjs/side-sheet/SideSheetContent.js +6 -8
- package/cjs/side-sheet/SideSheetFooter.d.ts +1 -1
- package/cjs/side-sheet/SideSheetFooter.js +6 -8
- package/cjs/side-sheet/SideSheetHeader.d.ts +1 -1
- package/cjs/side-sheet/SideSheetHeader.js +8 -11
- package/cjs/side-sheet/SideSheetHeadline.d.ts +1 -1
- package/cjs/side-sheet/index.js +5 -5
- package/cjs/site-layout/SiteLayout.d.ts +3 -3
- package/cjs/site-layout/SiteLayout.js +24 -27
- package/cjs/site-layout/index.js +3 -3
- package/cjs/skeleton/Skeleton.d.ts +1 -1
- package/cjs/skeleton/Skeleton.js +10 -14
- package/cjs/skeleton/index.js +1 -1
- package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +2 -2
- package/cjs/social-media-link-list/SocialMediaLinkList.js +13 -15
- package/cjs/social-media-link-list/index.js +1 -1
- package/cjs/spinner/Spinner.d.ts +2 -2
- package/cjs/spinner/Spinner.js +8 -12
- package/cjs/spinner/index.js +1 -1
- package/cjs/step/Step.d.ts +1 -1
- package/cjs/step/Step.js +21 -29
- package/cjs/step/StepButton.d.ts +1 -1
- package/cjs/step/StepButton.js +14 -12
- package/cjs/step/StepContent.d.ts +1 -1
- package/cjs/step/StepContent.js +3 -2
- package/cjs/step/StepContext.d.ts +1 -1
- package/cjs/step/StepLabel.d.ts +1 -1
- package/cjs/step/StepLabel.js +4 -3
- package/cjs/step/index.js +1 -1
- package/cjs/stepper/Stepper.d.ts +1 -1
- package/cjs/stepper/Stepper.js +13 -22
- package/cjs/stepper/StepperContext.d.ts +1 -1
- package/cjs/stepper/index.js +1 -1
- package/cjs/stepper-feedback-message/index.js +1 -1
- package/cjs/styles/index.js +5 -5
- package/cjs/styles/media.d.ts +1 -1
- package/cjs/styles/theme.d.ts +1 -1
- package/cjs/surface/Surface.d.ts +2 -2
- package/cjs/surface/Surface.js +13 -19
- package/cjs/surface/index.js +1 -1
- package/cjs/tab/Tab.d.ts +2 -2
- package/cjs/tab/Tab.js +13 -14
- package/cjs/tab/TabPanel.d.ts +1 -1
- package/cjs/tab/TabPanel.js +3 -2
- package/cjs/tab/Tabs.d.ts +2 -2
- package/cjs/tab/Tabs.js +21 -37
- package/cjs/tab/TabsContext.d.ts +1 -1
- package/cjs/tab/TabsContext.js +1 -1
- package/cjs/tab/index.js +4 -4
- package/cjs/table/Table.d.ts +2 -2
- package/cjs/table/Table.js +7 -11
- package/cjs/table/TableBody.d.ts +1 -1
- package/cjs/table/TableBody.js +5 -7
- package/cjs/table/TableDataCell.d.ts +1 -1
- package/cjs/table/TableDataCell.js +6 -9
- package/cjs/table/TableHead.d.ts +1 -1
- package/cjs/table/TableHead.js +9 -10
- package/cjs/table/TableHeaderCell.d.ts +2 -2
- package/cjs/table/TableHeaderCell.js +6 -9
- package/cjs/table/TableRow.d.ts +1 -1
- package/cjs/table/TableRow.js +10 -12
- package/cjs/table/index.js +6 -6
- package/cjs/tooltip/Tooltip.d.ts +2 -2
- package/cjs/tooltip/Tooltip.js +11 -12
- package/cjs/tooltip/index.js +3 -3
- package/cjs/typography/Headlines.js +8 -11
- 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/lists/ListText.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { theme } from '@dfds-ui/theme';
|
|
3
3
|
import { typography } from '@dfds-ui/typography';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
4
|
+
type FontFamily = keyof typeof theme.fontFamilies;
|
|
5
|
+
type StyledAs = keyof Pick<typeof typography, 'body' | 'bodyBold' | 'action' | 'actionBold' | 'label' | 'labelBold' | 'labelSmall' | 'caption' | 'sectionHeadline' | 'subHeadline' | 'smallHeadline'>;
|
|
6
|
+
export type ListTextProps = {
|
|
7
7
|
/**
|
|
8
8
|
* Set the style of the text.
|
|
9
9
|
*/
|
package/lists/ListTextGroup.d.ts
CHANGED
package/loader/Loader.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as flags from '@dfds-ui/icons/flags';
|
|
2
2
|
export declare const locales: readonly ["en", "nl-BE", "bg-BG", "pt-BR", "en-CA", "zh-CN", "cs-CZ", "da-DK", "et-EE", "fi-FI", "fr-BE", "fr-FR", "fr-MA", "de-DE", "hu-HU", "it-IT", "ja-JP", "lv-LV", "lt-LT", "nl-NL", "nb-NO", "pl-PL", "ro-RO", "ru-RU", "sk-SK", "ko-KR", "es-ES", "sv-SE", "tr-TR", "en-GB", "en-US"];
|
|
3
|
-
export
|
|
3
|
+
export type Locale = typeof locales[number];
|
|
4
4
|
export declare const fallbackLocale = "en";
|
|
5
|
-
export
|
|
5
|
+
export type LocaleInfo = {
|
|
6
6
|
/**
|
|
7
7
|
* Name of the country
|
|
8
8
|
*/
|
package/logo/Logo.d.ts
CHANGED
package/menu/Menu.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type MenuItemProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
onClick: React.MouseEventHandler<HTMLDivElement>;
|
|
5
5
|
};
|
package/nav-bar/NavBar.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type ItemAlignment = 'left' | 'right';
|
|
3
|
+
type NavBarProps = {
|
|
4
4
|
className?: string;
|
|
5
5
|
showLogo?: boolean;
|
|
6
6
|
href?: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type ItemProps = {
|
|
9
9
|
href?: string;
|
|
10
10
|
className?: string;
|
|
11
11
|
alignment?: ItemAlignment;
|
|
@@ -14,7 +14,7 @@ declare type ItemProps = {
|
|
|
14
14
|
};
|
|
15
15
|
declare const NavBar: React.FunctionComponent<NavBarProps>;
|
|
16
16
|
export declare const NavBarItem: React.FunctionComponent<ItemProps>;
|
|
17
|
-
|
|
17
|
+
type NavBarIconProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & // React.AnchorHTMLAttributes<HTMLAnchorElement> &
|
|
18
18
|
ItemProps & {
|
|
19
19
|
menu?: React.ReactNode;
|
|
20
20
|
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Shared react components within DFDS",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "2.0.
|
|
6
|
+
"version": "2.2.0-alpha.4e495871",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./cjs/index.js",
|
|
9
9
|
"module": "./index.js",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"react-select": "^4.0.0"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dfds-ui/colors": "2.0.
|
|
22
|
-
"@dfds-ui/fonts": "2.0.
|
|
23
|
-
"@dfds-ui/hooks": "2.0.
|
|
24
|
-
"@dfds-ui/icons": "2.0.
|
|
25
|
-
"@dfds-ui/spacing": "2.0.
|
|
26
|
-
"@dfds-ui/theme": "2.0.
|
|
27
|
-
"@dfds-ui/typography": "2.0.
|
|
21
|
+
"@dfds-ui/colors": "2.2.0-alpha.4e495871",
|
|
22
|
+
"@dfds-ui/fonts": "2.2.0-alpha.4e495871",
|
|
23
|
+
"@dfds-ui/hooks": "2.2.0-alpha.4e495871",
|
|
24
|
+
"@dfds-ui/icons": "2.2.0-alpha.4e495871",
|
|
25
|
+
"@dfds-ui/spacing": "2.2.0-alpha.4e495871",
|
|
26
|
+
"@dfds-ui/theme": "2.2.0-alpha.4e495871",
|
|
27
|
+
"@dfds-ui/typography": "2.2.0-alpha.4e495871",
|
|
28
28
|
"@kunukn/react-collapse": "^2.2.9",
|
|
29
29
|
"@mui/base": "^5.0.0-alpha.102",
|
|
30
30
|
"@mui/material": "^5.10.10",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"classnames": "^2.3.2",
|
|
35
35
|
"humps": "^2.0.1",
|
|
36
36
|
"react-hook-intersection-observer": "^0.1.0",
|
|
37
|
-
"uuid": "^
|
|
37
|
+
"uuid": "^11.1.1"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "4e4958718cdb23e314fd502618fa60c2613b0c6b",
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
}
|
package/popper/Popper.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PopperProps, PopperPlacementType } from '@mui/material';
|
|
3
|
-
export
|
|
3
|
+
export type PopperBaseProps = {
|
|
4
4
|
open?: boolean;
|
|
5
5
|
children: React.ReactElement | string;
|
|
6
6
|
anchorEl?: any;
|
|
@@ -22,7 +22,7 @@ export declare type PopperBaseProps = {
|
|
|
22
22
|
modifiers?: PopperProps['modifiers'];
|
|
23
23
|
};
|
|
24
24
|
export declare const PopperBase: ({ open, children, anchorEl, id, placement, onClickAway, className, noMaxWidthRestriction, ...rest }: PopperBaseProps) => JSX.Element;
|
|
25
|
-
|
|
25
|
+
type PopperComponentProps = {
|
|
26
26
|
setAnchorEl: React.Dispatch<React.SetStateAction<HTMLElement | null>>;
|
|
27
27
|
} & Omit<PopperBaseProps, 'onClickAway'>;
|
|
28
28
|
declare const Popper: ({ children, anchorEl, id, setAnchorEl, placement, popperRef, ...rest }: PopperComponentProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type ListItemProps = {
|
|
3
3
|
time: string;
|
|
4
4
|
text: string;
|
|
5
5
|
backgroundColor?: string;
|
|
@@ -16,6 +16,6 @@ export declare const ListItemBase: import("@emotion/styled").StyledComponent<{
|
|
|
16
16
|
} & {
|
|
17
17
|
backgroundColor?: string | undefined;
|
|
18
18
|
}, {}, {}>;
|
|
19
|
-
|
|
19
|
+
type ScheduleItemComponent = FunctionComponent<ListItemProps>;
|
|
20
20
|
declare const ScheduleItem: ScheduleItemComponent;
|
|
21
21
|
export default ScheduleItem;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
|
|
2
|
+
type ScheduleListItem = {
|
|
3
3
|
time: string;
|
|
4
4
|
text: string;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type ScheduleListProps = {
|
|
7
7
|
items: ScheduleListItem[];
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type ScheduleListComponent = FunctionComponent<ScheduleListProps>;
|
|
10
10
|
declare const ScheduleList: ScheduleListComponent;
|
|
11
11
|
export default ScheduleList;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
2
|
+
type Variant = 'nested' | 'elevated';
|
|
3
|
+
type BackdropEmphasis = 'low' | 'high';
|
|
4
|
+
type Align = 'left' | 'right';
|
|
5
|
+
export type SideSheetProps = {
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
/**
|
|
8
8
|
* Choose the `width` of the `SideSheet`.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type RenderAs = {
|
|
3
3
|
as?: React.ElementType;
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
type LayoutProps = {
|
|
6
6
|
fullWidth?: boolean;
|
|
7
7
|
className?: string;
|
|
8
8
|
} & RenderAs;
|
|
9
|
-
|
|
9
|
+
type LayoutChildProps = {
|
|
10
10
|
fullWidth?: boolean;
|
|
11
11
|
className?: string;
|
|
12
12
|
} & RenderAs;
|
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) => JSX.Element;
|
|
8
8
|
export default Skeleton;
|
|
@@ -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;
|
|
@@ -21,6 +21,6 @@ export declare const SoMeWrapper: import("@emotion/styled").StyledComponent<{
|
|
|
21
21
|
} & {
|
|
22
22
|
theme?: import("@emotion/react").Theme | undefined;
|
|
23
23
|
} & SocialMediaLinkListProps, {}, {}>;
|
|
24
|
-
|
|
24
|
+
type socialMediaLinkListComponent = FunctionComponent<SocialMediaLinkListProps>;
|
|
25
25
|
export declare const SocialMediaLinkList: socialMediaLinkListComponent;
|
|
26
26
|
export default SocialMediaLinkList;
|
package/spinner/Spinner.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="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
|
*
|
package/step/Step.d.ts
CHANGED
package/step/StepButton.d.ts
CHANGED
package/step/StepContent.d.ts
CHANGED
package/step/StepContext.d.ts
CHANGED
package/step/StepLabel.d.ts
CHANGED
package/stepper/Stepper.d.ts
CHANGED
package/styles/media.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ declare const defaultBreakPoints: {
|
|
|
5
5
|
sm: number;
|
|
6
6
|
xs: number;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type BreakPoint = keyof typeof defaultBreakPoints | number;
|
|
9
9
|
export declare function legacyGenerateMedia(breakPoints: typeof defaultBreakPoints): {
|
|
10
10
|
lt: (breakPoint: BreakPoint) => string;
|
|
11
11
|
gt: (breakPoint: BreakPoint) => string;
|
package/styles/theme.d.ts
CHANGED
package/surface/Surface.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { theme } from '@dfds-ui/theme';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type SurfaceType = keyof typeof theme.colors.surface;
|
|
4
|
+
export type SurfaceContextType = {
|
|
5
5
|
surface: SurfaceType;
|
|
6
6
|
backgroundColor: string;
|
|
7
7
|
textColors: {
|
package/tab/Tab.d.ts
CHANGED
package/tab/TabPanel.d.ts
CHANGED
package/tab/Tabs.d.ts
CHANGED
package/tab/TabsContext.d.ts
CHANGED
package/table/Table.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type TableProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Table content
|
|
5
5
|
*/
|
|
@@ -13,7 +13,7 @@ export declare type TableProps = {
|
|
|
13
13
|
*/
|
|
14
14
|
isHeaderSticky?: boolean;
|
|
15
15
|
} & ComponentPropsWithRef<'table'>;
|
|
16
|
-
export
|
|
16
|
+
export type TableContextProps = {
|
|
17
17
|
isInteractive: boolean;
|
|
18
18
|
isHeaderSticky: boolean;
|
|
19
19
|
};
|
package/table/TableBody.d.ts
CHANGED
package/table/TableDataCell.d.ts
CHANGED
package/table/TableHead.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type Alignment = 'left' | 'center' | 'right' | 'justify' | 'char';
|
|
3
|
+
export type TableHeaderCellProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Sets alignment for the content in the tag
|
|
6
6
|
*/
|
package/table/TableRow.d.ts
CHANGED
package/tooltip/Tooltip.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TippyProps } from '@tippyjs/react';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type Placement = 'top' | 'right' | 'bottom' | 'left';
|
|
4
|
+
type TooltipProps = {
|
|
5
5
|
content: string | React.ReactNode;
|
|
6
6
|
name?: string;
|
|
7
7
|
placement?: Placement;
|