@teamturing/react-kit 2.30.1 → 2.31.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.
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
+ import { ResponsiveValue } from 'styled-system';
2
3
  import { SxProp } from '../../utils/styled-system';
3
4
  type Props = {
4
5
  /**
@@ -9,6 +10,7 @@ type Props = {
9
10
  * Tooltip의 텍스트를 정의합니다.
10
11
  */
11
12
  text?: string;
13
+ disabled?: ResponsiveValue<boolean>;
12
14
  } & SxProp & Pick<HTMLAttributes<HTMLSpanElement>, 'className'>;
13
15
  declare const _default: import("react").ForwardRefExoticComponent<{
14
16
  /**
@@ -19,6 +21,7 @@ declare const _default: import("react").ForwardRefExoticComponent<{
19
21
  * Tooltip의 텍스트를 정의합니다.
20
22
  */
21
23
  text?: string | undefined;
24
+ disabled?: ResponsiveValue<boolean> | undefined;
22
25
  } & SxProp & Pick<HTMLAttributes<HTMLSpanElement>, "className"> & {
23
26
  children?: import("react").ReactNode;
24
27
  } & import("react").RefAttributes<HTMLSpanElement>>;
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,
@@ -16416,6 +16466,7 @@ const Tooltip = ({
16416
16466
  children,
16417
16467
  direction = 'top-center',
16418
16468
  text,
16469
+ disabled,
16419
16470
  className: propClassName,
16420
16471
  sx
16421
16472
  }, ref) => {
@@ -16424,6 +16475,7 @@ const Tooltip = ({
16424
16475
  ref: ref,
16425
16476
  role: 'tooltip',
16426
16477
  "aria-label": text,
16478
+ disabled: disabled,
16427
16479
  className: className,
16428
16480
  sx: sx,
16429
16481
  children: children
@@ -16666,6 +16718,25 @@ const BaseTooltip = styled__default.default.span`
16666
16718
  }
16667
16719
 
16668
16720
  ${sx}
16721
+ ${variant({
16722
+ prop: 'disabled',
16723
+ variants: {
16724
+ true: {
16725
+ '&:hover , &:active, &:focus': {
16726
+ '&::before, &::after': {
16727
+ display: 'none'
16728
+ }
16729
+ }
16730
+ },
16731
+ false: {
16732
+ '&:hover , &:active, &:focus': {
16733
+ '&::before, &::after': {
16734
+ display: 'table-cell'
16735
+ }
16736
+ }
16737
+ }
16738
+ }
16739
+ })}
16669
16740
  `;
16670
16741
  var Tooltip$1 = /*#__PURE__*/React.forwardRef(Tooltip);
16671
16742
 
@@ -1,13 +1,16 @@
1
1
  import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
2
2
  import { forwardRef } from 'react';
3
3
  import styled, { keyframes } from 'styled-components';
4
+ import '../../node_modules/styled-system/dist/index.esm.js';
4
5
  import { sx } from '../../utils/styled-system/index.js';
5
6
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
7
+ import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
6
8
 
7
9
  const Tooltip = ({
8
10
  children,
9
11
  direction = 'top-center',
10
12
  text,
13
+ disabled,
11
14
  className: propClassName,
12
15
  sx
13
16
  }, ref) => {
@@ -16,6 +19,7 @@ const Tooltip = ({
16
19
  ref: ref,
17
20
  role: 'tooltip',
18
21
  "aria-label": text,
22
+ disabled: disabled,
19
23
  className: className,
20
24
  sx: sx,
21
25
  children: children
@@ -258,6 +262,25 @@ const BaseTooltip = styled.span`
258
262
  }
259
263
 
260
264
  ${sx}
265
+ ${variant({
266
+ prop: 'disabled',
267
+ variants: {
268
+ true: {
269
+ '&:hover , &:active, &:focus': {
270
+ '&::before, &::after': {
271
+ display: 'none'
272
+ }
273
+ }
274
+ },
275
+ false: {
276
+ '&:hover , &:active, &:focus': {
277
+ '&::before, &::after': {
278
+ display: 'table-cell'
279
+ }
280
+ }
281
+ }
282
+ }
283
+ })}
261
284
  `;
262
285
  var Tooltip$1 = /*#__PURE__*/forwardRef(Tooltip);
263
286
 
@@ -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.30.1",
3
+ "version": "2.31.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",
@@ -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": "5d0c4cb13d0269bbfff3c6b947c48eba8281f618"
69
+ "gitHead": "a724347214e59c6970886c6dc918fc6c88846d71"
70
70
  }