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,29 +0,0 @@
|
|
|
1
|
-
import { TimePickerProps as TPP, DateInputProps, DateRangeInputProps } from '@blueprintjs/datetime';
|
|
2
|
-
export declare const ArrowLocation: {
|
|
3
|
-
[key in MonthYearLocation]: 'space-between' | 'end' | 'start';
|
|
4
|
-
};
|
|
5
|
-
export declare type MonthYearLocation = 'start' | 'end' | 'center';
|
|
6
|
-
export declare type DefaultProps = {
|
|
7
|
-
isRequired?: boolean;
|
|
8
|
-
isErrored?: boolean;
|
|
9
|
-
errorText?: string;
|
|
10
|
-
id?: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
label?: string;
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
};
|
|
16
|
-
export declare type DatePickerProps = DefaultProps & Partial<DateInputProps> & {
|
|
17
|
-
displayFormat?: string;
|
|
18
|
-
monthYearLocation?: MonthYearLocation;
|
|
19
|
-
};
|
|
20
|
-
export declare type DateTimePickerProps = DefaultProps & Partial<DateInputProps> & {
|
|
21
|
-
displayFormat?: string;
|
|
22
|
-
monthYearLocation?: MonthYearLocation;
|
|
23
|
-
};
|
|
24
|
-
export declare type TimePickerProps = DefaultProps & TPP & {
|
|
25
|
-
displayFormat?: string;
|
|
26
|
-
};
|
|
27
|
-
export declare type DateRangeickerProps = DefaultProps & Partial<DateRangeInputProps> & {
|
|
28
|
-
displayFormat?: string;
|
|
29
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import FreemiumUIThemes from '../../theme';
|
|
3
|
-
declare type Origin = {
|
|
4
|
-
vertical?: 'top' | 'center' | 'bottom';
|
|
5
|
-
horizontal?: 'left' | 'center' | 'right';
|
|
6
|
-
};
|
|
7
|
-
declare type PopoverProps = {
|
|
8
|
-
onClose?: (event?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
9
|
-
anchorEl?: Element | null | undefined;
|
|
10
|
-
id: string;
|
|
11
|
-
autoCloseDuration?: number;
|
|
12
|
-
hoverOutToClose?: boolean;
|
|
13
|
-
clickOutToClose?: boolean;
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
anchorOrigin?: Origin;
|
|
16
|
-
transformOrigin?: Origin;
|
|
17
|
-
theme?: FreemiumUIThemes;
|
|
18
|
-
};
|
|
19
|
-
export declare const debounce: <F extends (...args: any) => any>(func: F, waitFor: number) => (...args: Parameters<F>) => ReturnType<F>;
|
|
20
|
-
export declare const Popover: (props: PopoverProps) => any;
|
|
21
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Popover';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface RadioButtonProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
3
|
-
checked: boolean;
|
|
4
|
-
onChange?: () => void;
|
|
5
|
-
}
|
|
6
|
-
export declare const Radio: React.ComponentType<Partial<{
|
|
7
|
-
checked: boolean;
|
|
8
|
-
}> & Pick<RadioButtonProps & React.RefAttributes<HTMLInputElement>, "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" | "value" | "width" | "onChange" | "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" | "key">>;
|
|
9
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Radio';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Column, TableState } from 'react-table';
|
|
3
|
-
import FreemiumUIThemes from '../../theme';
|
|
4
|
-
declare type RestTableProps = {
|
|
5
|
-
onRowSelect?: (row: unknown, index: number, checked: boolean) => void;
|
|
6
|
-
onRowClick?: (row: unknown, index: number, checked: boolean) => void;
|
|
7
|
-
onSelectAll?: (checked: boolean) => void;
|
|
8
|
-
columns?: Array<Column<{}>>;
|
|
9
|
-
data?: any[];
|
|
10
|
-
sortable?: boolean;
|
|
11
|
-
stickyHeader?: boolean;
|
|
12
|
-
name?: string;
|
|
13
|
-
id: string;
|
|
14
|
-
paginationOptions?: Array<number>;
|
|
15
|
-
theme?: FreemiumUIThemes;
|
|
16
|
-
initialState?: Partial<TableState>;
|
|
17
|
-
};
|
|
18
|
-
export declare const RestTable: (props: RestTableProps) => JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './RestTable';
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Column, Row, ColumnInstance, Cell, TableCommonProps, TableOptions, UseRowSelectOptions, UsePaginationOptions } from 'react-table';
|
|
3
|
-
import FreemiumUIThemes from '../../theme';
|
|
4
|
-
import { MenuItemProps } from '../Menu';
|
|
5
|
-
declare type TableProps = {
|
|
6
|
-
data: any[];
|
|
7
|
-
columns: Array<Column<any>>;
|
|
8
|
-
count: number;
|
|
9
|
-
pageSize: number;
|
|
10
|
-
pageIndex?: number;
|
|
11
|
-
columnOrder?: string[];
|
|
12
|
-
hiddenColumns?: string[];
|
|
13
|
-
selectedRowIds?: Record<string, boolean>;
|
|
14
|
-
disableSelectMenuOptionIds?: string[];
|
|
15
|
-
hideSelectMenuOptionIds?: string[];
|
|
16
|
-
selectMenuOptions?: MenuItemProps[];
|
|
17
|
-
selectMenuOptionsHandler?: (option: MenuItemProps) => void;
|
|
18
|
-
setPageIndex?: (pageIndex: number) => void | React.Dispatch<React.SetStateAction<number>>;
|
|
19
|
-
setSelectedRowIds?: (selectedRowIds: Record<string, boolean>) => void | React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
20
|
-
onRowClick?: (row: Row, column: ColumnInstance) => void;
|
|
21
|
-
onNextPageClick?: () => void;
|
|
22
|
-
onPreviousPageClick?: () => void;
|
|
23
|
-
rowPropGetter?: (row: Row) => TableCommonProps;
|
|
24
|
-
cellPropGetter?: (cell: Cell) => TableCommonProps;
|
|
25
|
-
rowMenuOptions?: (rowData?: any) => MenuItemProps[];
|
|
26
|
-
onSelectAllRows?: (checked: boolean) => void;
|
|
27
|
-
onRowSelect?: (row: Row, checked: boolean) => void;
|
|
28
|
-
onMenuOptionSelect?: (optionId: string, row: any) => void;
|
|
29
|
-
tableOptions?: Partial<TableOptions<any>> & UseRowSelectOptions<any> & UsePaginationOptions<any>;
|
|
30
|
-
enableNextPage?: boolean;
|
|
31
|
-
enablePreviousPage?: boolean;
|
|
32
|
-
isLoading?: boolean;
|
|
33
|
-
isFetching?: boolean;
|
|
34
|
-
hideActions?: boolean;
|
|
35
|
-
hideFilters?: boolean;
|
|
36
|
-
hideTableOnEmpty?: boolean;
|
|
37
|
-
disableSelectMenuOptions?: boolean;
|
|
38
|
-
disableRowSelect?: boolean;
|
|
39
|
-
hideTopPagination?: boolean;
|
|
40
|
-
showTableOnLoading?: boolean;
|
|
41
|
-
indeterminateCount?: boolean;
|
|
42
|
-
hideSelectAllInTable?: boolean;
|
|
43
|
-
hideBottomPagination?: boolean;
|
|
44
|
-
hideLoaderOnTopPagination?: boolean;
|
|
45
|
-
dataKey?: string;
|
|
46
|
-
loaderStyles?: React.CSSProperties;
|
|
47
|
-
infoComponent?: React.ReactElement;
|
|
48
|
-
actionComponent?: React.ReactElement;
|
|
49
|
-
filterComponent?: React.ReactElement;
|
|
50
|
-
headerComponent?: React.ReactElement;
|
|
51
|
-
emptyComponent?: React.ReactElement;
|
|
52
|
-
loadingComponent?: React.ReactElement;
|
|
53
|
-
theme?: FreemiumUIThemes;
|
|
54
|
-
};
|
|
55
|
-
export declare const Table: (props: TableProps) => JSX.Element;
|
|
56
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Table';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import FreemiumUIThemes from '../../theme';
|
|
3
|
-
export interface TabsItemProps {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
hide?: boolean;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
declare type TabsProps<T extends TabsItemProps = any> = {
|
|
11
|
-
onChange?: (event: React.MouseEvent<HTMLDivElement>, menuItem: T) => void;
|
|
12
|
-
options?: Array<T>;
|
|
13
|
-
idAccessor?: string;
|
|
14
|
-
nameAccessor?: string;
|
|
15
|
-
ref?: React.RefObject<HTMLDivElement>;
|
|
16
|
-
value?: string;
|
|
17
|
-
theme?: FreemiumUIThemes;
|
|
18
|
-
};
|
|
19
|
-
export declare const Tabs: <T extends TabsItemProps = any>(props: TabsProps<T>) => JSX.Element;
|
|
20
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Tabs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Tag';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare type Merge<T1, T2> = Omit<T1, Extract<keyof T1, keyof T2>> & T2;
|
|
3
|
-
export declare type Dict<T = any> = Record<string, T>;
|
|
4
|
-
export interface ThemeProviderProps {
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
globalStyle: boolean;
|
|
7
|
-
theme: Dict;
|
|
8
|
-
}
|
|
9
|
-
export declare function ThemeProvider(props: ThemeProviderProps): JSX.Element;
|
|
10
|
-
export declare function useTheme<T extends object = Dict>(): T;
|
|
11
|
-
export declare type FreemiumUIProviderProps = ThemeProviderProps;
|
|
12
|
-
export declare function FreemiumUIProvider(props: FreemiumUIProviderProps): JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactChild } from 'react';
|
|
2
|
-
declare type ToastType = {
|
|
3
|
-
type: 'success' | 'warning' | 'error';
|
|
4
|
-
title: string;
|
|
5
|
-
description: string;
|
|
6
|
-
id: number;
|
|
7
|
-
};
|
|
8
|
-
declare const ToastWrapper: (props: {
|
|
9
|
-
children: ReactChild;
|
|
10
|
-
}) => JSX.Element;
|
|
11
|
-
declare const useToast: () => (toast: Omit<ToastType, 'id'>) => void;
|
|
12
|
-
export declare const moveRightKeyframe: import("styled-components").Keyframes;
|
|
13
|
-
export default useToast;
|
|
14
|
-
export { ToastWrapper };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface ToggleProps {
|
|
3
|
-
on: boolean;
|
|
4
|
-
handleChange: () => void;
|
|
5
|
-
size: 'sm' | 'md';
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
hasIcon: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const Toggle: React.ComponentType<Partial<{
|
|
10
|
-
on: boolean;
|
|
11
|
-
size: string;
|
|
12
|
-
disabled: boolean;
|
|
13
|
-
hasIcon: boolean;
|
|
14
|
-
}> & Pick<ToggleProps, "handleChange">>;
|
|
15
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Toggle';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TooltipProps as RadixTooltipProps, TooltipProviderProps, TooltipArrowProps } from '@radix-ui/react-tooltip';
|
|
3
|
-
export declare type Position = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
4
|
-
export declare type Theme = 'dark' | 'light';
|
|
5
|
-
export declare type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
6
|
-
export declare type Align = 'start' | 'end' | 'center';
|
|
7
|
-
export declare type TooltipProps = {
|
|
8
|
-
html?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
9
|
-
label?: string;
|
|
10
|
-
position: Position;
|
|
11
|
-
theme?: Theme;
|
|
12
|
-
className?: string;
|
|
13
|
-
style?: React.CSSProperties;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
replaceChild?: boolean;
|
|
16
|
-
tabIndex?: number;
|
|
17
|
-
delay?: number;
|
|
18
|
-
arrow?: boolean;
|
|
19
|
-
children?: React.ReactNode | string | null;
|
|
20
|
-
providerProps?: TooltipProviderProps;
|
|
21
|
-
rootProps?: RadixTooltipProps;
|
|
22
|
-
arrowProps?: TooltipArrowProps;
|
|
23
|
-
};
|
|
24
|
-
export declare const Tooltip: ({ position, label, html, style, children, className, disabled, delay, theme, arrow, replaceChild, providerProps, rootProps, }: TooltipProps) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Tooltip';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { TransitionProps as TProps, TransitionStatus } from 'react-transition-group/Transition';
|
|
3
|
-
export declare type BaseProps = Pick<TProps, 'in' | 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited' | 'unmountOnExit' | 'timeout'>;
|
|
4
|
-
export interface TransitionProps extends BaseProps {
|
|
5
|
-
transition?: string;
|
|
6
|
-
children: (styles: React.CSSProperties) => React.ReactNode;
|
|
7
|
-
styles: TransitionStyles;
|
|
8
|
-
}
|
|
9
|
-
export declare type TransitionStyleState = 'init' | 'entered' | 'exiting';
|
|
10
|
-
export declare type TransitionStyles = {
|
|
11
|
-
[K in TransitionStyleState]?: React.CSSProperties;
|
|
12
|
-
};
|
|
13
|
-
export type { TransitionStatus };
|
|
14
|
-
export declare function Transition(props: TransitionProps): JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TransitionProps } from './Transition';
|
|
3
|
-
export interface SlideFadeProps extends Omit<TransitionProps, 'styles' | 'timeout'> {
|
|
4
|
-
/**
|
|
5
|
-
* The initial offset to slide from
|
|
6
|
-
*/
|
|
7
|
-
initialOffset?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The transition timeout
|
|
10
|
-
*/
|
|
11
|
-
timeout?: number;
|
|
12
|
-
}
|
|
13
|
-
export declare const SlideFade: (props: SlideFadeProps) => JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TransitionProps } from './Transition';
|
|
3
|
-
declare type Placement = 'left' | 'right' | 'bottom' | 'top';
|
|
4
|
-
export declare type SlideProps = Omit<TransitionProps, 'styles' | 'timeout'> & {
|
|
5
|
-
/** The direction to slide drawer from */
|
|
6
|
-
placement?: Placement;
|
|
7
|
-
/** The transition timeout */
|
|
8
|
-
timeout?: number;
|
|
9
|
-
};
|
|
10
|
-
export declare function Slide(props: SlideProps): JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './UiProvider';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './use-toast';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Toast } from './use-toast';
|
|
3
|
-
declare type ToastWithID = Toast & {
|
|
4
|
-
id: string;
|
|
5
|
-
willBeDestroy?: boolean;
|
|
6
|
-
cancel: Function;
|
|
7
|
-
};
|
|
8
|
-
export interface ToastItemProps {
|
|
9
|
-
index: number;
|
|
10
|
-
total: number;
|
|
11
|
-
toast: ToastWithID;
|
|
12
|
-
onHover: boolean;
|
|
13
|
-
}
|
|
14
|
-
declare const ToastItem: React.FC<ToastItemProps>;
|
|
15
|
-
export default ToastItem;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface ToastAction {
|
|
3
|
-
name: string;
|
|
4
|
-
handler: (event: React.MouseEventHandler<HTMLButtonElement>, cancel: Function) => void;
|
|
5
|
-
passive?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare type ToastType = 'info' | 'success' | 'warning' | 'error';
|
|
8
|
-
export interface Toast {
|
|
9
|
-
text?: string | React.ReactNode;
|
|
10
|
-
type?: ToastType;
|
|
11
|
-
customIcon?: any;
|
|
12
|
-
delay?: number;
|
|
13
|
-
fixed?: boolean;
|
|
14
|
-
showProgress?: boolean;
|
|
15
|
-
actions?: Array<ToastAction>;
|
|
16
|
-
}
|
|
17
|
-
export declare const useToasts: () => [Toast[], (t: Toast) => void];
|
package/lib/types/index.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export * from './components/Alert';
|
|
2
|
-
export * from './components/Button';
|
|
3
|
-
export * from './components/Checkbox';
|
|
4
|
-
export * from './components/CssBaseLine';
|
|
5
|
-
export * from './components/Confirmation';
|
|
6
|
-
export * from './components/ControlledTable';
|
|
7
|
-
export * from './components/Drawer';
|
|
8
|
-
export * from './components/ButtonDropdown';
|
|
9
|
-
export * from './components/Icons';
|
|
10
|
-
export * from './components/Tooltip';
|
|
11
|
-
export * from './components/Input';
|
|
12
|
-
export * from './components/Menu';
|
|
13
|
-
export * from './components/Modal';
|
|
14
|
-
export * from './components/MultiSelectDropdown';
|
|
15
|
-
export * from './components/Loader';
|
|
16
|
-
export * from './components/Dropdown';
|
|
17
|
-
export * from './components/Pickers';
|
|
18
|
-
export * from './components/Popover';
|
|
19
|
-
export * from './components/Radio';
|
|
20
|
-
export * from './components/BoxedRadio';
|
|
21
|
-
export * from './components/Table';
|
|
22
|
-
export * from './components/Tabs';
|
|
23
|
-
export * from './components/Tag';
|
|
24
|
-
export * from './components/Toast';
|
|
25
|
-
export * from './components/Toggle';
|
|
26
|
-
export * from './components/Transition';
|
|
27
|
-
export * from './components/UiProvider';
|
|
28
|
-
export * from './components/use-toasts';
|
|
29
|
-
export * from './components/ThemeProvider';
|
|
30
|
-
export * from './theme';
|