@teamturing/react-kit 2.21.21 → 2.22.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.
|
@@ -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
|
@@ -2479,7 +2479,7 @@ const SvgHome = props => /*#__PURE__*/React__namespace.createElement("svg", _ext
|
|
|
2479
2479
|
fill: "none",
|
|
2480
2480
|
viewBox: "0 0 24 24"
|
|
2481
2481
|
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
2482
|
-
fill: "
|
|
2482
|
+
fill: "currentColor",
|
|
2483
2483
|
fillRule: "evenodd",
|
|
2484
2484
|
d: "m21.069 8.204-8.447-6.717a.998.998 0 0 0-1.244 0L2.93 8.204a2 2 0 0 0-.755 1.565v9.418a2.4 2.4 0 0 0 2.4 2.4H10v-4.752a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4.752h5.424a2.4 2.4 0 0 0 2.4-2.4V9.77a2 2 0 0 0-.755-1.565",
|
|
2485
2485
|
clipRule: "evenodd"
|
|
@@ -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: {
|
|
@@ -8,7 +8,7 @@ const SvgHome = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
|
8
8
|
fill: "none",
|
|
9
9
|
viewBox: "0 0 24 24"
|
|
10
10
|
}, props), /*#__PURE__*/React.createElement("path", {
|
|
11
|
-
fill: "
|
|
11
|
+
fill: "currentColor",
|
|
12
12
|
fillRule: "evenodd",
|
|
13
13
|
d: "m21.069 8.204-8.447-6.717a.998.998 0 0 0-1.244 0L2.93 8.204a2 2 0 0 0-.755 1.565v9.418a2.4 2.4 0 0 0 2.4 2.4H10v-4.752a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4.752h5.424a2.4 2.4 0 0 0 2.4-2.4V9.77a2 2 0 0 0-.755-1.565",
|
|
14
14
|
clipRule: "evenodd"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
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.1",
|
|
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": "dfef2722d05909a1af7822c74ccc76323c3904f5"
|
|
70
70
|
}
|