@teamturing/react-kit 2.21.22 → 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
@@ -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: {
@@ -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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.21.22",
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",
@@ -66,5 +66,5 @@
66
66
  "react-textarea-autosize": "^8.5.3",
67
67
  "styled-system": "^5.1.5"
68
68
  },
69
- "gitHead": "0a4ebe64dcc685358610a6014eb6702ba7872e6f"
69
+ "gitHead": "dfef2722d05909a1af7822c74ccc76323c3904f5"
70
70
  }