@teamturing/react-kit 2.10.1 → 2.12.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,3 @@
1
+ import { AnimatePresence, AnimatePresenceProps } from 'framer-motion';
2
+ export default AnimatePresence;
3
+ export type { AnimatePresenceProps };
@@ -11,7 +11,7 @@ type Props = {
11
11
  * 색을 정의합니다.
12
12
  * hover, active, focused, disabled, loading 등의 모든 상황에 관여합니다.
13
13
  */
14
- variant?: 'primary' | 'secondary' | 'tertiary' | 'outlined' | 'plain' | 'danger';
14
+ variant?: 'primary' | 'secondary' | 'neutral' | 'outlined' | 'plain' | 'danger';
15
15
  /**
16
16
  * 감싸고 있는 컨테이너의 너비를 채웁니다.
17
17
  */
@@ -43,7 +43,7 @@ declare const Button: import("react").ForwardRefExoticComponent<{
43
43
  * 색을 정의합니다.
44
44
  * hover, active, focused, disabled, loading 등의 모든 상황에 관여합니다.
45
45
  */
46
- variant?: "primary" | "secondary" | "tertiary" | "outlined" | "plain" | "danger" | undefined;
46
+ variant?: "primary" | "secondary" | "neutral" | "outlined" | "plain" | "danger" | undefined;
47
47
  /**
48
48
  * 감싸고 있는 컨테이너의 너비를 채웁니다.
49
49
  */
@@ -0,0 +1,11 @@
1
+ import { ColorKey, SurfaceElevationKey } from '@teamturing/token-studio';
2
+ import { BorderColorProps, BorderProps, Theme } from 'styled-system';
3
+ import { SxProp } from '../../utils/styled-system';
4
+ type Props = {
5
+ width?: BorderProps['borderBottomWidth'];
6
+ color?: BorderColorProps<Theme, ColorKey | SurfaceElevationKey>['borderBottomColor'];
7
+ variant?: BorderProps['borderBottomStyle'];
8
+ } & SxProp;
9
+ declare const HorizontalDivider: ({ width, color, variant, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
10
+ export default HorizontalDivider;
11
+ export type { Props as HorizontalDividerProps };
@@ -15,7 +15,7 @@ type Props = {
15
15
  * 색을 정의합니다.
16
16
  * hover, active, focused, disabled, loading 등의 모든 상황에 관여합니다.
17
17
  */
18
- variant?: 'primary' | 'secondary' | 'tertiary' | 'outlined' | 'plain-bold' | 'plain' | 'plain-subtle' | 'danger';
18
+ variant?: 'primary' | 'secondary' | 'neutral' | 'outlined' | 'plain-bold' | 'plain' | 'plain-subtle' | 'danger';
19
19
  /**
20
20
  * 비활성화 상태를 정의합니다.
21
21
  */
@@ -39,7 +39,7 @@ declare const IconButton: import("react").ForwardRefExoticComponent<{
39
39
  * 색을 정의합니다.
40
40
  * hover, active, focused, disabled, loading 등의 모든 상황에 관여합니다.
41
41
  */
42
- variant?: "primary" | "secondary" | "tertiary" | "outlined" | "plain" | "danger" | "plain-bold" | "plain-subtle" | undefined;
42
+ variant?: "primary" | "secondary" | "neutral" | "outlined" | "plain" | "danger" | "plain-bold" | "plain-subtle" | undefined;
43
43
  /**
44
44
  * 비활성화 상태를 정의합니다.
45
45
  */
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { ColorKey, RadiiKey, SurfaceElevationKey } from '@teamturing/token-studio';
3
- import { LayoutProps, ColorProps, FlexboxProps, BackgroundProps, BorderProps, PositionProps, ShadowProps, BorderRadiusProps, Theme } from 'styled-system';
3
+ import { LayoutProps, ColorProps, FlexboxProps, BackgroundProps, BorderProps, PositionProps, ShadowProps, BorderRadiusProps, Theme, BorderColorProps } from 'styled-system';
4
4
  import { SxProp } from '../../utils/styled-system';
5
- type Props = {} & SxProp & LayoutProps & ColorProps<Theme, ColorKey | SurfaceElevationKey> & FlexboxProps & BackgroundProps & BorderProps & PositionProps & ShadowProps<Theme> & BorderRadiusProps<Theme, RadiiKey>;
5
+ type Props = {} & SxProp & LayoutProps & ColorProps<Theme, ColorKey | SurfaceElevationKey> & FlexboxProps & BackgroundProps & BorderProps & BorderColorProps<Theme, ColorKey | SurfaceElevationKey> & PositionProps & ShadowProps<Theme> & BorderRadiusProps<Theme, RadiiKey>;
6
6
  declare const View: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Props>>;
7
7
  export default View;
8
8
  export type { Props as ViewProps };
@@ -0,0 +1,6 @@
1
+ import { HorizontalDividerViewType } from '../../types';
2
+ type Props = {
3
+ view: HorizontalDividerViewType;
4
+ };
5
+ declare const HorizontalDividerView: ({ view: { horizontalDividerProps, spaceProps } }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export default HorizontalDividerView;
@@ -1,5 +1,6 @@
1
- export { default as ImageView } from './ImageView';
2
- export { default as TextView } from './TextView';
3
- export { default as IconView } from './IconView';
4
1
  export { default as ChipGroupView } from './ChipGroupView';
5
2
  export { default as GridView } from './GridView';
3
+ export { default as HorizontalDividerView } from './HorizontalDividerView';
4
+ export { default as IconView } from './IconView';
5
+ export { default as ImageView } from './ImageView';
6
+ export { default as TextView } from './TextView';
@@ -1,5 +1,5 @@
1
1
  import icons from '@teamturing/icons';
2
- import { ChipProps, StackProps, TextProps, SpaceProps, GridProps, GridUnitProps, StyledIconProps, ImageProps, AsProp } from '../..';
2
+ import { ChipProps, StackProps, TextProps, SpaceProps, GridProps, GridUnitProps, StyledIconProps, ImageProps, AsProp, HorizontalDividerProps } from '../..';
3
3
  /**
4
4
  * View Related Model
5
5
  */
@@ -36,8 +36,12 @@ export type GridViewType = {
36
36
  gridProps?: Pick<GridProps, 'gapX' | 'gapY' | 'alignItems' | 'justifyContent' | 'wrap'>;
37
37
  spaceProps?: Omit<SpaceProps, 'sx'>;
38
38
  };
39
- export type ViewType = TextViewType | ImageViewType | IconViewType | ChipGroupViewType | GridViewType;
40
- export type ViewComponentType = 'TextView' | 'ImageView' | 'IconView' | 'ChipGroupView' | 'GridView';
39
+ export type HorizontalDividerViewType = {
40
+ horizontalDividerProps?: Omit<HorizontalDividerProps, 'sx'>;
41
+ spaceProps?: Omit<SpaceProps, 'sx'>;
42
+ };
43
+ export type ViewType = TextViewType | ImageViewType | IconViewType | ChipGroupViewType | GridViewType | HorizontalDividerViewType;
44
+ export type ViewComponentType = 'TextView' | 'ImageView' | 'IconView' | 'ChipGroupView' | 'GridView' | 'HorizontalDividerView';
41
45
  export interface ViewContainerType {
42
46
  id: string;
43
47
  viewComponentType: ViewComponentType;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * core components
3
3
  */
4
+ export { default as AnimatePresence } from './core/AnimatePresence';
5
+ export type { AnimatePresenceProps } from './core/AnimatePresence';
4
6
  export { default as Breadcrumbs } from './core/Breadcrumbs';
5
7
  export type { BreadcrumbsProps } from './core/Breadcrumbs';
6
8
  export { default as Button } from './core/Button';
@@ -14,6 +16,8 @@ export { default as GradientText } from './core/GradientText';
14
16
  export type { GradientTextProps } from './core/GradientText';
15
17
  export { default as Grid } from './core/Grid';
16
18
  export type { GridProps, GridUnitProps } from './core/Grid';
19
+ export { default as HorizontalDivider } from './core/HorizontalDivider';
20
+ export type { HorizontalDividerProps } from './core/HorizontalDivider';
17
21
  export { default as IconButton } from './core/IconButton';
18
22
  export type { IconButtonProps } from './core/IconButton';
19
23
  export { default as IconToggleButton } from './core/IconToggleButton';