@teamturing/react-kit 2.18.0 → 2.19.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/dist/core/FormControl/FormControlCaption.d.ts +5 -0
- package/dist/core/FormControl/FormControlErrorMessage.d.ts +5 -0
- package/dist/core/FormControl/FormControlLabel.d.ts +8 -0
- package/dist/core/FormControl/FormControlSuccessMessage.d.ts +5 -0
- package/dist/core/FormControl/index.d.ts +49 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1508 -1295
- package/esm/core/Checkbox/index.js +2 -2
- package/esm/core/FormControl/FormControlCaption.js +21 -0
- package/esm/core/FormControl/FormControlErrorMessage.js +34 -0
- package/esm/core/FormControl/FormControlLabel.js +79 -0
- package/esm/core/FormControl/FormControlSuccessMessage.js +34 -0
- package/esm/core/FormControl/index.js +87 -0
- package/esm/core/OverlaySelectInput/index.js +2 -2
- package/esm/core/Select/index.js +3 -3
- package/esm/core/TextInput/index.js +2 -2
- package/esm/index.js +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
type Props = {};
|
|
3
|
+
declare const FormControlErrorMessage: ({ children }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default FormControlErrorMessage;
|
|
5
|
+
export type { Props as FormControlErrorMessageProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { SxProp } from '../../utils/styled-system';
|
|
3
|
+
type Props = {
|
|
4
|
+
visuallyHidden?: boolean;
|
|
5
|
+
} & SxProp;
|
|
6
|
+
declare const FormControlLabel: ({ children, visuallyHidden, ...props }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default FormControlLabel;
|
|
8
|
+
export type { Props as FormControlLabelProps };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
type Props = {};
|
|
3
|
+
declare const FormControlSuccessMessage: ({ children }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default FormControlSuccessMessage;
|
|
5
|
+
export type { Props as FormControlSuccessMessageProps };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { FormControlCaptionProps } from './FormControlCaption';
|
|
3
|
+
import { FormControlErrorMessageProps } from './FormControlErrorMessage';
|
|
4
|
+
import { FormControlLabelProps } from './FormControlLabel';
|
|
5
|
+
import { FormControlSuccessMessageProps } from './FormControlSuccessMessage';
|
|
6
|
+
type Props = {
|
|
7
|
+
/**
|
|
8
|
+
* `FormControl`의 Input 요소를 컨트롤하기 위한 ID입니다. `Label`, `Caption`과 연결짓기 위해 사용합니다.
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* 사용자의 입력을 허용할지에 대한 여부입니다.
|
|
13
|
+
*/
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* 사용자의 입력을 필요로 하는지에 대한 여부입니다.
|
|
17
|
+
*/
|
|
18
|
+
required?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @default TextInput, Select, OverlaySelectInput, Checkbox
|
|
21
|
+
*
|
|
22
|
+
* FormControl이 허용하는 Input 컴포넌트를 추가로 정의합니다.
|
|
23
|
+
*/
|
|
24
|
+
additionalInputComponentCandidates: any[];
|
|
25
|
+
};
|
|
26
|
+
type FormControlFieldProps = {
|
|
27
|
+
name: string;
|
|
28
|
+
label: string;
|
|
29
|
+
caption?: string;
|
|
30
|
+
};
|
|
31
|
+
type FormControlContextValue = {} & Omit<Props, 'additionalInputComponentCandidates'>;
|
|
32
|
+
declare const FormControlContext: import("react").Context<Omit<Props, "additionalInputComponentCandidates">>;
|
|
33
|
+
declare const _default: import("react").ForwardRefExoticComponent<Props & {
|
|
34
|
+
children?: import("react").ReactNode;
|
|
35
|
+
} & import("react").RefAttributes<HTMLDivElement>> & {
|
|
36
|
+
Label: ({ children, visuallyHidden, ...props }: PropsWithChildren<FormControlLabelProps>) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
Caption: ({ children }: {
|
|
38
|
+
children?: import("react").ReactNode;
|
|
39
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
ErrorMessage: ({ children }: {
|
|
41
|
+
children?: import("react").ReactNode;
|
|
42
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
SuccessMessage: ({ children }: {
|
|
44
|
+
children?: import("react").ReactNode;
|
|
45
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
};
|
|
47
|
+
export default _default;
|
|
48
|
+
export { FormControlContext };
|
|
49
|
+
export type { Props as FormControlProps, FormControlFieldProps, FormControlContextValue, FormControlCaptionProps, FormControlErrorMessageProps, FormControlLabelProps, FormControlSuccessMessageProps, };
|
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export type { DialogProps } from './core/Dialog';
|
|
|
24
24
|
export { default as DialogHandler } from './core/DialogHandler';
|
|
25
25
|
export { default as EmptyState } from './core/EmptyState';
|
|
26
26
|
export type { EmptyStateProps } from './core/EmptyState';
|
|
27
|
+
export { default as FormControl } from './core/FormControl';
|
|
28
|
+
export type { FormControlProps, FormControlFieldProps, FormControlCaptionProps, FormControlErrorMessageProps, FormControlLabelProps, FormControlSuccessMessageProps, } from './core/FormControl';
|
|
27
29
|
export { default as GradientText } from './core/GradientText';
|
|
28
30
|
export type { GradientTextProps } from './core/GradientText';
|
|
29
31
|
export { default as Grid } from './core/Grid';
|