@teamturing/react-kit 2.31.1 → 2.32.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/index.js CHANGED
@@ -36881,10 +36881,10 @@ const FormControlLabel = ({
36881
36881
  children: /*#__PURE__*/jsxRuntimeExports.jsxs(LabelWrapper, {
36882
36882
  ...props,
36883
36883
  disabled: disabled,
36884
- children: [children, required ? /*#__PURE__*/jsxRuntimeExports.jsx(View, {
36884
+ children: [children, typeof required === 'boolean' && required === false ? /*#__PURE__*/jsxRuntimeExports.jsx(View, {
36885
36885
  as: 'span',
36886
36886
  "aria-hidden": "true",
36887
- children: ' *'
36887
+ children: ' (선택)'
36888
36888
  }) : null]
36889
36889
  })
36890
36890
  });
@@ -36931,6 +36931,14 @@ const LabelWrapper = styled__default.default(View)`
36931
36931
  disabled
36932
36932
  }) => disabled ? 'not-allowed' : 'pointer'};
36933
36933
 
36934
+ span {
36935
+ font-size: inherit;
36936
+ font-weight: inherit;
36937
+ color: ${({
36938
+ theme
36939
+ }) => theme.colors['text/neutral/subtlest']};
36940
+ }
36941
+
36934
36942
  ${sx};
36935
36943
  `;
36936
36944
 
@@ -36966,7 +36974,7 @@ const FormControl = ({
36966
36974
  children: propChildren,
36967
36975
  id,
36968
36976
  disabled,
36969
- required,
36977
+ required = true,
36970
36978
  additionalInputComponentCandidates = [],
36971
36979
  sx,
36972
36980
  ...props
@@ -26,10 +26,10 @@ const FormControlLabel = ({
26
26
  children: /*#__PURE__*/jsxRuntimeExports.jsxs(LabelWrapper, {
27
27
  ...props,
28
28
  disabled: disabled,
29
- children: [children, required ? /*#__PURE__*/jsxRuntimeExports.jsx(View, {
29
+ children: [children, typeof required === 'boolean' && required === false ? /*#__PURE__*/jsxRuntimeExports.jsx(View, {
30
30
  as: 'span',
31
31
  "aria-hidden": "true",
32
- children: ' *'
32
+ children: ' (선택)'
33
33
  }) : null]
34
34
  })
35
35
  });
@@ -76,6 +76,14 @@ const LabelWrapper = styled(View)`
76
76
  disabled
77
77
  }) => disabled ? 'not-allowed' : 'pointer'};
78
78
 
79
+ span {
80
+ font-size: inherit;
81
+ font-weight: inherit;
82
+ color: ${({
83
+ theme
84
+ }) => theme.colors['text/neutral/subtlest']};
85
+ }
86
+
79
87
  ${sx};
80
88
  `;
81
89
 
@@ -18,7 +18,7 @@ const FormControl = ({
18
18
  children: propChildren,
19
19
  id,
20
20
  disabled,
21
- required,
21
+ required = true,
22
22
  additionalInputComponentCandidates = [],
23
23
  sx,
24
24
  ...props
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.31.1",
3
+ "version": "2.32.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": "a724347214e59c6970886c6dc918fc6c88846d71"
69
+ "gitHead": "6967e297d1cb06b3150091503f4ab0bf75a79ffb"
70
70
  }