@teamturing/react-kit 2.7.1 → 2.8.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.
@@ -0,0 +1,11 @@
1
+ import { ComponentType, PropsWithChildren, SVGProps } from 'react';
2
+ import { UnstyledButtonProps } from '../_UnstyledButton';
3
+ import { TabContextValue } from '.';
4
+ type Props = {
5
+ leadingIcon?: ComponentType<SVGProps<SVGSVGElement>>;
6
+ selected?: boolean;
7
+ onClick?: UnstyledButtonProps['onClick'];
8
+ } & Omit<TabContextValue, 'containerRef' | 'gap'>;
9
+ declare const TabItem: ({ children, leadingIcon: LeadingIcon, selected, onClick, size: propSize, variant: propVariant, }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element;
10
+ export default TabItem;
11
+ export type { Props as TabItemProps };
@@ -0,0 +1,18 @@
1
+ import { SpaceKey } from '@teamturing/token-studio';
2
+ import { PropsWithChildren, RefObject } from 'react';
3
+ import { ResponsiveValue } from 'styled-system';
4
+ type Props = {
5
+ variant?: 'plain' | 'outlined' | 'underline';
6
+ size?: ResponsiveValue<'l' | 'm' | 's'>;
7
+ gap?: ResponsiveValue<SpaceKey>;
8
+ };
9
+ type TabContextValue = {
10
+ containerRef?: RefObject<HTMLElement>;
11
+ } & Props;
12
+ declare const TabContext: import("react").Context<TabContextValue>;
13
+ declare const _default: (({ variant, size, gap, children }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element) & {
14
+ Item: ({ children, leadingIcon: LeadingIcon, selected, onClick, size: propSize, variant: propVariant, }: PropsWithChildren<import("./TabItem").TabItemProps>) => import("react/jsx-runtime").JSX.Element;
15
+ };
16
+ export default _default;
17
+ export { TabContext };
18
+ export type { Props as TabProps, TabContextValue };
@@ -0,0 +1,16 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { ResponsiveValue } from 'styled-system';
3
+ type Props = {
4
+ /**
5
+ * 변주에 대해 정의합니다.
6
+ */
7
+ variant?: 'success' | 'warning';
8
+ /**
9
+ * 크기 변화에 대한 행동을 정의합니다.
10
+ * 반응형 디자인이 적용됩니다.
11
+ */
12
+ resizing?: ResponsiveValue<'hug' | 'fill'>;
13
+ };
14
+ declare const Toast: ({ variant, resizing, children }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element;
15
+ export default Toast;
16
+ export type { Props as ToastProps };
@@ -0,0 +1,14 @@
1
+ import { HTMLAttributes, PropsWithChildren } from 'react';
2
+ type Props = {
3
+ /**
4
+ * children 컴포넌트 기준으로 Tooltip의 위치를 정의합니다.
5
+ */
6
+ direction?: 'top-center' | 'top-right' | 'right' | 'bottom-right' | 'bottom-center' | 'bottom-left' | 'left' | 'top-left';
7
+ /**
8
+ * Tooltip의 텍스트를 정의합니다.
9
+ */
10
+ text?: string;
11
+ } & Pick<HTMLAttributes<HTMLSpanElement>, 'className'>;
12
+ declare const Tooltip: ({ children, direction, text, className: propClassName }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element;
13
+ export default Tooltip;
14
+ export type { Props as TooptipProps };
package/dist/index.d.ts CHANGED
@@ -29,6 +29,8 @@ export { default as Stack } from './core/Stack';
29
29
  export type { StackProps } from './core/Stack';
30
30
  export { default as StyledIcon } from './core/StyledIcon';
31
31
  export type { StyledIconProps } from './core/StyledIcon';
32
+ export { default as Tab } from './core/Tab';
33
+ export type { TabProps } from './core/Tab';
32
34
  export { default as Text } from './core/Text';
33
35
  export type { TextProps } from './core/Text';
34
36
  export { default as Textarea } from './core/Textarea';
@@ -36,6 +38,10 @@ export type { TextareaProps } from './core/Textarea';
36
38
  export { default as TextInput } from './core/TextInput';
37
39
  export type { TextInputProps } from './core/TextInput';
38
40
  export { default as ThemeProvider } from './core/ThemeProvider';
41
+ export { default as Toast } from './core/Toast';
42
+ export type { ToastProps } from './core/Toast';
43
+ export { default as Tooltip } from './core/Tooltip';
44
+ export type { TooptipProps } from './core/Tooltip';
39
45
  export { default as View } from './core/View';
40
46
  export type { ViewProps } from './core/View';
41
47
  export { default as UnstyledButton } from './core/_UnstyledButton';