@croquiscom/pds 0.37.0 → 0.37.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 +6 -0
- package/dist/components/form/FormField.d.ts +3 -1
- package/dist/components/form/FormField.stories.d.ts +2 -1
- package/dist/components/form/FormLabel.d.ts +2 -0
- package/dist/components/form/FormLabel.stories.d.ts +1 -0
- package/dist/index.es.js +3 -3
- 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
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ReactNode, PropsWithChildren } from 'react';
|
|
2
2
|
import { HelpTextProps } from '../text';
|
|
3
|
+
import { CSSValueWithLength } from '../../styles';
|
|
3
4
|
export interface FormFieldProps {
|
|
4
5
|
className?: string;
|
|
5
6
|
label?: string;
|
|
6
7
|
rightAddon?: ReactNode;
|
|
7
8
|
required?: boolean;
|
|
8
9
|
helper?: HelpTextProps;
|
|
10
|
+
labelWidth?: CSSValueWithLength;
|
|
9
11
|
}
|
|
10
|
-
export declare const FormField: ({ className, label, rightAddon, required, helper, children, }: PropsWithChildren<FormFieldProps>) => JSX.Element;
|
|
12
|
+
export declare const FormField: ({ className, label, rightAddon, required, helper, labelWidth, children, }: PropsWithChildren<FormFieldProps>) => JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
3
|
import { FormField } from './FormField';
|
|
4
|
-
declare const _default: ComponentMeta<({ className, label, rightAddon, required, helper, children, }: React.PropsWithChildren<import("./FormField").FormFieldProps>) => JSX.Element>;
|
|
4
|
+
declare const _default: ComponentMeta<({ className, label, rightAddon, required, helper, labelWidth, children, }: React.PropsWithChildren<import("./FormField").FormFieldProps>) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Base: any;
|
|
7
|
+
export declare const LabelWith: any;
|
|
7
8
|
export declare const WithRadioGroup: ComponentStory<typeof FormField>;
|
|
8
9
|
export declare const WithCheckboxGroup: ComponentStory<typeof FormField>;
|
|
9
10
|
export declare const WithHelpPopover: any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, LabelHTMLAttributes } from 'react';
|
|
2
2
|
import { HelpTextProps } from '../text';
|
|
3
|
+
import { CSSValueWithLength } from '../../styles';
|
|
3
4
|
export interface FormLabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
4
5
|
/** @default false */
|
|
5
6
|
required?: boolean;
|
|
@@ -7,5 +8,6 @@ export interface FormLabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
|
7
8
|
helper?: HelpTextProps;
|
|
8
9
|
/** 라벨 우측 렌더링될 Addon 요소 */
|
|
9
10
|
rightAddon?: ReactNode;
|
|
11
|
+
width?: CSSValueWithLength;
|
|
10
12
|
}
|
|
11
13
|
export declare const FormLabel: React.ForwardRefExoticComponent<FormLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
@@ -4,5 +4,6 @@ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<import("./
|
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Base: any;
|
|
6
6
|
export declare const Required: any;
|
|
7
|
+
export declare const Width: any;
|
|
7
8
|
export declare const Help: any;
|
|
8
9
|
export declare const HelpWithRequired: any;
|