@teamturing/react-kit 2.21.8 → 2.21.10

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.
@@ -1,4 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
+ import { ViewProps } from '../View';
2
3
  import { FormControlCaptionProps } from './FormControlCaption';
3
4
  import { FormControlErrorMessageProps } from './FormControlErrorMessage';
4
5
  import { FormControlLabelProps } from './FormControlLabel';
@@ -22,7 +23,7 @@ type Props = {
22
23
  * FormControl이 허용하는 Input 컴포넌트를 추가로 정의합니다.
23
24
  */
24
25
  additionalInputComponentCandidates?: any[];
25
- };
26
+ } & Pick<ViewProps, 'sx'>;
26
27
  type FormControlFieldProps = {
27
28
  name: string;
28
29
  label: string;
@@ -30,7 +31,26 @@ type FormControlFieldProps = {
30
31
  };
31
32
  type FormControlContextValue = {} & Omit<Props, 'additionalInputComponentCandidates'>;
32
33
  declare const FormControlContext: import("react").Context<Omit<Props, "additionalInputComponentCandidates">>;
33
- declare const _default: import("react").ForwardRefExoticComponent<Props & {
34
+ declare const _default: import("react").ForwardRefExoticComponent<{
35
+ /**
36
+ * `FormControl`의 Input 요소를 컨트롤하기 위한 ID입니다. `Label`, `Caption`과 연결짓기 위해 사용합니다.
37
+ */
38
+ id?: string | undefined;
39
+ /**
40
+ * 사용자의 입력을 허용할지에 대한 여부입니다.
41
+ */
42
+ disabled?: boolean | undefined;
43
+ /**
44
+ * 사용자의 입력을 필요로 하는지에 대한 여부입니다.
45
+ */
46
+ required?: boolean | undefined;
47
+ /**
48
+ * @default TextInput, Select, SearchSelectInput, Checkbox
49
+ *
50
+ * FormControl이 허용하는 Input 컴포넌트를 추가로 정의합니다.
51
+ */
52
+ additionalInputComponentCandidates?: any[] | undefined;
53
+ } & Pick<ViewProps, "sx"> & {
34
54
  children?: import("react").ReactNode;
35
55
  } & import("react").RefAttributes<HTMLDivElement>> & {
36
56
  Label: ({ children, visuallyHidden, ...props }: PropsWithChildren<FormControlLabelProps>) => import("react/jsx-runtime").JSX.Element;
package/dist/index.js CHANGED
@@ -2497,6 +2497,19 @@ const SvgKor = props => /*#__PURE__*/React__namespace.createElement("svg", _exte
2497
2497
  d: "M13.902 6.822v10.357a1.021 1.021 0 0 0 2.043 0V12.2h.761a.894.894 0 1 0 0-1.788h-.761v-3.59a1.021 1.021 0 1 0-2.043 0ZM8.022 15.776c3.188-1.833 4.52-4.486 4.762-7.528.054-.68-.502-1.219-1.162-1.219H7.755a.887.887 0 0 0 0 1.775h2.981c-.318 2.232-1.502 3.905-3.644 5.21-.501.305-.677.98-.325 1.475a.958.958 0 0 0 1.255.287Z"
2498
2498
  }));
2499
2499
 
2500
+ const SvgLeague = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
2501
+ xmlns: "http://www.w3.org/2000/svg",
2502
+ width: "1em",
2503
+ height: "1em",
2504
+ fill: "none",
2505
+ viewBox: "0 0 24 24"
2506
+ }, props), /*#__PURE__*/React__namespace.createElement("path", {
2507
+ fill: "currentColor",
2508
+ fillRule: "evenodd",
2509
+ d: "M5.064 1C3.924 1 3 1.924 3 3.064v14.858c0 .811.476 1.548 1.216 1.881l6.684 3.014a2.064 2.064 0 0 0 1.654.018l7.187-3.046a2.064 2.064 0 0 0 1.259-1.9V3.064C21 1.924 20.076 1 18.936 1H5.064Zm2.61 13.331c.03.27.251.473.514.473h7.623a.524.524 0 0 0 .514-.473l.654-5.82c.059-.522-.571-.808-.904-.411l-1.94 2.31-1.433-3.146a.766.766 0 0 0-1.405 0L9.864 10.41 7.924 8.1c-.333-.397-.963-.11-.904.411l.654 5.82Z",
2510
+ clipRule: "evenodd"
2511
+ }));
2512
+
2500
2513
  const SvgLetter = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
2501
2514
  xmlns: "http://www.w3.org/2000/svg",
2502
2515
  width: "1em",
