@teamturing/react-kit 2.31.1 → 2.32.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.
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
|
|
@@ -37001,8 +37009,7 @@ const FormControl = ({
|
|
|
37001
37009
|
display: 'inline-flex',
|
|
37002
37010
|
children: /*#__PURE__*/React.cloneElement(InputComponent, {
|
|
37003
37011
|
id,
|
|
37004
|
-
disabled
|
|
37005
|
-
required
|
|
37012
|
+
disabled
|
|
37006
37013
|
})
|
|
37007
37014
|
}), /*#__PURE__*/jsxRuntimeExports.jsxs(View, {
|
|
37008
37015
|
sx: {
|
|
@@ -37028,8 +37035,7 @@ const FormControl = ({
|
|
|
37028
37035
|
...props,
|
|
37029
37036
|
children: [relocatableComponentsObject.label, /*#__PURE__*/React.cloneElement(InputComponent, {
|
|
37030
37037
|
id,
|
|
37031
|
-
disabled
|
|
37032
|
-
required
|
|
37038
|
+
disabled
|
|
37033
37039
|
}), relocatableComponentsObject.caption, relocatableComponentsObject.errorMessage, relocatableComponentsObject.successMessage]
|
|
37034
37040
|
})
|
|
37035
37041
|
});
|
|
@@ -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
|
|
@@ -53,8 +53,7 @@ const FormControl = ({
|
|
|
53
53
|
display: 'inline-flex',
|
|
54
54
|
children: /*#__PURE__*/cloneElement(InputComponent, {
|
|
55
55
|
id,
|
|
56
|
-
disabled
|
|
57
|
-
required
|
|
56
|
+
disabled
|
|
58
57
|
})
|
|
59
58
|
}), /*#__PURE__*/jsxRuntimeExports.jsxs(View, {
|
|
60
59
|
sx: {
|
|
@@ -80,8 +79,7 @@ const FormControl = ({
|
|
|
80
79
|
...props,
|
|
81
80
|
children: [relocatableComponentsObject.label, /*#__PURE__*/cloneElement(InputComponent, {
|
|
82
81
|
id,
|
|
83
|
-
disabled
|
|
84
|
-
required
|
|
82
|
+
disabled
|
|
85
83
|
}), relocatableComponentsObject.caption, relocatableComponentsObject.errorMessage, relocatableComponentsObject.successMessage]
|
|
86
84
|
})
|
|
87
85
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.32.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",
|
|
@@ -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": "a0b85d1cbbb9b1a48bc40e4cfa916b8fe224405f"
|
|
70
70
|
}
|