@teamturing/react-kit 2.21.22 → 2.22.1
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.
|
@@ -10,6 +10,10 @@ type Props = {
|
|
|
10
10
|
*/
|
|
11
11
|
leadingVisual?: ElementType | ReactNode;
|
|
12
12
|
placeholder?: string;
|
|
13
|
+
/**
|
|
14
|
+
* option list에서 placeholder option를 선택할 수 있는지 여부를 나타냅니다
|
|
15
|
+
*/
|
|
16
|
+
disabledPlaceholderOption?: boolean;
|
|
13
17
|
} & SelectHTMLAttributes<HTMLSelectElement>;
|
|
14
18
|
declare const _default: import("react").ForwardRefExoticComponent<{
|
|
15
19
|
/**
|
|
@@ -21,6 +25,10 @@ declare const _default: import("react").ForwardRefExoticComponent<{
|
|
|
21
25
|
*/
|
|
22
26
|
leadingVisual?: string | number | boolean | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | import("react").ReactPortal | null | undefined;
|
|
23
27
|
placeholder?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* option list에서 placeholder option를 선택할 수 있는지 여부를 나타냅니다
|
|
30
|
+
*/
|
|
31
|
+
disabledPlaceholderOption?: boolean | undefined;
|
|
24
32
|
} & SelectHTMLAttributes<HTMLSelectElement> & import("react").RefAttributes<HTMLSelectElement>> & {
|
|
25
33
|
Option: ({ children: propChildren, ...props }: import("react").OptionHTMLAttributes<HTMLOptionElement>) => import("react/jsx-runtime").JSX.Element;
|
|
26
34
|
};
|
package/dist/index.js
CHANGED
|
@@ -2972,7 +2972,7 @@ const SvgNote = props => /*#__PURE__*/React__namespace.createElement("svg", _ext
|
|
|
2972
2972
|
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
2973
2973
|
fill: "currentColor",
|
|
2974
2974
|
fillRule: "evenodd",
|
|
2975
|
-
d: "
|
|
2975
|
+
d: "M4.5 2h15a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1h-15a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1ZM7 6a1 1 0 0 0 0 2h5a1 1 0 1 0 0-2H7Zm0 4a1 1 0 1 0 0 2h10a1 1 0 1 0 0-2H7Z",
|
|
2976
2976
|
clipRule: "evenodd"
|
|
2977
2977
|
}));
|
|
2978
2978
|
|
|
@@ -21568,6 +21568,7 @@ const Select = ({
|
|
|
21568
21568
|
children,
|
|
21569
21569
|
disabled,
|
|
21570
21570
|
validationStatus,
|
|
21571
|
+
disabledPlaceholderOption = false,
|
|
21571
21572
|
leadingVisual: LeadingVisual,
|
|
21572
21573
|
placeholder = '옵션 선택',
|
|
21573
21574
|
...props
|
|
@@ -21618,7 +21619,8 @@ const Select = ({
|
|
|
21618
21619
|
},
|
|
21619
21620
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx(SelectOption, {
|
|
21620
21621
|
label: placeholder,
|
|
21621
|
-
value: PLACEHOLDER_VALUE
|
|
21622
|
+
value: PLACEHOLDER_VALUE,
|
|
21623
|
+
disabled: disabledPlaceholderOption
|
|
21622
21624
|
}), children]
|
|
21623
21625
|
}), /*#__PURE__*/jsxRuntimeExports.jsx(StyledIcon, {
|
|
21624
21626
|
sx: {
|
package/esm/core/Select/index.js
CHANGED
|
@@ -15,6 +15,7 @@ const Select = ({
|
|
|
15
15
|
children,
|
|
16
16
|
disabled,
|
|
17
17
|
validationStatus,
|
|
18
|
+
disabledPlaceholderOption = false,
|
|
18
19
|
leadingVisual: LeadingVisual,
|
|
19
20
|
placeholder = '옵션 선택',
|
|
20
21
|
...props
|
|
@@ -65,7 +66,8 @@ const Select = ({
|
|
|
65
66
|
},
|
|
66
67
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx(SelectOption, {
|
|
67
68
|
label: placeholder,
|
|
68
|
-
value: PLACEHOLDER_VALUE
|
|
69
|
+
value: PLACEHOLDER_VALUE,
|
|
70
|
+
disabled: disabledPlaceholderOption
|
|
69
71
|
}), children]
|
|
70
72
|
}), /*#__PURE__*/jsxRuntimeExports.jsx(StyledIcon, {
|
|
71
73
|
sx: {
|
|
@@ -10,7 +10,7 @@ const SvgNote = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
|
10
10
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
11
11
|
fill: "currentColor",
|
|
12
12
|
fillRule: "evenodd",
|
|
13
|
-
d: "
|
|
13
|
+
d: "M4.5 2h15a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1h-15a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1ZM7 6a1 1 0 0 0 0 2h5a1 1 0 1 0 0-2H7Zm0 4a1 1 0 1 0 0 2h10a1 1 0 1 0 0-2H7Z",
|
|
14
14
|
clipRule: "evenodd"
|
|
15
15
|
}));
|
|
16
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.1",
|
|
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.35.
|
|
58
|
+
"@teamturing/icons": "^1.35.2",
|
|
59
59
|
"@teamturing/token-studio": "^1.3.0",
|
|
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": "4bfbcc65e4193aabb637d9279d8d724ebffd8570"
|
|
70
70
|
}
|