@teamturing/react-kit 2.51.10 → 2.52.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.
@@ -2,17 +2,20 @@ import { ComponentType, SVGProps } from 'react';
2
2
  import { ResponsiveValue } from 'styled-system';
3
3
  import { AsProp } from '../../utils/styled-system';
4
4
  import { UnstyledButtonProps } from '../_UnstyledButton';
5
+ type ButtonSizeType = 'l' | 'm' | 's';
6
+ type ButtonVariantType = 'primary' | 'secondary' | 'neutral' | 'outlined' | 'plain' | 'danger';
5
7
  type Props = {
6
8
  /**
7
9
  * 크기를 정의합니다.
8
10
  * 반응형 디자인이 적용됩니다.
9
11
  */
10
- size?: ResponsiveValue<'l' | 'm' | 's'>;
12
+ size?: ResponsiveValue<ButtonSizeType>;
11
13
  /**
12
14
  * 색을 정의합니다.
13
15
  * hover, active, focused, disabled, loading 등의 모든 상황에 관여합니다.
16
+ * 반응형 디자인이 적용됩니다.
14
17
  */
15
- variant?: 'primary' | 'secondary' | 'neutral' | 'outlined' | 'plain' | 'danger';
18
+ variant?: ResponsiveValue<ButtonVariantType>;
16
19
  /**
17
20
  * 감싸고 있는 컨테이너의 너비를 채웁니다.
18
21
  */
@@ -39,12 +42,13 @@ declare const Button: import("react").ForwardRefExoticComponent<{
39
42
  * 크기를 정의합니다.
40
43
  * 반응형 디자인이 적용됩니다.
41
44
  */
42
- size?: ResponsiveValue<"m" | "s" | "l"> | undefined;
45
+ size?: ResponsiveValue<ButtonSizeType> | undefined;
43
46
  /**
44
47
  * 색을 정의합니다.
45
48
  * hover, active, focused, disabled, loading 등의 모든 상황에 관여합니다.
49
+ * 반응형 디자인이 적용됩니다.
46
50
  */
47
- variant?: "neutral" | "danger" | "primary" | "secondary" | "outlined" | "plain" | undefined;
51
+ variant?: ResponsiveValue<ButtonVariantType> | undefined;
48
52
  /**
49
53
  * 감싸고 있는 컨테이너의 너비를 채웁니다.
50
54
  */
@@ -2,23 +2,26 @@ import { ComponentType, SVGProps } from 'react';
2
2
  import { ResponsiveValue } from 'styled-system';
3
3
  import { SxProp } from '../../utils/styled-system';
4
4
  import { UnstyledButtonProps } from '../_UnstyledButton';
5
+ type IconToggleButtonSizeType = 'l' | 'm' | 's';
6
+ type IconToggleButtonShapeType = 'circle' | 'rounded';
7
+ type IconToggleButtonVariantType = 'primary' | 'plain' | 'blue' | 'plain-neutral';
5
8
  type Props = {
6
9
  icon: ComponentType<SVGProps<SVGSVGElement>>;
7
10
  /**
8
11
  * 크기를 정의합니다.
9
12
  * 반응형 디자인이 적용됩니다.
10
13
  */
11
- size?: ResponsiveValue<'l' | 'm' | 's'>;
14
+ size?: ResponsiveValue<IconToggleButtonSizeType>;
12
15
  /**
13
16
  * 모양을 정의합니다.
14
17
  * 반응형 디자인이 적용됩니다.
15
18
  */
16
- shape?: 'circle' | 'rounded';
19
+ shape?: ResponsiveValue<IconToggleButtonShapeType>;
17
20
  /**
18
21
  * 색을 정의합니다.
19
22
  * 반응형 디자인이 적용됩니다.
20
23
  */
21
- variant?: 'primary' | 'plain' | 'blue' | 'plain-neutral';
24
+ variant?: ResponsiveValue<IconToggleButtonVariantType>;
22
25
  /**
23
26
  * 활성화 상태를 정의합니다.
24
27
  * `true`일 경우, 활성화된 상태를 그립니다.
@@ -35,17 +38,17 @@ declare const _default: import("react").ForwardRefExoticComponent<{
35
38
  * 크기를 정의합니다.
36
39
  * 반응형 디자인이 적용됩니다.
37
40
  */
38
- size?: ResponsiveValue<"m" | "s" | "l"> | undefined;
41
+ size?: ResponsiveValue<IconToggleButtonSizeType> | undefined;
39
42
  /**
40
43
  * 모양을 정의합니다.
41
44
  * 반응형 디자인이 적용됩니다.
42
45
  */
43
- shape?: "circle" | "rounded" | undefined;
46
+ shape?: ResponsiveValue<IconToggleButtonShapeType> | undefined;
44
47
  /**
45
48
  * 색을 정의합니다.
46
49
  * 반응형 디자인이 적용됩니다.
47
50
  */
48
- variant?: "blue" | "primary" | "plain" | "plain-neutral" | undefined;
51
+ variant?: ResponsiveValue<IconToggleButtonVariantType> | undefined;
49
52
  /**
50
53
  * 활성화 상태를 정의합니다.
51
54
  * `true`일 경우, 활성화된 상태를 그립니다.
package/dist/index.js CHANGED
@@ -5127,6 +5127,7 @@ const TextInput = ({
5127
5127
  inputRef.current?.focus();
5128
5128
  };
5129
5129
  return /*#__PURE__*/jsxRuntime.jsxs(TextInputWrapper$1, {
5130
+ className: 'text_input__wrapper',
5130
5131
  disabled: disabled,
5131
5132
  onClick: focusInput,
5132
5133
  hasLeadingVisual: !utils.isNullable(LeadingVisual),
@@ -6052,10 +6053,12 @@ const Textarea = /*#__PURE__*/React.forwardRef(({
6052
6053
  }
6053
6054
  }, [ref]);
6054
6055
  return /*#__PURE__*/jsxRuntime.jsxs(TextareaWrapper, {
6056
+ className: 'textarea__wrapper',
6055
6057
  disabled: disabled,
6056
6058
  onClick: focusInput,
6057
6059
  validationStatus: validationStatus,
6058
6060
  children: [/*#__PURE__*/jsxRuntime.jsx(ReactTextareaAutosize__default.default, {
6061
+ className: 'textarea__react_textarea_autosize',
6059
6062
  minRows: 1,
6060
6063
  ...props,
6061
6064
  ref: e => {
@@ -6065,6 +6068,7 @@ const Textarea = /*#__PURE__*/React.forwardRef(({
6065
6068
  disabled: disabled,
6066
6069
  onChange: handleChange
6067
6070
  }), /*#__PURE__*/jsxRuntime.jsx(TextareaCount, {
6071
+ className: 'textarea__count',
6068
6072
  children: renderCount(count, {
6069
6073
  validationStatus,
6070
6074
  disabled,
@@ -24,6 +24,7 @@ const TextInput = ({
24
24
  inputRef.current?.focus();
25
25
  };
26
26
  return /*#__PURE__*/jsxs(TextInputWrapper, {
27
+ className: 'text_input__wrapper',
27
28
  disabled: disabled,
28
29
  onClick: focusInput,
29
30
  hasLeadingVisual: !isNullable(LeadingVisual),
@@ -30,10 +30,12 @@ const Textarea = /*#__PURE__*/forwardRef(({
30
30
  }
31
31
  }, [ref]);
32
32
  return /*#__PURE__*/jsxs(TextareaWrapper, {
33
+ className: 'textarea__wrapper',
33
34
  disabled: disabled,
34
35
  onClick: focusInput,
35
36
  validationStatus: validationStatus,
36
37
  children: [/*#__PURE__*/jsx(ReactTextareaAutosize, {
38
+ className: 'textarea__react_textarea_autosize',
37
39
  minRows: 1,
38
40
  ...props,
39
41
  ref: e => {
@@ -43,6 +45,7 @@ const Textarea = /*#__PURE__*/forwardRef(({
43
45
  disabled: disabled,
44
46
  onChange: handleChange
45
47
  }), /*#__PURE__*/jsx(TextareaCount, {
48
+ className: 'textarea__count',
46
49
  children: renderCount(count, {
47
50
  validationStatus,
48
51
  disabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.51.10",
3
+ "version": "2.52.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": "dddedf45da2c057fe2038bcfcd48a7b50afef8b3"
69
+ "gitHead": "bc2a674fefa2e1fe34a21754ed2283a04273f0cc"
70
70
  }