@ceed/cds 0.0.149-5 → 0.0.150
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/dist/components/DataTable/DataTable.d.ts +2 -2
- package/dist/components/DataTable/types.d.ts +43 -38
- package/dist/components/DialogFrame/DialogFrame.d.ts +1 -1
- package/dist/components/Markdown/Markdown.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/index.js +1 -1
- package/framer/framer-entrypoint.js +181 -0
- package/framer/index.js +45 -34
- package/package.json +3 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type {
|
|
3
|
-
declare function DataTable<T extends
|
|
2
|
+
import type { DataTableProps } from "./types";
|
|
3
|
+
declare function DataTable<T extends Record<PropertyKey, any>, GetId extends ((row: T) => any) | undefined>(props: DataTableProps<T, GetId>): React.JSX.Element;
|
|
4
4
|
declare namespace DataTable {
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
|
@@ -10,27 +10,32 @@ import Select from "../Select";
|
|
|
10
10
|
export type ObjectLike<V = any> = Record<PropertyKey, V> | {
|
|
11
11
|
[key: PropertyKey]: V;
|
|
12
12
|
};
|
|
13
|
-
type
|
|
13
|
+
type ReturnTypeOrNever<T> = T extends (...args: any[]) => infer R ? R : never;
|
|
14
|
+
type IdPropType<T> = T extends {
|
|
15
|
+
id: infer ID;
|
|
16
|
+
} ? ID : never;
|
|
17
|
+
export type InferredIdType<T, GetId> = GetId extends (row: T) => any ? ReturnTypeOrNever<GetId> : IdPropType<T>;
|
|
18
|
+
type Handler<T extends ObjectLike, ID, V = any, R = any> = (params: V extends never ? {
|
|
14
19
|
row: T;
|
|
15
20
|
value?: V;
|
|
16
|
-
id:
|
|
21
|
+
id: ID;
|
|
17
22
|
} : {
|
|
18
23
|
row: T;
|
|
19
24
|
value: V;
|
|
20
|
-
id:
|
|
25
|
+
id: ID;
|
|
21
26
|
}) => R;
|
|
22
|
-
type EventHandler<T extends ObjectLike, V = any> = (params: {
|
|
27
|
+
type EventHandler<T extends ObjectLike, ID, V = any> = (params: {
|
|
23
28
|
originalRow: T;
|
|
24
29
|
row: T;
|
|
25
30
|
value?: V;
|
|
26
|
-
id:
|
|
31
|
+
id: ID;
|
|
27
32
|
}) => void;
|
|
28
|
-
type ComponentProperties<C extends React.ElementType, T extends ObjectLike, V = any> = ComponentProps<C> | Handler<T, V, ComponentProps<C>>;
|
|
29
|
-
export type RenderCellHandler<T extends ObjectLike, V = any> = Handler<T, V, ReactNode>;
|
|
30
|
-
export type CellEditableHandler<T extends ObjectLike, V = any> = Handler<T, V, boolean>;
|
|
31
|
-
export type CellEditStartEvent<T extends ObjectLike, V = any> = EventHandler<T, V>;
|
|
32
|
-
export type CellEditStopEvent<T extends ObjectLike, V = any> = EventHandler<T, V>;
|
|
33
|
-
export type BaseColumnDef<T extends Record<PropertyKey, V>, V> = {
|
|
33
|
+
type ComponentProperties<C extends React.ElementType, T extends ObjectLike, ID, V = any> = ComponentProps<C> | Handler<T, ID, V, ComponentProps<C>>;
|
|
34
|
+
export type RenderCellHandler<T extends ObjectLike, ID, V = any> = Handler<T, ID, V, ReactNode>;
|
|
35
|
+
export type CellEditableHandler<T extends ObjectLike, ID, V = any> = Handler<T, ID, V, boolean>;
|
|
36
|
+
export type CellEditStartEvent<T extends ObjectLike, ID, V = any> = EventHandler<T, ID, V>;
|
|
37
|
+
export type CellEditStopEvent<T extends ObjectLike, ID, V = any> = EventHandler<T, ID, V>;
|
|
38
|
+
export type BaseColumnDef<T extends Record<PropertyKey, V>, V, ID> = {
|
|
34
39
|
[K in keyof T]: {
|
|
35
40
|
field: K;
|
|
36
41
|
headerName?: string;
|
|
@@ -38,12 +43,12 @@ export type BaseColumnDef<T extends Record<PropertyKey, V>, V> = {
|
|
|
38
43
|
minWidth?: string;
|
|
39
44
|
maxWidth?: string;
|
|
40
45
|
resizable?: boolean;
|
|
41
|
-
renderCell?: RenderCellHandler<T, T[K]>;
|
|
42
|
-
renderEditCell?: RenderCellHandler<T, T[K]>;
|
|
43
|
-
isCellEditable?: CellEditableHandler<T, V> | boolean;
|
|
46
|
+
renderCell?: RenderCellHandler<T, ID, T[K]>;
|
|
47
|
+
renderEditCell?: RenderCellHandler<T, ID, T[K]>;
|
|
48
|
+
isCellEditable?: CellEditableHandler<T, ID, V> | boolean;
|
|
44
49
|
required?: boolean;
|
|
45
|
-
onCellEditStart?: CellEditStartEvent<T, V>;
|
|
46
|
-
onCellEditStop?: CellEditStopEvent<T, V>;
|
|
50
|
+
onCellEditStart?: CellEditStartEvent<T, ID, V>;
|
|
51
|
+
onCellEditStop?: CellEditStopEvent<T, ID, V>;
|
|
47
52
|
sortable?: boolean;
|
|
48
53
|
sortComparator?: (params: {
|
|
49
54
|
rowA: T;
|
|
@@ -52,40 +57,40 @@ export type BaseColumnDef<T extends Record<PropertyKey, V>, V> = {
|
|
|
52
57
|
sortOrder?: Sort[];
|
|
53
58
|
};
|
|
54
59
|
}[keyof T];
|
|
55
|
-
export type AutocompleteColumnDef<T extends Record<PropertyKey, string
|
|
60
|
+
export type AutocompleteColumnDef<T extends Record<PropertyKey, string>, ID> = BaseColumnDef<T, string, ID> & {
|
|
56
61
|
type: "autocomplete";
|
|
57
|
-
componentProps?: ComponentProperties<typeof Autocomplete, T, string>;
|
|
62
|
+
componentProps?: ComponentProperties<typeof Autocomplete, T, InferredIdType<T, ID>, string>;
|
|
58
63
|
};
|
|
59
|
-
export type CurrencyColumnDef<T extends Record<PropertyKey, number
|
|
64
|
+
export type CurrencyColumnDef<T extends Record<PropertyKey, number>, ID> = BaseColumnDef<T, number, ID> & {
|
|
60
65
|
type: "currency";
|
|
61
|
-
componentProps?: ComponentProperties<typeof CurrencyInput, T, number>;
|
|
66
|
+
componentProps?: ComponentProperties<typeof CurrencyInput, T, ID, number>;
|
|
62
67
|
};
|
|
63
|
-
export type DateColumnDef<T extends Record<PropertyKey, string
|
|
68
|
+
export type DateColumnDef<T extends Record<PropertyKey, string>, ID> = BaseColumnDef<T, string, ID> & {
|
|
64
69
|
type: "date";
|
|
65
|
-
componentProps?: ComponentProperties<typeof DatePicker, T, string>;
|
|
70
|
+
componentProps?: ComponentProperties<typeof DatePicker, T, ID, string>;
|
|
66
71
|
};
|
|
67
|
-
export type NumberColumnDef<T extends Record<PropertyKey, number
|
|
72
|
+
export type NumberColumnDef<T extends Record<PropertyKey, number>, ID> = BaseColumnDef<T, number, ID> & {
|
|
68
73
|
type: "number";
|
|
69
|
-
componentProps?: ComponentProperties<typeof Input, T, number>;
|
|
74
|
+
componentProps?: ComponentProperties<typeof Input, T, ID, number>;
|
|
70
75
|
};
|
|
71
|
-
export type TextColumnDef<T extends Record<PropertyKey, string
|
|
76
|
+
export type TextColumnDef<T extends Record<PropertyKey, string>, ID> = BaseColumnDef<T, string, ID> & {
|
|
72
77
|
type?: "text";
|
|
73
|
-
componentProps?: ComponentProperties<typeof Input, T, string>;
|
|
78
|
+
componentProps?: ComponentProperties<typeof Input, T, ID, string>;
|
|
74
79
|
};
|
|
75
|
-
export type LongTextColumnDef<T extends Record<PropertyKey, string
|
|
80
|
+
export type LongTextColumnDef<T extends Record<PropertyKey, string>, ID> = BaseColumnDef<T, string, ID> & {
|
|
76
81
|
type: "longText";
|
|
77
|
-
componentProps?: ComponentProperties<typeof Textarea, T, string>;
|
|
82
|
+
componentProps?: ComponentProperties<typeof Textarea, T, ID, string>;
|
|
78
83
|
};
|
|
79
|
-
export type SelectColumnDef<T extends Record<PropertyKey, string
|
|
84
|
+
export type SelectColumnDef<T extends Record<PropertyKey, string>, ID> = BaseColumnDef<T, string, ID> & {
|
|
80
85
|
type: "select";
|
|
81
|
-
componentProps?: ComponentProperties<typeof Select<string, false>, T, string>;
|
|
86
|
+
componentProps?: ComponentProperties<typeof Select<string, false>, T, ID, string>;
|
|
82
87
|
};
|
|
83
|
-
export type LinkColumnDef<T extends Record<PropertyKey, string>, C extends React.ElementType = typeof Link> = BaseColumnDef<T, string> & {
|
|
88
|
+
export type LinkColumnDef<T extends Record<PropertyKey, string>, ID, C extends React.ElementType = typeof Link> = BaseColumnDef<T, string, ID> & {
|
|
84
89
|
type: "link";
|
|
85
90
|
component?: C;
|
|
86
|
-
componentProps?: ComponentProperties<C, T, string>;
|
|
91
|
+
componentProps?: ComponentProperties<C, T, ID, string>;
|
|
87
92
|
};
|
|
88
|
-
export type ColumnDef<T extends Record<PropertyKey, any
|
|
93
|
+
export type ColumnDef<T extends Record<PropertyKey, any>, ID = unknown> = AutocompleteColumnDef<T, ID> | CurrencyColumnDef<T, ID> | DateColumnDef<T, ID> | NumberColumnDef<T, ID> | TextColumnDef<T, ID> | LongTextColumnDef<T, ID> | LinkColumnDef<T, ID> | SelectColumnDef<T, ID>;
|
|
89
94
|
export type Sort = "asc" | "desc" | null;
|
|
90
95
|
export type SortModel<T extends Record<PropertyKey, any>> = {
|
|
91
96
|
[K in keyof T]: {
|
|
@@ -93,16 +98,16 @@ export type SortModel<T extends Record<PropertyKey, any>> = {
|
|
|
93
98
|
sort: Sort;
|
|
94
99
|
};
|
|
95
100
|
}[keyof T];
|
|
96
|
-
export type DataTableProps<T extends Record<PropertyKey, any
|
|
101
|
+
export type DataTableProps<T extends Record<PropertyKey, any>, GetId extends ((row: T) => any) | undefined> = {
|
|
97
102
|
rows: T[];
|
|
98
103
|
checkboxSelection?: boolean;
|
|
99
|
-
columns: ColumnDef<T
|
|
104
|
+
columns: ColumnDef<T, InferredIdType<T, GetId>>[];
|
|
100
105
|
editMode?: boolean;
|
|
101
106
|
/**
|
|
102
107
|
* 체크박스가 있는 경우, 체크박스를 클릭했을 때 선택된 row의 index를 지정한다.
|
|
103
108
|
*/
|
|
104
|
-
selectionModel?:
|
|
105
|
-
onSelectionModelChange?: (newSelectionModel:
|
|
109
|
+
selectionModel?: InferredIdType<T, GetId>[];
|
|
110
|
+
onSelectionModelChange?: (newSelectionModel: InferredIdType<T, GetId>[],
|
|
106
111
|
/**
|
|
107
112
|
* Total Select를 클릭한 경우에만 값이 true/false로 들어온다.
|
|
108
113
|
* MUI에는 없는 인터페이스지만 Total Select 기능이 추가되었기 때문에 추가해야했다.
|
|
@@ -132,7 +137,7 @@ export type DataTableProps<T extends Record<PropertyKey, any>> = {
|
|
|
132
137
|
*/
|
|
133
138
|
rowCount?: number;
|
|
134
139
|
loading?: boolean;
|
|
135
|
-
getId?:
|
|
140
|
+
getId?: GetId;
|
|
136
141
|
/**
|
|
137
142
|
* 기본적으로 Uncontrolled로 작동하지만, Controlled로 작동하게 하고 싶을 때 사용한다.
|
|
138
143
|
* 이 값이 true이면, 현재 페이지 이외에도 존재하는 모든 데이터가 선택된것으로 간주하고 동작한다.
|
|
@@ -18,5 +18,5 @@ declare const DialogFrame: React.ForwardRefExoticComponent<Omit<Omit<Pick<{
|
|
|
18
18
|
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").ModalDialogPropsVariantOverrides> | undefined;
|
|
19
19
|
} & import("@mui/joy").ModalDialogSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
20
20
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
21
|
-
}, "children" | "layout" | "color" | "maxWidth" | "minWidth" | "variant" | "sx" | "size" | "orientation" | "invertedColors" | keyof import("@mui/joy").ModalDialogSlotsAndSlotProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme>, "style" | "title" | "children" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "layout" | "color" | "content" | "maxWidth" | "minWidth" | "translate" | "ref" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "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-rowindextext" | "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" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "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" | "
|
|
21
|
+
}, "children" | "layout" | "color" | "maxWidth" | "minWidth" | "variant" | "sx" | "size" | "orientation" | "invertedColors" | keyof import("@mui/joy").ModalDialogSlotsAndSlotProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme>, "style" | "title" | "children" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "layout" | "color" | "content" | "maxWidth" | "minWidth" | "translate" | "ref" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "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-rowindextext" | "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" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "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" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "size" | "orientation" | "invertedColors" | keyof import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme> | keyof import("@mui/joy").ModalDialogSlotsAndSlotProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme>, "title" | "children"> & DialogFrameProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
22
22
|
export { DialogFrame };
|
|
@@ -25,7 +25,7 @@ declare const Markdown: {
|
|
|
25
25
|
defaultLevel?: "marketing-lg" | "marketing-md" | "marketing-sm" | "title-lg" | "title-md" | "title-sm" | "body-lg" | "body-md" | "body-sm" | "body-xs" | undefined;
|
|
26
26
|
accentColor?: TextColor | undefined;
|
|
27
27
|
defaultLinkAction?: "_self" | "_blank" | "_parent" | "_top" | "_unfencedTop" | undefined;
|
|
28
|
-
markdownOptions?: import("react-markdown
|
|
28
|
+
markdownOptions?: import("react-markdown").Options | undefined;
|
|
29
29
|
}): React.JSX.Element;
|
|
30
30
|
displayName: string;
|
|
31
31
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const Modal: import("framer-motion").CustomDomComponent<Pick<import("@mui/base").ModalOwnProps, "children" | "container" | "open" | "disablePortal" | "keepMounted" | "disableAutoFocus" | "disableEnforceFocus" | "disableRestoreFocus" | "disableEscapeKeyDown" | "disableScrollLock" | "hideBackdrop"> & {
|
|
3
|
-
onClose?: ((event: {}, reason: "
|
|
3
|
+
onClose?: ((event: {}, reason: "escapeKeyDown" | "backdropClick" | "closeClick") => void) | undefined;
|
|
4
4
|
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
5
5
|
} & import("@mui/joy").ModalSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
6
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|