@croquiscom/pds 0.1.0 → 0.2.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 +6 -0
- package/dist/badge/Badge.d.ts +15 -0
- package/dist/badge/Badge.stories.d.ts +7 -0
- package/dist/badge/index.d.ts +1 -0
- package/dist/badge/styles.d.ts +5 -0
- package/dist/badge/types.d.ts +3 -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/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
+
import { BadgeVariant, BadgeColor, BadgeSize } from './types';
|
|
3
|
+
import { IconProps } from '../icons/generated';
|
|
4
|
+
export interface BadgeProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
/** @default outlined */
|
|
7
|
+
variant?: BadgeVariant;
|
|
8
|
+
/** @default small */
|
|
9
|
+
size?: BadgeSize;
|
|
10
|
+
/** @default black */
|
|
11
|
+
color?: BadgeColor;
|
|
12
|
+
/** 라벨 우측 영역에 렌더링 될 아이콘 요소 */
|
|
13
|
+
icon?: ReactElement<IconProps>;
|
|
14
|
+
}
|
|
15
|
+
export declare const Badge: ({ className, variant, size, color, icon, children, }: PropsWithChildren<BadgeProps>) => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentMeta } from '@storybook/react';
|
|
3
|
+
declare const _default: ComponentMeta<({ className, variant, size, color, icon, children, }: React.PropsWithChildren<import("./Badge").BadgeProps>) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Outline: any;
|
|
6
|
+
export declare const Fill: any;
|
|
7
|
+
export declare const Icon: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Badge';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BadgeVariant, BadgeColor, BadgeSize } from './types';
|
|
2
|
+
export declare const badge_base_css: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const badge_color_css: Record<BadgeColor, string>;
|
|
4
|
+
export declare const badge_size_css: Record<BadgeSize, string>;
|
|
5
|
+
export declare const getBadgeStyleByProps: (variant?: BadgeVariant, color?: BadgeColor) => import("@emotion/utils").SerializedStyles;
|