@dfds-ui/react-components 2.0.29 → 2.2.0-alpha.8d87a90d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -10
- package/cjs/accordion/Accordion.d.ts +0 -101
- package/cjs/accordion/AccordionContent.d.ts +0 -13
- package/cjs/accordion/AccordionSmall.d.ts +0 -55
- package/cjs/accordion/index.d.ts +0 -3
- package/cjs/app-bar/AppBar.d.ts +0 -13
- package/cjs/app-bar/AppBarContext.d.ts +0 -12
- package/cjs/app-bar/AppBarDrawer.d.ts +0 -5
- package/cjs/app-bar/AppBarIconButton.d.ts +0 -10
- package/cjs/app-bar/AppBarItem.d.ts +0 -23
- package/cjs/app-bar/AppBarListItem.d.ts +0 -16
- package/cjs/app-bar/index.d.ts +0 -7
- package/cjs/assertions/banner/Banner.d.ts +0 -74
- package/cjs/assertions/banner/BannerAction.d.ts +0 -19
- package/cjs/assertions/banner/BannerTypography.d.ts +0 -7
- package/cjs/assertions/banner/index.d.ts +0 -3
- package/cjs/assertions/index.d.ts +0 -2
- package/cjs/assertions/toast/Toast.d.ts +0 -12
- package/cjs/assertions/toast/Toaster.d.ts +0 -19
- package/cjs/assertions/toast/index.d.ts +0 -2
- package/cjs/badge/Badge.d.ts +0 -26
- package/cjs/badge/index.d.ts +0 -2
- package/cjs/button/BadgeIcon.d.ts +0 -7
- package/cjs/button/BaseButton.d.ts +0 -14
- package/cjs/button/Button.d.ts +0 -19
- package/cjs/button/IconButton.d.ts +0 -75
- package/cjs/button/LinkButton.d.ts +0 -8
- package/cjs/button/button-style.d.ts +0 -7
- package/cjs/button/index.d.ts +0 -7
- package/cjs/button-stack/ButtonStack.d.ts +0 -11
- package/cjs/button-stack/index.d.ts +0 -1
- package/cjs/card/Card.d.ts +0 -18
- package/cjs/card/CardActions.d.ts +0 -4
- package/cjs/card/CardContent.d.ts +0 -13
- package/cjs/card/CardMedia.d.ts +0 -18
- package/cjs/card/CardPriceTag.d.ts +0 -25
- package/cjs/card/CardTitle.d.ts +0 -18
- package/cjs/card/index.d.ts +0 -6
- package/cjs/chip/Chip.d.ts +0 -19
- package/cjs/chip/index.d.ts +0 -2
- package/cjs/common/LockBodyScroll.d.ts +0 -25
- package/cjs/common/arrow.d.ts +0 -6
- package/cjs/common/emotionCloneElement.d.ts +0 -3
- package/cjs/common/intent.d.ts +0 -3
- package/cjs/common/miniMoize.d.ts +0 -1
- package/cjs/common/polymorphic.d.ts +0 -25
- package/cjs/common/use-media.d.ts +0 -1
- package/cjs/common/useOnClickOutside.d.ts +0 -4
- package/cjs/common/utils.d.ts +0 -3
- package/cjs/counter/Counter.d.ts +0 -26
- package/cjs/counter/PluralCounter.d.ts +0 -13
- package/cjs/counter/index.d.ts +0 -2
- package/cjs/data-table/DataTable.d.ts +0 -10
- package/cjs/data-table/index.d.ts +0 -1
- package/cjs/date-range-picker/DatePickerDefaultStyles.d.ts +0 -2
- package/cjs/date-range-picker/DatePickerDfdsStyles.d.ts +0 -2
- package/cjs/date-range-picker/DateRangePicker.d.ts +0 -33
- package/cjs/date-range-picker/index.d.ts +0 -1
- package/cjs/divider/Divider.d.ts +0 -26
- package/cjs/divider/index.d.ts +0 -1
- package/cjs/drawer/Drawer.d.ts +0 -31
- package/cjs/drawer/index.d.ts +0 -1
- package/cjs/dropdown-menu/Dropdown.d.ts +0 -46
- package/cjs/dropdown-menu/DropdownContext.d.ts +0 -13
- package/cjs/dropdown-menu/MenuCheckbox.d.ts +0 -34
- package/cjs/dropdown-menu/MenuItem.d.ts +0 -45
- package/cjs/dropdown-menu/MenuTitle.d.ts +0 -14
- package/cjs/dropdown-menu/index.d.ts +0 -5
- package/cjs/elevation/index.d.ts +0 -3
- package/cjs/flexbox/FlexBox.d.ts +0 -100
- package/cjs/flexbox/index.d.ts +0 -1
- package/cjs/footer/Footer.d.ts +0 -7
- package/cjs/footer/index.d.ts +0 -1
- package/cjs/forms/assistive-text/AssistiveText.d.ts +0 -8
- package/cjs/forms/asterisk/Asterisk.d.ts +0 -3
- package/cjs/forms/checkbox/Checkbox.d.ts +0 -39
- package/cjs/forms/checkbox/ExampleControlComponent.d.ts +0 -10
- package/cjs/forms/checkbox/index.d.ts +0 -1
- package/cjs/forms/email-field/EmailField.d.ts +0 -6
- package/cjs/forms/error-text/ErrorText.d.ts +0 -8
- package/cjs/forms/field/Field.d.ts +0 -10
- package/cjs/forms/index.d.ts +0 -21
- package/cjs/forms/input/Input.d.ts +0 -19
- package/cjs/forms/input/InputComposition.d.ts +0 -43
- package/cjs/forms/label/Label.d.ts +0 -10
- package/cjs/forms/number-field/NumberField.d.ts +0 -6
- package/cjs/forms/password-field/PasswordField.d.ts +0 -4
- package/cjs/forms/radio/Radio.d.ts +0 -35
- package/cjs/forms/reactselect/ReactSelect.d.ts +0 -25
- package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +0 -6
- package/cjs/forms/select/Select.d.ts +0 -16
- package/cjs/forms/select-field/SelectField.d.ts +0 -17
- package/cjs/forms/switch/Switch.d.ts +0 -13
- package/cjs/forms/tel-field/TelField.d.ts +0 -6
- package/cjs/forms/text-field/TextField.d.ts +0 -26
- package/cjs/global-styles/GlobalStyles.d.ts +0 -3
- package/cjs/global-styles/ResetStyles.d.ts +0 -9
- package/cjs/global-styles/sanitize.d.ts +0 -1
- package/cjs/grid/Column.d.ts +0 -10
- package/cjs/grid/Container.d.ts +0 -15
- package/cjs/grid/index.d.ts +0 -2
- package/cjs/hero/Hero.d.ts +0 -10
- package/cjs/hero/index.d.ts +0 -1
- package/cjs/hero/stripes.d.ts +0 -6
- package/cjs/ie-banner/IEBanner.d.ts +0 -11
- package/cjs/ie-banner/index.d.ts +0 -1
- package/cjs/index.d.ts +0 -44
- package/cjs/layout/LayoutLegacy.d.ts +0 -2
- package/cjs/lists/FeatureList.d.ts +0 -24
- package/cjs/lists/ListAddon.d.ts +0 -11
- package/cjs/lists/ListDivider.d.ts +0 -5
- package/cjs/lists/ListIcon.d.ts +0 -18
- package/cjs/lists/ListItem.d.ts +0 -46
- package/cjs/lists/ListText.d.ts +0 -39
- package/cjs/lists/ListTextGroup.d.ts +0 -15
- package/cjs/lists/ListTitle.d.ts +0 -4
- package/cjs/lists/index.d.ts +0 -8
- package/cjs/loader/DfdsLoader.d.ts +0 -9
- package/cjs/loader/Loader.d.ts +0 -6
- package/cjs/loader/index.d.ts +0 -2
- package/cjs/localization/LocaleFlag.d.ts +0 -13
- package/cjs/localization/index.d.ts +0 -2
- package/cjs/localization/locales.d.ts +0 -35
- package/cjs/logo/Logo.d.ts +0 -11
- package/cjs/logo/index.d.ts +0 -1
- package/cjs/media/index.d.ts +0 -2
- package/cjs/menu/Menu.d.ts +0 -7
- package/cjs/menu/index.d.ts +0 -2
- package/cjs/mobile-stepper/MobileStepper.d.ts +0 -25
- package/cjs/mobile-stepper/index.d.ts +0 -1
- package/cjs/nav-bar/NavBar.d.ts +0 -35
- package/cjs/nav-bar/index.d.ts +0 -2
- package/cjs/nav-menu/NavMenuItem.d.ts +0 -10
- package/cjs/nav-menu/index.d.ts +0 -1
- package/cjs/pagination/Pagination.d.ts +0 -44
- package/cjs/pagination/Pagination.styles.d.ts +0 -6
- package/cjs/pagination/index.d.ts +0 -1
- package/cjs/popper/Popper.d.ts +0 -29
- package/cjs/popper/index.d.ts +0 -1
- package/cjs/progress-bar/ProgressBar.d.ts +0 -8
- package/cjs/progress-bar/index.d.ts +0 -2
- package/cjs/schedule/ScheduleItem.d.ts +0 -21
- package/cjs/schedule/ScheduleList.d.ts +0 -11
- package/cjs/schedule/index.d.ts +0 -2
- package/cjs/side-sheet/SideSheet.d.ts +0 -57
- package/cjs/side-sheet/SideSheetCloseButton.d.ts +0 -13
- package/cjs/side-sheet/SideSheetContent.d.ts +0 -7
- package/cjs/side-sheet/SideSheetFooter.d.ts +0 -7
- package/cjs/side-sheet/SideSheetHeader.d.ts +0 -9
- package/cjs/side-sheet/SideSheetHeadline.d.ts +0 -7
- package/cjs/side-sheet/index.d.ts +0 -4
- package/cjs/site-layout/SiteLayout.d.ts +0 -36
- package/cjs/site-layout/index.d.ts +0 -2
- package/cjs/skeleton/Skeleton.d.ts +0 -8
- package/cjs/skeleton/index.d.ts +0 -1
- package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +0 -26
- package/cjs/social-media-link-list/index.d.ts +0 -1
- package/cjs/spinner/Spinner.d.ts +0 -58
- package/cjs/spinner/index.d.ts +0 -1
- package/cjs/step/Step.d.ts +0 -45
- package/cjs/step/Step.styles.d.ts +0 -4
- package/cjs/step/StepButton.d.ts +0 -4
- package/cjs/step/StepContent.d.ts +0 -6
- package/cjs/step/StepContext.d.ts +0 -12
- package/cjs/step/StepLabel.d.ts +0 -7
- package/cjs/step/index.d.ts +0 -1
- package/cjs/stepper/Stepper.d.ts +0 -25
- package/cjs/stepper/StepperContext.d.ts +0 -9
- package/cjs/stepper/index.d.ts +0 -1
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.d.ts +0 -5
- package/cjs/stepper-feedback-message/index.d.ts +0 -1
- package/cjs/styles/index.d.ts +0 -3
- package/cjs/styles/media.d.ts +0 -21
- package/cjs/styles/rem.d.ts +0 -1
- package/cjs/styles/style-helpers.d.ts +0 -1
- package/cjs/styles/theme.d.ts +0 -39
- package/cjs/surface/Surface.d.ts +0 -32
- package/cjs/surface/index.d.ts +0 -1
- package/cjs/tab/Tab.d.ts +0 -12
- package/cjs/tab/TabPanel.d.ts +0 -7
- package/cjs/tab/Tabs.d.ts +0 -11
- package/cjs/tab/TabsContext.d.ts +0 -16
- package/cjs/tab/index.d.ts +0 -4
- package/cjs/table/Table.d.ts +0 -22
- package/cjs/table/TableBody.d.ts +0 -9
- package/cjs/table/TableDataCell.d.ts +0 -14
- package/cjs/table/TableHead.d.ts +0 -14
- package/cjs/table/TableHeaderCell.d.ts +0 -15
- package/cjs/table/TableRow.d.ts +0 -17
- package/cjs/table/index.d.ts +0 -6
- package/cjs/test/Test.d.ts +0 -8
- package/cjs/tooltip/Tooltip.d.ts +0 -26
- package/cjs/tooltip/index.d.ts +0 -2
- package/cjs/typography/Headlines.d.ts +0 -70
- package/cjs/typography/Text.d.ts +0 -5
- package/cjs/typography/index.d.ts +0 -2
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Size } from '../input/Input';
|
|
3
|
-
export declare type BaseInputProps = Omit<JSX.IntrinsicElements['input'], 'size' | 'css'>;
|
|
4
|
-
export declare 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: React.ForwardRefRenderFunction<HTMLInputElement, TextFieldProps>;
|
|
23
|
-
declare const _default: import("@emotion/styled").StyledComponent<Pick<TextFieldProps, "max" | "required" | "type" | "key" | "id" | "height" | "width" | "name" | "color" | "translate" | "value" | "hidden" | "form" | "label" | "slot" | "style" | "title" | "dir" | "pattern" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "enterKeyHint" | "inputMode" | "tabIndex" | "disabled" | "multiple" | "size" | "icon" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "maxLength" | "min" | "minLength" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "readOnly" | "src" | "step" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "inverted" | "hideAsterisk" | "assistiveText" | "hintText" | "errorMessage"> & React.RefAttributes<HTMLInputElement> & {
|
|
24
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
-
}, {}, {}>;
|
|
26
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="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: () => 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
|
-
declare 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
|
-
declare 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: React.FC<ContainerProps>;
|
|
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,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type IEBannerProps = {
|
|
3
|
-
heading?: string;
|
|
4
|
-
openInEdge: string;
|
|
5
|
-
/**
|
|
6
|
-
* Class name to be assigned to the component
|
|
7
|
-
*/
|
|
8
|
-
className?: string;
|
|
9
|
-
};
|
|
10
|
-
declare const IEBanner: React.FunctionComponent<IEBannerProps>;
|
|
11
|
-
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,44 +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 './date-range-picker';
|
|
17
|
-
export * from './drawer';
|
|
18
|
-
export * from './footer';
|
|
19
|
-
export * from './forms';
|
|
20
|
-
export * from './grid';
|
|
21
|
-
export * from './hero';
|
|
22
|
-
export * from './ie-banner';
|
|
23
|
-
export * from './lists';
|
|
24
|
-
export * from './loader';
|
|
25
|
-
export * from './localization';
|
|
26
|
-
export * from './menu';
|
|
27
|
-
export * from './nav-bar';
|
|
28
|
-
export * from './nav-menu';
|
|
29
|
-
export * from './pagination';
|
|
30
|
-
export * from './popper';
|
|
31
|
-
export * from './progress-bar';
|
|
32
|
-
export * from './side-sheet';
|
|
33
|
-
export * from './schedule';
|
|
34
|
-
export * from './site-layout';
|
|
35
|
-
export * from './social-media-link-list';
|
|
36
|
-
export * from './spinner';
|
|
37
|
-
export * from './styles';
|
|
38
|
-
export * from './tab';
|
|
39
|
-
export * from './table';
|
|
40
|
-
export * from './typography';
|
|
41
|
-
export * from './common/LockBodyScroll';
|
|
42
|
-
export * from './dropdown-menu';
|
|
43
|
-
export * from './skeleton';
|
|
44
|
-
export * from './tooltip';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import { FlexBoxProps } from './../flexbox/FlexBox';
|
|
3
|
-
declare type FeatureListProps = {
|
|
4
|
-
icon: any;
|
|
5
|
-
items: string[];
|
|
6
|
-
iconColor?: string;
|
|
7
|
-
textTag?: React.ElementType;
|
|
8
|
-
as?: React.ElementType;
|
|
9
|
-
};
|
|
10
|
-
declare type FeatureListComponent = FunctionComponent<FeatureListProps>;
|
|
11
|
-
export declare const ListItem: import("@emotion/styled").StyledComponent<{
|
|
12
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
-
as?: React.ElementType<any> | undefined;
|
|
14
|
-
} & FlexBoxProps & {
|
|
15
|
-
as?: React.ElementType<any> | undefined;
|
|
16
|
-
} & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
17
|
-
children?: React.ReactNode;
|
|
18
|
-
} & {
|
|
19
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
-
} & {
|
|
21
|
-
iconColor?: string | undefined;
|
|
22
|
-
}, {}, {}>;
|
|
23
|
-
declare const FeatureList: FeatureListComponent;
|
|
24
|
-
export default FeatureList;
|
package/cjs/lists/ListAddon.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare 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) => JSX.Element;
|
|
11
|
-
export default ListAddon;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DividerProps } from '../divider';
|
|
3
|
-
export declare type ListDividerProps = Pick<DividerProps, 'as' | 'indent' | 'margins'>;
|
|
4
|
-
declare const ListDivider: ({ indent, margins, as, ...rest }: ListDividerProps) => JSX.Element;
|
|
5
|
-
export default ListDivider;
|
package/cjs/lists/ListIcon.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type Size = 'small' | 'medium' | 'large' | 'xl';
|
|
3
|
-
declare 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) => JSX.Element;
|
|
18
|
-
export default ListIcon;
|
package/cjs/lists/ListItem.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FlexBoxProps } from '../flexbox/FlexBox';
|
|
3
|
-
import { PolymorphicComponentProps } from '../common/polymorphic';
|
|
4
|
-
export declare type ListItemProps = {
|
|
5
|
-
/**
|
|
6
|
-
* Will render the `ListItem` with a greater `min-height` and should be used when displaying multiple lines of text.
|
|
7
|
-
*/
|
|
8
|
-
multiline?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Indicates that the `ListItem` is selected.
|
|
11
|
-
*/
|
|
12
|
-
selected?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Render the 'ListItem` without min-height.
|
|
15
|
-
*/
|
|
16
|
-
condensed?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Indicates that the `ListItem` can be focused.
|
|
19
|
-
*/
|
|
20
|
-
tabIndex?: number;
|
|
21
|
-
/**
|
|
22
|
-
* Add interactive styles to the `ListItem`.
|
|
23
|
-
*/
|
|
24
|
-
clickable?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Add a divider to the `ListItem`. This will apply a border on the the `ListItem` only. If you need the indent/margin variants use
|
|
27
|
-
* the `ListDivider` component instead.
|
|
28
|
-
*/
|
|
29
|
-
divider?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Invoke the provided callback when the `ListItem` is clicked.
|
|
32
|
-
*/
|
|
33
|
-
onClick?: () => void;
|
|
34
|
-
/**
|
|
35
|
-
* Props controlling the flexbox.
|
|
36
|
-
*/
|
|
37
|
-
flexBoxProps?: FlexBoxProps;
|
|
38
|
-
/**
|
|
39
|
-
* className to be assigned to component.
|
|
40
|
-
*/
|
|
41
|
-
className?: string;
|
|
42
|
-
children?: React.ReactNode;
|
|
43
|
-
} & PolymorphicComponentProps;
|
|
44
|
-
export declare const listItemStyles: ({ multiline, selected, clickable, condensed, flexBoxProps, divider, }: Partial<ListItemProps>) => import("@emotion/utils").SerializedStyles;
|
|
45
|
-
declare const ListItem: ({ children, multiline, condensed, selected, tabIndex, clickable, divider, onClick, as, flexBoxProps, ...rest }: ListItemProps) => JSX.Element;
|
|
46
|
-
export default ListItem;
|
package/cjs/lists/ListText.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { theme } from '@dfds-ui/theme';
|
|
3
|
-
import { typography } from '@dfds-ui/typography';
|
|
4
|
-
declare type FontFamily = keyof typeof theme.fontFamilies;
|
|
5
|
-
declare type StyledAs = keyof Pick<typeof typography, 'body' | 'bodyBold' | 'action' | 'actionBold' | 'label' | 'labelBold' | 'labelSmall' | 'caption' | 'sectionHeadline' | 'subHeadline' | 'smallHeadline'>;
|
|
6
|
-
export declare type ListTextProps = {
|
|
7
|
-
/**
|
|
8
|
-
* Set the style of the text.
|
|
9
|
-
*/
|
|
10
|
-
styledAs?: StyledAs;
|
|
11
|
-
/**
|
|
12
|
-
* Override the default color from `styledAs`.
|
|
13
|
-
*/
|
|
14
|
-
color?: string;
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* *DEPRECATED* use `styledAs` instead or override size with `css` prop or `className`.
|
|
18
|
-
*
|
|
19
|
-
* Choose the font size.
|
|
20
|
-
* @deprecated
|
|
21
|
-
*/
|
|
22
|
-
size?: string;
|
|
23
|
-
/**
|
|
24
|
-
* *DEPRECATED* use `styledAs` instead or override fontWeight with `css` prop or `className`.
|
|
25
|
-
*
|
|
26
|
-
* Choose the font weight.
|
|
27
|
-
* @deprecated
|
|
28
|
-
*/
|
|
29
|
-
fontWeight?: number;
|
|
30
|
-
/**
|
|
31
|
-
* *DEPRECATED* use `styledAs` instead or override fontFamily with `css` prop or `className`.
|
|
32
|
-
*
|
|
33
|
-
* Choose the font family.
|
|
34
|
-
* @deprecated
|
|
35
|
-
*/
|
|
36
|
-
fontFamily?: FontFamily;
|
|
37
|
-
};
|
|
38
|
-
declare const ListText: ({ styledAs, color, fontWeight, size, fontFamily, ...rest }: ListTextProps) => JSX.Element;
|
|
39
|
-
export default ListText;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FlexBoxProps } from '../flexbox/FlexBox';
|
|
3
|
-
export declare type ListTextGroupProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Props controlling the flexbox.
|
|
6
|
-
*/
|
|
7
|
-
flexBoxProps?: FlexBoxProps;
|
|
8
|
-
/**
|
|
9
|
-
* HTML tag or custom component being rendered.
|
|
10
|
-
*/
|
|
11
|
-
as?: React.ElementType;
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
};
|
|
14
|
-
declare const ListTextGroup: ({ flexBoxProps, as, ...rest }: ListTextGroupProps) => JSX.Element;
|
|
15
|
-
export default ListTextGroup;
|
package/cjs/lists/ListTitle.d.ts
DELETED
package/cjs/lists/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { default as ListItem } from './ListItem';
|
|
2
|
-
export { default as ListTitle } from './ListTitle';
|
|
3
|
-
export { default as ListText } from './ListText';
|
|
4
|
-
export { default as ListTextGroup } from './ListTextGroup';
|
|
5
|
-
export { default as ListIcon } from './ListIcon';
|
|
6
|
-
export { default as ListAddon } from './ListAddon';
|
|
7
|
-
export { default as ListDivider } from './ListDivider';
|
|
8
|
-
export { default as FeatureList } from './FeatureList';
|
package/cjs/loader/Loader.d.ts
DELETED
package/cjs/loader/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { Locale } from './locales';
|
|
3
|
-
export declare type LocaleFlagProps = {
|
|
4
|
-
/**
|
|
5
|
-
* The locale specifying which flag will be rendered.
|
|
6
|
-
*/
|
|
7
|
-
locale: Locale;
|
|
8
|
-
/**
|
|
9
|
-
* The size of the flag icon.
|
|
10
|
-
*/
|
|
11
|
-
size?: 's' | 'm' | 'l' | 'xl';
|
|
12
|
-
} & ComponentPropsWithoutRef<'svg'>;
|
|
13
|
-
export declare const LocaleFlag: ({ locale, size, ...rest }: LocaleFlagProps) => JSX.Element;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as flags from '@dfds-ui/icons/flags';
|
|
2
|
-
export declare const locales: readonly ["en", "nl-BE", "bg-BG", "pt-BR", "en-CA", "zh-CN", "cs-CZ", "da-DK", "et-EE", "fi-FI", "fr-BE", "fr-FR", "fr-MA", "de-DE", "hu-HU", "it-IT", "ja-JP", "lv-LV", "lt-LT", "nl-NL", "nb-NO", "pl-PL", "ro-RO", "ru-RU", "sk-SK", "ko-KR", "es-ES", "sv-SE", "tr-TR", "en-GB", "en-US"];
|
|
3
|
-
export declare type Locale = typeof locales[number];
|
|
4
|
-
export declare const fallbackLocale = "en";
|
|
5
|
-
export declare type LocaleInfo = {
|
|
6
|
-
/**
|
|
7
|
-
* Name of the country
|
|
8
|
-
*/
|
|
9
|
-
name: string;
|
|
10
|
-
/**
|
|
11
|
-
* Country (and occasionally the language) expressed in native language.
|
|
12
|
-
*/
|
|
13
|
-
nativeName: string;
|
|
14
|
-
/**
|
|
15
|
-
* Country calling code
|
|
16
|
-
*/
|
|
17
|
-
callingCode: string;
|
|
18
|
-
/**
|
|
19
|
-
* Dialing trunk prefix
|
|
20
|
-
*/
|
|
21
|
-
callingTrunkPrefix?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Key of flag icon component
|
|
24
|
-
*/
|
|
25
|
-
flagIcon: keyof typeof flags;
|
|
26
|
-
};
|
|
27
|
-
export declare const localeData: {
|
|
28
|
-
[k in Locale]: LocaleInfo;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Returns an array of locales where each country only appears once.
|
|
32
|
-
*
|
|
33
|
-
* @return {Locale[]}
|
|
34
|
-
*/
|
|
35
|
-
export declare function uniqueCountryLocales(): Locale[];
|
package/cjs/logo/Logo.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare type LogoProps = {
|
|
3
|
-
className?: string;
|
|
4
|
-
title?: string;
|
|
5
|
-
width?: string | number;
|
|
6
|
-
height?: string | number;
|
|
7
|
-
logoContainerProps?: any;
|
|
8
|
-
};
|
|
9
|
-
declare const Logo: ({ logoContainerProps, ...rest }: LogoProps) => JSX.Element;
|
|
10
|
-
export { Logo };
|
|
11
|
-
export default Logo;
|
package/cjs/logo/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Logo';
|
package/cjs/media/index.d.ts
DELETED
package/cjs/menu/Menu.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare type MenuItemProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
onClick: React.MouseEventHandler<HTMLDivElement>;
|
|
5
|
-
};
|
|
6
|
-
declare const menu: any;
|
|
7
|
-
export default menu;
|
package/cjs/menu/index.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
declare type MobileStepperProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Total steps
|
|
5
|
-
*/
|
|
6
|
-
steps: number;
|
|
7
|
-
/**
|
|
8
|
-
* Active step
|
|
9
|
-
*/
|
|
10
|
-
activeStep?: number;
|
|
11
|
-
/**
|
|
12
|
-
* A back button element. For instance, it can be a `Button` or an `IconButton`.
|
|
13
|
-
*/
|
|
14
|
-
backButton?: ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* A next button element. For instance, it can be a `Button` or an `IconButton`.
|
|
17
|
-
*/
|
|
18
|
-
nextButton?: ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* The variant to use `'text' | 'dots'`
|
|
21
|
-
*/
|
|
22
|
-
variant?: 'text' | 'dots';
|
|
23
|
-
};
|
|
24
|
-
declare const MobileStepper: ({ steps, activeStep, backButton, nextButton, variant, ...props }: MobileStepperProps) => JSX.Element;
|
|
25
|
-
export default MobileStepper;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as MobileStepper } from './MobileStepper';
|
package/cjs/nav-bar/NavBar.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type ItemAlignment = 'left' | 'right';
|
|
3
|
-
declare type NavBarProps = {
|
|
4
|
-
className?: string;
|
|
5
|
-
showLogo?: boolean;
|
|
6
|
-
href?: string;
|
|
7
|
-
};
|
|
8
|
-
declare type ItemProps = {
|
|
9
|
-
href?: string;
|
|
10
|
-
className?: string;
|
|
11
|
-
alignment?: ItemAlignment;
|
|
12
|
-
selected?: boolean;
|
|
13
|
-
as?: React.ElementType;
|
|
14
|
-
};
|
|
15
|
-
declare const NavBar: React.FunctionComponent<NavBarProps>;
|
|
16
|
-
export declare const NavBarItem: React.FunctionComponent<ItemProps>;
|
|
17
|
-
declare type NavBarIconProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & // React.AnchorHTMLAttributes<HTMLAnchorElement> &
|
|
18
|
-
ItemProps & {
|
|
19
|
-
menu?: React.ReactNode;
|
|
20
|
-
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
21
|
-
closeMenuOnClick?: boolean;
|
|
22
|
-
};
|
|
23
|
-
export declare const NavBarIconAnchor: import("@emotion/styled").StyledComponent<{
|
|
24
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
-
as?: React.ElementType<any> | undefined;
|
|
26
|
-
} & {
|
|
27
|
-
menuShown: boolean;
|
|
28
|
-
className?: string | undefined;
|
|
29
|
-
}, React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
|
|
30
|
-
export declare const NavBarIcon: React.FunctionComponent<NavBarIconProps>;
|
|
31
|
-
export declare const NavBarDropdown: import("@emotion/styled").StyledComponent<{
|
|
32
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
33
|
-
as?: React.ElementType<any> | undefined;
|
|
34
|
-
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
35
|
-
export default NavBar;
|
package/cjs/nav-bar/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type NavMenuItemProps = {
|
|
3
|
-
isActive?: boolean;
|
|
4
|
-
leftIcon?: React.ElementType;
|
|
5
|
-
rightIcon?: React.ElementType;
|
|
6
|
-
as?: React.ElementType;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
};
|
|
9
|
-
declare const NavMenuItem: React.FunctionComponent<NavMenuItemProps>;
|
|
10
|
-
export default NavMenuItem;
|
package/cjs/nav-menu/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as NavMenuItem } from './NavMenuItem';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type Option = {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
label: string;
|
|
5
|
-
value: number;
|
|
6
|
-
};
|
|
7
|
-
export declare type PaginationProps = {
|
|
8
|
-
/**
|
|
9
|
-
* The current page.
|
|
10
|
-
*/
|
|
11
|
-
currentPage?: number;
|
|
12
|
-
/**
|
|
13
|
-
* The current offset
|
|
14
|
-
*/
|
|
15
|
-
offset?: number;
|
|
16
|
-
/**
|
|
17
|
-
* Callback when the page is changed.
|
|
18
|
-
*/
|
|
19
|
-
onChangePageLimit?: (e: any) => void;
|
|
20
|
-
/**
|
|
21
|
-
* Callback when the page is changed.
|
|
22
|
-
*/
|
|
23
|
-
onPageChange?: (event: React.ChangeEvent<unknown>, page: number) => void;
|
|
24
|
-
/**
|
|
25
|
-
* Options passed to the PageLimitSelector
|
|
26
|
-
*/
|
|
27
|
-
options?: Option[] | null;
|
|
28
|
-
/**
|
|
29
|
-
* Number of records per page.
|
|
30
|
-
*/
|
|
31
|
-
pageLimit: number;
|
|
32
|
-
/**
|
|
33
|
-
* Total number of records.
|
|
34
|
-
*/
|
|
35
|
-
totalRecords: number;
|
|
36
|
-
/**
|
|
37
|
-
* Returns the content of the overview.
|
|
38
|
-
*
|
|
39
|
-
* Use this if you need to localize the overview being rendered.
|
|
40
|
-
*/
|
|
41
|
-
renderOverview?: (rangeShown: string, totalRecords: number) => React.ReactNode;
|
|
42
|
-
};
|
|
43
|
-
export declare const Pagination: ({ currentPage, offset, onChangePageLimit, onPageChange, options, pageLimit, totalRecords, renderOverview, }: PaginationProps) => JSX.Element;
|
|
44
|
-
export default Pagination;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const paginationItemStyles: import("@emotion/utils").SerializedStyles;
|
|
2
|
-
export declare const wrapperStyles: import("@emotion/utils").SerializedStyles;
|
|
3
|
-
export declare const TextStyles: import("@emotion/utils").SerializedStyles;
|
|
4
|
-
export declare const PageOverviewStyles: import("@emotion/utils").SerializedStyles;
|
|
5
|
-
export declare const PageLimitStyles: import("@emotion/utils").SerializedStyles;
|
|
6
|
-
export declare const PageLimitWrapperStyles: import("@emotion/utils").SerializedStyles;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Pagination';
|