@teamturing/react-kit 2.21.7 → 2.21.9
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { ViewProps } from '../View';
|
|
2
3
|
import { FormControlCaptionProps } from './FormControlCaption';
|
|
3
4
|
import { FormControlErrorMessageProps } from './FormControlErrorMessage';
|
|
4
5
|
import { FormControlLabelProps } from './FormControlLabel';
|
|
@@ -22,7 +23,7 @@ type Props = {
|
|
|
22
23
|
* FormControl이 허용하는 Input 컴포넌트를 추가로 정의합니다.
|
|
23
24
|
*/
|
|
24
25
|
additionalInputComponentCandidates?: any[];
|
|
25
|
-
}
|
|
26
|
+
} & Pick<ViewProps, 'sx'>;
|
|
26
27
|
type FormControlFieldProps = {
|
|
27
28
|
name: string;
|
|
28
29
|
label: string;
|
|
@@ -30,7 +31,26 @@ type FormControlFieldProps = {
|
|
|
30
31
|
};
|
|
31
32
|
type FormControlContextValue = {} & Omit<Props, 'additionalInputComponentCandidates'>;
|
|
32
33
|
declare const FormControlContext: import("react").Context<Omit<Props, "additionalInputComponentCandidates">>;
|
|
33
|
-
declare const _default: import("react").ForwardRefExoticComponent<
|
|
34
|
+
declare const _default: import("react").ForwardRefExoticComponent<{
|
|
35
|
+
/**
|
|
36
|
+
* `FormControl`의 Input 요소를 컨트롤하기 위한 ID입니다. `Label`, `Caption`과 연결짓기 위해 사용합니다.
|
|
37
|
+
*/
|
|
38
|
+
id?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* 사용자의 입력을 허용할지에 대한 여부입니다.
|
|
41
|
+
*/
|
|
42
|
+
disabled?: boolean | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* 사용자의 입력을 필요로 하는지에 대한 여부입니다.
|
|
45
|
+
*/
|
|
46
|
+
required?: boolean | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* @default TextInput, Select, SearchSelectInput, Checkbox
|
|
49
|
+
*
|
|
50
|
+
* FormControl이 허용하는 Input 컴포넌트를 추가로 정의합니다.
|
|
51
|
+
*/
|
|
52
|
+
additionalInputComponentCandidates?: any[] | undefined;
|
|
53
|
+
} & Pick<ViewProps, "sx"> & {
|
|
34
54
|
children?: import("react").ReactNode;
|
|
35
55
|
} & import("react").RefAttributes<HTMLDivElement>> & {
|
|
36
56
|
Label: ({ children, visuallyHidden, ...props }: PropsWithChildren<FormControlLabelProps>) => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -4299,6 +4299,23 @@ const SvgWorkbookColor = props => /*#__PURE__*/React__namespace.createElement("s
|
|
|
4299
4299
|
rx: 1.546
|
|
4300
4300
|
}));
|
|
4301
4301
|
|
|
4302
|
+
const SvgWorkbookTwoColor = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
4303
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4304
|
+
width: "1em",
|
|
4305
|
+
height: "1em",
|
|
4306
|
+
fill: "none",
|
|
4307
|
+
viewBox: "0 0 24 24"
|
|
4308
|
+
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
4309
|
+
fill: "#D9CDF9",
|
|
4310
|
+
d: "M8.1 1.5A1.5 1.5 0 0 0 6.6 3v1.41h10.601a1.5 1.5 0 0 1 1.5 1.5v12.467h1.4a1.5 1.5 0 0 0 1.5-1.5V3a1.5 1.5 0 0 0-1.5-1.5h-12Z"
|
|
4311
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
4312
|
+
fill: "#D9CDF9",
|
|
4313
|
+
d: "M2.5 7.123a1.5 1.5 0 0 1 1.5-1.5h12.001a1.5 1.5 0 0 1 1.5 1.5V21a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 2.5 21V7.123Z"
|
|
4314
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
4315
|
+
fill: "#9C7EEF",
|
|
4316
|
+
d: "M2.5 7.123a1.5 1.5 0 0 1 1.5-1.5h.688V22.5H4A1.5 1.5 0 0 1 2.5 21V7.123ZM7.15 9.32c0-.519.42-.938.938-.938h5.626a.938.938 0 1 1 0 1.875H8.088a.938.938 0 0 1-.938-.938Z"
|
|
4317
|
+
}));
|
|
4318
|
+
|
|
4302
4319
|
const SvgWrong = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
4303
4320
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4304
4321
|
width: "1em",
|
|
@@ -4528,6 +4545,7 @@ var icons = /*#__PURE__*/Object.freeze({
|
|
|
4528
4545
|
WifiIcon: SvgWifi,
|
|
4529
4546
|
WorkbookColorIcon: SvgWorkbookColor,
|
|
4530
4547
|
WorkbookIcon: SvgWorkbook,
|
|
4548
|
+
WorkbookTwoColorIcon: SvgWorkbookTwoColor,
|
|
4531
4549
|
WrongIcon: SvgWrong,
|
|
4532
4550
|
YoutubeIcon: SvgYoutube
|
|
4533
4551
|
});
|
|
@@ -22720,7 +22738,8 @@ const FormControl = ({
|
|
|
22720
22738
|
id,
|
|
22721
22739
|
disabled,
|
|
22722
22740
|
required,
|
|
22723
|
-
additionalInputComponentCandidates = []
|
|
22741
|
+
additionalInputComponentCandidates = [],
|
|
22742
|
+
sx
|
|
22724
22743
|
}, ref) => {
|
|
22725
22744
|
const [relocatableComponentsObject, restComponents] = useRelocation({
|
|
22726
22745
|
children: propChildren,
|
|
@@ -22744,7 +22763,8 @@ const FormControl = ({
|
|
|
22744
22763
|
ref: ref,
|
|
22745
22764
|
display: 'flex',
|
|
22746
22765
|
sx: {
|
|
22747
|
-
columnGap: 2
|
|
22766
|
+
columnGap: 2,
|
|
22767
|
+
...sx
|
|
22748
22768
|
},
|
|
22749
22769
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx(View, {
|
|
22750
22770
|
display: 'inline-flex',
|
|
@@ -22771,7 +22791,8 @@ const FormControl = ({
|
|
|
22771
22791
|
},
|
|
22772
22792
|
'& > span': {
|
|
22773
22793
|
mt: 1
|
|
22774
|
-
}
|
|
22794
|
+
},
|
|
22795
|
+
...sx
|
|
22775
22796
|
},
|
|
22776
22797
|
children: [relocatableComponentsObject.label, /*#__PURE__*/React.cloneElement(InputComponent, {
|
|
22777
22798
|
id,
|
|
@@ -19,7 +19,8 @@ const FormControl = ({
|
|
|
19
19
|
id,
|
|
20
20
|
disabled,
|
|
21
21
|
required,
|
|
22
|
-
additionalInputComponentCandidates = []
|
|
22
|
+
additionalInputComponentCandidates = [],
|
|
23
|
+
sx
|
|
23
24
|
}, ref) => {
|
|
24
25
|
const [relocatableComponentsObject, restComponents] = useRelocation({
|
|
25
26
|
children: propChildren,
|
|
@@ -43,7 +44,8 @@ const FormControl = ({
|
|
|
43
44
|
ref: ref,
|
|
44
45
|
display: 'flex',
|
|
45
46
|
sx: {
|
|
46
|
-
columnGap: 2
|
|
47
|
+
columnGap: 2,
|
|
48
|
+
...sx
|
|
47
49
|
},
|
|
48
50
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx(View, {
|
|
49
51
|
display: 'inline-flex',
|
|
@@ -70,7 +72,8 @@ const FormControl = ({
|
|
|
70
72
|
},
|
|
71
73
|
'& > span': {
|
|
72
74
|
mt: 1
|
|
73
|
-
}
|
|
75
|
+
},
|
|
76
|
+
...sx
|
|
74
77
|
},
|
|
75
78
|
children: [relocatableComponentsObject.label, /*#__PURE__*/cloneElement(InputComponent, {
|
|
76
79
|
id,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
const SvgWorkbookTwoColor = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
width: "1em",
|
|
7
|
+
height: "1em",
|
|
8
|
+
fill: "none",
|
|
9
|
+
viewBox: "0 0 24 24"
|
|
10
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
11
|
+
fill: "#D9CDF9",
|
|
12
|
+
d: "M8.1 1.5A1.5 1.5 0 0 0 6.6 3v1.41h10.601a1.5 1.5 0 0 1 1.5 1.5v12.467h1.4a1.5 1.5 0 0 0 1.5-1.5V3a1.5 1.5 0 0 0-1.5-1.5h-12Z"
|
|
13
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
14
|
+
fill: "#D9CDF9",
|
|
15
|
+
d: "M2.5 7.123a1.5 1.5 0 0 1 1.5-1.5h12.001a1.5 1.5 0 0 1 1.5 1.5V21a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 2.5 21V7.123Z"
|
|
16
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
17
|
+
fill: "#9C7EEF",
|
|
18
|
+
d: "M2.5 7.123a1.5 1.5 0 0 1 1.5-1.5h.688V22.5H4A1.5 1.5 0 0 1 2.5 21V7.123ZM7.15 9.32c0-.519.42-.938.938-.938h5.626a.938.938 0 1 1 0 1.875H8.088a.938.938 0 0 1-.938-.938Z"
|
|
19
|
+
}));
|
|
20
|
+
|
|
21
|
+
export { SvgWorkbookTwoColor as default };
|
|
@@ -196,5 +196,6 @@ export { default as WarningIcon } from './Warning.js';
|
|
|
196
196
|
export { default as WifiIcon } from './Wifi.js';
|
|
197
197
|
export { default as WorkbookIcon } from './Workbook.js';
|
|
198
198
|
export { default as WorkbookColorIcon } from './WorkbookColor.js';
|
|
199
|
+
export { default as WorkbookTwoColorIcon } from './WorkbookTwoColor.js';
|
|
199
200
|
export { default as WrongIcon } from './Wrong.js';
|
|
200
201
|
export { default as YoutubeIcon } from './Youtube.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "2.21.
|
|
3
|
+
"version": "2.21.9",
|
|
4
4
|
"description": "React components, hooks for create teamturing web application",
|
|
5
5
|
"author": "Sungchang Park <psch300@gmail.com> (https://github.com/psch300)",
|
|
6
6
|
"homepage": "https://github.com/weareteamturing/bombe#readme",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@floating-ui/react-dom": "^2.0.2",
|
|
57
57
|
"@primer/behaviors": "^1.3.6",
|
|
58
|
-
"@teamturing/icons": "^1.
|
|
58
|
+
"@teamturing/icons": "^1.27.0",
|
|
59
59
|
"@teamturing/token-studio": "^1.2.2",
|
|
60
60
|
"@teamturing/utils": "^1.2.0",
|
|
61
61
|
"framer-motion": "^10.16.4",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"react-textarea-autosize": "^8.5.3",
|
|
67
67
|
"styled-system": "^5.1.5"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "693b38dd227d8d3a01521d9d42feb44dd29ac975"
|
|
70
70
|
}
|