@croquiscom/pds 0.25.0 → 0.27.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,23 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 0.27.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 2d92485: Modal 컴포넌트 추가
8
+ - 095aaa8: feat: Toast 컴포넌트 fill prop 추가
9
+
10
+ ### Patch Changes
11
+
12
+ - 715d097: 아이콘 버튼 크기 유지를 위한 스타일 추가
13
+
14
+ ## 0.26.0
15
+
16
+ ### Minor Changes
17
+
18
+ - ab04068: feat: Badge Large 사이즈 및 Orange 컬러 추가
19
+ - 5ce887d: BottomSheet 컴포넌트 추가
20
+
3
21
  ## 0.25.0
4
22
 
5
23
  ### Minor Changes
@@ -1,3 +1,3 @@
1
1
  export declare type BadgeKind = 'outline' | 'fill';
2
- export declare type BadgeColor = 'pink' | 'blue' | 'gray' | 'red' | 'green';
3
- export declare type BadgeSize = 'small' | 'medium';
2
+ export declare type BadgeColor = 'pink' | 'blue' | 'gray' | 'red' | 'green' | 'orange';
3
+ export declare type BadgeSize = 'small' | 'medium' | 'large';
@@ -0,0 +1,25 @@
1
+ import { ReactNode } from 'react';
2
+ declare type BottomSheetContentWithCloseAction = (action: {
3
+ close(): void;
4
+ }) => ReactNode;
5
+ export interface BottomSheetProps {
6
+ className?: string;
7
+ opened?: boolean;
8
+ /** @default 1010 */
9
+ zIndex?: number;
10
+ title?: string;
11
+ subTitle?: string;
12
+ content?: ReactNode | BottomSheetContentWithCloseAction;
13
+ /**
14
+ * @default true
15
+ */
16
+ canClickOutside?: boolean;
17
+ /**
18
+ * @desc bottom sheet 드래그 닫힘 지원 여부
19
+ * @default true
20
+ */
21
+ canDragClose?: boolean;
22
+ onClose?: () => void;
23
+ }
24
+ export declare const BottomSheet: ({ className, zIndex, opened: openProp, canClickOutside, canDragClose, title, subTitle, content, onClose, }: BottomSheetProps) => JSX.Element;
25
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta } from '@storybook/react';
3
+ declare const _default: ComponentMeta<({ className, zIndex, opened: openProp, canClickOutside, canDragClose, title, subTitle, content, onClose, }: import("./BottomSheet").BottomSheetProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Base: any;
6
+ export declare const MaxHeight: () => JSX.Element;
7
+ export declare const DisabledCloseDimClick: any;
8
+ export declare const DisabledCloseDrag: any;
9
+ export declare const ContentWithCloseAction: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './BottomSheet';
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
- import { ComponentMeta } from '@storybook/react';
2
+ import { IconButton } from './IconButton';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
3
4
  declare const _default: ComponentMeta<React.ForwardRefExoticComponent<import("./IconButton").IconButtonProps & React.RefAttributes<HTMLButtonElement>>>;
4
5
  export default _default;
5
6
  export declare const Rectangle: any;
6
7
  export declare const Circle: any;
8
+ export declare const WithInput: ComponentStory<typeof IconButton>;
@@ -0,0 +1 @@
1
+ export declare const FLOATING_ROOT_ID = "pds-floating-root";
@@ -0,0 +1 @@
1
+ export * from './floating';
package/dist/index.d.ts CHANGED
@@ -20,4 +20,6 @@ export * from './dropdown';
20
20
  export * from './menu';
21
21
  export * from './toast';
22
22
  export * from './notification';
23
+ export * from './bottomSheet';
24
+ export * from './modal';
23
25
  export * from './container';