grep-components 0.18.6
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/README.md +46 -0
- package/dist/components/AppBar/AppBar.d.ts +3 -0
- package/dist/components/AppBar/AppBar.stories.d.ts +1 -0
- package/dist/components/AppBar/AppBar.test.d.ts +1 -0
- package/dist/components/AppBar/appBarStyles.d.ts +2 -0
- package/dist/components/AppBar/index.d.ts +2 -0
- package/dist/components/AppBarLogo/AppBarLogo.d.ts +9 -0
- package/dist/components/AppBarLogo/AppBarLogo.stories.d.ts +1 -0
- package/dist/components/AppBarLogo/AppBarLogo.test.d.ts +1 -0
- package/dist/components/AppBarLogo/appBarLogoStyles.d.ts +4 -0
- package/dist/components/AppBarLogo/index.d.ts +2 -0
- package/dist/components/AppBarNavList/AppBarNavList.d.ts +15 -0
- package/dist/components/AppBarNavList/AppBarNavList.stories.d.ts +6 -0
- package/dist/components/AppBarNavList/AppBarNavList.test.d.ts +1 -0
- package/dist/components/AppBarNavList/appBarNavListStyles.d.ts +11 -0
- package/dist/components/AppBarNavList/index.d.ts +2 -0
- package/dist/components/AppBarProfile/AppBarProfile.d.ts +8 -0
- package/dist/components/AppBarProfile/AppBarProfile.stories.d.ts +1 -0
- package/dist/components/AppBarProfile/AppBarProfile.test.d.ts +1 -0
- package/dist/components/AppBarProfile/appBarProfileStyles.d.ts +5 -0
- package/dist/components/AppBarProfile/index.d.ts +2 -0
- package/dist/components/AppBarTop/AppBarTop.d.ts +6 -0
- package/dist/components/AppBarTop/AppBarTop.test.d.ts +1 -0
- package/dist/components/AppBarTop/appBarTopStyles.d.ts +2 -0
- package/dist/components/AppBarTop/index.d.ts +2 -0
- package/dist/components/BodyLayout/BodyLayout.d.ts +6 -0
- package/dist/components/BodyLayout/BodyLayout.test.d.ts +1 -0
- package/dist/components/BodyLayout/bodyLayoutStyles.d.ts +2 -0
- package/dist/components/BodyLayout/index.d.ts +2 -0
- package/dist/components/CenterLayout/CenterLayout.d.ts +6 -0
- package/dist/components/CenterLayout/CenterLayout.stories.d.ts +1 -0
- package/dist/components/CenterLayout/CenterLayout.test.d.ts +1 -0
- package/dist/components/CenterLayout/centerLayoutStyles.d.ts +2 -0
- package/dist/components/CenterLayout/index.d.ts +2 -0
- package/dist/components/CircularLoading/CircularLoading.d.ts +7 -0
- package/dist/components/CircularLoading/CircularLoading.stories.d.ts +1 -0
- package/dist/components/CircularLoading/index.d.ts +2 -0
- package/dist/components/CleanPaper/CleanPaper.d.ts +11 -0
- package/dist/components/CleanPaper/CleanPaper.test.d.ts +1 -0
- package/dist/components/CleanPaper/cleanPaperStyles.d.ts +2 -0
- package/dist/components/CleanPaper/index.d.ts +2 -0
- package/dist/components/ConfirmationDialog/dialog.d.ts +15 -0
- package/dist/components/ConfirmationDialog/index.d.ts +4 -0
- package/dist/components/ConfirmationDialog/stories/dialog.stories.d.ts +1 -0
- package/dist/components/ConfirmationDialog/styles.d.ts +1 -0
- package/dist/components/ContainedLinkList/ContainedLinkList.d.ts +10 -0
- package/dist/components/ContainedLinkList/ContainedLinkList.stories.d.ts +2 -0
- package/dist/components/ContainedLinkList/containedLinkListStyles.d.ts +7 -0
- package/dist/components/ContainedLinkList/index.d.ts +2 -0
- package/dist/components/CurriculumTable/CurriculumTable.d.ts +8 -0
- package/dist/components/CurriculumTable/CurriculumTable.stories.d.ts +7 -0
- package/dist/components/CurriculumTable/curriculumTableStyles.d.ts +3 -0
- package/dist/components/CurriculumTable/index.d.ts +2 -0
- package/dist/components/DropdownMenu/DropDownMenu.stories.d.ts +8 -0
- package/dist/components/DropdownMenu/DropDownMenu.test.d.ts +1 -0
- package/dist/components/DropdownMenu/collapsable-menu-item.d.ts +26 -0
- package/dist/components/DropdownMenu/collapsable-menu-item.style.d.ts +6 -0
- package/dist/components/DropdownMenu/collapsable-menu.d.ts +9 -0
- package/dist/components/DropdownMenu/dropdown-menu.d.ts +17 -0
- package/dist/components/DropdownMenu/dropdown-menu.style.d.ts +2 -0
- package/dist/components/DropdownMenu/index.d.ts +2 -0
- package/dist/components/DropdownMenu/tooltip-menu-item.d.ts +7 -0
- package/dist/components/Footer/Footer.d.ts +11 -0
- package/dist/components/Footer/Footer.stories.d.ts +2 -0
- package/dist/components/Footer/footerStyles.d.ts +1 -0
- package/dist/components/Footer/index.d.ts +2 -0
- package/dist/components/GDPR/GDPR.d.ts +3 -0
- package/dist/components/GDPR/GDPR.stories.d.ts +2 -0
- package/dist/components/GDPR/gdprStyles.d.ts +6 -0
- package/dist/components/GDPR/index.d.ts +2 -0
- package/dist/components/GrepCrumbs/GrepCrumbs.d.ts +12 -0
- package/dist/components/GrepCrumbs/GrepCrumbs.stories.d.ts +2 -0
- package/dist/components/GrepCrumbs/grepCrumbStyles.d.ts +1 -0
- package/dist/components/GrepCrumbs/index.d.ts +2 -0
- package/dist/components/GrepDatePicker/DatePicker.d.ts +11 -0
- package/dist/components/GrepDatePicker/DatePicker.stories.d.ts +1 -0
- package/dist/components/GrepDatePicker/DatePicker.test.d.ts +1 -0
- package/dist/components/GrepDatePicker/index.d.ts +2 -0
- package/dist/components/GrepDateRange/index.d.ts +17 -0
- package/dist/components/GrepDateRange/stories/index.d.ts +1 -0
- package/dist/components/GrepEditor/GrepEditor.stories.d.ts +1 -0
- package/dist/components/GrepEditor/buttons/InlineButton.d.ts +11 -0
- package/dist/components/GrepEditor/buttons/button.d.ts +12 -0
- package/dist/components/GrepEditor/buttons/index.d.ts +2 -0
- package/dist/components/GrepEditor/buttons/styles.d.ts +1 -0
- package/dist/components/GrepEditor/context.d.ts +10 -0
- package/dist/components/GrepEditor/editor.d.ts +36 -0
- package/dist/components/GrepEditor/handlers/key.d.ts +5 -0
- package/dist/components/GrepEditor/index.d.ts +12 -0
- package/dist/components/GrepEditor/plugins/_link.d.ts +14 -0
- package/dist/components/GrepEditor/provider.d.ts +9 -0
- package/dist/components/GrepEditor/style.d.ts +7 -0
- package/dist/components/GrepEditor/toolbars/floating-toolbar.d.ts +5 -0
- package/dist/components/GrepEditor/toolbars/floating-toolbar.style.d.ts +4 -0
- package/dist/components/GrepEditor/toolbars/index.d.ts +7 -0
- package/dist/components/GrepEditor/utils.d.ts +16 -0
- package/dist/components/GrepInput/GrepInput.d.ts +8 -0
- package/dist/components/GrepInput/GrepInput.stories.d.ts +1 -0
- package/dist/components/GrepInput/index.d.ts +2 -0
- package/dist/components/GrepSelect/GrepSelect.d.ts +18 -0
- package/dist/components/GrepSelect/GrepSelect.stories.d.ts +1 -0
- package/dist/components/GrepSelect/index.d.ts +2 -0
- package/dist/components/GrepTable/GrepPaginationActions.d.ts +18 -0
- package/dist/components/GrepTable/GrepTable.d.ts +54 -0
- package/dist/components/GrepTable/GrepTable.stories.d.ts +11 -0
- package/dist/components/GrepTable/grep-table-cell.d.ts +13 -0
- package/dist/components/GrepTable/grep-table-header-cell.d.ts +14 -0
- package/dist/components/GrepTable/grep-table-header.d.ts +14 -0
- package/dist/components/GrepTable/grep-table-pagination.d.ts +7 -0
- package/dist/components/GrepTable/grep-table-placeholder.d.ts +9 -0
- package/dist/components/GrepTable/grep-table-row.d.ts +13 -0
- package/dist/components/GrepTable/grepTableStyles.d.ts +3 -0
- package/dist/components/GrepTable/index.d.ts +2 -0
- package/dist/components/GreyCover/GreyCover.d.ts +6 -0
- package/dist/components/GreyCover/GreyCover.stories.d.ts +1 -0
- package/dist/components/GreyCover/GreyCover.test.d.ts +1 -0
- package/dist/components/GreyCover/greyCoverStyles.d.ts +2 -0
- package/dist/components/GreyCover/index.d.ts +2 -0
- package/dist/components/InfoContainer/InfoContainer.d.ts +13 -0
- package/dist/components/InfoContainer/index.d.ts +2 -0
- package/dist/components/InfoContainer/infoContainer.stories.d.ts +1 -0
- package/dist/components/InfoContainer/infoContainerStyles.d.ts +13 -0
- package/dist/components/LinkList/LinkList.d.ts +9 -0
- package/dist/components/LinkList/LinkList.stories.d.ts +2 -0
- package/dist/components/LinkList/index.d.ts +2 -0
- package/dist/components/LinkList/linkListStyles.d.ts +2 -0
- package/dist/components/LoadingOverlay/LoadingOverlay.stories.d.ts +1 -0
- package/dist/components/LoadingOverlay/index.d.ts +10 -0
- package/dist/components/MainLayout/MainLayout.d.ts +6 -0
- package/dist/components/MainLayout/MainLayout.stories.d.ts +1 -0
- package/dist/components/MainLayout/MainLayout.test.d.ts +1 -0
- package/dist/components/MainLayout/index.d.ts +2 -0
- package/dist/components/MainLayout/mainLayoutStyles.d.ts +2 -0
- package/dist/components/NavGuard/index.d.ts +14 -0
- package/dist/components/NavGuard/stories/_scaffold.d.ts +5 -0
- package/dist/components/NavGuard/stories/index.d.ts +1 -0
- package/dist/components/NavGuard/stories/standard.d.ts +3 -0
- package/dist/components/NavGuard/styles.d.ts +1 -0
- package/dist/components/NavigateBack/NavigateBack.d.ts +8 -0
- package/dist/components/NavigateBack/index.d.ts +2 -0
- package/dist/components/NavigateBack/navigateBack.stories.d.ts +1 -0
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +7 -0
- package/dist/components/OverflowTooltip/index.d.ts +2 -0
- package/dist/components/ProfileInfo/ProfileInfo.d.ts +10 -0
- package/dist/components/ProfileInfo/ProfileInfo.stories.d.ts +7 -0
- package/dist/components/ProfileInfo/index.d.ts +2 -0
- package/dist/components/ProfileInfo/profileInfoStyles.d.ts +3 -0
- package/dist/components/SearchBar/SearchBar.d.ts +14 -0
- package/dist/components/SearchBar/SearchBar.stories.d.ts +1 -0
- package/dist/components/SearchBar/index.d.ts +2 -0
- package/dist/components/SearchBar/searchBarStyles.d.ts +5 -0
- package/dist/components/ServiceMessage/index.d.ts +9 -0
- package/dist/components/ServiceMessage/styles.d.ts +2 -0
- package/dist/components/Sidebar/Sidebar.d.ts +9 -0
- package/dist/components/Sidebar/Sidebar.stories.d.ts +2 -0
- package/dist/components/Sidebar/index.d.ts +2 -0
- package/dist/components/Sidebar/sidebarStyles.d.ts +1 -0
- package/dist/components/SortableTable/cell.d.ts +7 -0
- package/dist/components/SortableTable/index.d.ts +3 -0
- package/dist/components/SortableTable/row.d.ts +11 -0
- package/dist/components/SortableTable/row.style.d.ts +5 -0
- package/dist/components/SortableTable/stories/index.d.ts +1 -0
- package/dist/components/SortableTable/table.d.ts +20 -0
- package/dist/components/ToC/component.d.ts +8 -0
- package/dist/components/ToC/components/context-provider.d.ts +17 -0
- package/dist/components/ToC/components/index.d.ts +4 -0
- package/dist/components/ToC/components/nav-tree-node.d.ts +19 -0
- package/dist/components/ToC/components/nav-tree-node.style.d.ts +5 -0
- package/dist/components/ToC/components/nav-tree.d.ts +9 -0
- package/dist/components/ToC/components/nav-tree.style.d.ts +2 -0
- package/dist/components/ToC/components/nav.d.ts +7 -0
- package/dist/components/ToC/components/nav.style.d.ts +2 -0
- package/dist/components/ToC/context.d.ts +11 -0
- package/dist/components/ToC/index.d.ts +4 -0
- package/dist/components/ToC/stories/_scaffold.d.ts +5 -0
- package/dist/components/ToC/stories/_text.d.ts +3 -0
- package/dist/components/ToC/stories/index.d.ts +1 -0
- package/dist/components/ToC/stories/standard.d.ts +3 -0
- package/dist/components/ToC/utils/element-level.d.ts +5 -0
- package/dist/components/ToC/utils/identity-element.d.ts +8 -0
- package/dist/components/ToC/utils/normalize.d.ts +12 -0
- package/dist/components/ToC/utils/tree-builder.d.ts +7 -0
- package/dist/components/index.d.ts +68 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/use-content-elements.d.ts +9 -0
- package/dist/hooks/use-date.d.ts +13 -0
- package/dist/hooks/use-debounce.d.ts +21 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.js +57855 -0
- package/dist/index.js.map +1 -0
- package/dist/setupEnzyme.d.ts +1 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/stories/index.d.ts +4 -0
- package/dist/styling/Colors/colors.d.ts +27 -0
- package/dist/styling/Colors/index.d.ts +2 -0
- package/dist/styling/hex2rgb.d.ts +3 -0
- package/dist/styling/index.d.ts +3 -0
- package/dist/utils/dateHelper.d.ts +27 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/keyboard.d.ts +6 -0
- package/package.json +179 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
|
+
export interface FooterItem {
|
|
3
|
+
label: string;
|
|
4
|
+
render?: (renderLabel: () => ReactElement) => ReactElement;
|
|
5
|
+
onClickItem?: (args?: any) => void;
|
|
6
|
+
}
|
|
7
|
+
interface FooterProps {
|
|
8
|
+
items: FooterItem[];
|
|
9
|
+
}
|
|
10
|
+
declare const _default: React.ComponentType<FooterProps>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useFooterStyles: (props?: any) => Record<"footer" | "list" | "item" | "itemText" | "itemBtn", string>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Container: import("react").ComponentType<(Pick<import("../CleanPaper").CleanPaperProps, "style" | "onClick" | "elevation"> & import("@material-ui/styles/withStyles/withStyles").StyledComponentProps<"root">) | (Pick<import("react").PropsWithChildren<import("../CleanPaper").CleanPaperProps>, "style" | "children" | "onClick" | "elevation"> & import("@material-ui/styles/withStyles/withStyles").StyledComponentProps<"root">)>;
|
|
3
|
+
export declare const Content: import("react").ComponentType<(Pick<import("../CleanPaper").CleanPaperProps, "style" | "onClick" | "elevation"> & import("@material-ui/styles/withStyles/withStyles").StyledComponentProps<"root">) | (Pick<import("react").PropsWithChildren<import("../CleanPaper").CleanPaperProps>, "style" | "children" | "onClick" | "elevation"> & import("@material-ui/styles/withStyles/withStyles").StyledComponentProps<"root">)>;
|
|
4
|
+
export declare const Title: import("react").ComponentType<Pick<import("@material-ui/core/OverridableComponent").DefaultComponentProps<import("@material-ui/core/Typography/Typography").TypographyTypeMap<{}, "span">>, "color" | "display" | "translate" | "hidden" | "style" | "slot" | "title" | "ref" | "children" | "onClick" | "className" | "innerRef" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "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" | "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" | "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" | "css" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variant" | "variantMapping"> & import("@material-ui/styles/withStyles/withStyles").StyledComponentProps<"root">>;
|
|
5
|
+
export declare const Body: import("react").ComponentType<Pick<import("@material-ui/core/OverridableComponent").DefaultComponentProps<import("@material-ui/core/Typography/Typography").TypographyTypeMap<{}, "span">>, "color" | "display" | "translate" | "hidden" | "style" | "slot" | "title" | "ref" | "children" | "onClick" | "className" | "innerRef" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "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" | "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" | "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" | "css" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variant" | "variantMapping"> & import("@material-ui/styles/withStyles/withStyles").StyledComponentProps<"root">>;
|
|
6
|
+
export declare const StyledIcon: import("react").ComponentType<Pick<import("@material-ui/core/OverridableComponent").DefaultComponentProps<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>, "string" | "clipPath" | "color" | "cursor" | "direction" | "display" | "filter" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "mask" | "offset" | "overflow" | "textDecoration" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "end" | "local" | "style" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "path" | "ref" | "children" | "onClick" | "elevation" | "className" | "innerRef" | "key" | "id" | "lang" | "tabIndex" | "role" | "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" | "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" | "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" | "css" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "htmlColor" | "titleAccess"> & import("@material-ui/styles/withStyles/withStyles").StyledComponentProps<"root">>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface Breadcrumb {
|
|
3
|
+
path?: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
interface Props {
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
breadcrumbs: Breadcrumb[];
|
|
9
|
+
onClick?: (crumb: Breadcrumb) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const GrepCrumbs: React.FC<Props>;
|
|
12
|
+
export default GrepCrumbs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useStyles: (props?: any) => Record<"container" | "current", string>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../../utils/dateHelper';
|
|
3
|
+
import { KeyboardDatePickerProps } from '@material-ui/pickers';
|
|
4
|
+
import { ParseableDate } from '../../utils/dateHelper';
|
|
5
|
+
declare type DateInput = ParseableDate | null;
|
|
6
|
+
export interface DatePickerProps extends Omit<KeyboardDatePickerProps, 'value'> {
|
|
7
|
+
value?: DateInput;
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const DatePicker: React.FunctionComponent<DatePickerProps>;
|
|
11
|
+
export default DatePicker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DatePickerProps } from '../GrepDatePicker';
|
|
3
|
+
import { GridSpacing } from '@material-ui/core/Grid';
|
|
4
|
+
import { DateRangeValue } from '../../utils/dateHelper';
|
|
5
|
+
declare type CommonProperties = Pick<DatePickerProps, 'variant' | 'inputVariant' | 'format' | 'clearable' | 'disabled' | 'invalidDateMessage' | 'emptyLabel'>;
|
|
6
|
+
declare type ReferenceProperties = Pick<DatePickerProps, 'minDate' | 'maxDate'>;
|
|
7
|
+
interface Props extends CommonProperties, ReferenceProperties {
|
|
8
|
+
from: Omit<DatePickerProps, 'onChange'>;
|
|
9
|
+
to: Omit<DatePickerProps, 'onChange'>;
|
|
10
|
+
onChange: (date: DateRangeValue) => void;
|
|
11
|
+
spacing?: GridSpacing;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
fullWidth?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const GrepDateRange: React.FunctionComponent<Props>;
|
|
17
|
+
export default GrepDateRange;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'dayjs/locale/nb';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Editor } from 'draft-js';
|
|
3
|
+
import { ToggleButtonProps } from '@material-ui/lab/ToggleButton';
|
|
4
|
+
import { InlineStyle } from '.';
|
|
5
|
+
interface Properties extends Omit<ToggleButtonProps, 'value' | 'type'> {
|
|
6
|
+
editor: React.MutableRefObject<Editor>;
|
|
7
|
+
type: InlineStyle;
|
|
8
|
+
}
|
|
9
|
+
declare type Component = React.FunctionComponent<React.PropsWithChildren<Properties>>;
|
|
10
|
+
declare const InlineButton: Component;
|
|
11
|
+
export default InlineButton;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type InlineStyle = 'BOLD' | 'ITALIC' | 'STRIKETHROUGH' | string;
|
|
3
|
+
export interface Button {
|
|
4
|
+
type: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare enum ButtonType {
|
|
8
|
+
bold = "BOLD",
|
|
9
|
+
italic = "ITALIC"
|
|
10
|
+
}
|
|
11
|
+
export declare type Style = keyof typeof ButtonType;
|
|
12
|
+
export declare const createButton: (style: Style) => Button;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useStyles: (props?: any) => Record<"btn" | "btnSelected", string>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { EditorState, SelectionState } from 'draft-js';
|
|
3
|
+
export interface Context {
|
|
4
|
+
state: EditorState;
|
|
5
|
+
setState: React.Dispatch<React.SetStateAction<EditorState>>;
|
|
6
|
+
selection?: SelectionState;
|
|
7
|
+
setSelection: React.Dispatch<React.SetStateAction<SelectionState | undefined>>;
|
|
8
|
+
}
|
|
9
|
+
export declare const EditorContext: import("react").Context<Context>;
|
|
10
|
+
export default EditorContext;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Editor, ContentState, DraftBlockRenderMap } from 'draft-js';
|
|
3
|
+
import { Button, Style } from './buttons';
|
|
4
|
+
import { ToolbarPropperties } from './toolbars';
|
|
5
|
+
export declare type ContentChanged = (content: ContentState) => void;
|
|
6
|
+
export interface GrepEditor extends Editor {
|
|
7
|
+
editor: HTMLElement;
|
|
8
|
+
editorContainer: HTMLElement;
|
|
9
|
+
}
|
|
10
|
+
export interface Properties {
|
|
11
|
+
label?: string;
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
autoFocus?: boolean;
|
|
14
|
+
showCharCount?: boolean;
|
|
15
|
+
helperText?: string;
|
|
16
|
+
buttons?: Array<Button>;
|
|
17
|
+
disableNewlines?: boolean;
|
|
18
|
+
stripPastedStyles?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Undefined: allow all styles.
|
|
21
|
+
* Empty array: disable all styles.
|
|
22
|
+
* Not empty array: allow only specified styles.
|
|
23
|
+
*/
|
|
24
|
+
allowedStyles?: Array<Style>;
|
|
25
|
+
blockRenderMap?: DraftBlockRenderMap;
|
|
26
|
+
Toolbar?: React.FunctionComponent<ToolbarPropperties>;
|
|
27
|
+
classes?: Partial<Record<'root' | 'editor' | 'legend' | 'label', string>>;
|
|
28
|
+
onContentChange?: ContentChanged;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated No longer in use. Instead, pass allowedStyles as an empty array to disable styling
|
|
31
|
+
*/
|
|
32
|
+
canInlineStyle?: boolean;
|
|
33
|
+
}
|
|
34
|
+
declare type Component = React.FunctionComponent<Properties>;
|
|
35
|
+
export declare const EditorComponent: Component;
|
|
36
|
+
export default EditorComponent;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { EditorState, DraftEditorCommand, DraftHandleValue } from 'draft-js';
|
|
2
|
+
export declare type CustomDraftCommand = DraftEditorCommand | 'shift-split-block';
|
|
3
|
+
export declare const customKeyHandler: (setEditorState: (state: EditorState) => void) => (command: CustomDraftCommand, editorState: EditorState) => DraftHandleValue;
|
|
4
|
+
export declare const keyHandler: (setEditorState: (state: EditorState) => void, allowedStyles?: ("bold" | "italic")[] | undefined) => (command: CustomDraftCommand, editorState: EditorState) => DraftHandleValue;
|
|
5
|
+
export default keyHandler;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ContentState } from 'draft-js';
|
|
3
|
+
import { Properties as GrepEditorProps } from './editor';
|
|
4
|
+
export { EditorContext } from './context';
|
|
5
|
+
interface Properties extends GrepEditorProps {
|
|
6
|
+
html?: string;
|
|
7
|
+
}
|
|
8
|
+
export * from './utils';
|
|
9
|
+
export { ContentState };
|
|
10
|
+
declare type Component = React.FunctionComponent<Properties>;
|
|
11
|
+
declare const GrepEditor: Component;
|
|
12
|
+
export default GrepEditor;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ContentBlock, ContentState } from 'draft-js';
|
|
3
|
+
interface LinkProperties {
|
|
4
|
+
contentState: ContentState;
|
|
5
|
+
entityKey: string;
|
|
6
|
+
children: import('react').ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const component: ({ contentState, entityKey, children, }: LinkProperties) => JSX.Element;
|
|
9
|
+
export declare function strategy(contentBlock: ContentBlock, callback: (start: number, end: number) => void, contentState: ContentState): void;
|
|
10
|
+
declare const _default: {
|
|
11
|
+
strategy: typeof strategy;
|
|
12
|
+
component: ({ contentState, entityKey, children, }: LinkProperties) => JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DraftDecorator, ContentState, EditorState } from 'draft-js';
|
|
2
|
+
import { Options as Convert2htmlOptions } from 'draft-js-export-html';
|
|
3
|
+
import { InlineStyle } from './buttons';
|
|
4
|
+
export declare const createState: (content?: string | undefined, decorators?: DraftDecorator[] | undefined) => EditorState;
|
|
5
|
+
export declare type ParsedContent = {
|
|
6
|
+
txt: string;
|
|
7
|
+
html: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const convert2html: (content: ContentState, options?: Convert2htmlOptions) => string;
|
|
10
|
+
export declare const convert2txt: (content: ContentState) => string;
|
|
11
|
+
export declare const parseContentState: (state: ContentState) => {
|
|
12
|
+
txt: string;
|
|
13
|
+
html: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const parseContent: (content?: string | undefined, decorators?: DraftDecorator[] | undefined) => ParsedContent;
|
|
16
|
+
export declare const UpdateStyle: (state: EditorState, style: InlineStyle) => EditorState;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TextFieldProps } from '@material-ui/core/TextField/TextField';
|
|
3
|
+
export declare type GrepInputProps = TextFieldProps & {
|
|
4
|
+
shrink?: boolean;
|
|
5
|
+
errorMessage?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: React.ComponentType<GrepInputProps>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SelectProps } from '@material-ui/core/Select';
|
|
3
|
+
import { PropTypes } from '@material-ui/core';
|
|
4
|
+
export interface SelectItem {
|
|
5
|
+
value: string | number;
|
|
6
|
+
label?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface GrepSelectProps extends SelectProps {
|
|
10
|
+
label: string;
|
|
11
|
+
outlined?: boolean;
|
|
12
|
+
helperText?: string;
|
|
13
|
+
errorMessage?: string;
|
|
14
|
+
selectItems: SelectItem[];
|
|
15
|
+
formMargin?: PropTypes.Margin;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: React.ComponentType<GrepSelectProps>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { WithStyles, Theme } from '@material-ui/core';
|
|
3
|
+
declare const actionsStyles: () => {
|
|
4
|
+
root: {
|
|
5
|
+
display: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
declare type WithStylesProps = WithStyles<typeof actionsStyles>;
|
|
9
|
+
export declare type PaginationActionsProps = {
|
|
10
|
+
count: number;
|
|
11
|
+
onChangePage: (event: React.MouseEvent<HTMLElement> | null, page: number) => void;
|
|
12
|
+
page: number;
|
|
13
|
+
rowsPerPage: number;
|
|
14
|
+
theme: Theme;
|
|
15
|
+
};
|
|
16
|
+
declare type Props = WithStylesProps & PaginationActionsProps;
|
|
17
|
+
export declare const PaginationActionsWrapped: React.ComponentType<Pick<Props, "count" | "onChangePage" | "page" | "rowsPerPage" | "theme"> & import("@material-ui/core").StyledComponentProps<"root">>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableProps } from '@material-ui/core/Table';
|
|
3
|
+
import { TableCellProps } from '@material-ui/core/TableCell';
|
|
4
|
+
import { DropdownMenuItem } from '../DropdownMenu';
|
|
5
|
+
export interface TableColumn<T> extends Pick<TableCellProps, 'padding'> {
|
|
6
|
+
label?: string | JSX.Element;
|
|
7
|
+
width?: number | string;
|
|
8
|
+
colDef?: string;
|
|
9
|
+
sortable?: boolean;
|
|
10
|
+
forceTooltip?: boolean;
|
|
11
|
+
getTooltip?: (row: T) => string;
|
|
12
|
+
getCell: (row: T) => string | number | boolean | JSX.Element;
|
|
13
|
+
lines?: (row: T) => number;
|
|
14
|
+
}
|
|
15
|
+
export interface GrepTableProps<T> extends Pick<TableProps, 'size' | 'stickyHeader' | 'padding'> {
|
|
16
|
+
data: T[];
|
|
17
|
+
columns: Array<TableColumn<T>>;
|
|
18
|
+
sortBy?: string;
|
|
19
|
+
header?: boolean;
|
|
20
|
+
outlined?: boolean;
|
|
21
|
+
rowsPerPage?: number;
|
|
22
|
+
pagination?: boolean;
|
|
23
|
+
clickableRows?: boolean;
|
|
24
|
+
placeholderText?: string;
|
|
25
|
+
dropdownItems?: Array<DropdownMenuItem<T>>;
|
|
26
|
+
style?: React.CSSProperties;
|
|
27
|
+
sortDirection?: 'desc' | 'asc';
|
|
28
|
+
isRowDisabled?: (row: T) => boolean;
|
|
29
|
+
onSelectedRowChange?: (row: T | null) => void;
|
|
30
|
+
onRowClick?: (row: T) => any;
|
|
31
|
+
menuTooltip?: (row: T) => string;
|
|
32
|
+
menuDisabled?: (row: T) => boolean;
|
|
33
|
+
onContextIdChanged?: (row: T) => void;
|
|
34
|
+
onSortBy?: (col: TableColumn<T>) => any;
|
|
35
|
+
caption?: React.ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated No longer in use.
|
|
38
|
+
*/
|
|
39
|
+
rowHeight?: number;
|
|
40
|
+
}
|
|
41
|
+
interface StyleProperties {
|
|
42
|
+
outlined?: boolean;
|
|
43
|
+
showHeader?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export declare const useStyles: (props: StyleProperties) => Record<"body" | "table" | "header", string>;
|
|
46
|
+
/**
|
|
47
|
+
* Since Grep-Table is so tightly intregrated into LPU and Admin some core logic could not be fixed
|
|
48
|
+
* Still works but still messy
|
|
49
|
+
*
|
|
50
|
+
* @todo enhance page handling
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
export declare const GrepTable: <T extends unknown>({ placeholderText, dropdownItems, isRowDisabled, pagination, outlined, columns, header, data, onSelectedRowChange, sortBy, sortDirection, onSortBy, onRowClick, size, caption, stickyHeader, padding, ...props }: GrepTableProps<T>) => JSX.Element;
|
|
54
|
+
export default GrepTable;
|