@dfds-ui/react-components 3.0.1-alpha.e689059e → 3.0.2-alpha.44219a9f
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/cjs/tooltip/Tooltip.js +6 -6
- package/package.json +11 -11
- package/tooltip/Tooltip.js +6 -10
- package/cjs/accordion/Accordion.d.ts +0 -101
- package/cjs/accordion/AccordionContent.d.ts +0 -14
- package/cjs/accordion/AccordionSmall.d.ts +0 -56
- 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 -15
- 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 -9
- 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 -13
- 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 -12
- package/cjs/button-stack/index.d.ts +0 -1
- package/cjs/card/Card.d.ts +0 -19
- package/cjs/card/CardActions.d.ts +0 -4
- package/cjs/card/CardContent.d.ts +0 -14
- package/cjs/card/CardMedia.d.ts +0 -19
- package/cjs/card/CardPriceTag.d.ts +0 -25
- package/cjs/card/CardTitle.d.ts +0 -19
- 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 -26
- package/cjs/common/arrow.d.ts +0 -6
- package/cjs/common/emotionCloneElement.d.ts +0 -2
- 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 -3
- package/cjs/common/utils.d.ts +0 -3
- package/cjs/counter/Counter.d.ts +0 -27
- package/cjs/counter/PluralCounter.d.ts +0 -14
- package/cjs/counter/index.d.ts +0 -2
- package/cjs/data-table/DataTable.d.ts +0 -11
- package/cjs/data-table/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 -32
- 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 -7
- 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 -11
- package/cjs/forms/checkbox/index.d.ts +0 -1
- package/cjs/forms/email-field/EmailField.d.ts +0 -22
- package/cjs/forms/error-text/ErrorText.d.ts +0 -7
- package/cjs/forms/field/Field.d.ts +0 -11
- 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 -11
- package/cjs/forms/number-field/NumberField.d.ts +0 -22
- 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 -25
- package/cjs/forms/switch/Switch.d.ts +0 -13
- package/cjs/forms/tel-field/TelField.d.ts +0 -22
- package/cjs/forms/text-field/TextField.d.ts +0 -43
- 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 -12
- package/cjs/ie-banner/index.d.ts +0 -1
- package/cjs/index.d.ts +0 -43
- package/cjs/layout/LayoutLegacy.d.ts +0 -2
- package/cjs/lists/FeatureList.d.ts +0 -22
- 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 -37
- 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 -19
- 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 -40
- 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 -24
- 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 -33
- 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 -32
- package/cjs/tooltip/index.d.ts +0 -2
- package/cjs/typography/Headlines.d.ts +0 -71
- package/cjs/typography/Text.d.ts +0 -4
- package/cjs/typography/index.d.ts +0 -2
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type Variant = 'nested' | 'elevated';
|
|
3
|
-
type BackdropEmphasis = 'low' | 'high';
|
|
4
|
-
type Align = 'left' | 'right';
|
|
5
|
-
export type SideSheetProps = {
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Choose the `width` of the `SideSheet`.
|
|
9
|
-
*/
|
|
10
|
-
header?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Choose the `width` of the `SideSheet`.
|
|
13
|
-
*/
|
|
14
|
-
width?: string;
|
|
15
|
-
/**
|
|
16
|
-
* When you trigger a close.
|
|
17
|
-
*/
|
|
18
|
-
onRequestClose?: () => void;
|
|
19
|
-
/**
|
|
20
|
-
* If set to true, the `SideSheet` is shown.
|
|
21
|
-
*/
|
|
22
|
-
isOpen: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Choose if the SideSheet should be nested or elevated.
|
|
25
|
-
*/
|
|
26
|
-
variant?: Variant;
|
|
27
|
-
/**
|
|
28
|
-
* Align the elevated SideSheet to left or right.
|
|
29
|
-
*/
|
|
30
|
-
alignSideSheet?: Align;
|
|
31
|
-
/**
|
|
32
|
-
* Style the SideSheet by adding a className to it.
|
|
33
|
-
*/
|
|
34
|
-
className?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Add or remove the backdrop for the elevated side sheet.
|
|
37
|
-
*/
|
|
38
|
-
backdrop?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Specify the emphasis of the backdrop.
|
|
41
|
-
*/
|
|
42
|
-
backdropEmphasis?: BackdropEmphasis;
|
|
43
|
-
/**
|
|
44
|
-
* Specify the custom zIndex.
|
|
45
|
-
*/
|
|
46
|
-
zIndex?: number;
|
|
47
|
-
/**
|
|
48
|
-
* Fullscreen on large mobile (breakpoint at 500px).
|
|
49
|
-
*/
|
|
50
|
-
largeMobileFullScreen?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Fullscreen on small mobile (breakpoint at 375px).
|
|
53
|
-
*/
|
|
54
|
-
smallMobileFullScreen?: boolean;
|
|
55
|
-
};
|
|
56
|
-
declare const SideSheet: ({ variant, className, isOpen, backdrop, width, header, zIndex, largeMobileFullScreen, smallMobileFullScreen, onRequestClose, backdropEmphasis, alignSideSheet, children, ...rest }: SideSheetProps) => React.JSX.Element;
|
|
57
|
-
export default SideSheet;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IconButtonSize } from '../button/IconButton';
|
|
3
|
-
export 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) => React.JSX.Element;
|
|
13
|
-
export default SideSheetCloseButton;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
export type SideSheetFooterProps = {
|
|
3
|
-
className?: string;
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
};
|
|
6
|
-
export declare const SideSheetContent: ({ children, className, ...rest }: SideSheetFooterProps) => React.JSX.Element;
|
|
7
|
-
export default SideSheetContent;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
export type SideSheetFooterProps = {
|
|
3
|
-
className?: string;
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
};
|
|
6
|
-
export declare const SideSheetFooter: ({ children, className, ...rest }: SideSheetFooterProps) => React.JSX.Element;
|
|
7
|
-
export default SideSheetFooter;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
export 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) => React.JSX.Element;
|
|
9
|
-
export default SideSheetHeader;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
export type SideSheetHeadlineProps = {
|
|
3
|
-
className?: string;
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
};
|
|
6
|
-
export declare const SideSheetHeadline: ({ className, children }: SideSheetHeadlineProps) => React.JSX.Element;
|
|
7
|
-
export default SideSheetHeadline;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type RenderAs = {
|
|
3
|
-
as?: React.ElementType;
|
|
4
|
-
};
|
|
5
|
-
type LayoutProps = {
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
fullWidth?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
} & RenderAs;
|
|
10
|
-
type LayoutChildProps = {
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
fullWidth?: boolean;
|
|
13
|
-
className?: string;
|
|
14
|
-
} & RenderAs;
|
|
15
|
-
export declare const LayoutGrid: import("@emotion/styled").StyledComponent<{
|
|
16
|
-
theme?: import("@emotion/react").Theme;
|
|
17
|
-
as?: React.ElementType;
|
|
18
|
-
} & {
|
|
19
|
-
children?: React.ReactNode;
|
|
20
|
-
fullWidth?: boolean;
|
|
21
|
-
className?: string;
|
|
22
|
-
} & RenderAs, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
|
-
export declare const Layout: React.FunctionComponent<LayoutProps>;
|
|
24
|
-
export declare const LayoutHeader: React.FunctionComponent<LayoutChildProps>;
|
|
25
|
-
export declare const LayoutMain: React.FunctionComponent<LayoutChildProps>;
|
|
26
|
-
export declare const LayoutFooter: React.FunctionComponent<LayoutChildProps>;
|
|
27
|
-
declare const _default: {
|
|
28
|
-
Grid: import("@emotion/styled").StyledComponent<{
|
|
29
|
-
theme?: import("@emotion/react").Theme;
|
|
30
|
-
as?: React.ElementType;
|
|
31
|
-
} & {
|
|
32
|
-
children?: React.ReactNode;
|
|
33
|
-
fullWidth?: boolean;
|
|
34
|
-
className?: string;
|
|
35
|
-
} & RenderAs, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
36
|
-
Header: React.FunctionComponent<LayoutChildProps>;
|
|
37
|
-
Main: React.FunctionComponent<LayoutChildProps>;
|
|
38
|
-
Footer: React.FunctionComponent<LayoutChildProps>;
|
|
39
|
-
};
|
|
40
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface SkeletonProps {
|
|
3
|
-
variant: SkeletonVariant;
|
|
4
|
-
disableAnimation?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export type SkeletonVariant = 'text' | 'circle' | 'rect';
|
|
7
|
-
export declare const Skeleton: ({ variant, disableAnimation, ...rest }: SkeletonProps) => React.JSX.Element;
|
|
8
|
-
export default Skeleton;
|
package/cjs/skeleton/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Skeleton';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
export 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;
|
|
16
|
-
as?: React.ElementType;
|
|
17
|
-
} & import("../flexbox").FlexBoxProps & {
|
|
18
|
-
as?: React.ElementType;
|
|
19
|
-
} & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
20
|
-
theme?: import("@emotion/react").Theme;
|
|
21
|
-
} & SocialMediaLinkListProps, {}, {}>;
|
|
22
|
-
type socialMediaLinkListComponent = FunctionComponent<SocialMediaLinkListProps>;
|
|
23
|
-
export declare const SocialMediaLinkList: socialMediaLinkListComponent;
|
|
24
|
-
export default SocialMediaLinkList;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './SocialMediaLinkList';
|
package/cjs/spinner/Spinner.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PolymorphicComponentProps } from '../common/polymorphic';
|
|
3
|
-
type Color = 'dark' | 'secondary' | 'light';
|
|
4
|
-
export 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): React.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;
|
|
41
|
-
/**
|
|
42
|
-
* Specifies the size of the Spinner.
|
|
43
|
-
*
|
|
44
|
-
* @deprecated Use css instead.
|
|
45
|
-
*/
|
|
46
|
-
size?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Class name to be assigned to component.
|
|
49
|
-
*/
|
|
50
|
-
className?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Set the color variant to use.
|
|
53
|
-
*/
|
|
54
|
-
color?: Color;
|
|
55
|
-
} & PolymorphicComponentProps & {
|
|
56
|
-
theme?: import("@emotion/react").Theme;
|
|
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 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) => React.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 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 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) => React.JSX.Element>;
|
|
25
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
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
|
-
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 type ThemeInterface = typeof theme;
|
|
39
|
-
export default theme;
|
package/cjs/surface/Surface.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { theme } from '@dfds-ui/theme';
|
|
3
|
-
export type SurfaceType = keyof typeof theme.colors.surface;
|
|
4
|
-
export 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: ({ children, surface }: {
|
|
21
|
-
surface: SurfaceType;
|
|
22
|
-
children?: React.ReactNode;
|
|
23
|
-
}) => React.JSX.Element;
|
|
24
|
-
export declare function MaybeSurfaceProvider({ surface, ...rest }: {
|
|
25
|
-
surface?: SurfaceType;
|
|
26
|
-
children?: React.ReactNode;
|
|
27
|
-
}): React.JSX.Element;
|
|
28
|
-
export declare const useSurfaceContext: (surface?: SurfaceType) => SurfaceContextType;
|
|
29
|
-
export declare const Surface: ({ surface, children, ...rest }: {
|
|
30
|
-
surface: SurfaceType;
|
|
31
|
-
className?: string;
|
|
32
|
-
children?: React.ReactNode;
|
|
33
|
-
}) => React.JSX.Element;
|
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 type Index = number | string;
|
|
3
|
-
export 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: ({ children, index, onClick, ...rest }: TabProps) => React.JSX.Element;
|
|
12
|
-
export default Tab;
|
package/cjs/tab/TabPanel.d.ts
DELETED
package/cjs/tab/Tabs.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type TabsLabels = {
|
|
3
|
-
scrollLeft: string;
|
|
4
|
-
scrollRight: string;
|
|
5
|
-
};
|
|
6
|
-
type TabsProps = {
|
|
7
|
-
tabsLabels?: TabsLabels;
|
|
8
|
-
children?: any;
|
|
9
|
-
};
|
|
10
|
-
declare const Tabs: ({ children, tabsLabels, ...rest }: TabsProps) => React.JSX.Element;
|
|
11
|
-
export default Tabs;
|
package/cjs/tab/TabsContext.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { Index } from './Tab';
|
|
3
|
-
export 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: ({ children, value }: {
|
|
12
|
-
value: TabsContextProps;
|
|
13
|
-
children?: ReactNode;
|
|
14
|
-
}) => React.JSX.Element;
|
|
15
|
-
export declare const useTabsContext: () => TabsContextProps;
|
|
16
|
-
export default useTabsContext;
|
package/cjs/tab/index.d.ts
DELETED
package/cjs/table/Table.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React, { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
-
export type TableProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Table content
|
|
5
|
-
*/
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Enables interaction effect on table rows
|
|
9
|
-
*/
|
|
10
|
-
isInteractive?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Makes table header sticky when scrolling (no IE 11 support)
|
|
13
|
-
*/
|
|
14
|
-
isHeaderSticky?: boolean;
|
|
15
|
-
} & ComponentPropsWithRef<'table'>;
|
|
16
|
-
export type TableContextProps = {
|
|
17
|
-
isInteractive: boolean;
|
|
18
|
-
isHeaderSticky: boolean;
|
|
19
|
-
};
|
|
20
|
-
export declare const useTable: () => TableContextProps;
|
|
21
|
-
export declare const Table: ({ children, isHeaderSticky, isInteractive, ...rest }: TableProps) => React.JSX.Element;
|
|
22
|
-
export default Table;
|
package/cjs/table/TableBody.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
-
export type TableBodyProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Table body content
|
|
5
|
-
*/
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
} & ComponentPropsWithRef<'tbody'>;
|
|
8
|
-
export declare const TableBody: ({ children, ...rest }: TableBodyProps) => React.JSX.Element;
|
|
9
|
-
export default TableBody;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React, { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
-
import { Alignment } from './TableHeaderCell';
|
|
3
|
-
export type TableDataCellProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Sets alignment for the content in the tag
|
|
6
|
-
*/
|
|
7
|
-
align?: Alignment;
|
|
8
|
-
/**
|
|
9
|
-
* Table cell content
|
|
10
|
-
*/
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
} & ComponentPropsWithRef<'td'>;
|
|
13
|
-
export declare const TableDataCell: ({ align, children, ...rest }: TableDataCellProps) => React.JSX.Element;
|
|
14
|
-
export default TableDataCell;
|
package/cjs/table/TableHead.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React, { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
-
export type TableHeadProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Table header content
|
|
5
|
-
*/
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Classes applied on the thead tag
|
|
9
|
-
*/
|
|
10
|
-
className?: string;
|
|
11
|
-
} & ComponentPropsWithRef<'thead'>;
|
|
12
|
-
export declare const tableHeadStyle: import("@emotion/utils").SerializedStyles;
|
|
13
|
-
export declare const TableHead: ({ children, className, ...rest }: TableHeadProps) => React.JSX.Element;
|
|
14
|
-
export default TableHead;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
-
export type Alignment = 'left' | 'center' | 'right' | 'justify' | 'char';
|
|
3
|
-
export type TableHeaderCellProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Sets alignment for the content in the tag
|
|
6
|
-
*/
|
|
7
|
-
align?: Alignment;
|
|
8
|
-
/**
|
|
9
|
-
* Table cell content
|
|
10
|
-
*/
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
} & ComponentPropsWithRef<'th'>;
|
|
13
|
-
export declare const getTableCellStyle: (align?: Alignment) => import("@emotion/utils").SerializedStyles;
|
|
14
|
-
export declare const TableHeaderCell: ({ align, children, ...rest }: TableHeaderCellProps) => React.JSX.Element;
|
|
15
|
-
export default TableHeaderCell;
|