@teamturing/react-kit 2.19.35 → 2.19.37

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.
@@ -6,11 +6,11 @@ import { ViewProps } from '../View';
6
6
  type Props = {
7
7
  gapX?: ResponsiveValue<SpaceKey>;
8
8
  gapY?: ResponsiveValue<SpaceKey>;
9
- } & Pick<ViewProps, 'alignItems' | 'justifyContent' | 'sx'> & AsProp;
9
+ } & Pick<ViewProps, 'alignItems' | 'justifyContent'> & SxProp & AsProp;
10
10
  declare const _default: import("react").ForwardRefExoticComponent<{
11
11
  gapX?: ResponsiveValue<0 | 1 | 20 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 12 | 14 | 16 | 18 | "-80" | "-50" | "-48" | "-40" | "-32" | "-30" | "-28" | "-24" | "-20" | "-18" | "-16" | "-14" | "-12" | "-10" | "-8" | "-7" | "-6" | "-5" | "-4" | "-3" | "-2" | "-1" | "-0.5" | "-0.25" | 0.25 | 0.5 | 24 | 28 | 30 | 32 | 40 | 48 | 50 | 80> | undefined;
12
12
  gapY?: ResponsiveValue<0 | 1 | 20 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 12 | 14 | 16 | 18 | "-80" | "-50" | "-48" | "-40" | "-32" | "-30" | "-28" | "-24" | "-20" | "-18" | "-16" | "-14" | "-12" | "-10" | "-8" | "-7" | "-6" | "-5" | "-4" | "-3" | "-2" | "-1" | "-0.5" | "-0.25" | 0.25 | 0.5 | 24 | 28 | 30 | 32 | 40 | 48 | 50 | 80> | undefined;
13
- } & Pick<ViewProps, "alignItems" | "justifyContent" | "sx"> & AsProp & {
13
+ } & Pick<ViewProps, "alignItems" | "justifyContent"> & SxProp & AsProp & {
14
14
  children?: import("react").ReactNode;
15
15
  } & import("react").RefAttributes<HTMLDivElement>> & {
16
16
  Item: ({ children, ...props }: PropsWithChildren<SxProp>) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes, PropsWithChildren } from 'react';
1
+ import { HTMLAttributes } from 'react';
2
2
  import { SxProp } from '../../utils/styled-system';
3
3
  type Props = {
4
4
  /**
@@ -10,6 +10,17 @@ type Props = {
10
10
  */
11
11
  text?: string;
12
12
  } & SxProp & Pick<HTMLAttributes<HTMLSpanElement>, 'className'>;
