@croquiscom/pds 6.6.1 → 7.0.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/components/dropdown/Dropdown.stories.d.ts +1 -0
- package/dist/components/dropdown/DropdownInput.d.ts +1 -1
- package/dist/components/dropdown/DropdownInput.stories.d.ts +2 -1
- package/dist/container/state/State.d.ts +7 -6
- package/dist/container/state/State.stories.d.ts +3 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @croquiscom/pds
|
|
2
2
|
|
|
3
|
+
## 7.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3bfb518: 드롭다운 아래 공간 부족하면 위에서 열리도록 처리
|
|
8
|
+
|
|
9
|
+
## 7.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- 59148b0: State Component의 text와 subtext 속성이 string에서 ReactNode 타입으로 변경되었고 속성명이 다음과 같이 변경되었습니다. text -> title, subtext -> description. 추가적으로 action 속성이 추가되었습니다.
|
|
14
|
+
|
|
3
15
|
## 6.6.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -5,6 +5,7 @@ declare const _default: ComponentMeta<(<OptionValue extends string | number>({ c
|
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Base: any;
|
|
7
7
|
export declare const Error: any;
|
|
8
|
+
export declare const Flip: ComponentStory<typeof Dropdown>;
|
|
8
9
|
export declare const WithFormHelperText: ComponentStory<typeof Dropdown>;
|
|
9
10
|
export declare const Size: ComponentStory<typeof Dropdown>;
|
|
10
11
|
export declare const Disabled: any;
|
|
@@ -27,4 +27,4 @@ export interface DropdownInputProps<OptionValue> extends Omit<DropdownProps<Opti
|
|
|
27
27
|
keyExtractor?: (item: DropdownInputOption<OptionValue>, index: number) => string | number;
|
|
28
28
|
optionFilter?: (inputValue: string, item: DropdownInputOption<OptionValue>, index: number) => boolean;
|
|
29
29
|
}
|
|
30
|
-
export declare const DropdownInput: <OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, keyExtractor, optionFilter, onSearch, onChange, }: DropdownInputProps<OptionValue> & AriaFocusProps) => JSX.Element;
|
|
30
|
+
export declare const DropdownInput: <OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, keyExtractor, optionFilter, autoPlacement: autoPlacementProps, onSearch, onChange, }: DropdownInputProps<OptionValue> & AriaFocusProps) => JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
3
|
import { DropdownInput } from './DropdownInput';
|
|
4
|
-
declare const _default: ComponentMeta<(<OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, keyExtractor, optionFilter, onSearch, onChange, }: import("./DropdownInput").DropdownInputProps<OptionValue> & import("../../types/common").AriaFocusProps) => JSX.Element)>;
|
|
4
|
+
declare const _default: ComponentMeta<(<OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, keyExtractor, optionFilter, autoPlacement: autoPlacementProps, onSearch, onChange, }: import("./DropdownInput").DropdownInputProps<OptionValue> & import("../../types/common").AriaFocusProps) => JSX.Element)>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Base: any;
|
|
7
7
|
export declare const Error: any;
|
|
8
|
+
export declare const Flip: ComponentStory<typeof DropdownInput>;
|
|
8
9
|
export declare const WithFormHelperText: ComponentStory<typeof DropdownInput>;
|
|
9
10
|
export declare const WithOptionFilter: ComponentStory<typeof DropdownInput>;
|
|
10
11
|
export declare const Size: ComponentStory<typeof DropdownInput>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { HTMLAttributes, ComponentType } from 'react';
|
|
1
|
+
import { HTMLAttributes, ComponentType, ReactNode } from 'react';
|
|
2
2
|
import { IconProps } from '../../components';
|
|
3
|
-
export type StateKind = 'warning';
|
|
4
|
-
export interface StateProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
export type StateKind = 'warning' | 'empty';
|
|
4
|
+
export interface StateProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
5
5
|
kind?: StateKind;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
title?: ReactNode;
|
|
7
|
+
description: ReactNode;
|
|
8
8
|
icon?: ComponentType<IconProps>;
|
|
9
|
+
action?: ReactNode;
|
|
9
10
|
}
|
|
10
|
-
export declare const State: ({ kind,
|
|
11
|
+
export declare const State: ({ kind, title, description, action, icon, className, ...props }: StateProps) => JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ComponentMeta } from '@storybook/react';
|
|
3
|
-
declare const _default: ComponentMeta<({ kind,
|
|
3
|
+
declare const _default: ComponentMeta<({ kind, title, description, action, icon, className, ...props }: import("./State").StateProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const WarningKind: any;
|
|
6
|
+
export declare const EmptyKind: any;
|
|
7
|
+
export declare const EmptyKindWithAction: any;
|