@@ -4074,6 +4087,17 @@ const SvgTrophy = props => /*#__PURE__*/React__namespace.createElement("svg", _e
4074
4087
  clipRule: "evenodd"
4075
4088
  }));
4076
4089
 
4090
+ const SvgTwinkle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
4091
+ xmlns: "http://www.w3.org/2000/svg",
4092
+ width: "1em",
4093
+ height: "1em",
4094
+ fill: "none",
4095
+ viewBox: "0 0 24 24"
4096
+ }, props), /*#__PURE__*/React__namespace.createElement("path", {
4097
+ fill: "currentColor",
4098
+ d: "M19.42 18.696a.807.807 0 0 1 .36-.36l2.084-1.043a.808.808 0 0 0 0-1.444l-2.084-1.042a.808.808 0 0 1-.36-.361l-1.043-2.084a.808.808 0 0 0-1.444 0l-1.042 2.084a.808.808 0 0 1-.361.361l-2.083 1.042a.808.808 0 0 0 0 1.444l2.083 1.042a.807.807 0 0 1 .361.361l1.042 2.084a.808.808 0 0 0 1.445 0l1.041-2.084ZM10.877 11.81a.808.808 0 0 1 .36-.362l3.35-1.674a.808.808 0 0 0 0-1.445l-3.35-1.674a.808.808 0 0 1-.36-.362L9.202 2.945a.808.808 0 0 0-1.444 0L6.083 6.293a.808.808 0 0 1-.361.362L2.373 8.329a.808.808 0 0 0 0 1.445l3.349 1.674a.807.807 0 0 1 .361.361l1.675 3.349a.808.808 0 0 0 1.444 0l1.675-3.349Z"
4099
+ }));
4100
+
4077
4101
  const SvgUndo = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
4078
4102
  xmlns: "http://www.w3.org/2000/svg",
4079
4103
  width: "1em",
