@croquiscom/pds 0.10.1 → 0.11.1
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 +12 -0
- package/dist/form/FormField.d.ts +10 -0
- package/dist/form/FormField.stories.d.ts +9 -0
- package/dist/form/FormHelperText.stories.d.ts +2 -5
- package/dist/form/FormLabel.d.ts +3 -2
- package/dist/form/FormLabel.stories.d.ts +2 -5
- package/dist/form/index.d.ts +1 -0
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/input/Input.stories.d.ts +2 -22
- package/dist/input/NumericInput.stories.d.ts +4 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode, PropsWithChildren } from 'react';
|
|
2
|
+
import { HelpTextProps } from '../text';
|
|
3
|
+
export interface FormFieldProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
rightAddon?: ReactNode;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
helper?: HelpTextProps;
|
|
9
|
+
}
|
|
10
|
+
export declare const FormField: ({ className, label, rightAddon, required, helper, children, }: PropsWithChildren<FormFieldProps>) => JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
|
+
import { FormField } from './FormField';
|
|
4
|
+
declare const _default: ComponentMeta<({ className, label, rightAddon, required, helper, children, }: React.PropsWithChildren<import("./FormField").FormFieldProps>) => JSX.Element>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Base: any;
|
|
7
|
+
export declare const WithRadioGroup: ComponentStory<typeof FormField>;
|
|
8
|
+
export declare const WithCheckboxGroup: ComponentStory<typeof FormField>;
|
|
9
|
+
export declare const WithHelpPopover: any;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
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
|
-
};
|
|
2
|
+
import { ComponentMeta } from '@storybook/react';
|
|
3
|
+
declare const _default: ComponentMeta<React.FC<import("./FormHelperText").FormHelperTextProps & (React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>)>>;
|
|
7
4
|
export default _default;
|
|
8
5
|
export declare const Base: any;
|
|
9
6
|
export declare const Confirm: any;
|
package/dist/form/FormLabel.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React, { ReactNode, LabelHTMLAttributes } from 'react';
|
|
2
|
+
import { HelpTextProps } from '../text';
|
|
2
3
|
export interface FormLabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
3
4
|
/** @default false */
|
|
4
5
|
required?: boolean;
|
|
5
|
-
/** help 팝오버
|
|
6
|
-
helper?:
|
|
6
|
+
/** 라벨 help 팝오버 콘텐츠 */
|
|
7
|
+
helper?: HelpTextProps;
|
|
7
8
|
/** 라벨 우측 렌더링될 Addon 요소 */
|
|
8
9
|
rightAddon?: ReactNode;
|
|
9
10
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
declare const _default:
|
|
4
|
-
title: string;
|
|
5
|
-
component: React.ForwardRefExoticComponent<FormLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
6
|
-
};
|
|
2
|
+
import { ComponentMeta } from '@storybook/react';
|
|
3
|
+
declare const _default: ComponentMeta<React.ForwardRefExoticComponent<import("./FormLabel").FormLabelProps & React.RefAttributes<HTMLLabelElement>>>;
|
|
7
4
|
export default _default;
|
|
8
5
|
export declare const Base: any;
|
|
9
6
|
export declare const Required: any;
|
package/dist/form/index.d.ts
CHANGED