@dfds-ui/react-components 0.9.7-alpha.27fcb23a → 0.9.7-alpha.2ac87193
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/accordion/Accordion.d.ts +97 -0
- package/cjs/accordion/AccordionContent.d.ts +13 -0
- package/cjs/accordion/AccordionSmall.d.ts +55 -0
- package/cjs/accordion/index.d.ts +3 -0
- package/cjs/app-bar/AppBar.d.ts +12 -0
- package/cjs/app-bar/AppBarContext.d.ts +10 -0
- package/cjs/app-bar/AppBarDrawer.d.ts +3 -0
- package/cjs/app-bar/AppBarIconButton.d.ts +10 -0
- package/cjs/app-bar/AppBarItem.d.ts +21 -0
- package/cjs/app-bar/AppBarListItem.d.ts +15 -0
- package/cjs/app-bar/index.d.ts +7 -0
- package/cjs/assertions/banner/Banner.d.ts +52 -0
- package/cjs/assertions/banner/BannerAction.d.ts +18 -0
- package/cjs/assertions/banner/BannerActionContext.d.ts +12 -0
- package/cjs/assertions/banner/BannerTypography.d.ts +7 -0
- package/cjs/assertions/banner/index.d.ts +4 -0
- package/cjs/assertions/index.d.ts +2 -0
- package/cjs/assertions/toast/Toast.d.ts +11 -0
- package/cjs/assertions/toast/Toaster.d.ts +18 -0
- package/cjs/assertions/toast/index.d.ts +2 -0
- package/cjs/badge/Badge.d.ts +26 -0
- package/cjs/badge/index.d.ts +2 -0
- package/cjs/button/BadgeIcon.d.ts +6 -0
- package/cjs/button/BaseButton.d.ts +14 -0
- package/cjs/button/Button.d.ts +18 -0
- package/cjs/button/IconButton.d.ts +58 -0
- package/cjs/button/LinkButton.d.ts +8 -0
- package/cjs/button/button-style.d.ts +7 -0
- package/cjs/button/index.d.ts +7 -0
- package/cjs/button-stack/ButtonStack.d.ts +11 -0
- package/cjs/button-stack/index.d.ts +1 -0
- package/cjs/card/Card.d.ts +18 -0
- package/cjs/card/CardActions.d.ts +4 -0
- package/cjs/card/CardContent.d.ts +13 -0
- package/cjs/card/CardMedia.d.ts +18 -0
- package/cjs/card/CardPriceTag.d.ts +24 -0
- package/cjs/card/CardTitle.d.ts +18 -0
- package/cjs/card/index.d.ts +6 -0
- package/cjs/chip/Chip.d.ts +19 -0
- package/cjs/chip/index.d.ts +2 -0
- package/cjs/common/LockBodyScroll.d.ts +25 -0
- package/cjs/common/arrow.d.ts +6 -0
- package/cjs/common/emotionCloneElement.d.ts +2 -0
- package/cjs/common/intent.d.ts +3 -0
- package/cjs/common/miniMoize.d.ts +1 -0
- package/cjs/common/polymorphic.d.ts +25 -0
- package/cjs/common/use-media.d.ts +1 -0
- package/cjs/common/useOnClickOutside.d.ts +3 -0
- package/cjs/common/utils.d.ts +3 -0
- package/cjs/counter/Counter.d.ts +26 -0
- package/cjs/counter/PluralCounter.d.ts +13 -0
- package/cjs/counter/index.d.ts +2 -0
- package/cjs/data-table/DataTable.d.ts +10 -0
- package/cjs/data-table/index.d.ts +1 -0
- package/cjs/date-range-picker/DatePickerDefaultStyles.d.ts +2 -0
- package/cjs/date-range-picker/DatePickerDfdsStyles.d.ts +2 -0
- package/cjs/date-range-picker/DateRangePicker.d.ts +33 -0
- package/cjs/date-range-picker/index.d.ts +1 -0
- package/cjs/divider/Divider.d.ts +22 -0
- package/cjs/divider/index.d.ts +1 -0
- package/cjs/drawer/Drawer.d.ts +31 -0
- package/cjs/drawer/index.d.ts +1 -0
- package/cjs/dropdown-menu/Dropdown.d.ts +46 -0
- package/cjs/dropdown-menu/DropdownContext.d.ts +12 -0
- package/cjs/dropdown-menu/MenuCheckbox.d.ts +34 -0
- package/cjs/dropdown-menu/MenuItem.d.ts +45 -0
- package/cjs/dropdown-menu/MenuTitle.d.ts +14 -0
- package/cjs/dropdown-menu/index.d.ts +5 -0
- package/cjs/elevation/index.d.ts +3 -0
- package/cjs/flexbox/FlexBox.d.ts +98 -0
- package/cjs/flexbox/index.d.ts +1 -0
- package/cjs/footer/Footer.d.ts +6 -0
- package/cjs/footer/index.d.ts +1 -0
- package/cjs/forms/assistive-text/AssistiveText.d.ts +7 -0
- package/cjs/forms/asterisk/Asterisk.d.ts +2 -0
- package/cjs/forms/checkbox/Checkbox.d.ts +39 -0
- package/cjs/forms/checkbox/ExampleControlComponent.d.ts +10 -0
- package/cjs/forms/checkbox/index.d.ts +1 -0
- package/cjs/forms/email-field/EmailField.d.ts +6 -0
- package/cjs/forms/error-text/ErrorText.d.ts +7 -0
- package/cjs/forms/field/Field.d.ts +10 -0
- package/cjs/forms/index.d.ts +21 -0
- package/cjs/forms/input/Input.d.ts +19 -0
- package/cjs/forms/input/InputComposition.d.ts +43 -0
- package/cjs/forms/label/Label.d.ts +10 -0
- package/cjs/forms/number-field/NumberField.d.ts +6 -0
- package/cjs/forms/password-field/PasswordField.d.ts +4 -0
- package/cjs/forms/radio/Radio.d.ts +35 -0
- package/cjs/forms/reactselect/ReactSelect.d.ts +25 -0
- package/cjs/forms/reactselect/ReactSelect.js +4 -4
- package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +6 -0
- package/cjs/forms/select/Select.d.ts +16 -0
- package/cjs/forms/select-field/SelectField.d.ts +17 -0
- package/cjs/forms/switch/Switch.d.ts +13 -0
- package/cjs/forms/tel-field/TelField.d.ts +6 -0
- package/cjs/forms/text-field/TextField.d.ts +26 -0
- package/cjs/global-styles/GlobalStyles.d.ts +2 -0
- package/cjs/global-styles/sanitize.d.ts +1 -0
- package/cjs/grid/Column.d.ts +9 -0
- package/cjs/grid/Container.d.ts +14 -0
- package/cjs/grid/index.d.ts +2 -0
- package/cjs/hero/Hero.d.ts +10 -0
- package/cjs/hero/index.d.ts +1 -0
- package/cjs/hero/stripes.d.ts +6 -0
- package/cjs/ie-banner/IEBanner.d.ts +11 -0
- package/cjs/ie-banner/index.d.ts +1 -0
- package/cjs/index.d.ts +42 -0
- package/cjs/layout/LayoutLegacy.d.ts +1 -0
- package/cjs/lists/FeatureList.d.ts +24 -0
- package/cjs/lists/ListAddon.d.ts +11 -0
- package/cjs/lists/ListDivider.d.ts +4 -0
- package/cjs/lists/ListIcon.d.ts +18 -0
- package/cjs/lists/ListItem.d.ts +46 -0
- package/cjs/lists/ListText.d.ts +39 -0
- package/cjs/lists/ListTextGroup.d.ts +15 -0
- package/cjs/lists/ListTitle.d.ts +3 -0
- package/cjs/lists/index.d.ts +8 -0
- package/cjs/loader/Loader.d.ts +5 -0
- package/cjs/loader/index.d.ts +1 -0
- package/cjs/localization/LocaleFlag.d.ts +13 -0
- package/cjs/localization/index.d.ts +2 -0
- package/cjs/localization/locales.d.ts +34 -0
- package/cjs/logo/Logo.d.ts +10 -0
- package/cjs/logo/index.d.ts +1 -0
- package/cjs/media/index.d.ts +2 -0
- package/cjs/menu/Menu.d.ts +7 -0
- package/cjs/menu/index.d.ts +2 -0
- package/cjs/nav-bar/NavBar.d.ts +35 -0
- package/cjs/nav-bar/index.d.ts +2 -0
- package/cjs/nav-menu/NavMenuItem.d.ts +10 -0
- package/cjs/nav-menu/index.d.ts +1 -0
- package/cjs/pagination/Pagination.d.ts +44 -0
- package/cjs/pagination/Pagination.js +41 -23
- package/cjs/pagination/Pagination.styles.d.ts +2 -0
- package/cjs/pagination/Pagination.styles.js +3 -3
- package/cjs/pagination/index.d.ts +1 -0
- package/cjs/popper/Popper.d.ts +29 -0
- package/cjs/popper/index.d.ts +1 -0
- package/cjs/progress-bar/ProgressBar.d.ts +7 -0
- package/cjs/progress-bar/index.d.ts +2 -0
- package/cjs/schedule/ScheduleItem.d.ts +21 -0
- package/cjs/schedule/ScheduleList.d.ts +11 -0
- package/cjs/schedule/index.d.ts +2 -0
- package/cjs/side-sheet/SideSheet.d.ts +57 -0
- package/cjs/side-sheet/SideSheetCloseButton.d.ts +13 -0
- package/cjs/side-sheet/SideSheetContent.d.ts +7 -0
- package/cjs/side-sheet/SideSheetFooter.d.ts +7 -0
- package/cjs/side-sheet/SideSheetHeader.d.ts +9 -0
- package/cjs/side-sheet/SideSheetHeadline.d.ts +7 -0
- package/cjs/side-sheet/index.d.ts +4 -0
- package/cjs/site-layout/SiteLayout.d.ts +36 -0
- package/cjs/site-layout/index.d.ts +2 -0
- package/cjs/skeleton/Skeleton.d.ts +6 -0
- package/cjs/skeleton/index.d.ts +1 -0
- package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +26 -0
- package/cjs/social-media-link-list/index.d.ts +1 -0
- package/cjs/spinner/Spinner.d.ts +57 -0
- package/cjs/spinner/Spinner.js +17 -6
- package/cjs/spinner/index.d.ts +1 -0
- package/cjs/spinner/index.js +2 -16
- package/cjs/stepper/Step.d.ts +9 -0
- package/cjs/stepper/Stepper.d.ts +15 -0
- package/cjs/stepper/index.d.ts +2 -0
- package/cjs/styles/index.d.ts +3 -0
- package/cjs/styles/media.d.ts +21 -0
- package/cjs/styles/rem.d.ts +1 -0
- package/cjs/styles/style-helpers.d.ts +1 -0
- package/cjs/styles/theme.d.ts +39 -0
- package/cjs/surface/Surface.d.ts +30 -0
- package/cjs/surface/index.d.ts +1 -0
- package/cjs/tab/Tab.d.ts +11 -0
- package/cjs/tab/TabPanel.d.ts +7 -0
- package/cjs/tab/Tabs.d.ts +11 -0
- package/cjs/tab/TabsContext.d.ts +14 -0
- package/cjs/tab/index.d.ts +4 -0
- package/cjs/table/Table.d.ts +22 -0
- package/cjs/table/TableBody.d.ts +9 -0
- package/cjs/table/TableDataCell.d.ts +14 -0
- package/cjs/table/TableHead.d.ts +14 -0
- package/cjs/table/TableHeaderCell.d.ts +15 -0
- package/cjs/table/TableRow.d.ts +17 -0
- package/cjs/table/index.d.ts +6 -0
- package/cjs/test/Test.d.ts +8 -0
- package/cjs/tooltip/Tooltip.d.ts +12 -0
- package/cjs/tooltip/index.d.ts +1 -0
- package/cjs/typography/Headlines.d.ts +70 -0
- package/cjs/typography/Text.d.ts +4 -0
- package/cjs/typography/index.d.ts +2 -0
- package/forms/reactselect/ReactSelect.d.ts +1 -1
- package/forms/reactselect/ReactSelect.js +6 -6
- package/package.json +9 -9
- package/pagination/Pagination.d.ts +3 -2
- package/pagination/Pagination.js +54 -35
- package/pagination/Pagination.styles.js +2 -2
- package/spinner/Spinner.d.ts +46 -4
- package/spinner/Spinner.js +18 -8
- package/spinner/index.d.ts +0 -1
- package/spinner/index.js +0 -1
- package/cjs/pagination/PaginationPages.js +0 -181
- package/pagination/PaginationPages.d.ts +0 -15
- package/pagination/PaginationPages.js +0 -171
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type Size = 'small' | 'medium';
|
|
3
|
+
declare type SwitchProps = React.PropsWithRef<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;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextFieldProps } from '../text-field/TextField';
|
|
3
|
+
declare const _default: import("@emotion/styled").StyledComponent<Pick<TextFieldProps, "max" | "required" | "type" | "key" | "id" | "height" | "width" | "name" | "color" | "translate" | "value" | "hidden" | "dir" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "enterKeyHint" | "inputMode" | "tabIndex" | "disabled" | "multiple" | "size" | "icon" | "src" | "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" | "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> & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
}, {}, {}>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
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" | "dir" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "enterKeyHint" | "inputMode" | "tabIndex" | "disabled" | "multiple" | "size" | "icon" | "src" | "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" | "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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sanitize: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
};
|
|
8
|
+
declare const Column: React.FunctionComponent<ColumnProps>;
|
|
9
|
+
export default Column;
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
};
|
|
13
|
+
declare const Container: React.FC<ContainerProps>;
|
|
14
|
+
export default Container;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Hero } from './Hero';
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as IEBanner } from './IEBanner';
|
package/cjs/index.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export { default as elevation } from './elevation';
|
|
2
|
+
export { default as media } from './media';
|
|
3
|
+
export { GlobalStyles, DfdsFontFace } from './global-styles/GlobalStyles';
|
|
4
|
+
export * from './accordion';
|
|
5
|
+
export * from './app-bar';
|
|
6
|
+
export * from './assertions';
|
|
7
|
+
export * from './badge';
|
|
8
|
+
export * from './button-stack';
|
|
9
|
+
export * from './button';
|
|
10
|
+
export * from './card';
|
|
11
|
+
export * from './chip';
|
|
12
|
+
export * from './common/polymorphic';
|
|
13
|
+
export * from './counter';
|
|
14
|
+
export * from './data-table';
|
|
15
|
+
export * from './date-range-picker';
|
|
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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Layout: () => JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
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;
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
@@ -0,0 +1,18 @@
|
|
|
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;
|
|
@@ -0,0 +1,46 @@
|
|
|
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/react").SerializedStyles;
|
|
45
|
+
declare const ListItem: ({ children, multiline, condensed, selected, tabIndex, clickable, divider, onClick, as, flexBoxProps, ...rest }: ListItemProps) => JSX.Element;
|
|
46
|
+
export default ListItem;
|
|
@@ -0,0 +1,39 @@
|
|
|
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;
|
|
@@ -0,0 +1,15 @@
|
|
|
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;
|
|
@@ -0,0 +1,8 @@
|
|
|
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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Loader } from './Loader';
|
|
@@ -0,0 +1,13 @@
|
|
|
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;
|
|
@@ -0,0 +1,34 @@
|
|
|
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", "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 type LocaleInfo = {
|
|
5
|
+
/**
|
|
6
|
+
* Name of the country
|
|
7
|
+
*/
|
|
8
|
+
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* Country (and occasionally the language) expressed in native language.
|
|
11
|
+
*/
|
|
12
|
+
nativeName: string;
|
|
13
|
+
/**
|
|
14
|
+
* Country calling code
|
|
15
|
+
*/
|
|
16
|
+
callingCode: string;
|
|
17
|
+
/**
|
|
18
|
+
* Dialing trunk prefix
|
|
19
|
+
*/
|
|
20
|
+
callingTrunkPrefix?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Key of flag icon component
|
|
23
|
+
*/
|
|
24
|
+
flagIcon: keyof typeof flags;
|
|
25
|
+
};
|
|
26
|
+
export declare const localeData: {
|
|
27
|
+
[k in Locale]: LocaleInfo;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Returns an array of locales where each country only appears once.
|
|
31
|
+
*
|
|
32
|
+
* @return {Locale[]}
|
|
33
|
+
*/
|
|
34
|
+
export declare function uniqueCountryLocales(): Locale[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare type LogoProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
title?: string;
|
|
4
|
+
width?: string | number;
|
|
5
|
+
height?: string | number;
|
|
6
|
+
logoContainerProps?: any;
|
|
7
|
+
};
|
|
8
|
+
declare const Logo: ({ logoContainerProps, ...rest }: LogoProps) => JSX.Element;
|
|
9
|
+
export { Logo };
|
|
10
|
+
export default Logo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Logo';
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,35 @@
|
|
|
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;
|
|
@@ -0,0 +1,10 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as NavMenuItem } from './NavMenuItem';
|
|
@@ -0,0 +1,44 @@
|
|
|
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;
|