13
- declare const Tooltip: ({ children, direction, text, className: propClassName, sx, }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element;
14
- export default Tooltip;
13
+ declare const _default: import("react").ForwardRefExoticComponent<{
14
+ /**
15
+ * children 컴포넌트 기준으로 Tooltip의 위치를 정의합니다.
16
+ */
17
+ direction?: "left" | "right" | "top-center" | "top-right" | "bottom-right" | "bottom-center" | "bottom-left" | "top-left" | undefined;
18
+ /**
19
+ * Tooltip의 텍스트를 정의합니다.
20
+ */
21
+ text?: string | undefined;
22
+ } & SxProp & Pick<HTMLAttributes<HTMLSpanElement>, "className"> & {
23
+ children?: import("react").ReactNode;
24
+ } & import("react").RefAttributes<HTMLSpanElement>>;
25
+ export default _default;
15
26
  export type { Props as TooptipProps };
package/dist/index.js CHANGED
@@ -16694,9 +16694,10 @@ const Tooltip = ({
16694
16694
  text,
16695
16695
  className: propClassName,
16696
16696
  sx
16697
- }) => {
16697
+ }, ref) => {
16698
16698
  const className = [propClassName, `tooltip-direction-${direction}`].join(' ');
16699
16699
  return /*#__PURE__*/jsxRuntimeExports.jsx(BaseTooltip, {
16700
+ ref: ref,
16700
16701
  role: 'tooltip',
16701
16702
  "aria-label": text,
16702
16703
  className: className,
@@ -16942,6 +16943,7 @@ const BaseTooltip = styled__default.default.span`
16942
16943
 
16943
16944
  ${sx}
16944
16945
  `;
16946
+ var Tooltip$1 = /*#__PURE__*/React.forwardRef(Tooltip);
16945
16947
 
16946
16948
  const BreadcrumbsItem = ({
16947
16949
  text,
@@ -16965,7 +16967,7 @@ const BreadcrumbsItem = ({
16965
16967
  ...props,
16966
16968
  children: text
16967
16969
  });
16968
- return isOverflow ? /*#__PURE__*/jsxRuntimeExports.jsx(Tooltip, {
16970
+ return isOverflow ? /*#__PURE__*/jsxRuntimeExports.jsx(Tooltip$1, {
16969
16971
  text: text,
16970
16972
  direction: 'bottom-center',
16971
16973
  sx: {
@@ -23964,12 +23966,14 @@ const Stack = /*#__PURE__*/React.forwardRef(({
23964
23966
  gapY = 0,
23965
23967
  children,
23966
23968
  alignItems = 'center',
23969
+ sx,
23967
23970
  ...props
23968
23971
  }, ref) => /*#__PURE__*/jsxRuntimeExports.jsx(BaseStack, {
23969
23972
  ref: ref,
23970
23973
  alignItems: alignItems,
23971
23974
  gapX: gapX,
23972
23975
  gapY: gapY,
23976
+ sx: sx,
23973
23977
  ...props,
23974
23978
  children: children
23975
23979
  }));
@@ -23999,7 +24003,7 @@ const BaseStack = styled__default.default(View)({
23999
24003
  };
24000
24004
  return [key, styleValue];
24001
24005
  }))
24002
- }));
24006
+ }), sx);
24003
24007
  const Item = ({
24004
24008
  children,
24005
24009
  ...props
@@ -25614,7 +25618,7 @@ exports.TextInput = TextInput$1;
25614
25618
  exports.Textarea = Textarea;
25615
25619
  exports.ThemeProvider = ThemeProvider;
25616
25620
  exports.Toast = Toast;
25617
- exports.Tooltip = Tooltip;
25621
+ exports.Tooltip = Tooltip$1;
25618
25622
  exports.UnstyledButton = UnstyledButton;
25619
25623
  exports.View = View;
25620
25624
  exports.lineClamp = lineClamp;
@@ -4,6 +4,7 @@ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
4
4
  import { forwardRef } from 'react';
5
5
  import styled from 'styled-components';
6
6
  import '../../node_modules/styled-system/dist/index.esm.js';
7
+ import { sx } from '../../utils/styled-system/index.js';
7
8
  import View from '../View/index.js';
8
9
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
9
10
  import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
@@ -13,12 +14,14 @@ const Stack = /*#__PURE__*/forwardRef(({
13
14
  gapY = 0,
14
15
  children,
15
16
  alignItems = 'center',
17
+ sx,
16
18
  ...props
17
19
  }, ref) => /*#__PURE__*/jsxRuntimeExports.jsx(BaseStack, {
18
20
  ref: ref,
19
21
  alignItems: alignItems,
20
22
  gapX: gapX,
21
23
  gapY: gapY,
24
+ sx: sx,
22
25
  ...props,
23
26
  children: children
24
27
  }));
@@ -48,7 +51,7 @@ const BaseStack = styled(View)({
48
51
  };
49
52
  return [key, styleValue];
50
53
  }))
51
- }));
54
+ }), sx);
52
55
  const Item = ({
53
56
  children,
54
57
  ...props
@@ -1,4 +1,5 @@
1
1
  import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
2
+ import { forwardRef } from 'react';
2
3
  import styled, { keyframes } from 'styled-components';
3
4
  import { sx } from '../../utils/styled-system/index.js';
4
5
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
@@ -9,9 +10,10 @@ const Tooltip = ({
9
10
  text,
10
11
  className: propClassName,
11
12
  sx
12
- }) => {
13
+ }, ref) => {
13
14
  const className = [propClassName, `tooltip-direction-${direction}`].join(' ');
14
15
  return /*#__PURE__*/jsxRuntimeExports.jsx(BaseTooltip, {
16
+ ref: ref,
15
17
  role: 'tooltip',
16
18
  "aria-label": text,
17
19
  className: className,
@@ -257,5 +259,6 @@ const BaseTooltip = styled.span`
257
259
 
258
260
  ${sx}
259
261
  `;
262
+ var Tooltip$1 = /*#__PURE__*/forwardRef(Tooltip);
260
263
 
261
- export { Tooltip as default };
264
+ export { Tooltip$1 as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.19.35",
3
+ "version": "2.19.37",
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",
@@ -65,5 +65,5 @@
65
65
  "react-textarea-autosize": "^8.5.3",
66
66
  "styled-system": "^5.1.5"
67
67
  },
68
- "gitHead": "7021ff834f226ee140bdc721cd481b490fd2efa5"
68
+ "gitHead": "73945734bdadf5722fb5450dc467d0d267e88540"
69
69
  }