@dfds-ui/react-components 2.0.29 → 2.2.0-alpha.8d87a90d
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/package.json +10 -10
- package/cjs/accordion/Accordion.d.ts +0 -101
- package/cjs/accordion/AccordionContent.d.ts +0 -13
- package/cjs/accordion/AccordionSmall.d.ts +0 -55
- package/cjs/accordion/index.d.ts +0 -3
- package/cjs/app-bar/AppBar.d.ts +0 -13
- package/cjs/app-bar/AppBarContext.d.ts +0 -12
- package/cjs/app-bar/AppBarDrawer.d.ts +0 -5
- package/cjs/app-bar/AppBarIconButton.d.ts +0 -10
- package/cjs/app-bar/AppBarItem.d.ts +0 -23
- package/cjs/app-bar/AppBarListItem.d.ts +0 -16
- package/cjs/app-bar/index.d.ts +0 -7
- package/cjs/assertions/banner/Banner.d.ts +0 -74
- package/cjs/assertions/banner/BannerAction.d.ts +0 -19
- package/cjs/assertions/banner/BannerTypography.d.ts +0 -7
- package/cjs/assertions/banner/index.d.ts +0 -3
- package/cjs/assertions/index.d.ts +0 -2
- package/cjs/assertions/toast/Toast.d.ts +0 -12
- package/cjs/assertions/toast/Toaster.d.ts +0 -19
- package/cjs/assertions/toast/index.d.ts +0 -2
- package/cjs/badge/Badge.d.ts +0 -26
- package/cjs/badge/index.d.ts +0 -2
- package/cjs/button/BadgeIcon.d.ts +0 -7
- package/cjs/button/BaseButton.d.ts +0 -14
- package/cjs/button/Button.d.ts +0 -19
- package/cjs/button/IconButton.d.ts +0 -75
- package/cjs/button/LinkButton.d.ts +0 -8
- package/cjs/button/button-style.d.ts +0 -7
- package/cjs/button/index.d.ts +0 -7
- package/cjs/button-stack/ButtonStack.d.ts +0 -11
- package/cjs/button-stack/index.d.ts +0 -1
- package/cjs/card/Card.d.ts +0 -18
- package/cjs/card/CardActions.d.ts +0 -4
- package/cjs/card/CardContent.d.ts +0 -13
- package/cjs/card/CardMedia.d.ts +0 -18
- package/cjs/card/CardPriceTag.d.ts +0 -25
- package/cjs/card/CardTitle.d.ts +0 -18
- package/cjs/card/index.d.ts +0 -6
- package/cjs/chip/Chip.d.ts +0 -19
- package/cjs/chip/index.d.ts +0 -2
- package/cjs/common/LockBodyScroll.d.ts +0 -25
- package/cjs/common/arrow.d.ts +0 -6
- package/cjs/common/emotionCloneElement.d.ts +0 -3
- package/cjs/common/intent.d.ts +0 -3
- package/cjs/common/miniMoize.d.ts +0 -1
- package/cjs/common/polymorphic.d.ts +0 -25
- package/cjs/common/use-media.d.ts +0 -1
- package/cjs/common/useOnClickOutside.d.ts +0 -4
- package/cjs/common/utils.d.ts +0 -3
- package/cjs/counter/Counter.d.ts +0 -26
- package/cjs/counter/PluralCounter.d.ts +0 -13
- package/cjs/counter/index.d.ts +0 -2
- package/cjs/data-table/DataTable.d.ts +0 -10
- package/cjs/data-table/index.d.ts +0 -1
- package/cjs/date-range-picker/DatePickerDefaultStyles.d.ts +0 -2
- package/cjs/date-range-picker/DatePickerDfdsStyles.d.ts +0 -2
- package/cjs/date-range-picker/DateRangePicker.d.ts +0 -33
- package/cjs/date-range-picker/index.d.ts +0 -1
- package/cjs/divider/Divider.d.ts +0 -26
- package/cjs/divider/index.d.ts +0 -1
- package/cjs/drawer/Drawer.d.ts +0 -31
- package/cjs/drawer/index.d.ts +0 -1
- package/cjs/dropdown-menu/Dropdown.d.ts +0 -46
- package/cjs/dropdown-menu/DropdownContext.d.ts +0 -13
- package/cjs/dropdown-menu/MenuCheckbox.d.ts +0 -34
- package/cjs/dropdown-menu/MenuItem.d.ts +0 -45
- package/cjs/dropdown-menu/MenuTitle.d.ts +0 -14
- package/cjs/dropdown-menu/index.d.ts +0 -5
- package/cjs/elevation/index.d.ts +0 -3
- package/cjs/flexbox/FlexBox.d.ts +0 -100
- package/cjs/flexbox/index.d.ts +0 -1
- package/cjs/footer/Footer.d.ts +0 -7
- package/cjs/footer/index.d.ts +0 -1
- package/cjs/forms/assistive-text/AssistiveText.d.ts +0 -8
- package/cjs/forms/asterisk/Asterisk.d.ts +0 -3
- package/cjs/forms/checkbox/Checkbox.d.ts +0 -39
- package/cjs/forms/checkbox/ExampleControlComponent.d.ts +0 -10
- package/cjs/forms/checkbox/index.d.ts +0 -1
- package/cjs/forms/email-field/EmailField.d.ts +0 -6
- package/cjs/forms/error-text/ErrorText.d.ts +0 -8
- package/cjs/forms/field/Field.d.ts +0 -10
- package/cjs/forms/index.d.ts +0 -21
- package/cjs/forms/input/Input.d.ts +0 -19
- package/cjs/forms/input/InputComposition.d.ts +0 -43
- package/cjs/forms/label/Label.d.ts +0 -10
- package/cjs/forms/number-field/NumberField.d.ts +0 -6
- package/cjs/forms/password-field/PasswordField.d.ts +0 -4
- package/cjs/forms/radio/Radio.d.ts +0 -35
- package/cjs/forms/reactselect/ReactSelect.d.ts +0 -25
- package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +0 -6
- package/cjs/forms/select/Select.d.ts +0 -16
- package/cjs/forms/select-field/SelectField.d.ts +0 -17
- package/cjs/forms/switch/Switch.d.ts +0 -13
- package/cjs/forms/tel-field/TelField.d.ts +0 -6
- package/cjs/forms/text-field/TextField.d.ts +0 -26
- package/cjs/global-styles/GlobalStyles.d.ts +0 -3
- package/cjs/global-styles/ResetStyles.d.ts +0 -9
- package/cjs/global-styles/sanitize.d.ts +0 -1
- package/cjs/grid/Column.d.ts +0 -10
- package/cjs/grid/Container.d.ts +0 -15
- package/cjs/grid/index.d.ts +0 -2
- package/cjs/hero/Hero.d.ts +0 -10
- package/cjs/hero/index.d.ts +0 -1
- package/cjs/hero/stripes.d.ts +0 -6
- package/cjs/ie-banner/IEBanner.d.ts +0 -11
- package/cjs/ie-banner/index.d.ts +0 -1
- package/cjs/index.d.ts +0 -44
- package/cjs/layout/LayoutLegacy.d.ts +0 -2
- package/cjs/lists/FeatureList.d.ts +0 -24
- package/cjs/lists/ListAddon.d.ts +0 -11
- package/cjs/lists/ListDivider.d.ts +0 -5
- package/cjs/lists/ListIcon.d.ts +0 -18
- package/cjs/lists/ListItem.d.ts +0 -46
- package/cjs/lists/ListText.d.ts +0 -39
- package/cjs/lists/ListTextGroup.d.ts +0 -15
- package/cjs/lists/ListTitle.d.ts +0 -4
- package/cjs/lists/index.d.ts +0 -8
- package/cjs/loader/DfdsLoader.d.ts +0 -9
- package/cjs/loader/Loader.d.ts +0 -6
- package/cjs/loader/index.d.ts +0 -2
- package/cjs/localization/LocaleFlag.d.ts +0 -13
- package/cjs/localization/index.d.ts +0 -2
- package/cjs/localization/locales.d.ts +0 -35
- package/cjs/logo/Logo.d.ts +0 -11
- package/cjs/logo/index.d.ts +0 -1
- package/cjs/media/index.d.ts +0 -2
- package/cjs/menu/Menu.d.ts +0 -7
- package/cjs/menu/index.d.ts +0 -2
- package/cjs/mobile-stepper/MobileStepper.d.ts +0 -25
- package/cjs/mobile-stepper/index.d.ts +0 -1
- package/cjs/nav-bar/NavBar.d.ts +0 -35
- package/cjs/nav-bar/index.d.ts +0 -2
- package/cjs/nav-menu/NavMenuItem.d.ts +0 -10
- package/cjs/nav-menu/index.d.ts +0 -1
- package/cjs/pagination/Pagination.d.ts +0 -44
- package/cjs/pagination/Pagination.styles.d.ts +0 -6
- package/cjs/pagination/index.d.ts +0 -1
- package/cjs/popper/Popper.d.ts +0 -29
- package/cjs/popper/index.d.ts +0 -1
- package/cjs/progress-bar/ProgressBar.d.ts +0 -8
- package/cjs/progress-bar/index.d.ts +0 -2
- package/cjs/schedule/ScheduleItem.d.ts +0 -21
- package/cjs/schedule/ScheduleList.d.ts +0 -11
- package/cjs/schedule/index.d.ts +0 -2
- package/cjs/side-sheet/SideSheet.d.ts +0 -57
- package/cjs/side-sheet/SideSheetCloseButton.d.ts +0 -13
- package/cjs/side-sheet/SideSheetContent.d.ts +0 -7
- package/cjs/side-sheet/SideSheetFooter.d.ts +0 -7
- package/cjs/side-sheet/SideSheetHeader.d.ts +0 -9
- package/cjs/side-sheet/SideSheetHeadline.d.ts +0 -7
- package/cjs/side-sheet/index.d.ts +0 -4
- package/cjs/site-layout/SiteLayout.d.ts +0 -36
- package/cjs/site-layout/index.d.ts +0 -2
- package/cjs/skeleton/Skeleton.d.ts +0 -8
- package/cjs/skeleton/index.d.ts +0 -1
- package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +0 -26
- package/cjs/social-media-link-list/index.d.ts +0 -1
- package/cjs/spinner/Spinner.d.ts +0 -58
- package/cjs/spinner/index.d.ts +0 -1
- package/cjs/step/Step.d.ts +0 -45
- package/cjs/step/Step.styles.d.ts +0 -4
- package/cjs/step/StepButton.d.ts +0 -4
- package/cjs/step/StepContent.d.ts +0 -6
- package/cjs/step/StepContext.d.ts +0 -12
- package/cjs/step/StepLabel.d.ts +0 -7
- package/cjs/step/index.d.ts +0 -1
- package/cjs/stepper/Stepper.d.ts +0 -25
- package/cjs/stepper/StepperContext.d.ts +0 -9
- package/cjs/stepper/index.d.ts +0 -1
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.d.ts +0 -5
- package/cjs/stepper-feedback-message/index.d.ts +0 -1
- package/cjs/styles/index.d.ts +0 -3
- package/cjs/styles/media.d.ts +0 -21
- package/cjs/styles/rem.d.ts +0 -1
- package/cjs/styles/style-helpers.d.ts +0 -1
- package/cjs/styles/theme.d.ts +0 -39
- package/cjs/surface/Surface.d.ts +0 -32
- package/cjs/surface/index.d.ts +0 -1
- package/cjs/tab/Tab.d.ts +0 -12
- package/cjs/tab/TabPanel.d.ts +0 -7
- package/cjs/tab/Tabs.d.ts +0 -11
- package/cjs/tab/TabsContext.d.ts +0 -16
- package/cjs/tab/index.d.ts +0 -4
- package/cjs/table/Table.d.ts +0 -22
- package/cjs/table/TableBody.d.ts +0 -9
- package/cjs/table/TableDataCell.d.ts +0 -14
- package/cjs/table/TableHead.d.ts +0 -14
- package/cjs/table/TableHeaderCell.d.ts +0 -15
- package/cjs/table/TableRow.d.ts +0 -17
- package/cjs/table/index.d.ts +0 -6
- package/cjs/test/Test.d.ts +0 -8
- package/cjs/tooltip/Tooltip.d.ts +0 -26
- package/cjs/tooltip/index.d.ts +0 -2
- package/cjs/typography/Headlines.d.ts +0 -70
- package/cjs/typography/Text.d.ts +0 -5
- package/cjs/typography/index.d.ts +0 -2
package/cjs/popper/Popper.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PopperProps, PopperPlacementType } from '@mui/material';
|
|
3
|
-
export declare 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
|
-
declare 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/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Popper } from './Popper';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare 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;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
export declare 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
|
-
declare type ScheduleItemComponent = FunctionComponent<ListItemProps>;
|
|
20
|
-
declare const ScheduleItem: ScheduleItemComponent;
|
|
21
|
-
export default ScheduleItem;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
declare type ScheduleListItem = {
|
|
3
|
-
time: string;
|
|
4
|
-
text: string;
|
|
5
|
-
};
|
|
6
|
-
declare type ScheduleListProps = {
|
|
7
|
-
items: ScheduleListItem[];
|
|
8
|
-
};
|
|
9
|
-
declare type ScheduleListComponent = FunctionComponent<ScheduleListProps>;
|
|
10
|
-
declare const ScheduleList: ScheduleListComponent;
|
|
11
|
-
export default ScheduleList;
|
package/cjs/schedule/index.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type Variant = 'nested' | 'elevated';
|
|
3
|
-
declare type BackdropEmphasis = 'low' | 'high';
|
|
4
|
-
declare type Align = 'left' | 'right';
|
|
5
|
-
export declare 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;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IconButtonSize } from '../button/IconButton';
|
|
3
|
-
export declare type SideSheetCloseButtonProps = {
|
|
4
|
-
onRequestClose?: () => void;
|
|
5
|
-
className?: string;
|
|
6
|
-
icon?: React.ElementType;
|
|
7
|
-
size?: IconButtonSize;
|
|
8
|
-
tabIndex?: number;
|
|
9
|
-
closeLabel?: string;
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
};
|
|
12
|
-
export declare const SideSheetCloseButton: ({ onRequestClose, className, icon, size, closeLabel, ...rest }: SideSheetCloseButtonProps) => JSX.Element;
|
|
13
|
-
export default SideSheetCloseButton;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export declare type SideSheetFooterProps = {
|
|
3
|
-
className?: string;
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
};
|
|
6
|
-
export declare const SideSheetContent: ({ children, className, ...rest }: SideSheetFooterProps) => JSX.Element;
|
|
7
|
-
export default SideSheetContent;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export declare type SideSheetFooterProps = {
|
|
3
|
-
className?: string;
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
};
|
|
6
|
-
export declare const SideSheetFooter: ({ children, className, ...rest }: SideSheetFooterProps) => JSX.Element;
|
|
7
|
-
export default SideSheetFooter;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export declare type ModalHeaderProps = {
|
|
3
|
-
className?: string;
|
|
4
|
-
sticky?: boolean;
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
noDivider?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const SideSheetHeader: ({ children, className, sticky, noDivider, ...rest }: ModalHeaderProps) => JSX.Element;
|
|
9
|
-
export default SideSheetHeader;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export declare type SideSheetHeadlineProps = {
|
|
3
|
-
className?: string;
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
};
|
|
6
|
-
export declare const SideSheetHeadline: ({ className, children }: SideSheetHeadlineProps) => JSX.Element;
|
|
7
|
-
export default SideSheetHeadline;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type RenderAs = {
|
|
3
|
-
as?: React.ElementType;
|
|
4
|
-
};
|
|
5
|
-
declare type LayoutProps = {
|
|
6
|
-
fullWidth?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
} & RenderAs;
|
|
9
|
-
declare type LayoutChildProps = {
|
|
10
|
-
fullWidth?: boolean;
|
|
11
|
-
className?: string;
|
|
12
|
-
} & RenderAs;
|
|
13
|
-
export declare const LayoutGrid: import("@emotion/styled").StyledComponent<{
|
|
14
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
15
|
-
as?: React.ElementType<any> | undefined;
|
|
16
|
-
} & {
|
|
17
|
-
fullWidth?: boolean | undefined;
|
|
18
|
-
className?: string | undefined;
|
|
19
|
-
} & RenderAs, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
20
|
-
export declare const Layout: React.FunctionComponent<LayoutProps>;
|
|
21
|
-
export declare const LayoutHeader: React.FunctionComponent<LayoutChildProps>;
|
|
22
|
-
export declare const LayoutMain: React.FunctionComponent<LayoutChildProps>;
|
|
23
|
-
export declare const LayoutFooter: React.FunctionComponent<LayoutChildProps>;
|
|
24
|
-
declare const _default: {
|
|
25
|
-
Grid: import("@emotion/styled").StyledComponent<{
|
|
26
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
27
|
-
as?: React.ElementType<any> | undefined;
|
|
28
|
-
} & {
|
|
29
|
-
fullWidth?: boolean | undefined;
|
|
30
|
-
className?: string | undefined;
|
|
31
|
-
} & RenderAs, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
32
|
-
Header: React.FunctionComponent<LayoutChildProps>;
|
|
33
|
-
Main: React.FunctionComponent<LayoutChildProps>;
|
|
34
|
-
Footer: React.FunctionComponent<LayoutChildProps>;
|
|
35
|
-
};
|
|
36
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface SkeletonProps {
|
|
3
|
-
variant: SkeletonVariant;
|
|
4
|
-
disableAnimation?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare type SkeletonVariant = 'text' | 'circle' | 'rect';
|
|
7
|
-
export declare const Skeleton: ({ variant, disableAnimation, ...rest }: SkeletonProps) => JSX.Element;
|
|
8
|
-
export default Skeleton;
|
package/cjs/skeleton/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Skeleton';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
export declare type SocialMediaLinkListProps = {
|
|
3
|
-
instagramLink?: string;
|
|
4
|
-
facebookLink?: string;
|
|
5
|
-
blogLink?: string;
|
|
6
|
-
twitterLink?: string;
|
|
7
|
-
linkedinLink?: string;
|
|
8
|
-
youtubeLink?: string;
|
|
9
|
-
mailshareLink?: string;
|
|
10
|
-
iconSize?: string;
|
|
11
|
-
noPadding?: boolean;
|
|
12
|
-
colorOverwrite?: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const SoMeWrapper: import("@emotion/styled").StyledComponent<{
|
|
15
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
-
as?: React.ElementType<any> | undefined;
|
|
17
|
-
} & import("../flexbox/FlexBox").FlexBoxProps & {
|
|
18
|
-
as?: React.ElementType<any> | undefined;
|
|
19
|
-
} & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
20
|
-
children?: React.ReactNode;
|
|
21
|
-
} & {
|
|
22
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
-
} & SocialMediaLinkListProps, {}, {}>;
|
|
24
|
-
declare type socialMediaLinkListComponent = FunctionComponent<SocialMediaLinkListProps>;
|
|
25
|
-
export declare const SocialMediaLinkList: socialMediaLinkListComponent;
|
|
26
|
-
export default SocialMediaLinkList;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './SocialMediaLinkList';
|
package/cjs/spinner/Spinner.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PolymorphicComponentProps } from '../common/polymorphic';
|
|
3
|
-
declare type Color = 'dark' | 'secondary' | 'light';
|
|
4
|
-
export declare type SpinnerProps = {
|
|
5
|
-
/**
|
|
6
|
-
* Indicates that Spinner will show up instantaneously (instead of fading in).
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
instant?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Specifies the size of the Spinner.
|
|
12
|
-
*
|
|
13
|
-
* @deprecated Use css instead.
|
|
14
|
-
*/
|
|
15
|
-
size?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Class name to be assigned to component.
|
|
18
|
-
*/
|
|
19
|
-
className?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Set the color variant to use.
|
|
22
|
-
*/
|
|
23
|
-
color?: Color;
|
|
24
|
-
} & PolymorphicComponentProps;
|
|
25
|
-
/**
|
|
26
|
-
* A spinner is used to give user a sense of progress, when the time required to complete the given task is not known.
|
|
27
|
-
*/
|
|
28
|
-
export declare function Spinner({ instant, size, className, color, as, ...rest }: SpinnerProps): JSX.Element;
|
|
29
|
-
export declare namespace Spinner {
|
|
30
|
-
var displayName: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated Style the regular spinner to achieve the desired effect.
|
|
34
|
-
*/
|
|
35
|
-
export declare const CenteredSpinner: import("@emotion/styled").StyledComponent<{
|
|
36
|
-
/**
|
|
37
|
-
* Indicates that Spinner will show up instantaneously (instead of fading in).
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
instant?: boolean | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* Specifies the size of the Spinner.
|
|
43
|
-
*
|
|
44
|
-
* @deprecated Use css instead.
|
|
45
|
-
*/
|
|
46
|
-
size?: string | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* Class name to be assigned to component.
|
|
49
|
-
*/
|
|
50
|
-
className?: string | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Set the color variant to use.
|
|
53
|
-
*/
|
|
54
|
-
color?: Color | undefined;
|
|
55
|
-
} & PolymorphicComponentProps & {
|
|
56
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
57
|
-
}, {}, {}>;
|
|
58
|
-
export default Spinner;
|
package/cjs/spinner/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Spinner';
|
package/cjs/step/Step.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
export declare type StepProps = {
|
|
3
|
-
/**
|
|
4
|
-
* The position of the step
|
|
5
|
-
*/
|
|
6
|
-
index: number;
|
|
7
|
-
/**
|
|
8
|
-
* Step label
|
|
9
|
-
*/
|
|
10
|
-
label?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Sets the step as active
|
|
13
|
-
*/
|
|
14
|
-
active?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Sets the step as completed
|
|
17
|
-
*/
|
|
18
|
-
completed?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* If `true`, the step button will be disabled
|
|
21
|
-
*/
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Should be Step sub-components, such as `StepContent` for the vertical variant
|
|
25
|
-
*/
|
|
26
|
-
children?: ReactNode;
|
|
27
|
-
/**
|
|
28
|
-
* Optional label. Is shown below the step label
|
|
29
|
-
*/
|
|
30
|
-
optionalStepText?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Error step. Error icon will be showen in the step button
|
|
33
|
-
*/
|
|
34
|
-
hasError?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Editing step. Editing icon wil be showen in the step button
|
|
37
|
-
*/
|
|
38
|
-
isEditing?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* The function is triggered when step button is clicked
|
|
41
|
-
*/
|
|
42
|
-
handleStepClick?: () => void;
|
|
43
|
-
};
|
|
44
|
-
declare const _default: React.MemoExoticComponent<({ index, label, active: activeProp, completed: completedProp, disabled, children, hasError, optionalStepText, isEditing, handleStepClick, ...props }: StepProps) => JSX.Element>;
|
|
45
|
-
export default _default;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const stepWrapperHorizontalStyles: import("@emotion/utils").SerializedStyles;
|
|
2
|
-
export declare const stepWrapperVerticalStyles: import("@emotion/utils").SerializedStyles;
|
|
3
|
-
export declare const stepHeaderStyles: import("@emotion/utils").SerializedStyles;
|
|
4
|
-
export declare const stepContentStyles: import("@emotion/utils").SerializedStyles;
|
package/cjs/step/StepButton.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
export declare type StepContextType = {
|
|
3
|
-
index: number;
|
|
4
|
-
active: boolean;
|
|
5
|
-
hasError?: boolean;
|
|
6
|
-
completed?: boolean;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
isEditing?: boolean;
|
|
9
|
-
feedback?: ReactNode;
|
|
10
|
-
};
|
|
11
|
-
declare const StepContext: React.Context<StepContextType>;
|
|
12
|
-
export default StepContext;
|
package/cjs/step/StepLabel.d.ts
DELETED
package/cjs/step/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Step } from './Step';
|
package/cjs/stepper/Stepper.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
export declare type StepperProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Stepper layout orientation `'horizontal' | 'vertical'`
|
|
5
|
-
*/
|
|
6
|
-
orientation?: 'horizontal' | 'vertical';
|
|
7
|
-
/**
|
|
8
|
-
* Multiple `<Step/>` components
|
|
9
|
-
*/
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* The initial step
|
|
13
|
-
*/
|
|
14
|
-
activeStep?: number;
|
|
15
|
-
/**
|
|
16
|
-
* If set the component will not assist in controlling steps for sequential flow
|
|
17
|
-
*/
|
|
18
|
-
sequential?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* A feedback message can be passed to display a transitory feedback message as the step label
|
|
21
|
-
*/
|
|
22
|
-
stepFeedbackMessage?: string;
|
|
23
|
-
};
|
|
24
|
-
declare const _default: React.MemoExoticComponent<({ children, activeStep, sequential, orientation, stepFeedbackMessage, ...other }: StepperProps) => JSX.Element>;
|
|
25
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type StepperContextType = {
|
|
3
|
-
activeStep: number;
|
|
4
|
-
orientation: 'horizontal' | 'vertical';
|
|
5
|
-
sequential: boolean;
|
|
6
|
-
stepFeedbackMessage?: string;
|
|
7
|
-
};
|
|
8
|
-
declare const StepperContext: React.Context<StepperContextType>;
|
|
9
|
-
export default StepperContext;
|
package/cjs/stepper/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Stepper } from './Stepper';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as StepperFeedbackMessage } from './StepperFeedbackMessage';
|
package/cjs/styles/index.d.ts
DELETED
package/cjs/styles/media.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
declare const defaultBreakPoints: {
|
|
2
|
-
xl: number;
|
|
3
|
-
lg: number;
|
|
4
|
-
md: number;
|
|
5
|
-
sm: number;
|
|
6
|
-
xs: number;
|
|
7
|
-
};
|
|
8
|
-
declare type BreakPoint = keyof typeof defaultBreakPoints | number;
|
|
9
|
-
export declare function legacyGenerateMedia(breakPoints: typeof defaultBreakPoints): {
|
|
10
|
-
lt: (breakPoint: BreakPoint) => string;
|
|
11
|
-
gt: (breakPoint: BreakPoint) => string;
|
|
12
|
-
bt: (firstBreakpoint: BreakPoint, secondBreakpoint: BreakPoint) => string;
|
|
13
|
-
tablet: () => string;
|
|
14
|
-
};
|
|
15
|
-
export declare const legacyMedia: {
|
|
16
|
-
lt: (breakPoint: BreakPoint) => string;
|
|
17
|
-
gt: (breakPoint: BreakPoint) => string;
|
|
18
|
-
bt: (firstBreakpoint: BreakPoint, secondBreakpoint: BreakPoint) => string;
|
|
19
|
-
tablet: () => string;
|
|
20
|
-
};
|
|
21
|
-
export default legacyMedia;
|
package/cjs/styles/rem.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const rem: (targetPixelValue: number, base?: number) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const visuallyHidden: () => import("@emotion/utils").SerializedStyles;
|
package/cjs/styles/theme.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export declare const theme: {
|
|
2
|
-
colors: {
|
|
3
|
-
yesGreen: string;
|
|
4
|
-
cautionAmber: string;
|
|
5
|
-
noRed: string;
|
|
6
|
-
linkBlue: string;
|
|
7
|
-
linkHover: string;
|
|
8
|
-
actionBlue: string;
|
|
9
|
-
actionHover: string;
|
|
10
|
-
actionMedium: string;
|
|
11
|
-
actionLight: string;
|
|
12
|
-
primaryOrange: string;
|
|
13
|
-
primaryHover: string;
|
|
14
|
-
uiEnabled: string;
|
|
15
|
-
uiDisabled: string;
|
|
16
|
-
textGrey: string;
|
|
17
|
-
textMedium: string;
|
|
18
|
-
textLight: string;
|
|
19
|
-
groupBlue: string;
|
|
20
|
-
groupMedium: string;
|
|
21
|
-
groupLight: string;
|
|
22
|
-
backgroundGrey: string;
|
|
23
|
-
white: string;
|
|
24
|
-
whiteHover: string;
|
|
25
|
-
};
|
|
26
|
-
fontFamily: string;
|
|
27
|
-
spacing: {
|
|
28
|
-
xxs: string;
|
|
29
|
-
xs: string;
|
|
30
|
-
s: string;
|
|
31
|
-
m: string;
|
|
32
|
-
l: string;
|
|
33
|
-
xl: string;
|
|
34
|
-
xxl: string;
|
|
35
|
-
};
|
|
36
|
-
uiRoundness: string;
|
|
37
|
-
};
|
|
38
|
-
export declare type ThemeInterface = typeof theme;
|
|
39
|
-
export default theme;
|
package/cjs/surface/Surface.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { theme } from '@dfds-ui/theme';
|
|
3
|
-
export declare type SurfaceType = keyof typeof theme.colors.surface;
|
|
4
|
-
export declare type SurfaceContextType = {
|
|
5
|
-
surface: SurfaceType;
|
|
6
|
-
backgroundColor: string;
|
|
7
|
-
textColors: {
|
|
8
|
-
primary: string;
|
|
9
|
-
secondary: string;
|
|
10
|
-
disabled: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export declare function getTextColors(surface: SurfaceType): {
|
|
14
|
-
primary: string;
|
|
15
|
-
secondary: string;
|
|
16
|
-
disabled: string;
|
|
17
|
-
};
|
|
18
|
-
export declare function getBackgroundColor(surface: SurfaceType): string;
|
|
19
|
-
export declare const SurfaceContext: React.Context<SurfaceContextType | undefined>;
|
|
20
|
-
export declare const SurfaceProvider: React.FC<{
|
|
21
|
-
surface: SurfaceType;
|
|
22
|
-
children?: React.ReactNode;
|
|
23
|
-
}>;
|
|
24
|
-
export declare function MaybeSurfaceProvider({ surface, ...rest }: React.PropsWithChildren<{
|
|
25
|
-
surface?: SurfaceType;
|
|
26
|
-
}>): JSX.Element;
|
|
27
|
-
export declare const useSurfaceContext: (surface?: SurfaceType) => SurfaceContextType;
|
|
28
|
-
export declare const Surface: React.FC<{
|
|
29
|
-
surface: SurfaceType;
|
|
30
|
-
className?: string;
|
|
31
|
-
children?: React.ReactNode;
|
|
32
|
-
}>;
|
package/cjs/surface/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Surface';
|
package/cjs/tab/Tab.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare type Index = number | string;
|
|
3
|
-
export declare type TabProps = {
|
|
4
|
-
active?: boolean;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
transparent?: boolean;
|
|
7
|
-
index: Index;
|
|
8
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
};
|
|
11
|
-
declare const Tab: React.FC<TabProps>;
|
|
12
|
-
export default Tab;
|
package/cjs/tab/TabPanel.d.ts
DELETED
package/cjs/tab/Tabs.d.ts
DELETED
package/cjs/tab/TabsContext.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { Index } from './Tab';
|
|
3
|
-
export declare type TabsContextProps = {
|
|
4
|
-
transparent?: boolean;
|
|
5
|
-
onChange?: (index: any) => void;
|
|
6
|
-
size?: 's' | 'm';
|
|
7
|
-
activeTab?: Index | undefined;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
};
|
|
10
|
-
export declare const TabsContext: React.Context<TabsContextProps>;
|
|
11
|
-
export declare const TabsContextProvider: React.FC<{
|
|
12
|
-
value: TabsContextProps;
|
|
13
|
-
children?: ReactNode;
|
|
14
|
-
}>;
|
|
15
|
-
export declare const useTabsContext: () => TabsContextProps;
|
|
16
|
-
export default useTabsContext;
|