@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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 0.11.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 999480c: FormField export 누락 수정
8
+
9
+ ## 0.11.0
10
+
11
+ ### Minor Changes
12
+
13
+ - fca25bf: FormField 컴포넌트 추가
14
+
3
15
  ## 0.10.1
4
16
 
5
17
  ### Patch Changes
@@ -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 { 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
- };
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;
@@ -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 팝오버 요소 TODO(sally): popover 개발시 외부 ReactNode 주입 제거 및 타입 제한 */
6
- helper?: ReactNode;
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 { FormLabelProps } from './FormLabel';
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;
@@ -1,2 +1,3 @@
1
1
  export * from './FormLabel';
2
2
  export * from './FormHelperText';
3
+ export * from './FormField';