@croquiscom/pds 6.6.0 → 7.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 7.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 59148b0: State Component의 text와 subtext 속성이 string에서 ReactNode 타입으로 변경되었고 속성명이 다음과 같이 변경되었습니다. text -> title, subtext -> description. 추가적으로 action 속성이 추가되었습니다.
8
+
9
+ ## 6.6.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 7da3b18: export PaginationArrow
14
+
3
15
  ## 6.6.0
4
16
 
5
17
  ### Minor Changes
@@ -6,9 +6,5 @@ export interface PaginationArrowProps {
6
6
  disabled?: boolean;
7
7
  onClick?: () => void;
8
8
  }
9
- export declare const PaginationArrow: ({ position, disabled, onClick }: {
10
- position?: string;
11
- disabled: any;
12
- onClick: any;
13
- }) => JSX.Element;
9
+ export declare const PaginationArrow: ({ position, disabled, onClick }: PaginationArrowProps) => JSX.Element;
14
10
  export {};
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta } from '@storybook/react';
3
+ declare const _default: ComponentMeta<({ position, disabled, onClick }: import("./PaginationArrow").PaginationArrowProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Base: any;
@@ -1 +1,2 @@
1
1
  export * from './Pagination';
2
+ export * from './PaginationArrow';
@@ -1,10 +1,11 @@
1
- import { HTMLAttributes, ComponentType } from 'react';
1
+ import { HTMLAttributes, ComponentType, ReactNode } from 'react';
2
2
  import { IconProps } from '../../components';
3
- export type StateKind = 'warning';
4
- export interface StateProps extends HTMLAttributes<HTMLDivElement> {
3
+ export type StateKind = 'warning' | 'empty';
4
+ export interface StateProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
5
5
  kind?: StateKind;
6
- text?: string;
7
- subtext?: string;
6
+ title?: ReactNode;
7
+ description: ReactNode;
8
8
  icon?: ComponentType<IconProps>;
9
+ action?: ReactNode;
9
10
  }
10
- export declare const State: ({ kind, text, subtext, icon, className, ...props }: StateProps) => JSX.Element;
11
+ export declare const State: ({ kind, title, description, action, icon, className, ...props }: StateProps) => JSX.Element;
@@ -1,5 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<({ kind, text, subtext, icon, className, ...props }: import("./State").StateProps) => JSX.Element>;
3
+ declare const _default: ComponentMeta<({ kind, title, description, action, icon, className, ...props }: import("./State").StateProps) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const WarningKind: any;
6
+ export declare const EmptyKind: any;
7
+ export declare const EmptyKindWithAction: any;