freemium-ui 1.0.334 → 2.0.0-beta.0
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/.husky/pre-commit +5 -0
- package/README.md +26 -51
- package/lib/index.d.ts +833 -0
- package/lib/index.esm.js +833 -42
- package/lib/index.js +833 -0
- package/package.json +94 -87
- package/rollup.config.mjs +47 -0
- package/.github/workflows/security.yml +0 -52
- package/lib/index.cjs.js +0 -28
- package/lib/types/components/Alert/Alert.d.ts +0 -17
- package/lib/types/components/Alert/index.d.ts +0 -1
- package/lib/types/components/BoxedRadio/boxedRadio.d.ts +0 -9
- package/lib/types/components/BoxedRadio/boxedRadioContext.d.ts +0 -7
- package/lib/types/components/BoxedRadio/boxedRadioGroup.d.ts +0 -2
- package/lib/types/components/BoxedRadio/index.d.ts +0 -2
- package/lib/types/components/Button/Buttons.d.ts +0 -19
- package/lib/types/components/Button/index.d.ts +0 -1
- package/lib/types/components/ButtonDropdown/ButtonDropdown.d.ts +0 -20
- package/lib/types/components/ButtonDropdown/index.d.ts +0 -1
- package/lib/types/components/Checkbox/Checkbox.d.ts +0 -13
- package/lib/types/components/Checkbox/index.d.ts +0 -1
- package/lib/types/components/Confirmation/Confirmation.d.ts +0 -38
- package/lib/types/components/Confirmation/index.d.ts +0 -2
- package/lib/types/components/Confirmation/useConfirmation.d.ts +0 -10
- package/lib/types/components/ControlledTable/ControlledTable.d.ts +0 -50
- package/lib/types/components/ControlledTable/index.d.ts +0 -1
- package/lib/types/components/CssBaseLine/index.d.ts +0 -1
- package/lib/types/components/Drawer/Drawer.d.ts +0 -17
- package/lib/types/components/Drawer/index.d.ts +0 -2
- package/lib/types/components/Drawer/styles.d.ts +0 -6
- package/lib/types/components/Dropdown/DropdownButton.d.ts +0 -14
- package/lib/types/components/Dropdown/DropdownInput.d.ts +0 -4
- package/lib/types/components/Dropdown/DropdownMenu.d.ts +0 -4
- package/lib/types/components/Dropdown/index.d.ts +0 -30
- package/lib/types/components/Dropdown/styles.d.ts +0 -7
- package/lib/types/components/Dropdown/withDownshift.d.ts +0 -8
- package/lib/types/components/Icons/Icons.d.ts +0 -20
- package/lib/types/components/Icons/index.d.ts +0 -1
- package/lib/types/components/Input/Input.d.ts +0 -57
- package/lib/types/components/Input/index.d.ts +0 -1
- package/lib/types/components/Loader/Loader.d.ts +0 -8
- package/lib/types/components/Loader/index.d.ts +0 -1
- package/lib/types/components/Menu/Menu.d.ts +0 -20
- package/lib/types/components/Menu/index.d.ts +0 -1
- package/lib/types/components/Modal/Modal.d.ts +0 -13
- package/lib/types/components/Modal/index.d.ts +0 -3
- package/lib/types/components/Modal/styles.d.ts +0 -12
- package/lib/types/components/Modal/use-modal.d.ts +0 -10
- package/lib/types/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +0 -32
- package/lib/types/components/MultiSelectDropdown/index.d.ts +0 -1
- package/lib/types/components/Pickers/DatePicker.d.ts +0 -4
- package/lib/types/components/Pickers/DateRangePicker.d.ts +0 -4
- package/lib/types/components/Pickers/DateTimePicker.d.ts +0 -4
- package/lib/types/components/Pickers/TimePicker.d.ts +0 -4
- package/lib/types/components/Pickers/index.d.ts +0 -4
- package/lib/types/components/Pickers/styles.d.ts +0 -4
- package/lib/types/components/Pickers/types.d.ts +0 -29
- package/lib/types/components/Popover/Popover.d.ts +0 -21
- package/lib/types/components/Popover/index.d.ts +0 -1
- package/lib/types/components/Radio/Radio.d.ts +0 -9
- package/lib/types/components/Radio/index.d.ts +0 -1
- package/lib/types/components/RestTable/RestTable.d.ts +0 -19
- package/lib/types/components/RestTable/index.d.ts +0 -1
- package/lib/types/components/Table/Table.d.ts +0 -56
- package/lib/types/components/Table/index.d.ts +0 -1
- package/lib/types/components/Tabs/Tabs.d.ts +0 -20
- package/lib/types/components/Tabs/index.d.ts +0 -1
- package/lib/types/components/Tag/Tag.d.ts +0 -7
- package/lib/types/components/Tag/index.d.ts +0 -1
- package/lib/types/components/ThemeProvider/index.d.ts +0 -12
- package/lib/types/components/Toast/Toast.d.ts +0 -14
- package/lib/types/components/Toast/index.d.ts +0 -3
- package/lib/types/components/Toggle/Toggle.d.ts +0 -15
- package/lib/types/components/Toggle/index.d.ts +0 -1
- package/lib/types/components/Tooltip/Tooltip.d.ts +0 -24
- package/lib/types/components/Tooltip/index.d.ts +0 -1
- package/lib/types/components/Transition/Transition.d.ts +0 -14
- package/lib/types/components/Transition/fade.d.ts +0 -6
- package/lib/types/components/Transition/index.d.ts +0 -4
- package/lib/types/components/Transition/slide-fade.d.ts +0 -13
- package/lib/types/components/Transition/slide.d.ts +0 -11
- package/lib/types/components/UiProvider/UiProvider.d.ts +0 -2
- package/lib/types/components/UiProvider/index.d.ts +0 -1
- package/lib/types/components/use-toasts/index.d.ts +0 -1
- package/lib/types/components/use-toasts/toast-container.d.ts +0 -8
- package/lib/types/components/use-toasts/toast-item.d.ts +0 -15
- package/lib/types/components/use-toasts/use-toast.d.ts +0 -17
- package/lib/types/index.d.ts +0 -30
- package/lib/types/theme/default/colors.d.ts +0 -3
- package/lib/types/theme/default/index.d.ts +0 -7
- package/lib/types/theme/default/palette.d.ts +0 -3
- package/lib/types/theme/default/typography.d.ts +0 -3
- package/lib/types/theme/freshstatus/colors.d.ts +0 -3
- package/lib/types/theme/freshstatus/index.d.ts +0 -7
- package/lib/types/theme/freshstatus/palette.d.ts +0 -3
- package/lib/types/theme/freshstatus/typography.d.ts +0 -3
- package/lib/types/theme/index.d.ts +0 -352
- package/lib/types/theme/shared.d.ts +0 -2
- package/lib/types/utils/date.d.ts +0 -7
- package/lib/types/utils/index.d.ts +0 -1
- package/lib/types/utils/use-current-state.d.ts +0 -4
- package/lib/types/utils/use-portal.d.ts +0 -2
- package/lib/types/utils/use-ssr.d.ts +0 -6
- package/lib/types/utils/use-ui-context.d.ts +0 -11
- package/lib/types/utils/with-defaults.d.ts +0 -3
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare type LevelType = 'warning' | 'success' | 'error' | 'info';
|
|
3
|
-
interface AlertProps {
|
|
4
|
-
level?: LevelType;
|
|
5
|
-
canDismiss: boolean;
|
|
6
|
-
timeout?: number;
|
|
7
|
-
overideClassName?: string;
|
|
8
|
-
children?: any;
|
|
9
|
-
onClose: () => any;
|
|
10
|
-
onDisappear?: () => any;
|
|
11
|
-
}
|
|
12
|
-
export declare const Alert: React.ComponentType<Partial<{
|
|
13
|
-
canDismiss: boolean;
|
|
14
|
-
onClose: () => null;
|
|
15
|
-
level: string;
|
|
16
|
-
}> & Pick<AlertProps, "children" | "timeout" | "overideClassName" | "onDisappear">>;
|
|
17
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Alert';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const BUTTON_SIZE_VARIANTS: {
|
|
3
|
-
LARGE: string;
|
|
4
|
-
MINI: string;
|
|
5
|
-
NORMAL: string;
|
|
6
|
-
};
|
|
7
|
-
export declare type ButtonSizeKey = 'large' | 'mini' | 'normal';
|
|
8
|
-
export declare type buttonHTMLType = 'submit' | 'reset' | 'button';
|
|
9
|
-
export declare type buttonType = 'primary' | 'secondary' | 'danger' | 'link';
|
|
10
|
-
export declare type ButtonProps = {
|
|
11
|
-
type?: buttonType;
|
|
12
|
-
htmlType?: buttonHTMLType;
|
|
13
|
-
size?: ButtonSizeKey;
|
|
14
|
-
inline?: boolean;
|
|
15
|
-
overrideStyleClassName?: string;
|
|
16
|
-
loading?: boolean;
|
|
17
|
-
ref?: any;
|
|
18
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'type'>;
|
|
19
|
-
export declare const Button: (props: ButtonProps) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Buttons';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import FreemiumUIThemes from '../../theme';
|
|
3
|
-
import { buttonHTMLType, buttonType, ButtonSizeKey } from '../Button';
|
|
4
|
-
declare type ButtonDropdownProps = {
|
|
5
|
-
theme?: FreemiumUIThemes;
|
|
6
|
-
onClick?: (item: unknown, event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
7
|
-
items?: Array<any>;
|
|
8
|
-
id: string;
|
|
9
|
-
type?: buttonType;
|
|
10
|
-
htmlType?: buttonHTMLType;
|
|
11
|
-
size?: ButtonSizeKey;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
inline?: boolean;
|
|
14
|
-
idAccessor?: string;
|
|
15
|
-
defaultSelectedItem: any;
|
|
16
|
-
nameAccessor?: string;
|
|
17
|
-
position?: 'top' | 'bottom';
|
|
18
|
-
};
|
|
19
|
-
export declare const ButtonDropdown: React.ForwardRefExoticComponent<ButtonDropdownProps & React.RefAttributes<unknown>>;
|
|
20
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ButtonDropdown';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
3
|
-
checked: boolean;
|
|
4
|
-
isRequired?: boolean;
|
|
5
|
-
isErrored?: boolean;
|
|
6
|
-
indeterminate?: boolean;
|
|
7
|
-
children?: any;
|
|
8
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const Checkbox: React.ComponentType<Partial<{
|
|
11
|
-
checked: boolean;
|
|
12
|
-
}> & Pick<CheckboxProps & React.RefAttributes<HTMLInputElement>, "onChange" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "crossOrigin" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "pattern" | "placeholder" | "readOnly" | "required" | "size" | "src" | "step" | "type" | "value" | "width" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "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" | "ref" | "isRequired" | "isErrored" | "indeterminate" | "key">>;
|
|
13
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Checkbox';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import FreemiumUIThemes from '../../theme';
|
|
3
|
-
declare type ConfirmationProps = {
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
onDismiss: (type: 'overlay' | 'button') => void;
|
|
6
|
-
theme?: FreemiumUIThemes;
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
title?: string;
|
|
9
|
-
width?: string;
|
|
10
|
-
bodyStyles?: any;
|
|
11
|
-
contentStyles?: any;
|
|
12
|
-
footerStyles?: any;
|
|
13
|
-
confirmButtonText?: string;
|
|
14
|
-
cancelButtonText?: string;
|
|
15
|
-
confirmButtonDisabled?: boolean;
|
|
16
|
-
cancelButtonDisabled?: boolean;
|
|
17
|
-
onConfirm?: () => void;
|
|
18
|
-
};
|
|
19
|
-
export declare const Confirmation: React.ForwardRefExoticComponent<ConfirmationProps & React.RefAttributes<unknown>>;
|
|
20
|
-
export declare const ConfirmationContent: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<{
|
|
21
|
-
children?: React.ReactNode;
|
|
22
|
-
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>, any, {
|
|
23
|
-
width: any;
|
|
24
|
-
}, never>;
|
|
25
|
-
export declare const ConfirmationOverlay: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<{
|
|
26
|
-
allowPinchZoom?: boolean | undefined;
|
|
27
|
-
children?: React.ReactNode;
|
|
28
|
-
initialFocusRef?: React.RefObject<any> | undefined;
|
|
29
|
-
isOpen?: boolean | undefined;
|
|
30
|
-
onDismiss?: ((event?: React.SyntheticEvent<Element, Event> | undefined) => void) | undefined;
|
|
31
|
-
unstable_lockFocusAcrossFrames?: boolean | undefined;
|
|
32
|
-
} & React.HTMLAttributes<HTMLDivElement> & {
|
|
33
|
-
dangerouslyBypassFocusLock?: boolean | undefined;
|
|
34
|
-
dangerouslyBypassScrollLock?: boolean | undefined;
|
|
35
|
-
} & React.RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
36
|
-
export declare const ConfirmationBody: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
37
|
-
export declare const ConfirmationFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
38
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Dispatch, MutableRefObject, SetStateAction } from 'react';
|
|
2
|
-
export declare const useConfirmation: (initialVisible?: boolean) => {
|
|
3
|
-
visible: boolean;
|
|
4
|
-
setVisible: Dispatch<SetStateAction<boolean>>;
|
|
5
|
-
currentRef: MutableRefObject<boolean>;
|
|
6
|
-
bindings: {
|
|
7
|
-
isOpen: boolean;
|
|
8
|
-
onDismiss: () => void;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Column, TableState, Row, ColumnInstance, Cell, IdType, TableCommonProps } from 'react-table';
|
|
3
|
-
import FreemiumUIThemes from '../../theme';
|
|
4
|
-
declare type ControlledTableProps = {
|
|
5
|
-
cellPropGetter?: (cell: Cell) => TableCommonProps;
|
|
6
|
-
rowPropGetter?: (row: Row) => TableCommonProps;
|
|
7
|
-
onSelectAll?: (checked: boolean) => void;
|
|
8
|
-
onMenuOptionSelect?: (optionId: string, row: any) => void;
|
|
9
|
-
onPageClick?: (pageNumber: number) => void;
|
|
10
|
-
onFirstClick?: (pageNumber?: number) => void;
|
|
11
|
-
onLastClick?: (pageNumber?: number) => void;
|
|
12
|
-
onPrevious?: (pageNumber?: number) => void;
|
|
13
|
-
onNext?: (pageNumber?: number) => void;
|
|
14
|
-
onRowSelect?: (selectedRowIds: Record<IdType<{}>, boolean>, selectedFlatRows?: Array<Row<{}>>) => void;
|
|
15
|
-
onRowClick?: (row: Row<{}>, column: ColumnInstance<{}>) => void;
|
|
16
|
-
columns?: Array<Column<{}>>;
|
|
17
|
-
hideTableHeaderOnEmpty?: boolean;
|
|
18
|
-
emptyComponent?: React.ReactNode;
|
|
19
|
-
headerComponent?: React.ReactNode;
|
|
20
|
-
loadingComponent?: React.ReactNode;
|
|
21
|
-
filterComponent?: React.ReactNode;
|
|
22
|
-
data?: any[];
|
|
23
|
-
next?: string | boolean;
|
|
24
|
-
previous?: string | boolean;
|
|
25
|
-
count?: number;
|
|
26
|
-
indeterminateCount?: boolean;
|
|
27
|
-
perPage?: number;
|
|
28
|
-
pageNumber?: number;
|
|
29
|
-
sortable?: boolean;
|
|
30
|
-
showSelectAllInTable?: boolean;
|
|
31
|
-
showSelections?: boolean;
|
|
32
|
-
showFilters?: boolean;
|
|
33
|
-
showActions?: boolean;
|
|
34
|
-
showOptions?: boolean;
|
|
35
|
-
showTopPagination?: boolean;
|
|
36
|
-
showBottomPagination?: boolean;
|
|
37
|
-
name?: string;
|
|
38
|
-
id?: string;
|
|
39
|
-
rowMenuOptions?: (rowData?: any) => any[];
|
|
40
|
-
paginationOptions?: Array<number>;
|
|
41
|
-
theme?: FreemiumUIThemes;
|
|
42
|
-
initialState?: {
|
|
43
|
-
selectedRowIds?: Record<string, boolean>;
|
|
44
|
-
hiddenColumns?: string[];
|
|
45
|
-
columnOrder?: string[];
|
|
46
|
-
};
|
|
47
|
-
state?: Partial<TableState>;
|
|
48
|
-
};
|
|
49
|
-
export declare const ControlledTable: (props: ControlledTableProps) => JSX.Element;
|
|
50
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ControlledTable';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CssBaseLine: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ModalProps, MODALSIZE } from '../Modal';
|
|
3
|
-
import { SlideProps } from '../Transition';
|
|
4
|
-
export interface DrawerProps extends ModalProps {
|
|
5
|
-
placement?: SlideProps['placement'];
|
|
6
|
-
size?: MODALSIZE;
|
|
7
|
-
isFullHeight?: boolean;
|
|
8
|
-
clickOutToClose?: boolean;
|
|
9
|
-
hideDismissIcon?: boolean;
|
|
10
|
-
customClass?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function Drawer(props: DrawerProps): JSX.Element;
|
|
13
|
-
export declare const DrawerContent: React.SFC<{
|
|
14
|
-
size: MODALSIZE;
|
|
15
|
-
}>;
|
|
16
|
-
export declare const DrawerOverlay: React.SFC<ModalProps>;
|
|
17
|
-
export default DrawerOverlay;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import FreemiumUIThemes from '../../theme';
|
|
2
|
-
export declare const DrawerBody: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const DismissIcon: import("styled-components").StyledComponent<"span", any, {
|
|
4
|
-
theme: FreemiumUIThemes;
|
|
5
|
-
}, never>;
|
|
6
|
-
export declare const DrawerFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="hoist-non-react-statics" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface DropdownButtonProps {
|
|
4
|
-
downshift: any;
|
|
5
|
-
itemToString: any;
|
|
6
|
-
isErrored: boolean;
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
overrideStyles: any;
|
|
9
|
-
buttonLabelComponent: any;
|
|
10
|
-
children: any;
|
|
11
|
-
placeholder: string;
|
|
12
|
-
}
|
|
13
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>> & import("hoist-non-react-statics").NonReactStatics<any, {}>;
|
|
14
|
-
export default _default;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="hoist-non-react-statics" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare const DropdownInput: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>> & import("hoist-non-react-statics").NonReactStatics<any, {}>;
|
|
4
|
-
export default DropdownInput;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="hoist-non-react-statics" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare const DropdownMenu: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>> & import("hoist-non-react-statics").NonReactStatics<any, {}>;
|
|
4
|
-
export default DropdownMenu;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type DropdownItemType = Record<string, any>;
|
|
3
|
-
declare type DropdownProps<T extends DropdownItemType = any> = {
|
|
4
|
-
items: Array<T> | string[];
|
|
5
|
-
defaultSelectedItem: T | string | null;
|
|
6
|
-
onChange?: (item: T) => void;
|
|
7
|
-
itemToString?: (item: T | null) => string | JSX.Element;
|
|
8
|
-
type?: 'button' | 'input';
|
|
9
|
-
filterKey?: string;
|
|
10
|
-
id?: string;
|
|
11
|
-
label?: string;
|
|
12
|
-
width?: string;
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
itemComponent?: React.ReactNode;
|
|
15
|
-
emptyItemsText?: string;
|
|
16
|
-
onCustomValueAdd?: (item: any) => void;
|
|
17
|
-
customValues?: boolean;
|
|
18
|
-
name?: string;
|
|
19
|
-
errorText?: string;
|
|
20
|
-
children?: any;
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
hideClear?: boolean;
|
|
23
|
-
isErrored?: boolean;
|
|
24
|
-
isRequired?: boolean;
|
|
25
|
-
overrideButtonStyles?: any;
|
|
26
|
-
overrideContainerStyles?: any;
|
|
27
|
-
isMenuLoading?: boolean;
|
|
28
|
-
};
|
|
29
|
-
export declare const Dropdown: <T extends Record<string, any> = any>(props: DropdownProps) => JSX.Element;
|
|
30
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const ErrorContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
declare type StyledDropdownContainerProps = {
|
|
3
|
-
width: string;
|
|
4
|
-
isRequired: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare const StyledDropdownContainer: import("styled-components").StyledComponent<"div", any, StyledDropdownContainerProps, never>;
|
|
7
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import hoistNonReactStatics from 'hoist-non-react-statics';
|
|
3
|
-
export declare const DROPDOWN_TYPES: {
|
|
4
|
-
BUTTON: string;
|
|
5
|
-
INPUT: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const DownshiftContext: React.Context<any>;
|
|
8
|
-
export declare function withDownshift(Component: any): React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>> & hoistNonReactStatics.NonReactStatics<any, {}>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare type Props = {
|
|
3
|
-
glyph: string;
|
|
4
|
-
size?: number | string;
|
|
5
|
-
color?: string;
|
|
6
|
-
onClick?: any;
|
|
7
|
-
dataCy?: string;
|
|
8
|
-
viewBox?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const InlineSvg: import("styled-components").StyledComponent<"svg", any, {}, never>;
|
|
11
|
-
declare type SvgWrapperProps = {
|
|
12
|
-
size: number | string;
|
|
13
|
-
};
|
|
14
|
-
export declare const SvgWrapper: import("styled-components").StyledComponent<"div", any, SvgWrapperProps, never>;
|
|
15
|
-
declare type GlyphProps = {
|
|
16
|
-
glyph: string;
|
|
17
|
-
};
|
|
18
|
-
export declare const Glyph: ({ glyph }: GlyphProps) => JSX.Element | null;
|
|
19
|
-
export declare const Icons: (props: Props) => JSX.Element;
|
|
20
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Icons';
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import React, { InputHTMLAttributes } from 'react';
|
|
2
|
-
interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
isErrored?: boolean;
|
|
5
|
-
showCount?: boolean;
|
|
6
|
-
errorText?: string;
|
|
7
|
-
maxLength?: any;
|
|
8
|
-
type?: string;
|
|
9
|
-
label?: string | React.ReactNode;
|
|
10
|
-
name?: string;
|
|
11
|
-
style?: any;
|
|
12
|
-
value?: any;
|
|
13
|
-
inputStyle?: any;
|
|
14
|
-
className?: string;
|
|
15
|
-
startLabel?: React.ReactNode | any;
|
|
16
|
-
startAdornment?: React.ReactNode | any;
|
|
17
|
-
endLabel?: React.ReactNode | any;
|
|
18
|
-
endAdornment?: React.ReactNode | any;
|
|
19
|
-
isRequired?: boolean;
|
|
20
|
-
inline?: boolean;
|
|
21
|
-
}
|
|
22
|
-
interface TextAreaProps extends React.HTMLAttributes<HTMLTextAreaElement> {
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
value?: string;
|
|
25
|
-
isErrored: boolean;
|
|
26
|
-
errorText?: string;
|
|
27
|
-
style?: any;
|
|
28
|
-
inputStyle?: any;
|
|
29
|
-
className?: string;
|
|
30
|
-
label?: string;
|
|
31
|
-
name?: string;
|
|
32
|
-
startLabel?: React.ReactNode | any;
|
|
33
|
-
startAdornment?: React.ReactNode | any;
|
|
34
|
-
endLabel?: React.ReactNode | any;
|
|
35
|
-
endAdornment?: React.ReactNode | any;
|
|
36
|
-
isRequired?: boolean;
|
|
37
|
-
inline?: boolean;
|
|
38
|
-
showCount?: boolean;
|
|
39
|
-
maxLength?: number;
|
|
40
|
-
rows?: number;
|
|
41
|
-
autoFocus?: boolean;
|
|
42
|
-
}
|
|
43
|
-
export declare const Input: React.ComponentType<Partial<{
|
|
44
|
-
isRequired: boolean;
|
|
45
|
-
showCount: boolean;
|
|
46
|
-
isErrored: boolean;
|
|
47
|
-
inline: boolean;
|
|
48
|
-
spellcheck: boolean;
|
|
49
|
-
}> & Pick<InputProps & React.RefAttributes<HTMLInputElement>, "form" | "label" | "slot" | "style" | "title" | "pattern" | "ref" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "children" | "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" | "errorText" | "disabled" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "src" | "step" | "value" | "width" | "inputStyle" | "startLabel" | "startAdornment" | "endLabel" | "endAdornment">>;
|
|
50
|
-
export declare const TextArea: React.ComponentType<Partial<{
|
|
51
|
-
isRequired: boolean;
|
|
52
|
-
showCount: boolean;
|
|
53
|
-
isErrored: boolean;
|
|
54
|
-
inline: boolean;
|
|
55
|
-
spellcheck: boolean;
|
|
56
|
-
}> & Pick<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>, "label" | "slot" | "style" | "title" | "ref" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "children" | "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" | "errorText" | "disabled" | "autoFocus" | "maxLength" | "value" | "rows" | "inputStyle" | "startLabel" | "startAdornment" | "endLabel" | "endAdornment">>;
|
|
57
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Input';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Loader';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import FreemiumUIThemes from '../../theme';
|
|
3
|
-
export interface MenuItemProps {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
}
|
|
9
|
-
declare type MenuProps<T extends MenuItemProps = any> = {
|
|
10
|
-
onSelect?: (option: T) => void;
|
|
11
|
-
closeMenuCallback?: () => void;
|
|
12
|
-
options?: Array<T>;
|
|
13
|
-
ref?: React.RefObject<HTMLUListElement> | null;
|
|
14
|
-
idAccessor?: string;
|
|
15
|
-
highlightedIndex?: number | null;
|
|
16
|
-
nameAccessor?: string;
|
|
17
|
-
theme?: FreemiumUIThemes;
|
|
18
|
-
};
|
|
19
|
-
export declare const Menu: <T extends MenuItemProps = any>({ idAccessor, nameAccessor, highlightedIndex, options, onSelect, closeMenuCallback, }: MenuProps<T>) => JSX.Element;
|
|
20
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Menu';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MODALSIZE, POSITION, ALIGN } from './styles';
|
|
3
|
-
export interface ModalProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
isOpen: boolean;
|
|
6
|
-
align?: ALIGN;
|
|
7
|
-
position?: POSITION;
|
|
8
|
-
size?: MODALSIZE;
|
|
9
|
-
onDismiss: () => void;
|
|
10
|
-
customClass?: string;
|
|
11
|
-
customModalContentStyles?: {};
|
|
12
|
-
}
|
|
13
|
-
export declare const Modal: ({ children, isOpen, onDismiss, position, align, size, customModalContentStyles, customClass, }: ModalProps) => JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const ModalOverlay: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
|
|
3
|
-
export declare type ALIGN = 'top' | 'center' | 'bottom';
|
|
4
|
-
export declare type POSITION = 'left' | 'center' | 'right';
|
|
5
|
-
export declare type MODALSIZE = 'default' | 'medium' | 'small' | 'large' | 'x-large';
|
|
6
|
-
export declare const ModalContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<{
|
|
7
|
-
children?: import("react").ReactNode;
|
|
8
|
-
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {
|
|
9
|
-
size: MODALSIZE;
|
|
10
|
-
}, never>;
|
|
11
|
-
export declare const ModalBody: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
-
export declare const ModalFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Dispatch, MutableRefObject, SetStateAction } from 'react';
|
|
2
|
-
export declare const useModal: (initialVisible?: boolean) => {
|
|
3
|
-
visible: boolean;
|
|
4
|
-
setVisible: Dispatch<SetStateAction<boolean>>;
|
|
5
|
-
currentRef: MutableRefObject<boolean>;
|
|
6
|
-
bindings: {
|
|
7
|
-
isOpen: boolean;
|
|
8
|
-
onDismiss: () => void;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type MultiSelectProps = {
|
|
3
|
-
InputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
4
|
-
name: string;
|
|
5
|
-
id?: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
items: any[];
|
|
8
|
-
selectedItem: any;
|
|
9
|
-
onCustomValueAdd?: (item: any) => void;
|
|
10
|
-
onChange: (items: any) => void;
|
|
11
|
-
onBackSpace?: () => void;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
itemLabelIdentifier: string;
|
|
14
|
-
itemValueIdentifier: string;
|
|
15
|
-
errorText?: string;
|
|
16
|
-
isErrored?: boolean;
|
|
17
|
-
isRequired?: boolean;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
customValues?: boolean;
|
|
20
|
-
renderCustomSuggestion?: any;
|
|
21
|
-
maxAllowedLength?: number;
|
|
22
|
-
isMenuLoading?: boolean;
|
|
23
|
-
handleInputChange?: (item: any) => void;
|
|
24
|
-
isDynamicMenu?: boolean;
|
|
25
|
-
minAllowedLength?: number;
|
|
26
|
-
customText?: {
|
|
27
|
-
createText: string;
|
|
28
|
-
deleteText: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export declare const MultiSelectDropdown: (props: MultiSelectProps) => JSX.Element;
|
|
32
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './MultiSelectDropdown';
|