@cp949/mui-react19 2.0.2 → 2.1.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/LICENSE +21 -0
- package/README.md +12 -3
- package/dist/closables-CeOGJV-d.d.cts +136 -0
- package/dist/closables-CeOGJV-d.d.ts +136 -0
- package/dist/file-drop/index.cjs +1 -1
- package/dist/file-drop/index.cjs.map +1 -1
- package/dist/file-drop/index.d.cts +224 -217
- package/dist/file-drop/index.d.ts +224 -217
- package/dist/file-drop/index.js +1 -1
- package/dist/file-drop/index.js.map +1 -1
- package/dist/helper/index.cjs +1 -1
- package/dist/helper/index.cjs.map +1 -1
- package/dist/helper/index.d.cts +22 -38
- package/dist/helper/index.d.ts +22 -38
- package/dist/helper/index.js +1 -1
- package/dist/helper/index.js.map +1 -1
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +439 -305
- package/dist/hooks/index.d.ts +439 -305
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1150 -737
- package/dist/index.d.ts +1150 -737
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/misc-utils-B2de-HS4.cjs +2 -0
- package/dist/misc-utils-B2de-HS4.cjs.map +1 -0
- package/dist/misc-utils-BXQ8UU0R.js +2 -0
- package/dist/misc-utils-BXQ8UU0R.js.map +1 -0
- package/dist/parallel-map-DyuHvxYY.js +2 -0
- package/dist/parallel-map-DyuHvxYY.js.map +1 -0
- package/dist/parallel-map-_ZhC5iBn.cjs +2 -0
- package/dist/parallel-map-_ZhC5iBn.cjs.map +1 -0
- package/dist/rolldown-runtime-Chgba0Kb.cjs +1 -0
- package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
- package/llm.txt +350 -0
- package/package.json +31 -28
- package/dist/chunk-4C666HHU.js +0 -2
- package/dist/chunk-4C666HHU.js.map +0 -1
- package/dist/chunk-DGBGKY22.cjs +0 -2
- package/dist/chunk-DGBGKY22.cjs.map +0 -1
- package/dist/chunk-J5UGIABI.js +0 -2
- package/dist/chunk-J5UGIABI.js.map +0 -1
- package/dist/chunk-M4G6J7DP.cjs +0 -2
- package/dist/chunk-M4G6J7DP.cjs.map +0 -1
- package/dist/closables-BK0Db72u.d.cts +0 -135
- package/dist/closables-BK0Db72u.d.ts +0 -135
- package/dist/parallel-map-M764G6IE.js +0 -2
- package/dist/parallel-map-M764G6IE.js.map +0 -1
- package/dist/parallel-map-V2OVUIFQ.cjs +0 -2
- package/dist/parallel-map-V2OVUIFQ.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,143 +1,151 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { CSSProperties,
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import { t as Closables } from "./closables-CeOGJV-d.cjs";
|
|
2
|
+
import { SxProps, Theme } from "@mui/material/styles";
|
|
3
|
+
import { CSSProperties, FC, FunctionComponent, MouseEventHandler, ReactElement, ReactNode, Ref } from "react";
|
|
4
|
+
import { BoxProps } from "@mui/material/Box";
|
|
5
|
+
import { StackProps } from "@mui/material/Stack";
|
|
6
|
+
import { ButtonProps } from "@mui/material/Button";
|
|
7
|
+
import { ButtonBaseProps } from "@mui/material/ButtonBase";
|
|
8
|
+
import { IconButtonProps } from "@mui/material/IconButton";
|
|
9
|
+
import { TableBodyProps } from "@mui/material/TableBody";
|
|
10
|
+
import { GridProps } from "@mui/material/Grid";
|
|
11
|
+
import { TypographyProps } from "@mui/material/Typography";
|
|
12
|
+
import { PaginationProps } from "@mui/material/Pagination";
|
|
13
|
+
import { PaperProps as PaperProps$1 } from "@mui/material/Paper";
|
|
14
|
+
import { TextFieldProps } from "@mui/material/TextField";
|
|
15
|
+
//#region src/components/bottom-absolute/BottomAbsoluteCenter.d.ts
|
|
7
16
|
interface BottomAbsoluteCenterProps extends BoxProps {
|
|
8
|
-
|
|
9
|
-
|
|
17
|
+
fullWidth?: boolean;
|
|
18
|
+
bottom?: CSSProperties['bottom'];
|
|
10
19
|
}
|
|
11
|
-
declare const BottomAbsoluteCenter:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
|
|
20
|
+
declare const BottomAbsoluteCenter: FunctionComponent<BottomAbsoluteCenterProps>;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/bottom-absolute/BottomAbsoluteLeft.d.ts
|
|
16
23
|
interface BottomAbsoluteLeftProps extends BoxProps {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
24
|
+
fullWidth?: boolean;
|
|
25
|
+
bottom?: CSSProperties['bottom'];
|
|
26
|
+
left?: CSSProperties['left'];
|
|
20
27
|
}
|
|
21
|
-
declare const BottomAbsoluteLeft:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
|
|
28
|
+
declare const BottomAbsoluteLeft: FunctionComponent<BottomAbsoluteLeftProps>;
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/components/bottom-absolute/BottomAbsoluteRight.d.ts
|
|
26
31
|
interface BottomAbsoluteRightProps extends BoxProps {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
fullWidth?: boolean;
|
|
33
|
+
bottom?: CSSProperties['bottom'];
|
|
34
|
+
right?: CSSProperties['right'];
|
|
30
35
|
}
|
|
31
|
-
declare const BottomAbsoluteRight:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
right?: CSSProperties['right'];
|
|
39
|
-
bottom?: CSSProperties['bottom'];
|
|
36
|
+
declare const BottomAbsoluteRight: FunctionComponent<BottomAbsoluteRightProps>;
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/components/bottom-absolute/BottomAbsolute.d.ts
|
|
39
|
+
export interface BottomAbsoluteProps extends BoxProps {
|
|
40
|
+
left?: CSSProperties['left'];
|
|
41
|
+
right?: CSSProperties['right'];
|
|
42
|
+
bottom?: CSSProperties['bottom'];
|
|
40
43
|
}
|
|
41
44
|
interface BottomAbsoluteComponent extends React.FunctionComponent<BottomAbsoluteProps> {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
declare const BottomAbsolute: BottomAbsoluteComponent;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
45
|
+
Left: typeof BottomAbsoluteLeft;
|
|
46
|
+
Right: typeof BottomAbsoluteRight;
|
|
47
|
+
Center: typeof BottomAbsoluteCenter;
|
|
48
|
+
}
|
|
49
|
+
export declare const BottomAbsolute: BottomAbsoluteComponent;
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/components/Center.d.ts
|
|
52
|
+
export interface CenterProps extends Omit<StackProps, 'direction'> {
|
|
53
|
+
vertical?: boolean;
|
|
54
|
+
}
|
|
55
|
+
export declare const Center: {
|
|
56
|
+
({ vertical, sx, ref, ...props }: CenterProps): import("react").JSX.Element;
|
|
57
|
+
displayName: string;
|
|
54
58
|
};
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/components/CooldownButton.d.ts
|
|
61
|
+
export interface CooldownButtonProps extends ButtonProps {
|
|
62
|
+
/**
|
|
63
|
+
* Cooldown duration in milliseconds
|
|
64
|
+
*/
|
|
65
|
+
cooldown?: number;
|
|
66
|
+
}
|
|
67
|
+
export declare const CooldownButton: {
|
|
68
|
+
({ cooldown, onClick, disabled, ref, ...props }: CooldownButtonProps): import("react").JSX.Element;
|
|
69
|
+
displayName: string;
|
|
65
70
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/components/CooldownButtonBase.d.ts
|
|
73
|
+
export interface CooldownButtonBaseProps extends ButtonBaseProps {
|
|
74
|
+
/**
|
|
75
|
+
* Cooldown duration in milliseconds
|
|
76
|
+
*/
|
|
77
|
+
cooldown?: number;
|
|
78
|
+
}
|
|
79
|
+
export declare const CooldownButtonBase: {
|
|
80
|
+
({ cooldown, onClick, disabled, ref, ...props }: CooldownButtonBaseProps): import("react").JSX.Element;
|
|
81
|
+
displayName: string;
|
|
76
82
|
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/components/CooldownIconButton.d.ts
|
|
85
|
+
export interface CooldownIconButtonProps extends IconButtonProps {
|
|
86
|
+
/**
|
|
87
|
+
* Cooldown duration in milliseconds
|
|
88
|
+
*/
|
|
89
|
+
cooldown?: number;
|
|
90
|
+
}
|
|
91
|
+
export declare const CooldownIconButton: {
|
|
92
|
+
({ cooldown, onClick, disabled, ref, ...props }: CooldownIconButtonProps): import("react").JSX.Element;
|
|
93
|
+
displayName: string;
|
|
87
94
|
};
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/components/CopyButtonWrapper.d.ts
|
|
97
|
+
export interface CopyButtonWrapperProps {
|
|
98
|
+
/**
|
|
99
|
+
* 자식 컴포넌트 렌더링을 위한 콜백 함수입니다.
|
|
100
|
+
* 현재 복사 상태(`copied`)와 복사 함수(`copy`)를 인자로 제공합니다.
|
|
101
|
+
*
|
|
102
|
+
* @param payload - 현재 상태 및 복사 함수
|
|
103
|
+
* @param payload.copied - 복사 성공 여부를 나타내는 상태
|
|
104
|
+
* @param payload.copy - 값을 클립보드에 복사하는 함수
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* ```tsx
|
|
108
|
+
* <CopyButtonWrapper value="복사할 텍스트">
|
|
109
|
+
* {({ copy, copied }) => (
|
|
110
|
+
* <button onClick={copy}>
|
|
111
|
+
* {copied ? "복사 완료!" : "복사하기"}
|
|
112
|
+
* </button>
|
|
113
|
+
* )}
|
|
114
|
+
* </CopyButtonWrapper>
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
children: (payload: {
|
|
118
|
+
copied: boolean;
|
|
119
|
+
copy: () => void;
|
|
120
|
+
}) => ReactNode;
|
|
121
|
+
/**
|
|
122
|
+
* 버튼 클릭 시 클립보드에 복사될 값입니다.
|
|
123
|
+
* 문자열 또는 문자열을 반환하는 함수 형태를 지원합니다.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```tsx
|
|
127
|
+
* <CopyButtonWrapper value="복사할 텍스트">
|
|
128
|
+
* ...
|
|
129
|
+
* </CopyButtonWrapper>
|
|
130
|
+
*
|
|
131
|
+
* <CopyButtonWrapper value={() => dynamicValue()}>
|
|
132
|
+
* ...
|
|
133
|
+
* </CopyButtonWrapper>
|
|
134
|
+
* ```
|
|
135
|
+
*/
|
|
136
|
+
value: string | null | undefined | (() => string | null | undefined);
|
|
137
|
+
/**
|
|
138
|
+
* 복사 성공 상태가 유지되는 시간(밀리초)입니다. 기본값은 `1000`ms입니다.
|
|
139
|
+
*
|
|
140
|
+
* @default 1000
|
|
141
|
+
*/
|
|
142
|
+
timeout?: number;
|
|
143
|
+
/**
|
|
144
|
+
* 클립보드 복사가 성공했을 때 호출되는 콜백 함수입니다.
|
|
145
|
+
*
|
|
146
|
+
* @param value - 클립보드에 복사된 문자열
|
|
147
|
+
*/
|
|
148
|
+
onCopySuccess?: (value: string) => void;
|
|
141
149
|
}
|
|
142
150
|
/**
|
|
143
151
|
* 클립보드 복사 버튼을 쉽게 구현하기 위한 래퍼 컴포넌트입니다.
|
|
@@ -156,75 +164,75 @@ interface CopyButtonWrapperProps {
|
|
|
156
164
|
* </CopyButtonWrapper>
|
|
157
165
|
* ```
|
|
158
166
|
*/
|
|
159
|
-
declare function CopyButtonWrapper(props: CopyButtonWrapperProps): react.JSX.Element;
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
167
|
+
export declare function CopyButtonWrapper(props: CopyButtonWrapperProps): import("react").JSX.Element;
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region src/components/CustomTableBody.d.ts
|
|
170
|
+
export interface CustomTableBodyProps extends TableBodyProps {
|
|
171
|
+
loading?: boolean;
|
|
172
|
+
stripe?: boolean;
|
|
164
173
|
}
|
|
165
|
-
declare function CustomTableBody(props: CustomTableBodyProps): react.JSX.Element;
|
|
166
|
-
|
|
174
|
+
export declare function CustomTableBody(props: CustomTableBodyProps): import("react").JSX.Element;
|
|
175
|
+
//#endregion
|
|
176
|
+
//#region src/components/center-absolute/CenterAbsoluteCenter.d.ts
|
|
167
177
|
interface CenterAbsoluteCenterProps extends BoxProps {
|
|
168
|
-
|
|
178
|
+
fullWidth?: boolean;
|
|
169
179
|
}
|
|
170
|
-
declare const CenterAbsoluteCenter:
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
};
|
|
174
|
-
|
|
180
|
+
declare const CenterAbsoluteCenter: FunctionComponent<CenterAbsoluteCenterProps>;
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region src/components/center-absolute/CenterAbsoluteLeft.d.ts
|
|
175
183
|
interface CenterAbsoluteLeftProps extends BoxProps {
|
|
176
|
-
|
|
177
|
-
|
|
184
|
+
left?: CSSProperties['left'];
|
|
185
|
+
fullWidth?: boolean;
|
|
178
186
|
}
|
|
179
|
-
declare const CenterAbsoluteLeft:
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
};
|
|
183
|
-
|
|
187
|
+
declare const CenterAbsoluteLeft: FunctionComponent<CenterAbsoluteLeftProps>;
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region src/components/center-absolute/CenterAbsoluteRight.d.ts
|
|
184
190
|
interface CenterAbsoluteRightProps extends BoxProps {
|
|
185
|
-
|
|
186
|
-
|
|
191
|
+
right?: CSSProperties['right'];
|
|
192
|
+
fullWidth?: boolean;
|
|
187
193
|
}
|
|
188
|
-
declare const CenterAbsoluteRight:
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
left?: CSSProperties['left'];
|
|
195
|
-
right?: CSSProperties['right'];
|
|
194
|
+
declare const CenterAbsoluteRight: FunctionComponent<CenterAbsoluteRightProps>;
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region src/components/center-absolute/CenterAbsolute.d.ts
|
|
197
|
+
export interface CenterAbsoluteProps extends BoxProps {
|
|
198
|
+
left?: CSSProperties['left'];
|
|
199
|
+
right?: CSSProperties['right'];
|
|
196
200
|
}
|
|
197
201
|
interface CenterAbsoluteComponent extends React.FunctionComponent<CenterAbsoluteProps> {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
202
|
-
declare const CenterAbsolute: CenterAbsoluteComponent;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
202
|
+
Left: typeof CenterAbsoluteLeft;
|
|
203
|
+
Right: typeof CenterAbsoluteRight;
|
|
204
|
+
Center: typeof CenterAbsoluteCenter;
|
|
205
|
+
}
|
|
206
|
+
export declare const CenterAbsolute: CenterAbsoluteComponent;
|
|
207
|
+
//#endregion
|
|
208
|
+
//#region src/components/DebouncedButton.d.ts
|
|
209
|
+
export interface DebouncedButtonProps extends ButtonProps {
|
|
210
|
+
/**
|
|
211
|
+
* Debounce duration in milliseconds
|
|
212
|
+
*/
|
|
213
|
+
debounce?: number;
|
|
214
|
+
}
|
|
215
|
+
export declare const DebouncedButton: ({ debounce, onClick, disabled, children, ref, ...props }: DebouncedButtonProps) => import("react").JSX.Element;
|
|
216
|
+
//#endregion
|
|
217
|
+
//#region src/components/DebouncedButtonBase.d.ts
|
|
218
|
+
export interface DebouncedButtonBaseProps extends ButtonBaseProps {
|
|
219
|
+
/**
|
|
220
|
+
* Debounce duration in milliseconds
|
|
221
|
+
*/
|
|
222
|
+
debounce?: number;
|
|
223
|
+
}
|
|
224
|
+
export declare const DebouncedButtonBase: ({ debounce, onClick, disabled, children, ref, ...props }: DebouncedButtonBaseProps) => import("react").JSX.Element;
|
|
225
|
+
//#endregion
|
|
226
|
+
//#region src/components/DebouncedIconButton.d.ts
|
|
227
|
+
export interface DebouncedIconButtonProps extends IconButtonProps {
|
|
228
|
+
/**
|
|
229
|
+
* Debounce duration in milliseconds
|
|
230
|
+
*/
|
|
231
|
+
debounce?: number;
|
|
232
|
+
}
|
|
233
|
+
export declare const DebouncedIconButton: ({ debounce, onClick, disabled, ref, ...props }: DebouncedIconButtonProps) => import("react").JSX.Element;
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region src/components/DebouncedRender.d.ts
|
|
228
236
|
/**
|
|
229
237
|
* @example
|
|
230
238
|
* ```tsx
|
|
@@ -245,80 +253,113 @@ declare const DebouncedIconButton: ({ debounce, onClick, disabled, ref, ...props
|
|
|
245
253
|
*
|
|
246
254
|
* @returns DebouncedRender 컴포넌트
|
|
247
255
|
*/
|
|
248
|
-
interface DebouncedRenderProps {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}
|
|
254
|
-
declare const DebouncedRender: FC<DebouncedRenderProps>;
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
256
|
+
export interface DebouncedRenderProps {
|
|
257
|
+
children: ReactNode;
|
|
258
|
+
leading?: boolean;
|
|
259
|
+
trailing?: boolean;
|
|
260
|
+
maxWait?: number;
|
|
261
|
+
}
|
|
262
|
+
export declare const DebouncedRender: FC<DebouncedRenderProps>;
|
|
263
|
+
//#endregion
|
|
264
|
+
//#region src/components/DelayedRender.d.ts
|
|
265
|
+
/**
|
|
266
|
+
* 지연 렌더링 컴포넌트의 속성입니다.
|
|
267
|
+
*/
|
|
268
|
+
export interface DelayedRenderProps {
|
|
269
|
+
/**
|
|
270
|
+
* 자식을 렌더링하기 전에 기다릴 시간(ms)입니다.
|
|
271
|
+
* 0 이하이면 지연 없이 바로 렌더링합니다. 기본값: 500
|
|
272
|
+
*/
|
|
273
|
+
delayMs?: number;
|
|
274
|
+
/** 지연 후 표시할 콘텐츠입니다. */
|
|
275
|
+
children: ReactNode;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* 마운트 후 `delayMs`가 지나면 자식을 렌더링합니다.
|
|
279
|
+
*
|
|
280
|
+
* 빈 목록 안내처럼 로딩이 짧게 끝나면 보이지 않아도 되는 UI의 깜빡임을 줄일 때 씁니다.
|
|
281
|
+
* 지연 중에는 아무것도 렌더링하지 않습니다.
|
|
282
|
+
*
|
|
283
|
+
* - `delayMs`가 바뀌면 자식을 숨기고 새 지연 시간부터 다시 센다.
|
|
284
|
+
* - 한 번 표시된 뒤 `children`이 바뀌면 지연 없이 반영한다.
|
|
285
|
+
* - 지연 없이 보이려면 `delayMs={0}`을 지정한다.
|
|
286
|
+
*
|
|
287
|
+
* @example
|
|
288
|
+
* ```tsx
|
|
289
|
+
* <DelayedRender delayMs={300}>
|
|
290
|
+
* <EmptyView />
|
|
291
|
+
* </DelayedRender>
|
|
292
|
+
* ```
|
|
293
|
+
*/
|
|
294
|
+
export declare function DelayedRender(props: DelayedRenderProps): ReactNode;
|
|
295
|
+
//#endregion
|
|
296
|
+
//#region src/components/FileButton.d.ts
|
|
297
|
+
export interface FileButtonProps<Multiple extends boolean = false> {
|
|
298
|
+
/**
|
|
299
|
+
* 파일이 선택되었을 때 호출되는 콜백 함수입니다.
|
|
300
|
+
*
|
|
301
|
+
* @param payload - 선택된 파일 또는 파일 배열 (다중 파일 선택 여부에 따라 달라짐)
|
|
302
|
+
*/
|
|
303
|
+
onChange: (payload: Multiple extends true ? File[] : File) => void;
|
|
304
|
+
/**
|
|
305
|
+
* 버튼 렌더링에 필요한 속성을 제공하는 콜백 함수입니다.
|
|
306
|
+
*
|
|
307
|
+
* @param props - 렌더링할 버튼의 속성
|
|
308
|
+
* @param props.onClick - 파일 선택 다이얼로그를 여는 함수
|
|
309
|
+
*
|
|
310
|
+
* @returns React 노드
|
|
311
|
+
*/
|
|
312
|
+
children: (props: {
|
|
313
|
+
onClick: () => void;
|
|
314
|
+
}) => ReactNode;
|
|
315
|
+
/**
|
|
316
|
+
* 사용자가 여러 파일을 선택할 수 있는지 여부를 결정합니다.
|
|
317
|
+
*
|
|
318
|
+
* @default false
|
|
319
|
+
*/
|
|
320
|
+
multiple?: Multiple;
|
|
321
|
+
/**
|
|
322
|
+
* 파일 입력의 `accept` 속성입니다.
|
|
323
|
+
* 선택할 수 있는 파일 유형을 지정합니다.
|
|
324
|
+
*
|
|
325
|
+
* @example "image/png,image/jpeg"
|
|
326
|
+
*/
|
|
327
|
+
accept?: string;
|
|
328
|
+
/**
|
|
329
|
+
* 파일 입력의 `name` 속성입니다.
|
|
330
|
+
*/
|
|
331
|
+
name?: string;
|
|
332
|
+
/**
|
|
333
|
+
* 파일 입력의 `form` 속성입니다.
|
|
334
|
+
*/
|
|
335
|
+
form?: string;
|
|
336
|
+
/**
|
|
337
|
+
* 값이 `null` 또는 빈 배열로 변경될 때 호출되는 함수의 참조입니다.
|
|
338
|
+
*/
|
|
339
|
+
resetRef?: React.ForwardedRef<() => void>;
|
|
340
|
+
/**
|
|
341
|
+
* 파일 선택기를 비활성화합니다.
|
|
342
|
+
*
|
|
343
|
+
* @default false
|
|
344
|
+
*/
|
|
345
|
+
disabled?: boolean;
|
|
346
|
+
/**
|
|
347
|
+
* 새 파일을 캡처할 때 사용할 장치를 지정합니다.
|
|
348
|
+
*
|
|
349
|
+
* @example "user" (사용자 측 카메라), "environment" (환경 카메라)
|
|
350
|
+
*/
|
|
351
|
+
capture?: boolean | 'user' | 'environment';
|
|
352
|
+
/**
|
|
353
|
+
* 파일 입력 요소에 전달할 추가 속성입니다.
|
|
354
|
+
*/
|
|
355
|
+
inputProps?: React.ComponentPropsWithoutRef<'input'>;
|
|
356
|
+
/**
|
|
357
|
+
* 내부 파일 입력(`<input type="file">`) 요소로 전달되는 참조입니다.
|
|
358
|
+
*/
|
|
359
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
319
360
|
}
|
|
320
361
|
type FileButtonComponent = (<Multiple extends boolean = false>(props: FileButtonProps<Multiple>) => React.ReactElement) & {
|
|
321
|
-
|
|
362
|
+
displayName?: string;
|
|
322
363
|
};
|
|
323
364
|
/**
|
|
324
365
|
* 파일 선택 버튼 컴포넌트입니다.
|
|
@@ -335,32 +376,33 @@ type FileButtonComponent = (<Multiple extends boolean = false>(props: FileButton
|
|
|
335
376
|
* </FileButton>
|
|
336
377
|
* ```
|
|
337
378
|
*/
|
|
338
|
-
declare const FileButton: FileButtonComponent;
|
|
339
|
-
|
|
379
|
+
export declare const FileButton: FileButtonComponent;
|
|
380
|
+
//#endregion
|
|
381
|
+
//#region src/components/FlexItemsContainer.d.ts
|
|
340
382
|
/**
|
|
341
383
|
* `FlexItemsContainer`의 속성을 정의하는 인터페이스
|
|
342
384
|
*
|
|
343
385
|
* @template TItem - 리스트 아이템의 타입
|
|
344
386
|
*/
|
|
345
|
-
type FlexItemsContainerProps<TItem> = Omit<GridProps, 'container' | 'children'> & {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
387
|
+
export type FlexItemsContainerProps<TItem> = Omit<GridProps, 'container' | 'children'> & {
|
|
388
|
+
/** 렌더링할 아이템 배열 */
|
|
389
|
+
items: readonly TItem[];
|
|
390
|
+
/** 각 아이템의 고유 키를 반환하는 함수 */
|
|
391
|
+
getItemKey: (item: TItem, index: number) => string | number;
|
|
392
|
+
/** 각 아이템의 크기(size)를 결정하는 함수 (선택적) */
|
|
393
|
+
getItemSize?: (item: TItem, index: number) => GridProps['size'] | undefined;
|
|
394
|
+
/** 특정 아이템이 줄 바꿈 요소인지 확인하는 함수 (선택적) */
|
|
395
|
+
isLineBreakItem?: (item: TItem, index: number) => boolean;
|
|
396
|
+
/** 줄 바꿈을 그룹화하는 함수 (선택적) */
|
|
397
|
+
lineBreakGroup?: (item: TItem, index: number) => unknown;
|
|
398
|
+
/** 특정 아이템 전에 줄 바꿈을 적용할지 결정하는 함수 (선택적) */
|
|
399
|
+
breakBefore?: (item: TItem, index: number) => boolean;
|
|
400
|
+
/** 특정 아이템 후에 줄 바꿈을 적용할지 결정하는 함수 (선택적) */
|
|
401
|
+
breakAfter?: (item: TItem, index: number) => boolean;
|
|
402
|
+
/** 각 아이템을 렌더링하는 함수 */
|
|
403
|
+
children: (item: TItem, index: number) => ReactNode;
|
|
404
|
+
/** 줄 바꿈의 높이 (예: `16px`, `1.5rem`, 숫자 등) */
|
|
405
|
+
lineBreakHeight?: number | string;
|
|
364
406
|
};
|
|
365
407
|
/**
|
|
366
408
|
* `FlexItemsContainer`는 리스트 아이템을 유연하게 배치하는 컨테이너입니다.
|
|
@@ -379,89 +421,95 @@ type FlexItemsContainerProps<TItem> = Omit<GridProps, 'container' | 'children'>
|
|
|
379
421
|
* </FlexItemsContainer>
|
|
380
422
|
* ```
|
|
381
423
|
*/
|
|
382
|
-
declare function FlexItemsContainer<TItem>(props: FlexItemsContainerProps<TItem>): ReactElement | null;
|
|
383
|
-
declare namespace FlexItemsContainer {
|
|
384
|
-
|
|
424
|
+
export declare function FlexItemsContainer<TItem>(props: FlexItemsContainerProps<TItem>): ReactElement | null;
|
|
425
|
+
export declare namespace FlexItemsContainer {
|
|
426
|
+
var displayName: string;
|
|
385
427
|
}
|
|
386
|
-
|
|
428
|
+
//#endregion
|
|
429
|
+
//#region src/components/FloatingIndicator/FloatingIndicator.d.ts
|
|
387
430
|
/**
|
|
388
431
|
* FloatingIndicator 컴포넌트의 속성 타입입니다.
|
|
389
432
|
*/
|
|
390
|
-
interface FloatingIndicatorProps extends BoxProps {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
433
|
+
export interface FloatingIndicatorProps extends BoxProps {
|
|
434
|
+
/** 인디케이터가 표시될 대상 요소 */
|
|
435
|
+
target: HTMLElement | null | undefined;
|
|
436
|
+
/** 인디케이터의 위치를 기준으로 계산할 부모 요소 */
|
|
437
|
+
parent: HTMLElement | null | undefined;
|
|
438
|
+
/** 전환 시간(ms), 기본값은 150ms */
|
|
439
|
+
transitionDuration?: number | string;
|
|
440
|
+
/** 인디케이터가 전환이 끝난 후에 표시되는지 여부 (transform: scale(n) 스타일이 적용된 컨테이너 내부에서 사용 시 설정해야 함) */
|
|
441
|
+
displayAfterTransitionEnd?: boolean;
|
|
442
|
+
/**
|
|
443
|
+
* 대상 요소의 보더 두께를 제외하여 인디케이터 크기를 계산할지 여부
|
|
444
|
+
* 기본적으로는 대상 요소의 보더를 포함한 크기로 계산됩니다.
|
|
445
|
+
*/
|
|
446
|
+
excludeTargetBorderWidth?: boolean;
|
|
404
447
|
}
|
|
405
448
|
/**
|
|
406
449
|
* 주어진 `target`과 `parent` 요소를 기준으로 인디케이터를 화면에 표시하는 컴포넌트입니다.
|
|
407
450
|
* 인디케이터는 부모 요소를 기준으로 `absolute` 위치로 배치되며, 다양한 전환 효과를 지원합니다.
|
|
408
451
|
*/
|
|
409
|
-
declare const FloatingIndicator: (props: FloatingIndicatorProps) => react.JSX.Element | null;
|
|
410
|
-
|
|
452
|
+
export declare const FloatingIndicator: (props: FloatingIndicatorProps) => import("react").JSX.Element | null;
|
|
453
|
+
//#endregion
|
|
454
|
+
//#region src/components/flex/types.d.ts
|
|
411
455
|
interface FlexBaseProps extends BoxProps {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
declare const
|
|
420
|
-
declare const
|
|
421
|
-
declare const
|
|
422
|
-
declare const
|
|
423
|
-
declare const
|
|
424
|
-
|
|
425
|
-
|
|
456
|
+
alignItems?: CSSProperties['alignItems'];
|
|
457
|
+
justifyContent?: CSSProperties['justifyContent'];
|
|
458
|
+
flexWrap?: CSSProperties['flexWrap'];
|
|
459
|
+
inlineFlex?: boolean;
|
|
460
|
+
}
|
|
461
|
+
//#endregion
|
|
462
|
+
//#region src/components/flex/FlexColumn.d.ts
|
|
463
|
+
declare const FlexColumnStart: FunctionComponent<FlexBaseProps>;
|
|
464
|
+
declare const FlexColumnEnd: FunctionComponent<FlexBaseProps>;
|
|
465
|
+
declare const FlexColumnCenter: FunctionComponent<FlexBaseProps>;
|
|
466
|
+
declare const FlexColumnAround: FunctionComponent<FlexBaseProps>;
|
|
467
|
+
declare const FlexColumnBetween: FunctionComponent<FlexBaseProps>;
|
|
468
|
+
declare const FlexColumnEvenly: FunctionComponent<FlexBaseProps>;
|
|
469
|
+
export interface FlexColumnProps extends FlexBaseProps {
|
|
470
|
+
center?: boolean;
|
|
426
471
|
}
|
|
427
472
|
interface FlexColumnComponent extends React.FunctionComponent<FlexColumnProps> {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
}
|
|
435
|
-
declare const FlexColumn: FlexColumnComponent;
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
declare const
|
|
439
|
-
declare const
|
|
440
|
-
declare const
|
|
441
|
-
declare const
|
|
442
|
-
declare const
|
|
443
|
-
|
|
444
|
-
|
|
473
|
+
Start: typeof FlexColumnStart;
|
|
474
|
+
End: typeof FlexColumnEnd;
|
|
475
|
+
Center: typeof FlexColumnCenter;
|
|
476
|
+
Between: typeof FlexColumnBetween;
|
|
477
|
+
Around: typeof FlexColumnAround;
|
|
478
|
+
Evenly: typeof FlexColumnEvenly;
|
|
479
|
+
}
|
|
480
|
+
export declare const FlexColumn: FlexColumnComponent;
|
|
481
|
+
//#endregion
|
|
482
|
+
//#region src/components/flex/FlexRow.d.ts
|
|
483
|
+
declare const FlexRowStart: FunctionComponent<FlexBaseProps>;
|
|
484
|
+
declare const FlexRowEnd: FunctionComponent<FlexBaseProps>;
|
|
485
|
+
declare const FlexRowAround: FunctionComponent<FlexBaseProps>;
|
|
486
|
+
declare const FlexRowBetween: FunctionComponent<FlexBaseProps>;
|
|
487
|
+
declare const FlexRowEvenly: FunctionComponent<FlexBaseProps>;
|
|
488
|
+
declare const FlexRowCenter: FunctionComponent<FlexBaseProps>;
|
|
489
|
+
export interface FlexRowProps extends FlexBaseProps {
|
|
490
|
+
center?: boolean;
|
|
445
491
|
}
|
|
446
492
|
interface FlexRowComponent extends React.FunctionComponent<FlexRowProps> {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
}
|
|
454
|
-
declare const FlexRow: FlexRowComponent;
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
493
|
+
Start: typeof FlexRowStart;
|
|
494
|
+
End: typeof FlexRowEnd;
|
|
495
|
+
Center: typeof FlexRowCenter;
|
|
496
|
+
Between: typeof FlexRowBetween;
|
|
497
|
+
Around: typeof FlexRowAround;
|
|
498
|
+
Evenly: typeof FlexRowEvenly;
|
|
499
|
+
}
|
|
500
|
+
export declare const FlexRow: FlexRowComponent;
|
|
501
|
+
//#endregion
|
|
502
|
+
//#region src/components/Hide.d.ts
|
|
503
|
+
export interface HideProps {
|
|
504
|
+
/**
|
|
505
|
+
* 개발자 설명
|
|
506
|
+
*/
|
|
507
|
+
devComment?: unknown;
|
|
508
|
+
children?: ReactNode;
|
|
509
|
+
}
|
|
510
|
+
export declare function Hide(_props: HideProps): null;
|
|
511
|
+
//#endregion
|
|
512
|
+
//#region src/components/Highlight/Highlight.d.ts
|
|
465
513
|
/**
|
|
466
514
|
* 특정 텍스트의 부분 문자열을 강조 표시하는 컴포넌트입니다.
|
|
467
515
|
*
|
|
@@ -470,59 +518,59 @@ declare function Hide(_props: HideProps): null;
|
|
|
470
518
|
* - 다양한 사용자 정의 스타일과 속성을 지원합니다.
|
|
471
519
|
*/
|
|
472
520
|
interface HighlightProps {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
521
|
+
/**
|
|
522
|
+
* `sx` 속성을 사용해 스타일을 추가로 설정할 수 있습니다.
|
|
523
|
+
*/
|
|
524
|
+
sx?: SxProps<Theme>;
|
|
525
|
+
/**
|
|
526
|
+
* 추가로 적용할 CSS 클래스 이름입니다.
|
|
527
|
+
*/
|
|
528
|
+
className?: string;
|
|
529
|
+
/**
|
|
530
|
+
* 인라인 스타일을 적용할 수 있습니다.
|
|
531
|
+
*/
|
|
532
|
+
style?: CSSProperties;
|
|
533
|
+
/**
|
|
534
|
+
* MUI `Typography` 컴포넌트의 `variant` 속성입니다.
|
|
535
|
+
*/
|
|
536
|
+
variant?: TypographyProps['variant'];
|
|
537
|
+
/**
|
|
538
|
+
* 강조 표시할 부분 문자열 또는 문자열 배열입니다.
|
|
539
|
+
*
|
|
540
|
+
* @example
|
|
541
|
+
* ```tsx
|
|
542
|
+
* <Highlight highlight="React">React is amazing!</Highlight>
|
|
543
|
+
* <Highlight highlight={["React", "amazing"]}>React is amazing!</Highlight>
|
|
544
|
+
* ```
|
|
545
|
+
*/
|
|
546
|
+
highlight: string | string[];
|
|
547
|
+
/**
|
|
548
|
+
* 강조 표시된 텍스트의 색상을 지정합니다.
|
|
549
|
+
* `theme.colors` 키 또는 유효한 CSS 색상 값을 사용할 수 있습니다.
|
|
550
|
+
* 기본값은 `yellow`입니다.
|
|
551
|
+
*/
|
|
552
|
+
color?: string;
|
|
553
|
+
/**
|
|
554
|
+
* 강조 표시된 텍스트에 적용할 추가 스타일입니다.
|
|
555
|
+
*/
|
|
556
|
+
highlightSx?: SxProps;
|
|
557
|
+
/**
|
|
558
|
+
* 강조 표시 작업을 수행할 문자열입니다.
|
|
559
|
+
*/
|
|
560
|
+
children: string;
|
|
561
|
+
/**
|
|
562
|
+
* 대소문자를 무시하고 강조 표시할지 여부를 설정합니다.
|
|
563
|
+
*
|
|
564
|
+
* @default false
|
|
565
|
+
*/
|
|
566
|
+
ignorecase?: boolean;
|
|
567
|
+
/**
|
|
568
|
+
* 강조 표시된 텍스트에 `data-highlight` 속성을 추가할지 여부를 설정합니다.
|
|
569
|
+
*
|
|
570
|
+
* @default false
|
|
571
|
+
*/
|
|
572
|
+
includeDataAttribute?: boolean;
|
|
573
|
+
ref?: Ref<HTMLElement>;
|
|
526
574
|
}
|
|
527
575
|
/**
|
|
528
576
|
* `Highlight` 컴포넌트는 주어진 텍스트에서 특정 문자열을 강조 표시합니다.
|
|
@@ -545,132 +593,398 @@ interface HighlightProps {
|
|
|
545
593
|
* </Highlight>
|
|
546
594
|
* ```
|
|
547
595
|
*/
|
|
548
|
-
declare const Highlight: {
|
|
549
|
-
|
|
550
|
-
|
|
596
|
+
export declare const Highlight: {
|
|
597
|
+
(props: HighlightProps): import("react").JSX.Element;
|
|
598
|
+
displayName: string;
|
|
551
599
|
};
|
|
552
|
-
|
|
600
|
+
//#endregion
|
|
601
|
+
//#region src/components/LengthLimitHelperText.d.ts
|
|
553
602
|
interface Props {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
}
|
|
560
|
-
declare function LengthLimitHelperText(props: Props): react.JSX.Element;
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
603
|
+
sx?: SxProps;
|
|
604
|
+
className?: string;
|
|
605
|
+
text?: ReactNode;
|
|
606
|
+
maxLen: number;
|
|
607
|
+
currentLen?: number;
|
|
608
|
+
}
|
|
609
|
+
export declare function LengthLimitHelperText(props: Props): import("react").JSX.Element;
|
|
610
|
+
//#endregion
|
|
611
|
+
//#region src/components/LgOrUp.d.ts
|
|
612
|
+
export interface LgOrUpProps {
|
|
613
|
+
children?: ReactNode | ReactNode[];
|
|
614
|
+
}
|
|
615
|
+
export declare function LgOrUp(props: LgOrUpProps): import("react").JSX.Element | null;
|
|
616
|
+
//#endregion
|
|
617
|
+
//#region src/components/ListPagination.d.ts
|
|
618
|
+
export interface ListPaginationProps extends Omit<PaginationProps, 'page' | 'count' | 'onChange' | 'hidden' | 'ref'> {
|
|
619
|
+
/**
|
|
620
|
+
* 현재 페이지 번호입니다.
|
|
621
|
+
* 기본은 MUI `Pagination`과 같은 1-based이며, `zeroBased`가 true이면 첫 페이지가 `0`입니다.
|
|
622
|
+
*/
|
|
623
|
+
page: number;
|
|
624
|
+
/** 전체 페이지 수입니다. */
|
|
625
|
+
count: number;
|
|
626
|
+
/**
|
|
627
|
+
* 사용자가 페이지를 바꿨을 때 호출합니다.
|
|
628
|
+
* 전달되는 번호의 기준은 `page`와 같습니다.
|
|
629
|
+
*/
|
|
630
|
+
onChange?: (pageNumber: number) => void;
|
|
631
|
+
/**
|
|
632
|
+
* `page`와 `onChange`의 페이지 번호를 0-based로 다룰지 여부입니다.
|
|
633
|
+
* 서버가 0-based 페이지 번호를 쓸 때 변환 코드를 반복하지 않도록 제공합니다.
|
|
634
|
+
* @default false
|
|
635
|
+
*/
|
|
636
|
+
zeroBased?: boolean;
|
|
637
|
+
/**
|
|
638
|
+
* 컴포넌트를 강제로 숨길지 여부입니다.
|
|
639
|
+
* @default false
|
|
640
|
+
*/
|
|
641
|
+
hidden?: boolean;
|
|
642
|
+
/**
|
|
643
|
+
* 페이지 이동 후 화면 상단으로 스크롤하는 동작을 막을지 여부입니다.
|
|
644
|
+
* @default false
|
|
645
|
+
*/
|
|
646
|
+
disableAutoScroll?: boolean;
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* 목록 화면 하단에 쓰는 페이지네이션입니다.
|
|
650
|
+
* MUI `Pagination`을 가운데 정렬하고 위아래 여백(`py: 1.5`)을 더합니다.
|
|
651
|
+
*
|
|
652
|
+
* @remarks
|
|
653
|
+
* - `count`가 1 이하이면 아무것도 렌더링하지 않습니다.
|
|
654
|
+
* - 페이지를 바꾸면 기본으로 `window.scrollTo`로 화면 상단으로 이동합니다.
|
|
655
|
+
* - `className`과 `sx`는 바깥 래퍼에 적용되고, 나머지 props는 MUI `Pagination`에 전달됩니다.
|
|
656
|
+
*
|
|
657
|
+
* @example
|
|
658
|
+
* ```tsx
|
|
659
|
+
* <ListPagination page={page} count={totalPages} onChange={setPage} />
|
|
660
|
+
*
|
|
661
|
+
* // 서버가 0-based 페이지 번호를 쓸 때
|
|
662
|
+
* <ListPagination zeroBased page={pageNumber} count={totalPages} onChange={setPageNumber} />
|
|
663
|
+
* ```
|
|
664
|
+
*/
|
|
665
|
+
export declare const ListPagination: {
|
|
666
|
+
({ page, count, onChange, zeroBased, hidden, disableAutoScroll, className, sx, ...paginationProps }: ListPaginationProps): import("react").JSX.Element | null;
|
|
667
|
+
displayName: string;
|
|
578
668
|
};
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
669
|
+
//#endregion
|
|
670
|
+
//#region src/components/Mark.d.ts
|
|
671
|
+
export interface MarkProps {
|
|
672
|
+
sx?: SxProps;
|
|
673
|
+
className?: string;
|
|
674
|
+
color?: string;
|
|
675
|
+
bgcolor?: string;
|
|
676
|
+
children?: ReactNode;
|
|
677
|
+
ref?: Ref<HTMLElement>;
|
|
678
|
+
}
|
|
679
|
+
export declare const Mark: {
|
|
680
|
+
(props: MarkProps): import("react").JSX.Element;
|
|
681
|
+
displayName: string;
|
|
682
|
+
};
|
|
683
|
+
//#endregion
|
|
684
|
+
//#region src/components/MdOrDown.d.ts
|
|
685
|
+
export interface MdOrDownProps {
|
|
686
|
+
children?: ReactNode | ReactNode[];
|
|
687
|
+
}
|
|
688
|
+
export declare function MdOrDown(props: MdOrDownProps): import("react").JSX.Element | null;
|
|
689
|
+
//#endregion
|
|
690
|
+
//#region src/components/MdOrUp.d.ts
|
|
691
|
+
export interface MdOrUpProps {
|
|
692
|
+
children?: ReactNode | ReactNode[];
|
|
693
|
+
}
|
|
694
|
+
export declare function MdOrUp(props: MdOrUpProps): import("react").JSX.Element | null;
|
|
695
|
+
//#endregion
|
|
696
|
+
//#region src/components/Paper.d.ts
|
|
697
|
+
export interface PaperProps extends PaperProps$1 {
|
|
698
|
+
squared?: boolean;
|
|
699
|
+
outlined?: boolean;
|
|
700
|
+
}
|
|
701
|
+
export declare function Paper(props: PaperProps): import("react").JSX.Element;
|
|
702
|
+
//#endregion
|
|
703
|
+
//#region src/components/PasswordTextField.d.ts
|
|
704
|
+
/**
|
|
705
|
+
* 비밀번호 표시 상태를 전환할 수 있는 입력 컴포넌트의 속성입니다.
|
|
706
|
+
*
|
|
707
|
+
* `type`은 내부에서 `password`/`text`로 전환하므로 받지 않습니다.
|
|
708
|
+
*/
|
|
709
|
+
export type PasswordTextFieldProps = Omit<TextFieldProps, 'type'> & {
|
|
710
|
+
/** 비밀번호가 가려져 있을 때 토글 버튼의 접근성 레이블입니다. 기본값: `비밀번호 보기` */
|
|
711
|
+
showLabel?: string;
|
|
712
|
+
/** 비밀번호가 표시되어 있을 때 토글 버튼의 접근성 레이블입니다. 기본값: `비밀번호 숨기기` */
|
|
713
|
+
hideLabel?: string;
|
|
714
|
+
};
|
|
715
|
+
/**
|
|
716
|
+
* 비밀번호를 마스킹 상태와 평문 상태로 전환해 표시하는 `TextField`.
|
|
717
|
+
*
|
|
718
|
+
* 동작 규칙:
|
|
719
|
+
* - 끝 장식(endAdornment)에 보기/숨기기 토글 버튼을 둔다.
|
|
720
|
+
* - 버튼 크기는 `size`를 따르고, `disabled`이면 버튼도 비활성화한다.
|
|
721
|
+
* - `slotProps.input.endAdornment`를 지정하면 기본 토글 버튼 대신 그 값을 쓴다.
|
|
722
|
+
* - `slotProps.input` 외 슬롯(`htmlInput` 등)은 그대로 전달한다.
|
|
723
|
+
*/
|
|
724
|
+
export declare function PasswordTextField(props: PasswordTextFieldProps): import("react").JSX.Element;
|
|
725
|
+
//#endregion
|
|
726
|
+
//#region src/components/portlet/PortletContent.d.ts
|
|
596
727
|
interface PortletContentProps extends BoxProps {
|
|
597
|
-
|
|
728
|
+
noPadding?: boolean;
|
|
598
729
|
}
|
|
730
|
+
/**
|
|
731
|
+
* Portlet의 본문 영역을 렌더링합니다.
|
|
732
|
+
*
|
|
733
|
+
* @param props Box 속성과 여백 설정
|
|
734
|
+
* @returns 본문 레이아웃이 적용된 Box
|
|
735
|
+
* @example
|
|
736
|
+
* ```tsx
|
|
737
|
+
* <Portlet.Content noPadding>내용</Portlet.Content>
|
|
738
|
+
* ```
|
|
739
|
+
*/
|
|
599
740
|
declare const PortletContent: {
|
|
600
|
-
|
|
601
|
-
|
|
741
|
+
(props: PortletContentProps): import("react").JSX.Element;
|
|
742
|
+
displayName: string;
|
|
602
743
|
};
|
|
603
|
-
|
|
744
|
+
//#endregion
|
|
745
|
+
//#region src/components/portlet/PortletFooter.d.ts
|
|
604
746
|
interface PortletFooterProps extends BoxProps {
|
|
605
|
-
|
|
747
|
+
noDivider?: boolean;
|
|
606
748
|
}
|
|
749
|
+
/**
|
|
750
|
+
* Portlet의 하단 영역을 렌더링합니다.
|
|
751
|
+
*
|
|
752
|
+
* @param props Box 속성과 구분선 설정
|
|
753
|
+
* @returns 하단 레이아웃이 적용된 Box
|
|
754
|
+
* @example
|
|
755
|
+
* ```tsx
|
|
756
|
+
* <Portlet.Footer noDivider>하단 내용</Portlet.Footer>
|
|
757
|
+
* ```
|
|
758
|
+
*/
|
|
607
759
|
declare const PortletFooter: {
|
|
608
|
-
|
|
609
|
-
|
|
760
|
+
(props: PortletFooterProps): import("react").JSX.Element;
|
|
761
|
+
displayName: string;
|
|
610
762
|
};
|
|
611
|
-
|
|
763
|
+
//#endregion
|
|
764
|
+
//#region src/components/portlet/PortletHeader.d.ts
|
|
612
765
|
interface PortletHeaderProps extends BoxProps {
|
|
613
|
-
|
|
614
|
-
|
|
766
|
+
noDivider?: boolean;
|
|
767
|
+
noPadding?: boolean;
|
|
615
768
|
}
|
|
769
|
+
/**
|
|
770
|
+
* Portlet의 Label과 Toolbar를 배치하는 상단 영역을 렌더링합니다.
|
|
771
|
+
*
|
|
772
|
+
* @param props Box 속성과 여백·구분선 설정
|
|
773
|
+
* @returns 상단 레이아웃이 적용된 Box
|
|
774
|
+
* @example
|
|
775
|
+
* ```tsx
|
|
776
|
+
* <Portlet.Header>
|
|
777
|
+
* <Portlet.Label title='제목' />
|
|
778
|
+
* <Portlet.Toolbar>도구</Portlet.Toolbar>
|
|
779
|
+
* </Portlet.Header>
|
|
780
|
+
* ```
|
|
781
|
+
*/
|
|
616
782
|
declare const PortletHeader: {
|
|
617
|
-
|
|
618
|
-
|
|
783
|
+
(props: PortletHeaderProps): import("react").JSX.Element;
|
|
784
|
+
displayName: string;
|
|
619
785
|
};
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
786
|
+
//#endregion
|
|
787
|
+
//#region src/components/portlet/PortletLabel.d.ts
|
|
788
|
+
interface PortletLabelProps extends BoxProps {
|
|
789
|
+
icon?: ReactNode;
|
|
790
|
+
/** 제목 Typography에 표시할 텍스트입니다. HTML `title` 속성으로 전달되지 않습니다. */
|
|
791
|
+
title?: string;
|
|
792
|
+
subtitle?: string;
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* Portlet Header에 아이콘, 제목, 부제목을 표시합니다.
|
|
796
|
+
*
|
|
797
|
+
* @param props Box 속성과 표시할 아이콘·제목·부제목
|
|
798
|
+
* @returns Label 레이아웃이 적용된 Box
|
|
799
|
+
* @example
|
|
800
|
+
* ```tsx
|
|
801
|
+
* <Portlet.Label title='제목' subtitle='부제목' />
|
|
802
|
+
* ```
|
|
803
|
+
*/
|
|
804
|
+
declare const PortletLabel: {
|
|
805
|
+
(props: PortletLabelProps): import("react").JSX.Element;
|
|
806
|
+
displayName: string;
|
|
807
|
+
};
|
|
808
|
+
//#endregion
|
|
809
|
+
//#region src/components/portlet/PortletTitle.d.ts
|
|
810
|
+
interface PortletTitleProps extends Omit<StackProps, 'title' | 'direction' | 'children'> {
|
|
811
|
+
/** 문자열이면 Typography로 감싸 표시하고, 그 외 노드는 그대로 렌더링합니다. */
|
|
812
|
+
title: ReactNode;
|
|
813
|
+
/** 제목 Typography의 variant입니다. 기본값은 `h5`입니다. 문자열 제목에만 적용됩니다. */
|
|
814
|
+
titleVariant?: TypographyProps['variant'];
|
|
815
|
+
/** 0보다 클 때만 제목 옆에 표시합니다. */
|
|
816
|
+
itemCount?: number;
|
|
817
|
+
/** 건수 표시 형식입니다. 기본값은 천 단위 구분자를 넣은 숫자입니다. 단위나 번역은 여기서 붙입니다. */
|
|
818
|
+
formatItemCount?: (count: number) => ReactNode;
|
|
819
|
+
/** true이면 새로고침 버튼 대신 로딩 표시를 보여줍니다. */
|
|
820
|
+
loading?: boolean;
|
|
821
|
+
/** true이면 제목의 `nowrap` 처리를 해제합니다. */
|
|
822
|
+
disableNowrapTitle?: boolean;
|
|
823
|
+
/** 새로고침 버튼의 접근성 이름(aria-label)입니다. 기본값은 `새로고침`입니다. */
|
|
824
|
+
refreshLabel?: string;
|
|
825
|
+
/** 지정했을 때만 새로고침 버튼을 표시합니다. */
|
|
826
|
+
onClickRefresh?: MouseEventHandler<HTMLButtonElement>;
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* Portlet Header에 제목, 건수, 새로고침 버튼(또는 로딩 표시)을 한 줄로 표시합니다.
|
|
830
|
+
*
|
|
831
|
+
* @param props Stack 속성과 제목·건수·새로고침 설정
|
|
832
|
+
* @returns 제목과 새로고침 영역을 가로로 배치한 Stack
|
|
833
|
+
* @remarks 새로고침 영역은 버튼과 로딩 표시가 번갈아 나타나도 제목 위치가 흔들리지 않도록 최소 너비 40px을 유지합니다.
|
|
834
|
+
* @example
|
|
835
|
+
* ```tsx
|
|
836
|
+
* <Portlet.Header>
|
|
837
|
+
* <Portlet.Title
|
|
838
|
+
* title='사용자 목록'
|
|
839
|
+
* titleVariant='h6'
|
|
840
|
+
* itemCount={120}
|
|
841
|
+
* formatItemCount={(n) => `${n.toLocaleString()}건`}
|
|
842
|
+
* loading={loading}
|
|
843
|
+
* onClickRefresh={reload}
|
|
844
|
+
* />
|
|
845
|
+
* </Portlet.Header>
|
|
846
|
+
* ```
|
|
847
|
+
*/
|
|
848
|
+
declare const PortletTitle: {
|
|
849
|
+
(props: PortletTitleProps): import("react").JSX.Element;
|
|
850
|
+
displayName: string;
|
|
851
|
+
};
|
|
852
|
+
//#endregion
|
|
853
|
+
//#region src/components/portlet/PortletToolbar.d.ts
|
|
854
|
+
type PortletToolbarProps = BoxProps;
|
|
855
|
+
/**
|
|
856
|
+
* Portlet Header의 도구를 우측에 배치합니다.
|
|
857
|
+
*
|
|
858
|
+
* @param props Box 속성과 Toolbar 자식 요소
|
|
859
|
+
* @returns 우측 정렬된 Toolbar Box
|
|
860
|
+
* @example
|
|
861
|
+
* ```tsx
|
|
862
|
+
* <Portlet.Toolbar>도구</Portlet.Toolbar>
|
|
863
|
+
* ```
|
|
864
|
+
*/
|
|
865
|
+
declare const PortletToolbar: {
|
|
866
|
+
(props: PortletToolbarProps): import("react").JSX.Element;
|
|
867
|
+
displayName: string;
|
|
868
|
+
};
|
|
869
|
+
//#endregion
|
|
870
|
+
//#region src/components/portlet/Portlet.d.ts
|
|
871
|
+
export interface PortletProps extends Omit<PaperProps$1, 'elevation' | 'component' | 'nonce'> {
|
|
872
|
+
children?: ReactNode;
|
|
873
|
+
}
|
|
874
|
+
interface PortletComponent extends FunctionComponent<PortletProps> {
|
|
875
|
+
Content: typeof PortletContent;
|
|
876
|
+
Header: typeof PortletHeader;
|
|
877
|
+
Footer: typeof PortletFooter;
|
|
878
|
+
Label: typeof PortletLabel;
|
|
879
|
+
Title: typeof PortletTitle;
|
|
880
|
+
Toolbar: typeof PortletToolbar;
|
|
881
|
+
}
|
|
882
|
+
/**
|
|
883
|
+
* Label, Toolbar, Content, Footer를 조립하는 카드형 컨테이너입니다.
|
|
884
|
+
*
|
|
885
|
+
* @param props Paper 속성과 Portlet 자식 요소
|
|
886
|
+
* @returns 테두리와 세로 레이아웃이 적용된 Portlet
|
|
887
|
+
* @example
|
|
888
|
+
* ```tsx
|
|
889
|
+
* <Portlet>
|
|
890
|
+
* <Portlet.Header>
|
|
891
|
+
* <Portlet.Label title='상태' />
|
|
892
|
+
* <Portlet.Toolbar>도구</Portlet.Toolbar>
|
|
893
|
+
* </Portlet.Header>
|
|
894
|
+
* <Portlet.Content>내용</Portlet.Content>
|
|
895
|
+
* </Portlet>
|
|
896
|
+
* ```
|
|
897
|
+
*/
|
|
898
|
+
export declare const Portlet: PortletComponent;
|
|
899
|
+
//#endregion
|
|
900
|
+
//#region src/components/SearchBoxDebouncer.d.ts
|
|
901
|
+
/**
|
|
902
|
+
* 검색 입력 초안과 외부 검색 조건을 중계하는 디바운서 컴포넌트의 속성입니다.
|
|
903
|
+
*/
|
|
904
|
+
export interface SearchBoxDebouncerProps<T> {
|
|
905
|
+
/** 디바운스 시간(ms). 기본값: 200 */
|
|
906
|
+
delayMs?: number;
|
|
907
|
+
/** 외부 검색 조건입니다. */
|
|
908
|
+
params: Partial<T>;
|
|
909
|
+
/** 입력이 멈춘 뒤 초안 전체를 전달받는 콜백입니다. */
|
|
910
|
+
onChange: (params: Partial<T>) => void;
|
|
911
|
+
/**
|
|
912
|
+
* 초안 상태로 검색 UI를 그립니다.
|
|
913
|
+
*
|
|
914
|
+
* - `params`: 화면에 보여줄 초안 조건
|
|
915
|
+
* - `onChange`: 부분 변경을 초안에 병합하고 발행을 예약
|
|
916
|
+
* - `flush`: 대기 중인 입력을 바로 발행 (예: Enter로 즉시 검색)
|
|
917
|
+
*/
|
|
918
|
+
children: (props: {
|
|
919
|
+
params: Partial<T>;
|
|
920
|
+
onChange: (params: Partial<T>) => void;
|
|
921
|
+
flush: () => void;
|
|
922
|
+
}) => ReactNode;
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
* 검색 조건 변경을 일정 시간 모아서 외부 변경 콜백으로 전달합니다.
|
|
926
|
+
*
|
|
927
|
+
* 훅 `useDebouncedParams`를 render prop으로 감싼 컴포넌트입니다.
|
|
928
|
+
*
|
|
929
|
+
* @example
|
|
930
|
+
* ```tsx
|
|
931
|
+
* <SearchBoxDebouncer<SearchParams> params={searchParams} onChange={setSearchParams}>
|
|
932
|
+
* {({ params, onChange, flush }) => (
|
|
933
|
+
* <TextField
|
|
934
|
+
* value={params.keyword ?? ''}
|
|
935
|
+
* onChange={(e) => onChange({ keyword: e.target.value })}
|
|
936
|
+
* onKeyDown={(e) => e.key === 'Enter' && flush()}
|
|
937
|
+
* />
|
|
938
|
+
* )}
|
|
939
|
+
* </SearchBoxDebouncer>
|
|
940
|
+
* ```
|
|
941
|
+
*/
|
|
942
|
+
export declare function SearchBoxDebouncer<T>(props: SearchBoxDebouncerProps<T>): import("react").JSX.Element;
|
|
943
|
+
//#endregion
|
|
944
|
+
//#region src/components/SegmentedControl/SegmentedControl.d.ts
|
|
945
|
+
export interface SegmentedControlItem {
|
|
946
|
+
/** 항목의 값 */
|
|
947
|
+
value: string;
|
|
948
|
+
/** 항목의 레이블 (내용) */
|
|
949
|
+
label: ReactNode;
|
|
950
|
+
/** 항목이 비활성화되었는지 여부 */
|
|
951
|
+
disabled?: boolean;
|
|
952
|
+
}
|
|
953
|
+
export interface SegmentedControlProps {
|
|
954
|
+
/** 루트 DOM 요소로 전달되는 ref (MUI 미상속 인터페이스라 명시 선언) */
|
|
955
|
+
ref?: Ref<HTMLDivElement>;
|
|
956
|
+
sx?: SxProps<Theme>;
|
|
957
|
+
className?: string;
|
|
958
|
+
style?: CSSProperties;
|
|
959
|
+
disabled?: boolean;
|
|
960
|
+
/** 렌더링할 데이터를 기반으로 컨트롤 항목이 생성됩니다. */
|
|
961
|
+
data: (string | SegmentedControlItem)[];
|
|
962
|
+
/** 컨트롤된 컴포넌트의 값 */
|
|
963
|
+
value?: string;
|
|
964
|
+
/** 비제어 컴포넌트의 기본값 */
|
|
965
|
+
defaultValue?: string;
|
|
966
|
+
/** 값이 변경될 때 호출되는 함수 */
|
|
967
|
+
onChange?: (value: string) => void;
|
|
968
|
+
/** 부모의 100% 너비를 사용할지 여부, 기본값은 false */
|
|
969
|
+
fullWidth?: boolean;
|
|
970
|
+
/** 인디케이터의 전환 시간(ms), 기본값은 200 */
|
|
971
|
+
transitionDuration?: number;
|
|
972
|
+
/** 인디케이터의 transition-timing-function 속성, 기본값은 'ease' */
|
|
973
|
+
transitionTimingFunction?: string;
|
|
974
|
+
/** 컴포넌트가 수직 방향으로 표시될지 여부, 기본값은 'horizontal' */
|
|
975
|
+
vertical?: boolean;
|
|
976
|
+
/** 값이 변경될 수 있는지 여부, 읽기 전용 모드일 경우 변경 불가 */
|
|
977
|
+
readOnly?: boolean;
|
|
978
|
+
/** 항목의 경계를 표시할지 여부 */
|
|
979
|
+
withItemBorder?: boolean;
|
|
980
|
+
/** 항목 레이블의 기본 색상 */
|
|
981
|
+
primaryColor?: TypographyProps['color'];
|
|
982
|
+
/** 항목 레이블의 보조 색상 */
|
|
983
|
+
secondaryColor?: TypographyProps['color'];
|
|
984
|
+
/** 인디케이터로 표시할 ReactNode */
|
|
985
|
+
indicator?: ReactNode;
|
|
986
|
+
/** 컴포넌트 크기, 'small', 'medium', 'large' 중 하나 */
|
|
987
|
+
size?: 'small' | 'medium' | 'large';
|
|
674
988
|
}
|
|
675
989
|
/**
|
|
676
990
|
* 세그먼트 컨트롤 컴포넌트는 여러 항목 중 하나를 선택하는 UI 컴포넌트입니다.
|
|
@@ -678,128 +992,140 @@ interface SegmentedControlProps {
|
|
|
678
992
|
* @param props 세그먼트 컨트롤의 다양한 설정을 정의하는 props
|
|
679
993
|
* @returns 세그먼트 컨트롤 컴포넌트
|
|
680
994
|
*/
|
|
681
|
-
declare const SegmentedControl: (props: SegmentedControlProps) => react.JSX.Element | null;
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
995
|
+
export declare const SegmentedControl: (props: SegmentedControlProps) => import("react").JSX.Element | null;
|
|
996
|
+
//#endregion
|
|
997
|
+
//#region src/components/Show.d.ts
|
|
998
|
+
export interface ShowProps {
|
|
999
|
+
when: boolean | null | undefined;
|
|
1000
|
+
children?: ReactNode;
|
|
1001
|
+
fallback?: ReactNode;
|
|
1002
|
+
}
|
|
1003
|
+
export declare const Show: FC<ShowProps>;
|
|
1004
|
+
//#endregion
|
|
1005
|
+
//#region src/components/SmOrDown.d.ts
|
|
1006
|
+
export interface SmOrDownProps {
|
|
1007
|
+
children?: ReactNode | ReactNode[];
|
|
1008
|
+
}
|
|
1009
|
+
export declare function SmOrDown(props: SmOrDownProps): import("react").JSX.Element | null;
|
|
1010
|
+
//#endregion
|
|
1011
|
+
//#region src/components/SmOrUp.d.ts
|
|
1012
|
+
export interface SmOrUpProps {
|
|
1013
|
+
children?: ReactNode | ReactNode[];
|
|
1014
|
+
}
|
|
1015
|
+
export declare function SmOrUp(props: SmOrUpProps): import("react").JSX.Element | null;
|
|
1016
|
+
//#endregion
|
|
1017
|
+
//#region src/components/Space.d.ts
|
|
1018
|
+
export interface SpaceProps extends BoxProps {
|
|
1019
|
+
width?: number;
|
|
1020
|
+
height?: number;
|
|
1021
|
+
minWidth?: number;
|
|
1022
|
+
minHeight?: number;
|
|
1023
|
+
}
|
|
1024
|
+
export declare const Space: {
|
|
1025
|
+
({ width, height, minWidth, minHeight, sx, ref, ...props }: SpaceProps): import("react").JSX.Element;
|
|
1026
|
+
displayName: string;
|
|
709
1027
|
};
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
1028
|
+
//#endregion
|
|
1029
|
+
//#region src/components/Spoiler.d.ts
|
|
1030
|
+
export interface SpoilerProps {
|
|
1031
|
+
sx?: SxProps;
|
|
1032
|
+
className?: string;
|
|
1033
|
+
style?: CSSProperties;
|
|
1034
|
+
id?: string;
|
|
1035
|
+
/** Maximum height of the visible content, when this point is reached spoiler appears, `100` by default */
|
|
1036
|
+
maxHeight?: number;
|
|
1037
|
+
/** Label for close spoiler action */
|
|
1038
|
+
hideLabel: React.ReactNode;
|
|
1039
|
+
/** Label for open spoiler action */
|
|
1040
|
+
showLabel: React.ReactNode;
|
|
1041
|
+
/** Get ref of spoiler toggle button */
|
|
1042
|
+
controlRef?: React.ForwardedRef<HTMLButtonElement>;
|
|
1043
|
+
/** Initial spoiler state, true to wrap content in spoiler, false to show content without spoiler, opened state is updated on mount */
|
|
1044
|
+
initialState?: boolean;
|
|
1045
|
+
/** Controlled expanded state value */
|
|
1046
|
+
expanded?: boolean;
|
|
1047
|
+
/** Called when expanded state changes (when spoiler visibility is toggled by the user) */
|
|
1048
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
1049
|
+
/** Spoiler reveal transition duration in ms, set 0 or null to turn off animation, `200` by default */
|
|
1050
|
+
transitionDuration?: number;
|
|
1051
|
+
children?: ReactNode;
|
|
1052
|
+
ref?: Ref<HTMLElement>;
|
|
1053
|
+
}
|
|
1054
|
+
export declare const Spoiler: {
|
|
1055
|
+
(props: SpoilerProps): import("react").JSX.Element;
|
|
1056
|
+
displayName: string;
|
|
738
1057
|
};
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
declare const
|
|
752
|
-
declare const
|
|
753
|
-
declare const
|
|
754
|
-
declare const
|
|
755
|
-
declare const
|
|
1058
|
+
//#endregion
|
|
1059
|
+
//#region src/components/stack/StackColumn.d.ts
|
|
1060
|
+
export interface StackColumnProps extends Omit<StackProps, 'direction'> {
|
|
1061
|
+
center?: boolean;
|
|
1062
|
+
alignItems?: React.CSSProperties['alignItems'];
|
|
1063
|
+
justifyContent?: React.CSSProperties['justifyContent'];
|
|
1064
|
+
}
|
|
1065
|
+
/** 원본 createComponent가 노출하던 서브변형 Props 타입 표면과 동일(StackProps 기반, direction 포함). */
|
|
1066
|
+
interface StackColumnSubVariantProps extends StackProps {
|
|
1067
|
+
alignItems?: React.CSSProperties['alignItems'];
|
|
1068
|
+
justifyContent?: React.CSSProperties['justifyContent'];
|
|
1069
|
+
}
|
|
1070
|
+
declare const StackColumnCenter: FunctionComponent<StackColumnSubVariantProps>;
|
|
1071
|
+
declare const StackColumnStart: FunctionComponent<StackColumnSubVariantProps>;
|
|
1072
|
+
declare const StackColumnEnd: FunctionComponent<StackColumnSubVariantProps>;
|
|
1073
|
+
declare const StackColumnBetween: FunctionComponent<StackColumnSubVariantProps>;
|
|
1074
|
+
declare const StackColumnAround: FunctionComponent<StackColumnSubVariantProps>;
|
|
1075
|
+
declare const StackColumnEvenly: FunctionComponent<StackColumnSubVariantProps>;
|
|
756
1076
|
interface StackColumnComponent extends React.FunctionComponent<StackColumnProps> {
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
}
|
|
764
|
-
declare const StackColumn: StackColumnComponent;
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
declare const
|
|
1077
|
+
Start: typeof StackColumnStart;
|
|
1078
|
+
End: typeof StackColumnEnd;
|
|
1079
|
+
Between: typeof StackColumnBetween;
|
|
1080
|
+
Around: typeof StackColumnAround;
|
|
1081
|
+
Center: typeof StackColumnCenter;
|
|
1082
|
+
Evenly: typeof StackColumnEvenly;
|
|
1083
|
+
}
|
|
1084
|
+
export declare const StackColumn: StackColumnComponent;
|
|
1085
|
+
//#endregion
|
|
1086
|
+
//#region src/components/stack/StackRow.d.ts
|
|
1087
|
+
export interface StackRowProps extends Omit<StackProps, 'direction'> {
|
|
1088
|
+
center?: boolean;
|
|
1089
|
+
alignItems?: React.CSSProperties['alignItems'];
|
|
1090
|
+
justifyContent?: React.CSSProperties['justifyContent'];
|
|
1091
|
+
}
|
|
1092
|
+
interface StackRowSubVariantProps extends StackProps {
|
|
1093
|
+
alignItems?: React.CSSProperties['alignItems'];
|
|
1094
|
+
justifyContent?: React.CSSProperties['justifyContent'];
|
|
1095
|
+
}
|
|
1096
|
+
declare const StackRowCenter: FunctionComponent<StackRowSubVariantProps>;
|
|
1097
|
+
declare const StackRowStart: FunctionComponent<StackRowSubVariantProps>;
|
|
1098
|
+
declare const StackRowEnd: FunctionComponent<StackRowSubVariantProps>;
|
|
1099
|
+
declare const StackRowBetween: FunctionComponent<StackRowSubVariantProps>;
|
|
1100
|
+
declare const StackRowAround: FunctionComponent<StackRowSubVariantProps>;
|
|
1101
|
+
declare const StackRowEvenly: FunctionComponent<StackRowSubVariantProps>;
|
|
777
1102
|
interface StackRowComponent extends React.FunctionComponent<StackRowProps> {
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
1103
|
+
Start: typeof StackRowStart;
|
|
1104
|
+
End: typeof StackRowEnd;
|
|
1105
|
+
Between: typeof StackRowBetween;
|
|
1106
|
+
Around: typeof StackRowAround;
|
|
1107
|
+
Center: typeof StackRowCenter;
|
|
1108
|
+
Evenly: typeof StackRowEvenly;
|
|
784
1109
|
}
|
|
785
|
-
declare const StackRow: StackRowComponent;
|
|
786
|
-
|
|
1110
|
+
export declare const StackRow: StackRowComponent;
|
|
1111
|
+
//#endregion
|
|
1112
|
+
//#region src/components/top-absolute/TopAbsoluteCenter.d.ts
|
|
787
1113
|
/**
|
|
788
1114
|
* `TopAbsoluteCenter` 컴포넌트의 속성을 정의합니다.
|
|
789
1115
|
*/
|
|
790
1116
|
interface TopAbsoluteCenterProps extends BoxProps {
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
1117
|
+
/**
|
|
1118
|
+
* 컴포넌트가 부모 컨테이너의 전체 너비를 차지하도록 설정합니다.
|
|
1119
|
+
*
|
|
1120
|
+
* @default false
|
|
1121
|
+
*/
|
|
1122
|
+
fullWidth?: boolean;
|
|
1123
|
+
/**
|
|
1124
|
+
* 상단 위치를 설정합니다. CSS의 `top` 속성과 동일합니다.
|
|
1125
|
+
*
|
|
1126
|
+
* @default 0
|
|
1127
|
+
*/
|
|
1128
|
+
top?: CSSProperties['top'];
|
|
803
1129
|
}
|
|
804
1130
|
/**
|
|
805
1131
|
* `TopAbsoluteCenter` 컴포넌트는 요소를 상단 중앙에 배치하는 데 사용됩니다.
|
|
@@ -818,33 +1144,31 @@ interface TopAbsoluteCenterProps extends BoxProps {
|
|
|
818
1144
|
* </TopAbsolute.Center>
|
|
819
1145
|
* ```
|
|
820
1146
|
*/
|
|
821
|
-
declare const TopAbsoluteCenter:
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
};
|
|
825
|
-
|
|
1147
|
+
declare const TopAbsoluteCenter: FunctionComponent<TopAbsoluteCenterProps>;
|
|
1148
|
+
//#endregion
|
|
1149
|
+
//#region src/components/top-absolute/TopAbsoluteLeft.d.ts
|
|
826
1150
|
/**
|
|
827
1151
|
* `TopAbsoluteLeft` 컴포넌트의 속성을 정의합니다.
|
|
828
1152
|
*/
|
|
829
1153
|
interface TopAbsoluteLeftProps extends BoxProps {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
1154
|
+
/**
|
|
1155
|
+
* 컴포넌트가 부모 컨테이너의 전체 너비를 차지하도록 설정합니다.
|
|
1156
|
+
*
|
|
1157
|
+
* @default false
|
|
1158
|
+
*/
|
|
1159
|
+
fullWidth?: boolean;
|
|
1160
|
+
/**
|
|
1161
|
+
* 상단 위치를 설정합니다. CSS의 `top` 속성과 동일합니다.
|
|
1162
|
+
*
|
|
1163
|
+
* @default 0
|
|
1164
|
+
*/
|
|
1165
|
+
top?: CSSProperties['top'];
|
|
1166
|
+
/**
|
|
1167
|
+
* 좌측 위치를 설정합니다. CSS의 `left` 속성과 동일합니다.
|
|
1168
|
+
*
|
|
1169
|
+
* @default 0
|
|
1170
|
+
*/
|
|
1171
|
+
left?: CSSProperties['left'];
|
|
848
1172
|
}
|
|
849
1173
|
/**
|
|
850
1174
|
* `TopAbsoluteLeft` 컴포넌트는 요소를 상단 좌측에 배치하는 데 사용됩니다.
|
|
@@ -863,33 +1187,31 @@ interface TopAbsoluteLeftProps extends BoxProps {
|
|
|
863
1187
|
* </TopAbsolute.Left>
|
|
864
1188
|
* ```
|
|
865
1189
|
*/
|
|
866
|
-
declare const TopAbsoluteLeft:
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
};
|
|
870
|
-
|
|
1190
|
+
declare const TopAbsoluteLeft: FunctionComponent<TopAbsoluteLeftProps>;
|
|
1191
|
+
//#endregion
|
|
1192
|
+
//#region src/components/top-absolute/TopAbsoluteRight.d.ts
|
|
871
1193
|
/**
|
|
872
1194
|
* `TopAbsoluteRight` 컴포넌트의 속성을 정의합니다.
|
|
873
1195
|
*/
|
|
874
1196
|
interface TopAbsoluteRightProps extends BoxProps {
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
1197
|
+
/**
|
|
1198
|
+
* 컴포넌트가 부모 컨테이너의 전체 너비를 차지하도록 설정합니다.
|
|
1199
|
+
*
|
|
1200
|
+
* @default false
|
|
1201
|
+
*/
|
|
1202
|
+
fullWidth?: boolean;
|
|
1203
|
+
/**
|
|
1204
|
+
* 상단 위치를 설정합니다. CSS의 `top` 속성과 동일합니다.
|
|
1205
|
+
*
|
|
1206
|
+
* @default 0
|
|
1207
|
+
*/
|
|
1208
|
+
top?: CSSProperties['top'];
|
|
1209
|
+
/**
|
|
1210
|
+
* 우측 위치를 설정합니다. CSS의 `right` 속성과 동일합니다.
|
|
1211
|
+
*
|
|
1212
|
+
* @default 0
|
|
1213
|
+
*/
|
|
1214
|
+
right?: CSSProperties['right'];
|
|
893
1215
|
}
|
|
894
1216
|
/**
|
|
895
1217
|
* `TopAbsoluteRight` 컴포넌트는 요소를 상단 우측에 배치하는 데 사용됩니다.
|
|
@@ -908,86 +1230,177 @@ interface TopAbsoluteRightProps extends BoxProps {
|
|
|
908
1230
|
* </TopAbsolute.Right>
|
|
909
1231
|
* ```
|
|
910
1232
|
*/
|
|
911
|
-
declare const TopAbsoluteRight:
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
};
|
|
915
|
-
|
|
1233
|
+
declare const TopAbsoluteRight: FunctionComponent<TopAbsoluteRightProps>;
|
|
1234
|
+
//#endregion
|
|
1235
|
+
//#region src/components/top-absolute/TopAbsolute.d.ts
|
|
916
1236
|
/**
|
|
917
1237
|
* `TopAbsolute` 컴포넌트의 속성을 정의합니다.
|
|
918
1238
|
*/
|
|
919
|
-
interface TopAbsoluteProps extends BoxProps {
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
1239
|
+
export interface TopAbsoluteProps extends BoxProps {
|
|
1240
|
+
/**
|
|
1241
|
+
* 상단 위치를 설정합니다.
|
|
1242
|
+
*
|
|
1243
|
+
* @default 0
|
|
1244
|
+
*/
|
|
1245
|
+
top?: CSSProperties['top'];
|
|
1246
|
+
/**
|
|
1247
|
+
* 좌측 위치를 설정합니다.
|
|
1248
|
+
*
|
|
1249
|
+
* @default 0
|
|
1250
|
+
*/
|
|
1251
|
+
left?: CSSProperties['left'];
|
|
1252
|
+
/**
|
|
1253
|
+
* 우측 위치를 설정합니다.
|
|
1254
|
+
*
|
|
1255
|
+
* @default 0
|
|
1256
|
+
*/
|
|
1257
|
+
right?: CSSProperties['right'];
|
|
938
1258
|
}
|
|
939
1259
|
interface TopAbsoluteComponent extends React.FunctionComponent<TopAbsoluteProps> {
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
}
|
|
944
|
-
declare const TopAbsolute: TopAbsoluteComponent;
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
1260
|
+
Left: typeof TopAbsoluteLeft;
|
|
1261
|
+
Right: typeof TopAbsoluteRight;
|
|
1262
|
+
Center: typeof TopAbsoluteCenter;
|
|
1263
|
+
}
|
|
1264
|
+
export declare const TopAbsolute: TopAbsoluteComponent;
|
|
1265
|
+
//#endregion
|
|
1266
|
+
//#region src/components/XsOrDown.d.ts
|
|
1267
|
+
export interface XsOrDownProps {
|
|
1268
|
+
children?: ReactNode | ReactNode[];
|
|
1269
|
+
}
|
|
1270
|
+
export declare function XsOrDown(props: XsOrDownProps): import("react").JSX.Element | null;
|
|
1271
|
+
//#endregion
|
|
1272
|
+
//#region src/components/YmdTextField.d.ts
|
|
1273
|
+
/**
|
|
1274
|
+
* 숫자 기반 생년월일 입력을 다루는 텍스트 필드 속성입니다.
|
|
1275
|
+
*
|
|
1276
|
+
* 핵심 계약:
|
|
1277
|
+
* - `value`는 "숫자만" 보관한다. (예: `19900101`)
|
|
1278
|
+
* - `onChange`는 항상 정규화된 숫자 문자열을 전달한다.
|
|
1279
|
+
* - `format`은 필수이며, 표시 포맷 기준(6자리/8자리)을 결정한다.
|
|
1280
|
+
*/
|
|
1281
|
+
export interface YmdTextFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'> {
|
|
1282
|
+
/**
|
|
1283
|
+
* 제어값(숫자만).
|
|
1284
|
+
*
|
|
1285
|
+
* @example
|
|
1286
|
+
* - `990101`
|
|
1287
|
+
* - `19900101`
|
|
1288
|
+
*/
|
|
1289
|
+
value: string;
|
|
1290
|
+
/**
|
|
1291
|
+
* 값 변경 핸들러.
|
|
1292
|
+
* 사용자 입력 문자열은 내부에서 숫자만 남긴 뒤 이 콜백으로 전달된다.
|
|
1293
|
+
*/
|
|
1294
|
+
onChange: (value: string) => void;
|
|
1295
|
+
/**
|
|
1296
|
+
* 화면 표시용 포맷 문자열.
|
|
1297
|
+
*
|
|
1298
|
+
* - `YYYY`가 포함되면 8자리 입력이 완성됐을 때 포맷이 적용된다.
|
|
1299
|
+
* - `YY`(without `YYYY`)가 포함되면 6자리 입력이 완성됐을 때 포맷이 적용된다.
|
|
1300
|
+
*
|
|
1301
|
+
* @example
|
|
1302
|
+
* - `YYYY-MM-DD`
|
|
1303
|
+
* - `YY/MM/DD`
|
|
1304
|
+
*/
|
|
1305
|
+
format: string;
|
|
1306
|
+
}
|
|
1307
|
+
/**
|
|
1308
|
+
* YYMMDD / YYYYMMDD 날짜 입력 전용 `TextField`.
|
|
1309
|
+
*
|
|
1310
|
+
* 동작 규칙:
|
|
1311
|
+
* - 표시값은 `formatNumericDateWhenComplete`를 사용해 "완성 길이(6/8)"에서만 포맷 적용
|
|
1312
|
+
* - 입력값은 `normalizeNumericDate`로 숫자 외 문자를 제거한 뒤 부모 상태로 전달
|
|
1313
|
+
* - `placeholder` 미지정 시 `format` 문자열을 그대로 표시
|
|
1314
|
+
* - 모바일 숫자 키패드를 위해 `input`에 `inputMode='numeric'`을 적용 (`slotProps.htmlInput`으로 덮어쓸 수 있음)
|
|
1315
|
+
*/
|
|
1316
|
+
export declare function YmdTextField(props: YmdTextFieldProps): import("react").JSX.Element;
|
|
1317
|
+
//#endregion
|
|
1318
|
+
//#region src/components/YmdTypography.d.ts
|
|
1319
|
+
/**
|
|
1320
|
+
* 숫자 날짜 문자열을 포매팅해 출력하는 타이포그래피 컴포넌트 속성입니다.
|
|
1321
|
+
*/
|
|
1322
|
+
export interface YmdTypographyProps extends Omit<TypographyProps, 'children'> {
|
|
1323
|
+
/** YYYYMMDD 또는 YYMMDD 형식의 날짜 문자열 또는 숫자입니다. */
|
|
1324
|
+
value: number | string | null | undefined;
|
|
1325
|
+
/** 출력 포맷입니다. 예: `YYYY-MM-DD`, `YY/MM/DD` */
|
|
1326
|
+
format?: string;
|
|
1327
|
+
/** 값이 없거나 포매팅에 실패했을 때 대신 표시할 문자열입니다. */
|
|
1328
|
+
fallback?: string;
|
|
1329
|
+
/**
|
|
1330
|
+
* 가공하지 않고 표시, 기본값: false
|
|
1331
|
+
*/
|
|
1332
|
+
raw?: boolean;
|
|
1333
|
+
}
|
|
1334
|
+
/**
|
|
1335
|
+
* YMD 날짜 문자열을 지정한 형식으로 변환해 표시합니다.
|
|
1336
|
+
*/
|
|
1337
|
+
export declare function YmdTypography(props: YmdTypographyProps): import("react").JSX.Element;
|
|
1338
|
+
//#endregion
|
|
1339
|
+
//#region src/components/YmTypography.d.ts
|
|
1340
|
+
/**
|
|
1341
|
+
* 숫자 연월 문자열을 포매팅해 출력하는 타이포그래피 컴포넌트 속성입니다.
|
|
1342
|
+
*/
|
|
1343
|
+
export interface YmTypographyProps extends Omit<TypographyProps, 'children'> {
|
|
1344
|
+
/** YYYYMM 형식의 연월 문자열 또는 숫자입니다. */
|
|
1345
|
+
value: number | string | null | undefined;
|
|
1346
|
+
/** 출력 포맷입니다. 예: `YYYY-MM`, `YYYY/MM` */
|
|
1347
|
+
format?: string;
|
|
1348
|
+
/** 값이 없거나 포매팅에 실패했을 때 대신 표시할 문자열입니다. */
|
|
1349
|
+
fallback?: string;
|
|
1350
|
+
/**
|
|
1351
|
+
* 가공하지 않고 표시, 기본값: false
|
|
1352
|
+
*/
|
|
1353
|
+
raw?: boolean;
|
|
1354
|
+
}
|
|
1355
|
+
/**
|
|
1356
|
+
* YM 연월 문자열을 지정한 형식으로 변환해 표시합니다.
|
|
1357
|
+
*/
|
|
1358
|
+
export declare function YmTypography(props: YmTypographyProps): import("react").JSX.Element;
|
|
1359
|
+
//#endregion
|
|
1360
|
+
//#region src/util/event-utils.d.ts
|
|
1361
|
+
export declare const isTabKeyEvent: (e: React.KeyboardEvent) => boolean;
|
|
1362
|
+
export declare const isEnterOrTabKeyEvent: (e: React.KeyboardEvent) => boolean;
|
|
1363
|
+
export declare const isEnterKeyEvent: (e: React.KeyboardEvent) => boolean;
|
|
1364
|
+
export declare const isEscapeKeyEvent: (e: React.KeyboardEvent) => boolean;
|
|
1365
|
+
export declare const isTouchEvent: (event: MouseEvent | TouchEvent) => event is TouchEvent;
|
|
1366
|
+
export declare const isMouseEvent: (event: MouseEvent | TouchEvent) => event is MouseEvent;
|
|
1367
|
+
export declare const blurEventTarget: (event: {
|
|
1368
|
+
target: EventTarget | null;
|
|
959
1369
|
}, delay?: number) => void;
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
declare const
|
|
963
|
-
declare
|
|
964
|
-
declare function
|
|
965
|
-
declare function
|
|
966
|
-
declare function
|
|
967
|
-
|
|
968
|
-
|
|
1370
|
+
//#endregion
|
|
1371
|
+
//#region src/util/misc-utils.d.ts
|
|
1372
|
+
export declare const requestFocusSelector: (parent: HTMLElement | Document | undefined | null, selector: string, delay?: number) => void;
|
|
1373
|
+
export declare const requestSelector: (el: HTMLElement | Document | null | undefined, selector: string, callback: (elemnt: HTMLElement) => void, timeout?: number) => void;
|
|
1374
|
+
export declare function isWebSerialSupportBrowser(): boolean;
|
|
1375
|
+
export declare function isTouchDevice(): boolean;
|
|
1376
|
+
export declare function matchesOrClosest<T extends HTMLElement>(target: Element, selector: string): T | undefined;
|
|
1377
|
+
export declare function getAbsolutePosition(element: HTMLElement): {
|
|
1378
|
+
x: number;
|
|
1379
|
+
y: number;
|
|
969
1380
|
};
|
|
970
|
-
declare const isBrowser: boolean;
|
|
971
|
-
declare const isNavigator: boolean;
|
|
972
|
-
declare const noop: () => void;
|
|
973
|
-
|
|
1381
|
+
export declare const isBrowser: boolean;
|
|
1382
|
+
export declare const isNavigator: boolean;
|
|
1383
|
+
export declare const noop: () => void;
|
|
1384
|
+
//#endregion
|
|
1385
|
+
//#region src/util/sx-props.d.ts
|
|
974
1386
|
/**
|
|
975
1387
|
* SxProps를 flatten 한 배열로 만든다.
|
|
976
1388
|
* @param sxArray - SxProps의 배열
|
|
977
1389
|
* @returns SxProps
|
|
978
1390
|
*/
|
|
979
|
-
declare function flatSx<T extends Theme = Theme>(...sxArray: (SxProps<T> | undefined | false | null)[]): SxProps<T>;
|
|
980
|
-
declare function firstSx<T extends Theme = Theme>(...sxArray: (SxProps<T> | undefined)[]): SxProps<T> | undefined;
|
|
1391
|
+
export declare function flatSx<T extends Theme = Theme>(...sxArray: (SxProps<T> | undefined | false | null)[]): SxProps<T>;
|
|
1392
|
+
export declare function firstSx<T extends Theme = Theme>(...sxArray: (SxProps<T> | undefined)[]): SxProps<T> | undefined;
|
|
981
1393
|
/**
|
|
982
1394
|
* 다이얼로그 높이 SxProps
|
|
983
1395
|
* @param key - key of height
|
|
984
1396
|
* @param heightInPercent - height in percent [0~100]
|
|
985
1397
|
* @returns Mui Dialog의 높이 설정 SxProps
|
|
986
1398
|
*/
|
|
987
|
-
declare const sxDialogHeight: (key?: "height" | "minHeight" | "maxHeight", heightInPercent?: number) => {
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
1399
|
+
export declare const sxDialogHeight: (key?: "height" | "minHeight" | "maxHeight", heightInPercent?: number) => {
|
|
1400
|
+
'& .MuiDialog-scrollPaper > .MuiDialog-paper': {
|
|
1401
|
+
[x: string]: string;
|
|
1402
|
+
};
|
|
991
1403
|
};
|
|
992
|
-
|
|
993
|
-
export {
|
|
1404
|
+
//#endregion
|
|
1405
|
+
export { type BottomAbsoluteCenterProps, type BottomAbsoluteLeftProps, type BottomAbsoluteRightProps, type CenterAbsoluteCenterProps, type CenterAbsoluteLeftProps, type CenterAbsoluteRightProps, Closables, type FlexBaseProps, type HighlightProps, type PortletContentProps, type PortletFooterProps, type PortletHeaderProps, type PortletLabelProps, type PortletTitleProps, type PortletToolbarProps, type TopAbsoluteCenterProps, type TopAbsoluteLeftProps, type TopAbsoluteRightProps };
|
|
1406
|
+
//# sourceMappingURL=index.d.cts.map
|