@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
package/cjs/badge/Badge.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Intent } from '../common/intent';
|
|
3
|
-
import { FlexBoxProps } from '../flexbox/FlexBox';
|
|
4
|
-
export type BadgeProps = {
|
|
5
|
-
/**
|
|
6
|
-
* Specifies the intent of the Badge
|
|
7
|
-
*/
|
|
8
|
-
intent?: Intent;
|
|
9
|
-
/**
|
|
10
|
-
* Text to be shown in the badge (usually just a string)
|
|
11
|
-
*/
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* Class name to be added to the badge
|
|
15
|
-
*/
|
|
16
|
-
className?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Props controlling the flexbox
|
|
19
|
-
*/
|
|
20
|
-
flexBoxProps?: FlexBoxProps;
|
|
21
|
-
/**
|
|
22
|
-
* HTML tag or custom component being rendered
|
|
23
|
-
*/
|
|
24
|
-
as?: React.ElementType;
|
|
25
|
-
};
|
|
26
|
-
export default function Badge({ as, children, intent, flexBoxProps, ...rest }: BadgeProps): React.JSX.Element;
|
package/cjs/badge/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const variations: readonly ["primary", "secondary", "outlined", "text", "danger", "link"];
|
|
3
|
-
export type BaseButtonProps = React.PropsWithoutRef<React.JSX.IntrinsicElements['button']>;
|
|
4
|
-
export type ButtonVariation = (typeof variations)[number];
|
|
5
|
-
export type ButtonVariationProps = {
|
|
6
|
-
variation?: ButtonVariation;
|
|
7
|
-
};
|
|
8
|
-
export declare const BaseButton: import("@emotion/styled").StyledComponent<{
|
|
9
|
-
theme?: import("@emotion/react").Theme;
|
|
10
|
-
as?: React.ElementType;
|
|
11
|
-
} & {
|
|
12
|
-
selected?: boolean;
|
|
13
|
-
}, React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
14
|
-
export declare function getButtonVariationStyle(variation?: ButtonVariation): import("@emotion/utils").SerializedStyles;
|
package/cjs/button/Button.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseButtonProps, ButtonVariationProps } from './BaseButton';
|
|
3
|
-
type ButtonSize = 'medium' | 'small';
|
|
4
|
-
type IconAlign = 'left' | 'right';
|
|
5
|
-
export type ButtonProps = BaseButtonProps & ButtonVariationProps & {
|
|
6
|
-
className?: string;
|
|
7
|
-
replace?: boolean;
|
|
8
|
-
submitting?: boolean;
|
|
9
|
-
fillWidth?: boolean;
|
|
10
|
-
size?: ButtonSize;
|
|
11
|
-
icon?: React.ReactNode;
|
|
12
|
-
iconAlign?: IconAlign;
|
|
13
|
-
iconSpacing?: string;
|
|
14
|
-
iconColor?: string;
|
|
15
|
-
as?: React.ElementType;
|
|
16
|
-
children?: React.ReactNode;
|
|
17
|
-
};
|
|
18
|
-
declare const Button: ({ variation, children, submitting, size, icon, iconSpacing, iconAlign, iconColor, title, disabled, ...rest }: ButtonProps) => React.JSX.Element;
|
|
19
|
-
export default Button;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import React, { ElementType, ComponentPropsWithRef } from 'react';
|
|
2
|
-
import { OverlayOptions } from '@dfds-ui/theme/states';
|
|
3
|
-
import { PolymorphicComponentProps } from '../common/polymorphic';
|
|
4
|
-
export type IconButtonSize = 'small' | 'medium' | 'large' | 's' | 'm' | 'l';
|
|
5
|
-
export interface IconButtonProps extends PolymorphicComponentProps, ComponentPropsWithRef<'button'> {
|
|
6
|
-
/**
|
|
7
|
-
* Icon to be displayed on the button.
|
|
8
|
-
*/
|
|
9
|
-
icon: ElementType;
|
|
10
|
-
/**
|
|
11
|
-
* Text of the aria-label as well as the fallback value used for tooltip.
|
|
12
|
-
*/
|
|
13
|
-
ariaLabel: string;
|
|
14
|
-
/**
|
|
15
|
-
* Size of the button.
|
|
16
|
-
*/
|
|
17
|
-
size?: IconButtonSize;
|
|
18
|
-
/**
|
|
19
|
-
* className to be assigned to the button.
|
|
20
|
-
*/
|
|
21
|
-
className?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Disable button.
|
|
24
|
-
*/
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Disable overlay states.
|
|
28
|
-
*/
|
|
29
|
-
disableOverlay?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Disable tooltip.
|
|
32
|
-
*/
|
|
33
|
-
disableTooltip?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Text of the tooltip, if none, aria-label will be used.
|
|
36
|
-
*/
|
|
37
|
-
tooltip?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Color of the button and the overlay state.
|
|
40
|
-
*/
|
|
41
|
-
color?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Override color to be used for the hover state.
|
|
44
|
-
*/
|
|
45
|
-
hoverColor?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Override color to be used for the active state.
|
|
48
|
-
*/
|
|
49
|
-
activeColor?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Override color to be used for the focus state.
|
|
52
|
-
*/
|
|
53
|
-
focusColor?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Override the overlay options to use.
|
|
56
|
-
*/
|
|
57
|
-
overlayOptions?: OverlayOptions;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Helper function returning the default icon size when rendering an IconButton in the specified size.
|
|
61
|
-
* @param size : IconButtonSize;
|
|
62
|
-
* @returns The default icon size
|
|
63
|
-
*/
|
|
64
|
-
export declare const getDefaultIconButtonIconSize: (size: IconButtonSize) => "1.5rem" | "1.25rem" | "2rem";
|
|
65
|
-
/**
|
|
66
|
-
* Helper function returning the default dimensions of an IconButton in the specified size.
|
|
67
|
-
* @param size : IconButtonSize;
|
|
68
|
-
* @returns The default size
|
|
69
|
-
*/
|
|
70
|
-
export declare const getDefaultIconButtonDimensions: (size: IconButtonSize) => {
|
|
71
|
-
height: string;
|
|
72
|
-
width: string;
|
|
73
|
-
};
|
|
74
|
-
declare const IconButton: ({ type, tooltip, title, size, icon: Icon, disableTooltip, disableOverlay, disabled, color, hoverColor, focusColor, activeColor, overlayOptions, as, ariaLabel, ...rest }: IconButtonProps) => React.JSX.Element;
|
|
75
|
-
export default IconButton;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ButtonProps } from './Button';
|
|
3
|
-
export type LinkButtonProps = React.PropsWithoutRef<React.JSX.IntrinsicElements['a']> & ButtonProps & {
|
|
4
|
-
href?: string;
|
|
5
|
-
target?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const LinkButton: (props: LinkButtonProps) => React.JSX.Element;
|
|
8
|
-
export default LinkButton;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const baseButtonStyle: import("@emotion/utils").SerializedStyles;
|
|
2
|
-
export declare const primaryButtonStyles: import("@emotion/utils").SerializedStyles;
|
|
3
|
-
export declare const secondaryButtonStyles: import("@emotion/utils").SerializedStyles;
|
|
4
|
-
export declare const outlinedButtonStyles: import("@emotion/utils").SerializedStyles;
|
|
5
|
-
export declare const textButtonStyles: import("@emotion/utils").SerializedStyles;
|
|
6
|
-
export declare const dangerButtonStyles: import("@emotion/utils").SerializedStyles;
|
|
7
|
-
export declare const linkButtonStyles: import("@emotion/utils").SerializedStyles;
|
package/cjs/button/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as Button } from './Button';
|
|
2
|
-
export * from './Button';
|
|
3
|
-
export * from './LinkButton';
|
|
4
|
-
export { default as IconButton } from './IconButton';
|
|
5
|
-
export * from './IconButton';
|
|
6
|
-
export * from './BadgeIcon';
|
|
7
|
-
export { default as Anchor } from './LinkButton';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type Orientation = 'horizontal' | 'vertical';
|
|
3
|
-
type Alignment = 'left' | 'right' | 'center';
|
|
4
|
-
type ButtonStackProps = {
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
align?: Alignment;
|
|
7
|
-
orientation?: Orientation;
|
|
8
|
-
className?: string;
|
|
9
|
-
reverse?: boolean;
|
|
10
|
-
};
|
|
11
|
-
declare const ButtonStack: React.FunctionComponent<ButtonStackProps>;
|
|
12
|
-
export default ButtonStack;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ButtonStack } from './ButtonStack';
|
package/cjs/card/Card.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
import { SurfaceType } from '../surface';
|
|
3
|
-
export declare const CardContext: React.Context<{}>;
|
|
4
|
-
export type CardContextType = {
|
|
5
|
-
cardSize: 's' | 'm' | 'l' | 'xl';
|
|
6
|
-
cardVariant: 'outline' | 'fill' | 'surface';
|
|
7
|
-
};
|
|
8
|
-
export type CardProps = {
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
size: 's' | 'm' | 'l' | 'xl';
|
|
11
|
-
variant: 'outline' | 'fill' | 'surface';
|
|
12
|
-
surface?: SurfaceType;
|
|
13
|
-
reverse?: boolean;
|
|
14
|
-
media?: ReactNode;
|
|
15
|
-
ratio?: number[];
|
|
16
|
-
className?: string;
|
|
17
|
-
};
|
|
18
|
-
declare const Card: FunctionComponent<CardProps>;
|
|
19
|
-
export default Card;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
export type CardContentProps = {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
/**
|
|
5
|
-
* Text color
|
|
6
|
-
*/
|
|
7
|
-
color?: string;
|
|
8
|
-
/**
|
|
9
|
-
* className to be assigned to the component
|
|
10
|
-
*/
|
|
11
|
-
className?: string;
|
|
12
|
-
};
|
|
13
|
-
declare const CardContent: FunctionComponent<CardContentProps>;
|
|
14
|
-
export default CardContent;
|
package/cjs/card/CardMedia.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
export type CardMediaProps = {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
/**
|
|
5
|
-
* Media component to be displayed
|
|
6
|
-
*/
|
|
7
|
-
media: ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
* Aspect ratio of media component
|
|
10
|
-
*/
|
|
11
|
-
aspectRatio?: AspectRatio;
|
|
12
|
-
/**
|
|
13
|
-
* className to be assigned to the component
|
|
14
|
-
*/
|
|
15
|
-
className?: string;
|
|
16
|
-
};
|
|
17
|
-
export type AspectRatio = '2:1' | '3:2';
|
|
18
|
-
declare const CardMedia: FunctionComponent<CardMediaProps>;
|
|
19
|
-
export default CardMedia;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type CardPriceTagProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Price for the price tag
|
|
5
|
-
*/
|
|
6
|
-
price: number;
|
|
7
|
-
/**
|
|
8
|
-
* Currency symbol to be displayed
|
|
9
|
-
*/
|
|
10
|
-
currency?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Text to be displayed over the price
|
|
13
|
-
*/
|
|
14
|
-
topText?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Text to be displayed under the price
|
|
17
|
-
*/
|
|
18
|
-
bottomText?: string;
|
|
19
|
-
/**
|
|
20
|
-
* className to be assigned to the component
|
|
21
|
-
*/
|
|
22
|
-
className?: string;
|
|
23
|
-
};
|
|
24
|
-
declare const CardPriceTag: ({ price, topText, bottomText, currency, ...rest }: CardPriceTagProps) => React.JSX.Element;
|
|
25
|
-
export default CardPriceTag;
|
package/cjs/card/CardTitle.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
export type CardTitleProps = {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
/**
|
|
5
|
-
* Text color
|
|
6
|
-
*/
|
|
7
|
-
color?: string;
|
|
8
|
-
/**
|
|
9
|
-
* If set to true the title will be displayed using the `sectionHeadline` instead of a `smallHeadline`.
|
|
10
|
-
* But only for large screens.
|
|
11
|
-
*/
|
|
12
|
-
largeTitle?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* className to be assigned to the component
|
|
15
|
-
*/
|
|
16
|
-
className?: string;
|
|
17
|
-
};
|
|
18
|
-
declare const CardTitle: FunctionComponent<CardTitleProps>;
|
|
19
|
-
export default CardTitle;
|
package/cjs/card/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { default as Card } from './Card';
|
|
2
|
-
export { default as CardMedia } from './CardMedia';
|
|
3
|
-
export { default as CardTitle } from './CardTitle';
|
|
4
|
-
export { default as CardContent } from './CardContent';
|
|
5
|
-
export { default as CardActions } from './CardActions';
|
|
6
|
-
export { default as CardPriceTag } from './CardPriceTag';
|
package/cjs/chip/Chip.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
type InteractionEvent = React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>;
|
|
3
|
-
export type ChipProps = {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
dismissable?: boolean;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
selectable?: boolean;
|
|
8
|
-
selected?: boolean;
|
|
9
|
-
onToggle?: (event: InteractionEvent) => void;
|
|
10
|
-
onDismiss?: (event: InteractionEvent) => void;
|
|
11
|
-
tabIndex?: number;
|
|
12
|
-
className?: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const ChipContainer: import("@emotion/styled").StyledComponent<{
|
|
15
|
-
theme?: import("@emotion/react").Theme;
|
|
16
|
-
as?: React.ElementType;
|
|
17
|
-
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
|
-
declare const _default: ({ children, dismissable, disabled, selectable, selected, onToggle, onDismiss, className, ...rest }: ChipProps) => React.JSX.Element;
|
|
19
|
-
export default _default;
|
package/cjs/chip/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type LockBodyScrollProps = {
|
|
3
|
-
/**
|
|
4
|
-
* If `true` scroll locking will be enabled
|
|
5
|
-
*/
|
|
6
|
-
enabled?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* ClassName to be applied to the body element when scroll is locked
|
|
9
|
-
*/
|
|
10
|
-
bodyClassNameApplied?: string;
|
|
11
|
-
/**
|
|
12
|
-
* ClassName to be applied to the html element when scroll is locked
|
|
13
|
-
*/
|
|
14
|
-
htmlClassNameApplied?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Preserve scroll position when locking.
|
|
17
|
-
*/
|
|
18
|
-
preserveScrollPosition?: boolean;
|
|
19
|
-
children?: React.ReactNode;
|
|
20
|
-
ref?: React.Ref<LockBodyScrollResult>;
|
|
21
|
-
};
|
|
22
|
-
export type LockBodyScrollResult = {
|
|
23
|
-
getGap(): number;
|
|
24
|
-
};
|
|
25
|
-
export declare const LockBodyScroll: ({ enabled, children, ref, ...rest }: LockBodyScrollProps) => React.JSX.Element;
|
|
26
|
-
export default LockBodyScroll;
|
package/cjs/common/arrow.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export type ArrowPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
2
|
-
/**
|
|
3
|
-
* Create css for an arrow
|
|
4
|
-
* A <div> tag must surround {children} to work
|
|
5
|
-
*/
|
|
6
|
-
export default function arrow(size: number, color: string, offset?: number, position?: ArrowPosition): import("@emotion/utils").SerializedStyles;
|
package/cjs/common/intent.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function miniMoize(fn: (...args: any[]) => any): (...args: any[]) => any;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React, { ComponentType, ElementType } from 'react';
|
|
2
|
-
export type RenderContainerProps<T> = {
|
|
3
|
-
renderContainer: (props: T) => React.JSX.Element;
|
|
4
|
-
};
|
|
5
|
-
export type PolymorphicComponentProps = {
|
|
6
|
-
/**
|
|
7
|
-
* HTML tag or custom component being rendered.
|
|
8
|
-
*/
|
|
9
|
-
as?: ElementType;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Given a PolymorphicComponent and a desired RenderComponent this function will returns are new component where the
|
|
13
|
-
* polymorphic prop will point to the provided `RenderComponent`.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* import { Link } from `gatsby`;
|
|
17
|
-
* import { AppBarItem, withRenderAs } from `@dfds-ui/react-components`;
|
|
18
|
-
*
|
|
19
|
-
* const AppBarLink = withRenderAs(AppBarItem, Link);
|
|
20
|
-
*
|
|
21
|
-
* const Example = () => {
|
|
22
|
-
* return <AppBarLink id="1" title="example" to="/example">Example</AppBarLink>;
|
|
23
|
-
* }
|
|
24
|
-
*/
|
|
25
|
-
export declare function withRenderAs<PCProps extends PolymorphicComponentProps, RCProps>(PolymorphicComponent: ComponentType<PCProps>, RenderComponent: ComponentType<RCProps>): ({ ...props }: Omit<PCProps, keyof PolymorphicComponentProps> & RCProps) => React.JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function useMedia(queries: any, values: any, defaultValue: any): any;
|
package/cjs/common/utils.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare function ie11MinHeightFix(minHeight?: string): import("@emotion/utils").SerializedStyles | undefined;
|
|
2
|
-
export declare function onlyIE(strings: TemplateStringsArray, ...args: any): import("@emotion/utils").SerializedStyles;
|
|
3
|
-
export declare function onlyChrome(strings: TemplateStringsArray, ...args: any): import("@emotion/utils").SerializedStyles;
|
package/cjs/counter/Counter.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
export type CounterProps = {
|
|
3
|
-
label?: ReactNode | string;
|
|
4
|
-
/**
|
|
5
|
-
* Minimum value
|
|
6
|
-
*/
|
|
7
|
-
minVal: number;
|
|
8
|
-
/**
|
|
9
|
-
* Maximum value
|
|
10
|
-
*/
|
|
11
|
-
maxVal: number;
|
|
12
|
-
disableMin?: boolean;
|
|
13
|
-
disableMax?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
*Name of the input element
|
|
16
|
-
*/
|
|
17
|
-
name?: string;
|
|
18
|
-
currentVal?: number;
|
|
19
|
-
initialVal?: number;
|
|
20
|
-
/**
|
|
21
|
-
*Callback when the value changes
|
|
22
|
-
*/
|
|
23
|
-
executeOnChange?: (arg: number) => any;
|
|
24
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
25
|
-
};
|
|
26
|
-
export declare const Counter: (props: CounterProps) => React.JSX.Element;
|
|
27
|
-
export default Counter;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type PluralCounterProps = {
|
|
3
|
-
minVal: number;
|
|
4
|
-
maxVal: number;
|
|
5
|
-
currentVal?: number;
|
|
6
|
-
initialVal?: number;
|
|
7
|
-
singularLabel: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
pluralLabel: string;
|
|
10
|
-
executeOnChange?: (arg: number) => any;
|
|
11
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
12
|
-
};
|
|
13
|
-
declare const PluralCounter: ({ singularLabel, pluralLabel, executeOnChange, ...rest }: PluralCounterProps) => React.JSX.Element;
|
|
14
|
-
export default PluralCounter;
|
package/cjs/counter/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
export type DataTableProps = {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
onChange?: (model: object[]) => object[];
|
|
5
|
-
columns?: string[];
|
|
6
|
-
data: object[];
|
|
7
|
-
className?: string;
|
|
8
|
-
hasHeader?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare const DataTable: FunctionComponent<DataTableProps>;
|
|
11
|
-
export default DataTable;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './DataTable';
|
package/cjs/divider/Divider.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type DividerProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Display the Divider in "light" mode.
|
|
5
|
-
*/
|
|
6
|
-
light?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Display the Divider in "indent" style
|
|
9
|
-
*/
|
|
10
|
-
indent?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Display the Divider in "margin" style
|
|
13
|
-
*/
|
|
14
|
-
margins?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* HTML tag or custom component being rendered
|
|
17
|
-
*/
|
|
18
|
-
as?: React.ElementType;
|
|
19
|
-
/**
|
|
20
|
-
* Class name to be assigned to the component
|
|
21
|
-
*/
|
|
22
|
-
className?: string;
|
|
23
|
-
};
|
|
24
|
-
export declare const dividerBorder: (light?: boolean, placement?: "top" | "bottom") => import("@emotion/utils").SerializedStyles;
|
|
25
|
-
export declare const Divider: ({ light, indent, margins, ...rest }: DividerProps) => React.JSX.Element;
|
|
26
|
-
export default Divider;
|
package/cjs/divider/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Divider';
|
package/cjs/drawer/Drawer.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { theme } from '@dfds-ui/theme';
|
|
3
|
-
type HorizontalPosition = 'left' | 'right';
|
|
4
|
-
type VerticalPosition = 'top' | 'bottom';
|
|
5
|
-
type Elevation = keyof typeof theme.elevation;
|
|
6
|
-
export type DrawerProps = {
|
|
7
|
-
/**
|
|
8
|
-
* Horizontal position of the drawer
|
|
9
|
-
*/
|
|
10
|
-
position?: HorizontalPosition;
|
|
11
|
-
/**
|
|
12
|
-
* Show arrow to visually indicate the relation to a connected component
|
|
13
|
-
*/
|
|
14
|
-
showArrow?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Set the `elevation` for the Drawer.
|
|
17
|
-
*/
|
|
18
|
-
elevation?: Elevation;
|
|
19
|
-
/**
|
|
20
|
-
* Vertical position of the drawer in relation to a connected component.
|
|
21
|
-
* Will only be used for placing the arrow on either the `top` or `bottom`
|
|
22
|
-
*/
|
|
23
|
-
verticalPosition?: VerticalPosition;
|
|
24
|
-
/**
|
|
25
|
-
* Class name to be assigned to the component
|
|
26
|
-
*/
|
|
27
|
-
className?: string;
|
|
28
|
-
children?: React.ReactNode;
|
|
29
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
30
|
-
};
|
|
31
|
-
export declare const Drawer: ({ className, children, position, verticalPosition, showArrow, elevation, ...rest }: DrawerProps) => React.JSX.Element;
|
|
32
|
-
export default Drawer;
|
package/cjs/drawer/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Drawer';
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from 'react';
|
|
2
|
-
import { PopperProps, PopperPlacementType } from '@mui/material';
|
|
3
|
-
export type DropdownSize = 'medium' | 'small';
|
|
4
|
-
export type DropdownProps = {
|
|
5
|
-
/**
|
|
6
|
-
* Placement for the `Dropdown`.
|
|
7
|
-
*/
|
|
8
|
-
placement?: PopperPlacementType;
|
|
9
|
-
/**
|
|
10
|
-
* HTML element that the `Dropdown` will be anchor to.
|
|
11
|
-
*/
|
|
12
|
-
anchorEl?: PopperProps['anchorEl'];
|
|
13
|
-
/**
|
|
14
|
-
* If set to `true`, the `Dropdown` is shown.
|
|
15
|
-
*/
|
|
16
|
-
isOpen: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Set the state of the `Dropdown`.
|
|
19
|
-
*/
|
|
20
|
-
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
21
|
-
/**
|
|
22
|
-
* Specify the size of the `Dropdown`.
|
|
23
|
-
*/
|
|
24
|
-
size?: DropdownSize;
|
|
25
|
-
/**
|
|
26
|
-
* Close the `Dropdown` on `esc` key.
|
|
27
|
-
*/
|
|
28
|
-
shouldCloseOnEsc?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* className to be assigned to component.
|
|
31
|
-
*/
|
|
32
|
-
className?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Select multiple children from the `Dropdown`.
|
|
35
|
-
*/
|
|
36
|
-
multiselect?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Add an `id` to the `Dropdown`.
|
|
39
|
-
*/
|
|
40
|
-
id?: string;
|
|
41
|
-
onClickAway?: () => void;
|
|
42
|
-
children: ReactElement<any>[];
|
|
43
|
-
filter?: boolean;
|
|
44
|
-
};
|
|
45
|
-
declare const DropdownMenu: ({ isOpen, multiselect, children, anchorEl, onClickAway, size, id, className, placement, setIsOpen, shouldCloseOnEsc, filter, ...rest }: DropdownProps) => React.JSX.Element;
|
|
46
|
-
export default DropdownMenu;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type DropdownSize = 'medium' | 'small';
|
|
3
|
-
type DropdownContextProps = {
|
|
4
|
-
size?: DropdownSize;
|
|
5
|
-
multiselect?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare const DropdownContext: React.Context<DropdownContextProps>;
|
|
8
|
-
export declare const DropdownContextProvider: ({ children, value, }: {
|
|
9
|
-
value: DropdownContextProps;
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
}) => React.JSX.Element;
|
|
12
|
-
declare const useDropdownContext: () => DropdownContextProps;
|
|
13
|
-
export default useDropdownContext;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface MenuCheckboxProps {
|
|
3
|
-
/**
|
|
4
|
-
* HTML tag or custom component being rendered.
|
|
5
|
-
*/
|
|
6
|
-
as?: React.ElementType;
|
|
7
|
-
/**
|
|
8
|
-
* Override the default color for the text.
|
|
9
|
-
*/
|
|
10
|
-
color?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Indicates that the `MenuCheckbox` is disabled.
|
|
13
|
-
*/
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Invoke the provided callback when the `MenuCheckbox` is clicked.
|
|
17
|
-
*/
|
|
18
|
-
onClick?: () => void;
|
|
19
|
-
/**
|
|
20
|
-
* Indicates that the `MenuCheckbox` is selected.
|
|
21
|
-
*/
|
|
22
|
-
selected?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Add interactive styles to the `MenuCheckbox`.
|
|
25
|
-
*/
|
|
26
|
-
clickable?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* className to be assigned to component.
|
|
29
|
-
*/
|
|
30
|
-
className?: string;
|
|
31
|
-
children?: React.ReactNode;
|
|
32
|
-
}
|
|
33
|
-
declare const MenuCheckbox: ({ color, children, disabled, as, onClick, selected, clickable, className, }: MenuCheckboxProps) => React.JSX.Element;
|
|
34
|
-
export default MenuCheckbox;
|