@croquiscom/pds 0.23.1 → 0.24.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 0.24.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 54f88da: Notification, Toast types 파일 분리, 타입 에러 픽스
8
+
9
+ ## 0.24.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 3b179d7: variant, type prop을 kind로 변경
14
+
15
+ ## BreakPoint
16
+
17
+ Badge, BaseText, Toast, Tooltip 컴포넌트의 variant prop이 다음과 같이 변경되었습니다.
18
+
19
+ - variant => kind
20
+
21
+ Notification type prop이 다음과 같이 변경되었습니다.
22
+
23
+ - type => kind
24
+
25
+ ## 0.23.2
26
+
27
+ ### Patch Changes
28
+
29
+ - f7c903c: Message, Notification 순환참조 수정, Input 공용 스타일 focus 재적용
30
+
3
31
  ## 0.23.1
4
32
 
5
33
  ### Patch Changes
package/README.md CHANGED
@@ -22,7 +22,7 @@ import styled from '@emotion/styled';
22
22
  export default function Test() {
23
23
  return (
24
24
  <HStack spacing={10}>
25
- <BaseText variant='Heading_24_Bold' color={colors.gray900}>Hello</BaseText>
25
+ <BaseText kind='Heading_24_Bold' color={colors.gray900}>Hello</BaseText>
26
26
  <StyledText>PDS UI</StyledText>
27
27
  </HStack>
28
28
  );
@@ -67,10 +67,10 @@ yarn storybook
67
67
  │ ├── icons
68
68
  │ │ ├── generated
69
69
  │ │ ├── Icon.stories.tsx
70
- │ │ └── Icon.stories.mdx
70
+ │ │ └── Icons.stories.mdx
71
71
  │ ├── images
72
72
  │ │ ├── generated
73
- │ │ ├── Images.stories.tsx
73
+ │ │ ├── Image.stories.tsx
74
74
  │ │ └── Images.stories.mdx
75
75
  │ ├── global_styles
76
76
  │ ├── themes
@@ -1,10 +1,10 @@
1
1
  import { PropsWithChildren, ReactElement } from 'react';
2
- import { BadgeVariant, BadgeColor, BadgeSize } from './types';
2
+ import { BadgeKind, BadgeColor, BadgeSize } from './types';
3
3
  import { IconProps } from '../icons/generated';
4
4
  export interface BadgeProps {
5
5
  className?: string;
6
6
  /** @default outlined */
7
- variant?: BadgeVariant;
7
+ kind?: BadgeKind;
8
8
  /** @default small */
9
9
  size?: BadgeSize;
10
10
  /** @default black */
@@ -12,4 +12,4 @@ export interface BadgeProps {
12
12
  /** 라벨 우측 영역에 렌더링 될 아이콘 요소 */
13
13
  icon?: ReactElement<IconProps>;
14
14
  }
15
- export declare const Badge: ({ className, variant, size, color, icon, children, }: PropsWithChildren<BadgeProps>) => JSX.Element;
15
+ export declare const Badge: ({ className, kind, size, color, icon, children, }: PropsWithChildren<BadgeProps>) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<({ className, variant, size, color, icon, children, }: React.PropsWithChildren<import("./Badge").BadgeProps>) => JSX.Element>;
3
+ declare const _default: ComponentMeta<({ className, kind, size, color, icon, children, }: React.PropsWithChildren<import("./Badge").BadgeProps>) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const Outline: any;
6
6
  export declare const Fill: any;
@@ -1,5 +1,5 @@
1
- import { BadgeVariant, BadgeColor, BadgeSize } from './types';
1
+ import { BadgeKind, BadgeColor, BadgeSize } from './types';
2
2
  export declare const badge_base_css: import("@emotion/utils").SerializedStyles;
3
3
  export declare const badge_color_css: Record<BadgeColor, string>;
4
4
  export declare const badge_size_css: Record<BadgeSize, string>;
5
- export declare const getBadgeStyleByProps: (variant?: BadgeVariant, color?: BadgeColor) => import("@emotion/utils").SerializedStyles;
5
+ export declare const getBadgeStyleByProps: (kind?: BadgeKind, color?: BadgeColor) => import("@emotion/utils").SerializedStyles;
@@ -1,3 +1,3 @@
1
- export declare type BadgeVariant = 'outline' | 'fill';
1
+ export declare type BadgeKind = 'outline' | 'fill';
2
2
  export declare type BadgeColor = 'pink' | 'blue' | 'gray' | 'red' | 'green';
3
3
  export declare type BadgeSize = 'small' | 'medium';
@@ -1,3 +1,3 @@
1
1
  import { InputStatus } from '../input/types';
2
2
  export declare const label_base_css: import("@emotion/utils").SerializedStyles;
3
- export declare const getFormHelperStatus: (variant: InputStatus) => import("@emotion/utils").SerializedStyles;
3
+ export declare const getFormHelperStatus: (kind: InputStatus) => import("@emotion/utils").SerializedStyles;