@croquiscom/pds 0.25.0 → 0.26.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 +7 -0
- package/dist/badge/types.d.ts +2 -2
- package/dist/bottomSheet/BottomSheet.d.ts +25 -0
- package/dist/bottomSheet/BottomSheet.stories.d.ts +9 -0
- package/dist/bottomSheet/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles/index.d.ts +1 -0
- package/dist/styles/safeArea.d.ts +2 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
package/dist/badge/types.d.ts
CHANGED
|
@@ -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';
|