@croquiscom/pds 8.2.0-next.1 → 8.2.0

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,21 +1,10 @@
1
1
  # @croquiscom/pds
2
2
 
3
- ## 8.2.0-next.1
4
-
5
- ### Patch Changes
6
-
7
- - 9abb8fc: 빌드 누락으로 테스트 재배포
8
-
9
- ## 8.2.0-next.0
3
+ ## 8.2.0
10
4
 
11
5
  ### Minor Changes
12
6
 
13
- - 998d6f7: @floating-ui/react ^0.18.0 -> ^0.26.6 업데이트
14
-
15
- - DropdownInput, Popover, Tooltip에서 FloatingPortal 조건부로 렌더링되도록 변경
16
- - DateRangePicker에서 TimePicker 클릭시 focusout 이벤트로 닫히는 이슈 수정
17
- - TimePicker 키보드 네비게이션 추가
18
- - useManualDismiss 동작하지 않는 이슈 수정
7
+ - 22342b1: DropdownInput에 allowCustomValue 속성 추가
19
8
 
20
9
  ## 8.1.0
21
10
 
@@ -18,6 +18,10 @@ export interface DropdownInputOption<OptionValue> {
18
18
  disabled?: boolean;
19
19
  }
20
20
  export interface DropdownInputProps<OptionValue> extends Omit<DropdownProps<OptionValue>, 'options' | 'keyExtractor' | 'onChange'> {
21
+ /**
22
+ * options에 없는 값을 허용할 지 여부입니다.
23
+ */
24
+ allowCustomValue?: boolean;
21
25
  /**
22
26
  * 입력된 검색결과를 전달합니다.
23
27
  */
@@ -27,4 +31,4 @@ export interface DropdownInputProps<OptionValue> extends Omit<DropdownProps<Opti
27
31
  keyExtractor?: (item: DropdownInputOption<OptionValue>, index: number) => string | number;
28
32
  optionFilter?: (inputValue: string, item: DropdownInputOption<OptionValue>, index: number) => boolean;
29
33
  }
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;
34
+ export declare const DropdownInput: <OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, allowCustomValue, keyExtractor, optionFilter, autoPlacement: autoPlacementProps, onSearch, onChange, }: DropdownInputProps<OptionValue> & AriaFocusProps) => JSX.Element;
@@ -1,7 +1,7 @@
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, autoPlacement: autoPlacementProps, 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, allowCustomValue, 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;
@@ -11,3 +11,5 @@ export declare const WithOptionFilter: ComponentStory<typeof DropdownInput>;
11
11
  export declare const Size: ComponentStory<typeof DropdownInput>;
12
12
  export declare const Disabled: any;
13
13
  export declare const Controlled: ComponentStory<typeof DropdownInput>;
14
+ export declare const TestComposition: ComponentStory<typeof DropdownInput>;
15
+ export declare const AllowCustomValue: ComponentStory<typeof DropdownInput>;
@@ -20,4 +20,3 @@ export declare const AutoMaxHeight: ComponentStory<typeof Modal>;
20
20
  export declare const CustomMaxHeight: ComponentStory<typeof Modal>;
21
21
  export declare const Scrollable: ComponentStory<typeof Modal>;
22
22
  export declare const AutoFocusButton: any;
23
- export declare const NestingFloatingElements: ComponentStory<typeof Modal>;
@@ -1,11 +1,19 @@
1
- import { FloatingTreeType, FloatingContext, OpenChangeReason } from '@floating-ui/react';
1
+ import { FloatingTreeType, FloatingContext } from '@floating-ui/react';
2
+ export interface DismissPayload {
3
+ type: 'outsidePress' | 'referencePress' | 'escapeKey' | 'mouseLeave';
4
+ data: {
5
+ returnFocus: boolean | {
6
+ preventScroll: boolean;
7
+ };
8
+ };
9
+ }
2
10
  export interface UseManualDismissProps {
3
11
  controlled?: boolean;
4
12
  rootId: string;
5
13
  tree: FloatingTreeType;
6
14
  context: FloatingContext;
7
- reasons?: Array<Partial<OpenChangeReason>>;
8
- callbackTypeWithFn?: (type: OpenChangeReason) => void;
15
+ dismissEventType?: Array<Partial<DismissPayload['type']>>;
16
+ callbackTypeWithFn?: (type: DismissPayload['type']) => void;
9
17
  }
10
18
  /**
11
19
  * @desc Modal dismiss event share
@@ -15,4 +23,4 @@ export interface UseManualDismissProps {
15
23
  * - 노드 구조가 자식 요소로써 중첩 호출된 케이스인 경우 자동으로 순차 호출된 dismiss 이벤트를 전달합니다.(https://github.com/floating-ui/floating-ui/pull/2114)
16
24
  * - 노드 구조가 형제 요소로써 중첩 호출된 케이스인 경우 현재 활성된 요소부터 dismiss 이벤트를 전달합니다.
17
25
  */
18
- export declare function useManualDismiss({ controlled, rootId, tree, context, reasons, callbackTypeWithFn, }: UseManualDismissProps): void;
26
+ export declare function useManualDismiss({ controlled, rootId, tree, context, dismissEventType, callbackTypeWithFn, }: UseManualDismissProps): void;
@@ -39,7 +39,5 @@ export interface TimePickerProps {
39
39
  * @default false
40
40
  */
41
41
  showRemoveButton?: boolean;
42
- /** @default true */
43
- usePortal?: boolean;
44
42
  }
45
- export declare const TimePicker: ({ disabled, size, value, error, width, fill, zIndex, className, onOpen, onClose, onChange, incrementMinute, showRemoveButton, usePortal, }: TimePickerProps) => JSX.Element;
43
+ export declare const TimePicker: ({ disabled, size, value, error, width, fill, zIndex, className, onOpen, onClose, onChange, incrementMinute, showRemoveButton, }: TimePickerProps) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ComponentStory, ComponentMeta } from '@storybook/react';
3
3
  import { TimePicker } from './TimePicker';
4
- declare const _default: ComponentMeta<({ disabled, size, value, error, width, fill, zIndex, className, onOpen, onClose, onChange, incrementMinute, showRemoveButton, usePortal, }: import("./TimePicker").TimePickerProps) => JSX.Element>;
4
+ declare const _default: ComponentMeta<({ disabled, size, value, error, width, fill, zIndex, className, onOpen, onClose, onChange, incrementMinute, showRemoveButton, }: import("./TimePicker").TimePickerProps) => JSX.Element>;
5
5
  export default _default;
6
6
  export declare const Base: any;
7
7
  export declare const Disabled: any;
@@ -16,12 +16,10 @@ export interface TimePickerOverlayProps {
16
16
  opened?: boolean;
17
17
  disabled?: boolean;
18
18
  fill?: boolean;
19
- /** @default true */
20
- usePortal?: boolean;
21
19
  onClose?: () => void;
22
20
  onOpen?: () => void;
23
21
  onCloseOutsidePress?: () => void;
24
22
  setOpened: Dispatch<SetStateAction<boolean>>;
25
23
  }
26
- export declare const TimePickerOverlay: ({ children, className, content, zIndex, opened: openProp, disabled, fill, usePortal, onClose, onOpen, onCloseOutsidePress, setOpened, }: TimePickerOverlayProps) => JSX.Element;
24
+ export declare const TimePickerOverlay: ({ children, className, content, zIndex, opened: openProp, disabled, fill, onClose, onOpen, onCloseOutsidePress, setOpened, }: TimePickerOverlayProps) => JSX.Element;
27
25
  export {};