@croquiscom/pds 0.2.0 → 0.3.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 +8 -0
- package/dist/form/FormHelperText.d.ts +14 -0
- package/dist/form/FormHelperText.stories.d.ts +12 -0
- package/dist/form/FormLabel.d.ts +10 -0
- package/dist/form/FormLabel.stories.d.ts +11 -0
- package/dist/form/index.d.ts +2 -0
- package/dist/form/styles.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="@emotion/react/types/css-prop" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare type FormHelperTextVariant = 'info' | 'confirm' | 'error';
|
|
4
|
+
declare type FormHelperTextElement = keyof Pick<JSX.IntrinsicElements, 'div' | 'p' | 'span'>;
|
|
5
|
+
export interface FormHelperTextProps extends React.Attributes {
|
|
6
|
+
/**
|
|
7
|
+
* @default span
|
|
8
|
+
*/
|
|
9
|
+
as?: FormHelperTextElement;
|
|
10
|
+
/** @default info */
|
|
11
|
+
variant?: FormHelperTextVariant;
|
|
12
|
+
}
|
|
13
|
+
export declare const FormHelperText: React.FC<FormHelperTextProps & JSX.IntrinsicElements[FormHelperTextProps['as']]>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormHelperTextProps } from './FormHelperText';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.FC<FormHelperTextProps & (React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>)>;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Base: any;
|
|
9
|
+
export declare const Confirm: any;
|
|
10
|
+
export declare const Error: any;
|
|
11
|
+
export declare const WithInput: () => JSX.Element;
|
|
12
|
+
export declare const WithButton: () => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { ReactNode, LabelHTMLAttributes } from 'react';
|
|
2
|
+
export interface FormLabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
3
|
+
/** @default false */
|
|
4
|
+
required?: boolean;
|
|
5
|
+
/** help 팝오버 요소 TODO(sally): popover 개발시 외부 ReactNode 주입 제거 및 타입 제한 */
|
|
6
|
+
helper?: ReactNode;
|
|
7
|
+
/** 라벨 우측 렌더링될 Addon 요소 */
|
|
8
|
+
rightAddon?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const FormLabel: React.ForwardRefExoticComponent<FormLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormLabelProps } from './FormLabel';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.ForwardRefExoticComponent<FormLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Base: any;
|
|
9
|
+
export declare const Required: any;
|
|
10
|
+
export declare const Help: any;
|
|
11
|
+
export declare const HelpWithRequired: any;
|
package/dist/index.d.ts
CHANGED