@teamturing/react-kit 2.31.0 → 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
@@ -1366,6 +1366,30 @@ const SvgBook = props => /*#__PURE__*/React__namespace.createElement("svg", _ext
1366
1366
  clipRule: "evenodd"
1367
1367
  }));
1368
1368
 
1369
+ const SvgBookColor = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
1370
+ xmlns: "http://www.w3.org/2000/svg",
1371
+ width: "1em",
1372
+ height: "1em",
1373
+ fill: "none",
1374
+ viewBox: "0 0 24 24"
1375
+ }, props), /*#__PURE__*/React__namespace.createElement("path", {
1376
+ fill: "#C6D8FA",
1377
+ fillRule: "evenodd",
1378
+ d: "M6.449 2A2.449 2.449 0 0 0 4 4.449v15.102a2.449 2.449 0 0 0 2.62 2.443c.045.004.09.006.135.006h13.163c.451 0 .817-.366.817-.816v-.409a.816.816 0 0 0-.817-.816H7.265a.816.816 0 0 1 0-1.633H19.918c.451 0 .817-.365.817-.816V2.816A.816.816 0 0 0 19.918 2H6.45Zm2.857 2.857a.816.816 0 0 0-.816.816v1.633c0 .451.365.816.816.816h7.347c.45 0 .816-.365.816-.816V5.673a.816.816 0 0 0-.816-.816H9.306Z",
1379
+ clipRule: "evenodd"
1380
+ }), /*#__PURE__*/React__namespace.createElement("path", {
1381
+ fill: "#C6D8FA",
1382
+ d: "M19.918 19.96H7.265a.816.816 0 0 1 0-1.634H19.918v1.633Z"
1383
+ }), /*#__PURE__*/React__namespace.createElement("path", {
1384
+ fill: "#6D99F1",
1385
+ fillRule: "evenodd",
1386
+ d: "M20 19.96v-1.634H7.265a.816.816 0 0 0 0 1.633H20Z",
1387
+ clipRule: "evenodd"
1388
+ }), /*#__PURE__*/React__namespace.createElement("path", {
1389
+ fill: "#6D99F1",
1390
+ d: "M9.306 4.857a.816.816 0 0 0-.816.816v1.633c0 .451.365.816.816.816h7.347c.45 0 .816-.365.816-.816V5.673a.816.816 0 0 0-.816-.816H9.306Z"
1391
+ }));
1392
+
1369
1393
  const SvgBookmark = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
1370
1394
  xmlns: "http://www.w3.org/2000/svg",
1371
1395
  width: "1em",
@@ -3730,6 +3754,30 @@ const SvgQuestionMarkInCircleOutlined = props => /*#__PURE__*/React__namespace.c
3730
3754
  d: "M13.652 12.569c.629-.403 1.487-.953 1.774-2.201.224-.974.016-1.927-.586-2.683-.681-.855-1.817-1.385-2.966-1.385A3.578 3.578 0 0 0 8.3 9.874a.9.9 0 1 0 1.8 0c0-.978.796-1.775 1.774-1.775.605 0 1.216.278 1.558.707.261.328.341.718.24 1.16-.117.507-.42.722-.992 1.087l-.002.001c-.72.461-1.704 1.091-1.704 2.695a.9.9 0 1 0 1.8 0c0-.589.225-.763.876-1.179l.002-.001ZM11.041 17.756a1.2 1.2 0 1 0 1.697-1.697 1.2 1.2 0 0 0-1.697 1.697Z"
3731
3755
  }));
3732
3756
 
3757
+ const SvgQuizColor = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
3758
+ xmlns: "http://www.w3.org/2000/svg",
3759
+ width: "1em",
3760
+ height: "1em",
3761
+ fill: "none",
3762
+ viewBox: "0 0 24 24"
3763
+ }, props), /*#__PURE__*/React__namespace.createElement("path", {
3764
+ fill: "#6D99F1",
3765
+ d: "m21.443 4.23-4.86-1.12c.272.413.418.896.42 1.39v13.002a2.5 2.5 0 0 1-2.501 2.5h-4.78l7.67 1.771a2.5 2.5 0 0 0 3-1.87L23.314 7.23a2.49 2.49 0 0 0-1.87-3Z"
3766
+ }), /*#__PURE__*/React__namespace.createElement("path", {
3767
+ fill: "#C6D8FA",
3768
+ d: "M8.895 7.776a3.244 3.244 0 1 0 0 6.488 3.244 3.244 0 0 0 0-6.488Z"
3769
+ }), /*#__PURE__*/React__namespace.createElement("path", {
3770
+ fill: "#C6D8FA",
3771
+ fillRule: "evenodd",
3772
+ d: "M17.012 17.502V4.5a2.502 2.502 0 0 0-2.51-2.5H3.5A2.5 2.5 0 0 0 1 4.5v13.002a2.5 2.5 0 0 0 2.5 2.5h11.012a2.5 2.5 0 0 0 2.5-2.5ZM4 11.02a4.894 4.894 0 1 1 9.79 0 4.894 4.894 0 0 1-9.79 0Z",
3773
+ clipRule: "evenodd"
3774
+ }), /*#__PURE__*/React__namespace.createElement("path", {
3775
+ fill: "#6D99F1",
3776
+ fillRule: "evenodd",
3777
+ d: "M8.895 6.126a4.894 4.894 0 1 0 0 9.789 4.894 4.894 0 0 0 0-9.79ZM5.65 11.02a3.244 3.244 0 1 1 6.488 0 3.244 3.244 0 0 1-6.488 0Z",
3778
+ clipRule: "evenodd"
3779
+ }));
3780
+
3733
3781
  const SvgRaffleColor = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
