@dfds-ui/react-components 3.0.0-alpha.2f0e45a3 → 3.0.0-alpha.db5f99ee
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 +11 -11
- 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,39 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const checkboxSizes: {
|
|
3
|
-
small: {
|
|
4
|
-
checkbox: string;
|
|
5
|
-
outline: string;
|
|
6
|
-
tick: string;
|
|
7
|
-
fontSize: string;
|
|
8
|
-
lineHeight: string;
|
|
9
|
-
paddingLeft: string;
|
|
10
|
-
};
|
|
11
|
-
medium: {
|
|
12
|
-
checkbox: string;
|
|
13
|
-
outline: string;
|
|
14
|
-
fontSize: string;
|
|
15
|
-
lineHeight: string;
|
|
16
|
-
tick: string;
|
|
17
|
-
paddingLeft: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
type Size = keyof typeof checkboxSizes;
|
|
21
|
-
type BaseProps = Omit<React.JSX.IntrinsicElements['input'], 'size' | 'css'> & {
|
|
22
|
-
htmlSize?: number;
|
|
23
|
-
};
|
|
24
|
-
export type CheckboxProps = BaseProps & {
|
|
25
|
-
className?: string;
|
|
26
|
-
error?: boolean;
|
|
27
|
-
name?: string;
|
|
28
|
-
value?: string;
|
|
29
|
-
onChange?: (...args: any[]) => void;
|
|
30
|
-
onLabelClick?: React.JSX.IntrinsicElements['label']['onClick'];
|
|
31
|
-
disabled?: boolean;
|
|
32
|
-
checked?: boolean;
|
|
33
|
-
htmlSize?: number;
|
|
34
|
-
size?: Size;
|
|
35
|
-
indeterminate?: boolean;
|
|
36
|
-
leadingLabel?: boolean;
|
|
37
|
-
};
|
|
38
|
-
declare const Checkbox: ({ children, className, error, checked, disabled, indeterminate, onChange, onLabelClick, size, htmlSize, leadingLabel, ...rest }: CheckboxProps) => React.JSX.Element;
|
|
39
|
-
export default Checkbox;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type ExampleControlComponentProps = {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
onChange?: (...args: any[]) => void;
|
|
5
|
-
checked?: boolean;
|
|
6
|
-
error?: boolean;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
size?: 'small' | 'medium';
|
|
9
|
-
};
|
|
10
|
-
declare const ExampleControlComponent: React.FunctionComponent<ExampleControlComponentProps>;
|
|
11
|
-
export default ExampleControlComponent;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Checkbox } from './Checkbox';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: import("@emotion/styled").StyledComponent<import("../text-field/TextField").BaseInputProps & {
|
|
3
|
-
label?: React.ReactNode;
|
|
4
|
-
name?: string;
|
|
5
|
-
required?: boolean;
|
|
6
|
-
hintText?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
defaultValue?: string;
|
|
9
|
-
errorMessage?: string;
|
|
10
|
-
assistiveText?: string;
|
|
11
|
-
className?: string;
|
|
12
|
-
size?: import("../input/Input").Size;
|
|
13
|
-
value?: string;
|
|
14
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
15
|
-
icon?: React.ReactNode;
|
|
16
|
-
inverted?: boolean;
|
|
17
|
-
type?: string;
|
|
18
|
-
hideAsterisk?: boolean;
|
|
19
|
-
} & {
|
|
20
|
-
theme?: import("@emotion/react").Theme;
|
|
21
|
-
}, {}, {}>;
|
|
22
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const ErrorText: import("@emotion/styled").StyledComponent<{
|
|
2
|
-
theme?: import("@emotion/react").Theme;
|
|
3
|
-
as?: React.ElementType;
|
|
4
|
-
} & {
|
|
5
|
-
small?: boolean;
|
|
6
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
-
export default ErrorText;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { LabelProps } from '../label/Label';
|
|
3
|
-
type FieldProps = {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
labelProps?: LabelProps;
|
|
6
|
-
label?: React.ReactNode;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
assistiveText?: string;
|
|
9
|
-
};
|
|
10
|
-
declare const Field: React.FunctionComponent<FieldProps>;
|
|
11
|
-
export default Field;
|
package/cjs/forms/index.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export { default as AssistiveText } from './assistive-text/AssistiveText';
|
|
2
|
-
export { default as Asterisk } from './asterisk/Asterisk';
|
|
3
|
-
export { default as Field } from './field/Field';
|
|
4
|
-
export { default as Input } from './input/Input';
|
|
5
|
-
export { default as Switch } from './switch/Switch';
|
|
6
|
-
export { default as Select } from './select/Select';
|
|
7
|
-
export { default as Label } from './label/Label';
|
|
8
|
-
export { default as TextField } from './text-field/TextField';
|
|
9
|
-
export { default as Radio } from './radio/Radio';
|
|
10
|
-
export type RadioProps = import('./radio/Radio').RadioProps;
|
|
11
|
-
export { default as Checkbox } from './checkbox/Checkbox';
|
|
12
|
-
export type CheckboxProps = import('./checkbox/Checkbox').CheckboxProps;
|
|
13
|
-
export { default as SelectField } from './select-field/SelectField';
|
|
14
|
-
export { default as TelField } from './tel-field/TelField';
|
|
15
|
-
export { default as EmailField } from './email-field/EmailField';
|
|
16
|
-
export { default as NumberField } from './number-field/NumberField';
|
|
17
|
-
export { default as ReactSelect } from './reactselect/ReactSelect';
|
|
18
|
-
export type BaseReactSelectProps = import('./reactselect/ReactSelect').BaseReactSelectProps;
|
|
19
|
-
export { default as PasswordField } from './password-field/PasswordField';
|
|
20
|
-
export { default as AsyncSearchableSelect } from './searchable-select/AsyncSearchableSelect';
|
|
21
|
-
export { default as ErrorText } from './error-text/ErrorText';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type Alignment = 'left' | 'right';
|
|
3
|
-
export type Size = 'small' | 'medium';
|
|
4
|
-
interface InputProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'size' | 'css'> {
|
|
5
|
-
name: string;
|
|
6
|
-
multiline?: boolean;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
error?: boolean;
|
|
9
|
-
className?: string;
|
|
10
|
-
wrapperClassName?: string;
|
|
11
|
-
icon?: React.ReactNode;
|
|
12
|
-
iconAlignment?: Alignment;
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
placeholderAlignment?: Alignment;
|
|
15
|
-
size?: Size;
|
|
16
|
-
htmlSize?: number;
|
|
17
|
-
}
|
|
18
|
-
declare const Input: (props: InputProps) => React.JSX.Element;
|
|
19
|
-
export default Input;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
export type Alignment = 'left' | 'right';
|
|
3
|
-
export type Size = 'small' | 'medium' | 'large';
|
|
4
|
-
type ReactInputProps = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
5
|
-
export type InputCompositionProps = {
|
|
6
|
-
visualSize?: Size;
|
|
7
|
-
className?: string;
|
|
8
|
-
children?: ReactNode;
|
|
9
|
-
} & React.PropsWithoutRef<React.JSX.IntrinsicElements['div']>;
|
|
10
|
-
export type InputIconProps = {
|
|
11
|
-
icon: React.ElementType;
|
|
12
|
-
color?: string;
|
|
13
|
-
className?: string;
|
|
14
|
-
size?: Size;
|
|
15
|
-
};
|
|
16
|
-
export type InputProps = {
|
|
17
|
-
/**
|
|
18
|
-
* Name of the input element
|
|
19
|
-
*/
|
|
20
|
-
name: string;
|
|
21
|
-
/**
|
|
22
|
-
* Indicates that the input element has an error
|
|
23
|
-
*/
|
|
24
|
-
error?: boolean;
|
|
25
|
-
className?: string;
|
|
26
|
-
placeholder?: string;
|
|
27
|
-
placeholderAlignment?: Alignment;
|
|
28
|
-
disabled?: boolean;
|
|
29
|
-
children?: React.ReactNode;
|
|
30
|
-
} & Omit<ReactInputProps, 'css'>;
|
|
31
|
-
export declare function inputTypography(size: Size): import("@emotion/utils").SerializedStyles;
|
|
32
|
-
export declare const InputComposition: ({ visualSize, children, ...rest }: InputCompositionProps) => React.JSX.Element;
|
|
33
|
-
export declare const InputIcon: import("@emotion/styled").StyledComponent<InputIconProps & {
|
|
34
|
-
theme?: import("@emotion/react").Theme;
|
|
35
|
-
}, {}, {}>;
|
|
36
|
-
export declare const InputAddon: import("@emotion/styled").StyledComponent<{
|
|
37
|
-
className?: string;
|
|
38
|
-
children?: ReactNode;
|
|
39
|
-
} & {
|
|
40
|
-
theme?: import("@emotion/react").Theme;
|
|
41
|
-
}, {}, {}>;
|
|
42
|
-
export declare const InputControl: ({ error, disabled, ...rest }: InputProps) => React.JSX.Element;
|
|
43
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type LabelProps = {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
required?: boolean;
|
|
5
|
-
size?: string;
|
|
6
|
-
htmlFor?: string;
|
|
7
|
-
inverted?: boolean;
|
|
8
|
-
hideAsterisk?: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare const Label: React.FunctionComponent<LabelProps>;
|
|
11
|
-
export default Label;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: import("@emotion/styled").StyledComponent<import("../text-field/TextField").BaseInputProps & {
|
|
3
|
-
label?: React.ReactNode;
|
|
4
|
-
name?: string;
|
|
5
|
-
required?: boolean;
|
|
6
|
-
hintText?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
defaultValue?: string;
|
|
9
|
-
errorMessage?: string;
|
|
10
|
-
assistiveText?: string;
|
|
11
|
-
className?: string;
|
|
12
|
-
size?: import("../input/Input").Size;
|
|
13
|
-
value?: string;
|
|
14
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
15
|
-
icon?: React.ReactNode;
|
|
16
|
-
inverted?: boolean;
|
|
17
|
-
type?: string;
|
|
18
|
-
hideAsterisk?: boolean;
|
|
19
|
-
} & {
|
|
20
|
-
theme?: import("@emotion/react").Theme;
|
|
21
|
-
}, {}, {}>;
|
|
22
|
-
export default _default;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const radioSizes: {
|
|
3
|
-
small: {
|
|
4
|
-
circle: string;
|
|
5
|
-
mark: string;
|
|
6
|
-
outline: string;
|
|
7
|
-
fontSize: string;
|
|
8
|
-
lineHeight: string;
|
|
9
|
-
paddingLeft: string;
|
|
10
|
-
};
|
|
11
|
-
medium: {
|
|
12
|
-
circle: string;
|
|
13
|
-
mark: string;
|
|
14
|
-
outline: string;
|
|
15
|
-
fontSize: string;
|
|
16
|
-
lineHeight: string;
|
|
17
|
-
paddingLeft: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export type BaseProps = Omit<React.JSX.IntrinsicElements['input'], 'size' | 'css'> & {
|
|
21
|
-
htmlSize?: number;
|
|
22
|
-
};
|
|
23
|
-
export type Size = keyof typeof radioSizes;
|
|
24
|
-
export type RadioProps = BaseProps & {
|
|
25
|
-
className?: string;
|
|
26
|
-
error?: boolean;
|
|
27
|
-
name: string;
|
|
28
|
-
value: string;
|
|
29
|
-
onChange?: any;
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
checked?: boolean;
|
|
32
|
-
size?: Size;
|
|
33
|
-
};
|
|
34
|
-
declare const Radio: ({ children, disabled, checked, className, error, onChange, htmlSize, size, ref, ...rest }: RadioProps) => React.JSX.Element;
|
|
35
|
-
export default Radio;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Select from 'react-select';
|
|
3
|
-
export type BaseReactSelectProps = Omit<React.PropsWithRef<Select>, 'size' | 'css'>;
|
|
4
|
-
export type Size = 'small' | 'medium';
|
|
5
|
-
export declare const ReactSelectWrapper: import("@emotion/styled").StyledComponent<{
|
|
6
|
-
theme?: import("@emotion/react").Theme;
|
|
7
|
-
as?: React.ElementType;
|
|
8
|
-
} & {
|
|
9
|
-
error?: boolean;
|
|
10
|
-
size?: string;
|
|
11
|
-
arrow?: boolean;
|
|
12
|
-
selected?: boolean;
|
|
13
|
-
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
|
-
export declare const Icon: import("@emotion/styled").StyledComponent<{
|
|
15
|
-
theme?: import("@emotion/react").Theme;
|
|
16
|
-
as?: React.ElementType;
|
|
17
|
-
} & {
|
|
18
|
-
size?: Size;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
21
|
-
export declare const Menu: (props: any) => React.JSX.Element;
|
|
22
|
-
export declare const ClearIndicator: (props: any) => React.JSX.Element;
|
|
23
|
-
declare const ReactSelect: ({ name, error, selectClassName, className, icon, disabled, size, arrow, htmlSize, isClearable, components, menuPlacement, ...rest }: any) => React.JSX.Element;
|
|
24
|
-
/** @deprecated Use dfds-ui/forms */
|
|
25
|
-
export default ReactSelect;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import AsyncSelect from 'react-select/async';
|
|
3
|
-
export type SearchableSelectProps = Omit<React.PropsWithRef<AsyncSelect>, 'size' | 'css'>;
|
|
4
|
-
export type Size = 'small' | 'medium';
|
|
5
|
-
declare const AsyncSearchableSelect: React.FC<any>;
|
|
6
|
-
export default AsyncSearchableSelect;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type BaseSelectProps = Omit<React.JSX.IntrinsicElements['select'], 'size' | 'css'>;
|
|
3
|
-
export type Size = 'small' | 'medium';
|
|
4
|
-
export type SelectProps = BaseSelectProps & {
|
|
5
|
-
name: string;
|
|
6
|
-
required?: boolean;
|
|
7
|
-
error?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
icon?: React.ReactNode;
|
|
10
|
-
wrapperClassName?: string;
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
size?: Size;
|
|
13
|
-
htmlSize?: number;
|
|
14
|
-
};
|
|
15
|
-
declare const Select: (props: SelectProps) => React.JSX.Element;
|
|
16
|
-
export default Select;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: import("@emotion/styled").StyledComponent<import("../select/Select").BaseSelectProps & {
|
|
3
|
-
name: string;
|
|
4
|
-
required?: boolean;
|
|
5
|
-
error?: boolean;
|
|
6
|
-
className?: string;
|
|
7
|
-
icon?: React.ReactNode;
|
|
8
|
-
wrapperClassName?: string;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
size?: import("../select/Select").Size;
|
|
11
|
-
htmlSize?: number;
|
|
12
|
-
} & {
|
|
13
|
-
label?: React.ReactNode;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
errorMessage?: string;
|
|
16
|
-
assistiveText?: string;
|
|
17
|
-
selected?: string;
|
|
18
|
-
defaultValue?: string;
|
|
19
|
-
value?: string;
|
|
20
|
-
inverted?: boolean;
|
|
21
|
-
as?: React.ElementType;
|
|
22
|
-
} & {
|
|
23
|
-
theme?: import("@emotion/react").Theme;
|
|
24
|
-
}, {}, {}>;
|
|
25
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type Size = 'small' | 'medium';
|
|
3
|
-
type SwitchProps = React.PropsWithRef<React.JSX.IntrinsicElements['label']> & {
|
|
4
|
-
name?: string;
|
|
5
|
-
checked?: boolean;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
-
right?: boolean;
|
|
9
|
-
size?: Size;
|
|
10
|
-
error?: boolean;
|
|
11
|
-
};
|
|
12
|
-
declare const Switch: React.FunctionComponent<SwitchProps>;
|
|
13
|
-
export default Switch;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: import("@emotion/styled").StyledComponent<import("../text-field/TextField").BaseInputProps & {
|
|
3
|
-
label?: React.ReactNode;
|
|
4
|
-
name?: string;
|
|
5
|
-
required?: boolean;
|
|
6
|
-
hintText?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
defaultValue?: string;
|
|
9
|
-
errorMessage?: string;
|
|
10
|
-
assistiveText?: string;
|
|
11
|
-
className?: string;
|
|
12
|
-
size?: import("../input/Input").Size;
|
|
13
|
-
value?: string;
|
|
14
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
15
|
-
icon?: React.ReactNode;
|
|
16
|
-
inverted?: boolean;
|
|
17
|
-
type?: string;
|
|
18
|
-
hideAsterisk?: boolean;
|
|
19
|
-
} & {
|
|
20
|
-
theme?: import("@emotion/react").Theme;
|
|
21
|
-
}, {}, {}>;
|
|
22
|
-
export default _default;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Size } from '../input/Input';
|
|
3
|
-
export type BaseInputProps = Omit<React.JSX.IntrinsicElements['input'], 'size' | 'css'>;
|
|
4
|
-
export type TextFieldProps = BaseInputProps & {
|
|
5
|
-
label?: React.ReactNode;
|
|
6
|
-
name?: string;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
hintText?: string;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
defaultValue?: string;
|
|
11
|
-
errorMessage?: string;
|
|
12
|
-
assistiveText?: string;
|
|
13
|
-
className?: string;
|
|
14
|
-
size?: Size;
|
|
15
|
-
value?: string;
|
|
16
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
17
|
-
icon?: React.ReactNode;
|
|
18
|
-
inverted?: boolean;
|
|
19
|
-
type?: string;
|
|
20
|
-
hideAsterisk?: boolean;
|
|
21
|
-
};
|
|
22
|
-
export declare const TextField: (props: TextFieldProps) => React.JSX.Element;
|
|
23
|
-
declare const _default: import("@emotion/styled").StyledComponent<BaseInputProps & {
|
|
24
|
-
label?: React.ReactNode;
|
|
25
|
-
name?: string;
|
|
26
|
-
required?: boolean;
|
|
27
|
-
hintText?: string;
|
|
28
|
-
disabled?: boolean;
|
|
29
|
-
defaultValue?: string;
|
|
30
|
-
errorMessage?: string;
|
|
31
|
-
assistiveText?: string;
|
|
32
|
-
className?: string;
|
|
33
|
-
size?: Size;
|
|
34
|
-
value?: string;
|
|
35
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
36
|
-
icon?: React.ReactNode;
|
|
37
|
-
inverted?: boolean;
|
|
38
|
-
type?: string;
|
|
39
|
-
hideAsterisk?: boolean;
|
|
40
|
-
} & {
|
|
41
|
-
theme?: import("@emotion/react").Theme;
|
|
42
|
-
}, {}, {}>;
|
|
43
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Minimal/modern CSS reset.
|
|
4
|
-
*
|
|
5
|
-
* Taken from: https://www.joshwcomeau.com/css/custom-css-reset/
|
|
6
|
-
*
|
|
7
|
-
* TODO: Include this in the GlobalStyles component when adapted and tested in solutions.
|
|
8
|
-
*/
|
|
9
|
-
export declare const ResetStyles: () => React.JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const sanitize: import("@emotion/utils").SerializedStyles;
|
package/cjs/grid/Column.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type ColumnProps = {
|
|
3
|
-
m?: 6 | 12;
|
|
4
|
-
l?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
5
|
-
xl?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
6
|
-
xxl?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
};
|
|
9
|
-
declare const Column: React.FunctionComponent<ColumnProps>;
|
|
10
|
-
export default Column;
|
package/cjs/grid/Container.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SurfaceType } from '../surface';
|
|
3
|
-
type ContainerProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Specify whether the container spans the entire width of its parent or it has a max-width set to 1200px (75rem)
|
|
6
|
-
*/
|
|
7
|
-
fluid?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Specify the surface variant for the container
|
|
10
|
-
*/
|
|
11
|
-
surface?: SurfaceType;
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
};
|
|
14
|
-
declare const Container: ({ children, fluid, surface, ...rest }: ContainerProps) => React.JSX.Element;
|
|
15
|
-
export default Container;
|
package/cjs/grid/index.d.ts
DELETED
package/cjs/hero/Hero.d.ts
DELETED
package/cjs/hero/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Hero } from './Hero';
|
package/cjs/hero/stripes.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type IEBannerProps = {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
heading?: string;
|
|
5
|
-
openInEdge: string;
|
|
6
|
-
/**
|
|
7
|
-
* Class name to be assigned to the component
|
|
8
|
-
*/
|
|
9
|
-
className?: string;
|
|
10
|
-
};
|
|
11
|
-
declare const IEBanner: React.FunctionComponent<IEBannerProps>;
|
|
12
|
-
export default IEBanner;
|
package/cjs/ie-banner/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as IEBanner } from './IEBanner';
|
package/cjs/index.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export { default as elevation } from './elevation';
|
|
2
|
-
export { default as media } from './media';
|
|
3
|
-
export { ResetStyles } from './global-styles/ResetStyles';
|
|
4
|
-
export { GlobalStyles, DfdsFontFace } from './global-styles/GlobalStyles';
|
|
5
|
-
export * from './accordion';
|
|
6
|
-
export * from './app-bar';
|
|
7
|
-
export * from './assertions';
|
|
8
|
-
export * from './badge';
|
|
9
|
-
export * from './button-stack';
|
|
10
|
-
export * from './button';
|
|
11
|
-
export * from './card';
|
|
12
|
-
export * from './chip';
|
|
13
|
-
export * from './common/polymorphic';
|
|
14
|
-
export * from './counter';
|
|
15
|
-
export * from './data-table';
|
|
16
|
-
export * from './drawer';
|
|
17
|
-
export * from './footer';
|
|
18
|
-
export * from './forms';
|
|
19
|
-
export * from './grid';
|
|
20
|
-
export * from './hero';
|
|
21
|
-
export * from './ie-banner';
|
|
22
|
-
export * from './lists';
|
|
23
|
-
export * from './loader';
|
|
24
|
-
export * from './localization';
|
|
25
|
-
export * from './menu';
|
|
26
|
-
export * from './nav-bar';
|
|
27
|
-
export * from './nav-menu';
|
|
28
|
-
export * from './pagination';
|
|
29
|
-
export * from './popper';
|
|
30
|
-
export * from './progress-bar';
|
|
31
|
-
export * from './side-sheet';
|
|
32
|
-
export * from './schedule';
|
|
33
|
-
export * from './site-layout';
|
|
34
|
-
export * from './social-media-link-list';
|
|
35
|
-
export * from './spinner';
|
|
36
|
-
export * from './styles';
|
|
37
|
-
export * from './tab';
|
|
38
|
-
export * from './table';
|
|
39
|
-
export * from './typography';
|
|
40
|
-
export * from './common/LockBodyScroll';
|
|
41
|
-
export * from './dropdown-menu';
|
|
42
|
-
export * from './skeleton';
|
|
43
|
-
export * from './tooltip';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import { FlexBoxProps } from './../flexbox/FlexBox';
|
|
3
|
-
type FeatureListProps = {
|
|
4
|
-
icon: any;
|
|
5
|
-
items: string[];
|
|
6
|
-
iconColor?: string;
|
|
7
|
-
textTag?: React.ElementType;
|
|
8
|
-
as?: React.ElementType;
|
|
9
|
-
};
|
|
10
|
-
type FeatureListComponent = FunctionComponent<FeatureListProps>;
|
|
11
|
-
export declare const ListItem: import("@emotion/styled").StyledComponent<{
|
|
12
|
-
theme?: import("@emotion/react").Theme;
|
|
13
|
-
as?: React.ElementType;
|
|
14
|
-
} & FlexBoxProps & {
|
|
15
|
-
as?: React.ElementType;
|
|
16
|
-
} & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
17
|
-
theme?: import("@emotion/react").Theme;
|
|
18
|
-
} & {
|
|
19
|
-
iconColor?: string;
|
|
20
|
-
}, {}, {}>;
|
|
21
|
-
declare const FeatureList: FeatureListComponent;
|
|
22
|
-
export default FeatureList;
|
package/cjs/lists/ListAddon.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type ListAddonProps = {
|
|
3
|
-
className?: string;
|
|
4
|
-
/**
|
|
5
|
-
* HTML tag or custom component being rendered.
|
|
6
|
-
*/
|
|
7
|
-
as?: React.ElementType;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
};
|
|
10
|
-
declare const ListAddon: ({ className, as, children, ...rest }: ListAddonProps) => React.JSX.Element;
|
|
11
|
-
export default ListAddon;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DividerProps } from '../divider';
|
|
3
|
-
export type ListDividerProps = Pick<DividerProps, 'as' | 'indent' | 'margins'>;
|
|
4
|
-
declare const ListDivider: ({ indent, margins, as, ...rest }: ListDividerProps) => React.JSX.Element;
|
|
5
|
-
export default ListDivider;
|
package/cjs/lists/ListIcon.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type Size = 'small' | 'medium' | 'large' | 'xl';
|
|
3
|
-
type ListIconProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Choose the needed icon.
|
|
6
|
-
*/
|
|
7
|
-
icon: React.ElementType;
|
|
8
|
-
/**
|
|
9
|
-
* Choose the size of the icon.
|
|
10
|
-
*/
|
|
11
|
-
size?: Size;
|
|
12
|
-
/**
|
|
13
|
-
* Choose the color of the icon.
|
|
14
|
-
*/
|
|
15
|
-
color?: string;
|
|
16
|
-
};
|
|
17
|
-
declare const ListIcon: ({ icon: Icon, size, color, ...rest }: ListIconProps) => React.JSX.Element;
|
|
18
|
-
export default ListIcon;
|