@croquiscom/pds 0.40.1 → 0.40.3
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/components/input/Input.stories.d.ts +2 -0
- package/dist/components/input/InputBase.d.ts +3 -0
- package/dist/components/input/NumericInput.d.ts +1 -1
- package/dist/components/modal/ModalOverlay.d.ts +6 -1
- package/dist/components/modal/renderModal.d.ts +1 -1
- package/dist/components/textarea/Textarea.d.ts +0 -1
- package/dist/constants/floating.d.ts +2 -0
- package/dist/index.es.js +3 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,10 +8,12 @@ export declare const Success: any;
|
|
|
8
8
|
export declare const Disabled: any;
|
|
9
9
|
export declare const EnteredDisabled: any;
|
|
10
10
|
export declare const RightAlignment: any;
|
|
11
|
+
export declare const MaxLength: any;
|
|
11
12
|
export declare const Addon: any;
|
|
12
13
|
export declare const Width: any;
|
|
13
14
|
export declare const AddonWithWidth: any;
|
|
14
15
|
export declare const AddonWithFormHelperText: () => JSX.Element[];
|
|
16
|
+
export declare const MaxLengthWithCombined: () => JSX.Element;
|
|
15
17
|
export declare const Password: () => JSX.Element;
|
|
16
18
|
export declare const Search: any;
|
|
17
19
|
export declare const WithButton: () => JSX.Element;
|
|
@@ -16,6 +16,9 @@ export interface InputBaseType {
|
|
|
16
16
|
/** @desc suffix */
|
|
17
17
|
rightAddon?: InputAffixProps['suffix'];
|
|
18
18
|
width?: CSSValueWithLength;
|
|
19
|
+
/** @default false */
|
|
20
|
+
showCounter?: boolean;
|
|
19
21
|
}
|
|
20
22
|
export type InputBaseProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'width'> & InputBaseType;
|
|
23
|
+
export declare const controlledInputValue: (value: any) => string;
|
|
21
24
|
export declare const InputBase: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "width"> & InputBaseType & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ChangeEvent, InputHTMLAttributes } from 'react';
|
|
2
2
|
import { InputAffixProps } from './InputAffix';
|
|
3
3
|
import { InputBaseType } from './InputBase';
|
|
4
|
-
export interface NumericInputBaseType extends InputBaseType, InputAffixProps {
|
|
4
|
+
export interface NumericInputBaseType extends Omit<InputBaseType, 'showCounter'>, InputAffixProps {
|
|
5
5
|
value?: number | string | null;
|
|
6
6
|
defaultValue?: number | string;
|
|
7
7
|
/** @default true */
|
|
@@ -2,6 +2,11 @@ import { PropsWithChildren, Dispatch, SetStateAction } from 'react';
|
|
|
2
2
|
import { CSSValueWithLength } from '../../styles';
|
|
3
3
|
import { CornerRadiusSize } from '../../foundation';
|
|
4
4
|
export interface ModalOverlayBaseProps {
|
|
5
|
+
/**
|
|
6
|
+
* @default 'pds-floating-root'
|
|
7
|
+
* @desc FloatingPortal node id, render 함수로 Floating 노드를 생성하는 경우가 아닌 경우에는 디폴트 아이디값으로 처리합니다.
|
|
8
|
+
*/
|
|
9
|
+
floatingPortalId?: string;
|
|
5
10
|
/**
|
|
6
11
|
* @desc 안전여백을 포함한 100% 너비 사용, Alert 또는 Confirm Modal의 경우 최소너비(480) 범위내에서 적용됩니다.
|
|
7
12
|
* @default false
|
|
@@ -35,4 +40,4 @@ export interface ModalOverlayProps extends ModalOverlayBaseProps {
|
|
|
35
40
|
setOpened: Dispatch<SetStateAction<boolean>>;
|
|
36
41
|
onCloseOutsidePress?: () => void;
|
|
37
42
|
}
|
|
38
|
-
export declare const ModalOverlay: ({ width, maxWidth, borderRadiusSize, fill, fullScreen, className, children, opened: openProp, zIndex, canClickOutside, onExited, onClose, onCloseOutsidePress, setOpened, }: PropsWithChildren<ModalOverlayProps>) => JSX.Element;
|
|
43
|
+
export declare const ModalOverlay: ({ floatingPortalId, width, maxWidth, borderRadiusSize, fill, fullScreen, className, children, opened: openProp, zIndex, canClickOutside, onExited, onClose, onCloseOutsidePress, setOpened, }: PropsWithChildren<ModalOverlayProps>) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Root } from 'react-dom/client';
|
|
2
|
-
export declare function getFloatingModalPortal(): HTMLElement;
|
|
2
|
+
export declare function getFloatingModalPortal(id: string): HTMLElement;
|
|
3
3
|
export declare function removeFloatingModalPortal(target: HTMLElement, root: Root, unmountDelay?: number): void;
|
|
@@ -2,7 +2,6 @@ import React, { TextareaHTMLAttributes } from 'react';
|
|
|
2
2
|
import { SizeProps } from '../../styles';
|
|
3
3
|
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, SizeProps {
|
|
4
4
|
error?: boolean;
|
|
5
|
-
value?: string;
|
|
6
5
|
/** @default false */
|
|
7
6
|
showCounter?: boolean;
|
|
8
7
|
}
|