@@ -4441,6 +4465,7 @@ var icons = /*#__PURE__*/Object.freeze({
4441
4465
  InstagramIcon: SvgInstagram,
4442
4466
  KakaoColorIcon: SvgKakaoColor,
4443
4467
  KorIcon: SvgKor,
4468
+ LeagueIcon: SvgLeague,
4444
4469
  LetterCrownColorIcon: SvgLetterCrownColor,
4445
4470
  LetterHeartColorIcon: SvgLetterHeartColor,
4446
4471
  LetterIcon: SvgLetter,
@@ -4532,6 +4557,7 @@ var icons = /*#__PURE__*/Object.freeze({
4532
4557
  TrashIcon: SvgTrash,
4533
4558
  TreasureboxIcon: SvgTreasurebox,
4534
4559
  TrophyIcon: SvgTrophy,
4560
+ TwinkleIcon: SvgTwinkle,
4535
4561
  UndoIcon: SvgUndo,
4536
4562
  UniversityIcon: SvgUniversity,
4537
4563
  UserBlockedIcon: SvgUserBlocked,
@@ -22738,7 +22764,8 @@ const FormControl = ({
22738
22764
  id,
22739
22765
  disabled,
22740
22766
  required,
22741
- additionalInputComponentCandidates = []
22767
+ additionalInputComponentCandidates = [],
22768
+ sx
22742
22769
  }, ref) => {
22743
22770
  const [relocatableComponentsObject, restComponents] = useRelocation({
22744
22771
  children: propChildren,
@@ -22762,7 +22789,8 @@ const FormControl = ({
22762
22789
  ref: ref,
22763
22790
  display: 'flex',
22764
22791
  sx: {
22765
- columnGap: 2
22792
+ columnGap: 2,
22793
+ ...sx
22766
22794
  },
22767
22795
  children: [/*#__PURE__*/jsxRuntimeExports.jsx(View, {
22768
22796
  display: 'inline-flex',
@@ -22789,7 +22817,8 @@ const FormControl = ({
22789
22817
  },
22790
22818
  '& > span': {
22791
22819
  mt: 1
22792
- }
22820
+ },
22821
+ ...sx
22793
22822
  },
22794
22823
  children: [relocatableComponentsObject.label, /*#__PURE__*/React.cloneElement(InputComponent, {
22795
22824
  id,
@@ -19,7 +19,8 @@ const FormControl = ({
19
19
  id,
20
20
  disabled,
21
21
  required,
22
- additionalInputComponentCandidates = []
22
+ additionalInputComponentCandidates = [],
23
+ sx
23
24
  }, ref) => {
24
25
  const [relocatableComponentsObject, restComponents] = useRelocation({
25
26
  children: propChildren,
@@ -43,7 +44,8 @@ const FormControl = ({
43
44
  ref: ref,
44
45
  display: 'flex',
45
46
  sx: {
46
- columnGap: 2
47
+ columnGap: 2,
48
+ ...sx
47
49
  },
48
50
  children: [/*#__PURE__*/jsxRuntimeExports.jsx(View, {
49
51
  display: 'inline-flex',
@@ -70,7 +72,8 @@ const FormControl = ({
70
72
  },
71
73
  '& > span': {
72
74
  mt: 1
73
- }
75
+ },
76
+ ...sx
74
77
  },
75
78
  children: [relocatableComponentsObject.label, /*#__PURE__*/cloneElement(InputComponent, {
76
79
  id,
@@ -0,0 +1,17 @@
1
+ import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
2
+ import * as React from 'react';
3
+
4
+ const SvgLeague = 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: "currentColor",
12
+ fillRule: "evenodd",
13
+ d: "M5.064 1C3.924 1 3 1.924 3 3.064v14.858c0 .811.476 1.548 1.216 1.881l6.684 3.014a2.064 2.064 0 0 0 1.654.018l7.187-3.046a2.064 2.064 0 0 0 1.259-1.9V3.064C21 1.924 20.076 1 18.936 1H5.064Zm2.61 13.331c.03.27.251.473.514.473h7.623a.524.524 0 0 0 .514-.473l.654-5.82c.059-.522-.571-.808-.904-.411l-1.94 2.31-1.433-3.146a.766.766 0 0 0-1.405 0L9.864 10.41 7.924 8.1c-.333-.397-.963-.11-.904.411l.654 5.82Z",
14
+ clipRule: "evenodd"
15
+ }));
16
+
17
+ export { SvgLeague as default };
@@ -0,0 +1,15 @@
1
+ import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
2
+ import * as React from 'react';
3
+
4
+ const SvgTwinkle = 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: "currentColor",
12
+ d: "M19.42 18.696a.807.807 0 0 1 .36-.36l2.084-1.043a.808.808 0 0 0 0-1.444l-2.084-1.042a.808.808 0 0 1-.36-.361l-1.043-2.084a.808.808 0 0 0-1.444 0l-1.042 2.084a.808.808 0 0 1-.361.361l-2.083 1.042a.808.808 0 0 0 0 1.444l2.083 1.042a.807.807 0 0 1 .361.361l1.042 2.084a.808.808 0 0 0 1.445 0l1.041-2.084ZM10.877 11.81a.808.808 0 0 1 .36-.362l3.35-1.674a.808.808 0 0 0 0-1.445l-3.35-1.674a.808.808 0 0 1-.36-.362L9.202 2.945a.808.808 0 0 0-1.444 0L6.083 6.293a.808.808 0 0 1-.361.362L2.373 8.329a.808.808 0 0 0 0 1.445l3.349 1.674a.807.807 0 0 1 .361.361l1.675 3.349a.808.808 0 0 0 1.444 0l1.675-3.349Z"
13
+ }));
14
+
15
+ export { SvgTwinkle as default };
@@ -92,6 +92,7 @@ export { default as InfoInCircleIcon } from './InfoInCircle.js';
92
92
  export { default as InstagramIcon } from './Instagram.js';
93
93
  export { default as KakaoColorIcon } from './KakaoColor.js';
94
94
  export { default as KorIcon } from './Kor.js';
95
+ export { default as LeagueIcon } from './League.js';
95
96
  export { default as LetterIcon } from './Letter.js';
96
97
  export { default as LetterCrownColorIcon } from './LetterCrownColor.js';
97
98
  export { default as LetterHeartColorIcon } from './LetterHeartColor.js';
@@ -183,6 +184,7 @@ export { default as TouchIcon } from './Touch.js';
183
184
  export { default as TrashIcon } from './Trash.js';
184
185
  export { default as TreasureboxIcon } from './Treasurebox.js';
185
186
  export { default as TrophyIcon } from './Trophy.js';
187
+ export { default as TwinkleIcon } from './Twinkle.js';
186
188
  export { default as UndoIcon } from './Undo.js';
187
189
  export { default as UniversityIcon } from './University.js';
188
190
  export { default as UserBlockedIcon } from './UserBlocked.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.21.8",
3
+ "version": "2.21.10",
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.27.0",
58
+ "@teamturing/icons": "^1.28.0",
59
59
  "@teamturing/token-studio": "^1.2.2",
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": "0d26013316c99d295277ca87649ffaabae787a3b"
69
+ "gitHead": "c9c6f0f3a7fee7f4bd9423ea882a49b2dab4812c"
70
70
  }