3734
3782
  xmlns: "http://www.w3.org/2000/svg",
3735
3783
  width: "1em",
@@ -4667,6 +4715,7 @@ var icons = /*#__PURE__*/Object.freeze({
4667
4715
  ArrowUpLimitIcon: SvgArrowUpLimit,
4668
4716
  AutoIcon: SvgAuto,
4669
4717
  BarchartIcon: SvgBarchart,
4718
+ BookColorIcon: SvgBookColor,
4670
4719
  BookIcon: SvgBook,
4671
4720
  BookmarkAnimationIcon: SvgBookmarkAnimation,
4672
4721
  BookmarkIcon: SvgBookmark,
@@ -4815,6 +4864,7 @@ var icons = /*#__PURE__*/Object.freeze({
4815
4864
  ProgressGradientIcon: SvgProgressGradient,
4816
4865
  QuestionMarkInCircleIcon: SvgQuestionMarkInCircle,
4817
4866
  QuestionMarkInCircleOutlinedIcon: SvgQuestionMarkInCircleOutlined,
4867
+ QuizColorIcon: SvgQuizColor,
4818
4868
  RaffleColorIcon: SvgRaffleColor,
4819
4869
  ReceiptIcon: SvgReceipt,
4820
4870
  RefreshIcon: SvgRefresh,
@@ -36831,10 +36881,10 @@ const FormControlLabel = ({
36831
36881
  children: /*#__PURE__*/jsxRuntimeExports.jsxs(LabelWrapper, {
36832
36882
  ...props,
36833
36883
  disabled: disabled,
36834
- children: [children, required ? /*#__PURE__*/jsxRuntimeExports.jsx(View, {
36884
+ children: [children, typeof required === 'boolean' && required === false ? /*#__PURE__*/jsxRuntimeExports.jsx(View, {
36835
36885
  as: 'span',
36836
36886
  "aria-hidden": "true",
36837
- children: ' *'
36887
+ children: ' (선택)'
36838
36888
  }) : null]
36839
36889
  })
36840
36890
  });
@@ -36881,6 +36931,14 @@ const LabelWrapper = styled__default.default(View)`
36881
36931
  disabled
36882
36932
  }) => disabled ? 'not-allowed' : 'pointer'};
36883
36933
 
36934
+ span {
36935
+ font-size: inherit;
36936
+ font-weight: inherit;
36937
+ color: ${({
36938
+ theme
36939
+ }) => theme.colors['text/neutral/subtlest']};
36940
+ }
36941
+
36884
36942
  ${sx};
36885
36943
  `;
36886
36944
 
@@ -36916,7 +36974,7 @@ const FormControl = ({
36916
36974
  children: propChildren,
36917
36975
  id,
36918
36976
  disabled,
36919
- required,
36977
+ required = true,
36920
36978
  additionalInputComponentCandidates = [],
36921
36979
  sx,
36922
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
@@ -0,0 +1,28 @@
1
+ import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
2
+ import * as React from 'react';
3
+
4
+ const SvgBookColor = props => /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "1em",
7
+ height: "1em",
8
+ fill: "none",
9
+ viewBox: "0 0 24 24"
10
+ }, props), /*#__PURE__*/React.createElement("path", {
11
+ fill: "#C6D8FA",
12
+ fillRule: "evenodd",
13
+ d: "M6.449 2A2.449 2.449 0 0 0 4 4.449v15.102a2.449 2.449 0 0 0 2.62 2.443c.045.004.09.006.135.006h13.163c.451 0 .817-.366.817-.816v-.409a.816.816 0 0 0-.817-.816H7.265a.816.816 0 0 1 0-1.633H19.918c.451 0 .817-.365.817-.816V2.816A.816.816 0 0 0 19.918 2H6.45Zm2.857 2.857a.816.816 0 0 0-.816.816v1.633c0 .451.365.816.816.816h7.347c.45 0 .816-.365.816-.816V5.673a.816.816 0 0 0-.816-.816H9.306Z",
14
+ clipRule: "evenodd"
15
+ }), /*#__PURE__*/React.createElement("path", {
16
+ fill: "#C6D8FA",
17
+ d: "M19.918 19.96H7.265a.816.816 0 0 1 0-1.634H19.918v1.633Z"
18
+ }), /*#__PURE__*/React.createElement("path", {
19
+ fill: "#6D99F1",
20
+ fillRule: "evenodd",
21
+ d: "M20 19.96v-1.634H7.265a.816.816 0 0 0 0 1.633H20Z",
22
+ clipRule: "evenodd"
23
+ }), /*#__PURE__*/React.createElement("path", {
24
+ fill: "#6D99F1",
25
+ d: "M9.306 4.857a.816.816 0 0 0-.816.816v1.633c0 .451.365.816.816.816h7.347c.45 0 .816-.365.816-.816V5.673a.816.816 0 0 0-.816-.816H9.306Z"
26
+ }));
27
+
28
+ export { SvgBookColor as default };
@@ -0,0 +1,28 @@
1
+ import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
2
+ import * as React from 'react';
3
+
4
+ const SvgQuizColor = props => /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "1em",
7
+ height: "1em",
8
+ fill: "none",
9
+ viewBox: "0 0 24 24"
10
+ }, props), /*#__PURE__*/React.createElement("path", {
11
+ fill: "#6D99F1",
12
+ d: "m21.443 4.23-4.86-1.12c.272.413.418.896.42 1.39v13.002a2.5 2.5 0 0 1-2.501 2.5h-4.78l7.67 1.771a2.5 2.5 0 0 0 3-1.87L23.314 7.23a2.49 2.49 0 0 0-1.87-3Z"
13
+ }), /*#__PURE__*/React.createElement("path", {
14
+ fill: "#C6D8FA",
15
+ d: "M8.895 7.776a3.244 3.244 0 1 0 0 6.488 3.244 3.244 0 0 0 0-6.488Z"
16
+ }), /*#__PURE__*/React.createElement("path", {
17
+ fill: "#C6D8FA",
18
+ fillRule: "evenodd",
19
+ d: "M17.012 17.502V4.5a2.502 2.502 0 0 0-2.51-2.5H3.5A2.5 2.5 0 0 0 1 4.5v13.002a2.5 2.5 0 0 0 2.5 2.5h11.012a2.5 2.5 0 0 0 2.5-2.5ZM4 11.02a4.894 4.894 0 1 1 9.79 0 4.894 4.894 0 0 1-9.79 0Z",
20
+ clipRule: "evenodd"
21
+ }), /*#__PURE__*/React.createElement("path", {
22
+ fill: "#6D99F1",
23
+ fillRule: "evenodd",
24
+ d: "M8.895 6.126a4.894 4.894 0 1 0 0 9.789 4.894 4.894 0 0 0 0-9.79ZM5.65 11.02a3.244 3.244 0 1 1 6.488 0 3.244 3.244 0 0 1-6.488 0Z",
25
+ clipRule: "evenodd"
26
+ }));
27
+
28
+ export { SvgQuizColor as default };
@@ -19,6 +19,7 @@ export { default as ArrowUpLimitIcon } from './ArrowUpLimit.js';
19
19
  export { default as AutoIcon } from './Auto.js';
20
20
  export { default as BarchartIcon } from './Barchart.js';
21
21
  export { default as BookIcon } from './Book.js';
22
+ export { default as BookColorIcon } from './BookColor.js';
22
23
  export { default as BookmarkIcon } from './Bookmark.js';
23
24
  export { default as BookmarkAnimationIcon } from './BookmarkAnimation.js';
24
25
  export { default as BoxIcon } from './Box.js';
@@ -166,6 +167,7 @@ export { default as ProfileIcon } from './Profile.js';
166
167
  export { default as ProgressGradientIcon } from './ProgressGradient.js';
167
168
  export { default as QuestionMarkInCircleIcon } from './QuestionMarkInCircle.js';
168
169
  export { default as QuestionMarkInCircleOutlinedIcon } from './QuestionMarkInCircleOutlined.js';
170
+ export { default as QuizColorIcon } from './QuizColor.js';
169
171
  export { default as RaffleColorIcon } from './RaffleColor.js';
170
172
  export { default as ReceiptIcon } from './Receipt.js';
171
173
  export { default as RefreshIcon } from './Refresh.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.31.0",
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",
@@ -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.42.0",
58
+ "@teamturing/icons": "^1.43.0",
59
59
  "@teamturing/token-studio": "^1.7.0",
60
60
  "@teamturing/utils": "^1.3.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": "5dd44dec2d1ba8ca58b723d2455131cfaf0eafdd"
69
+ "gitHead": "6967e297d1cb06b3150091503f4ab0bf75a79ffb"
70
70
  }