@croquiscom/pds 8.2.0-next.1 → 8.2.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,21 +1,16 @@
1
1
  # @croquiscom/pds
2
2
 
3
- ## 8.2.0-next.1
3
+ ## 8.2.1
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 9abb8fc: 빌드 누락으로 테스트 재배포
7
+ - b5b97e9: Table 컴포넌트의 children 프로퍼티 옵셔널로 수정하고 forwardRef 처리
8
8
 
9
- ## 8.2.0-next.0
9
+ ## 8.2.0
10
10
 
11
11
  ### Minor Changes
12
12
 
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 동작하지 않는 이슈 수정
13
+ - 22342b1: DropdownInput에 allowCustomValue 속성 추가
19
14
 
20
15
  ## 8.1.0
21
16
 
@@ -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;
@@ -1,7 +1,6 @@
1
1
  import React, { TableHTMLAttributes } from 'react';
2
2
  import { Scroll } from '../table/types';
3
3
  export interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
4
- children: React.ReactNode;
5
4
  /**
6
5
  * 테이블 스크롤 영역 너비/높이를 지정할 수 있습니다.
7
6
  * - { x: number | string, y: number | string }
@@ -17,6 +16,5 @@ export interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
17
16
  * @default false
18
17
  */
19
18
  resize?: boolean;
20
- className?: string;
21
19
  }
22
20
  export declare const Table: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLTableElement>>;
@@ -1,7 +1,6 @@
1
- import { ReactNode, TdHTMLAttributes } from 'react';
1
+ import React, { TdHTMLAttributes } from 'react';
2
2
  import { ColumnAlign } from '../table/types';
3
3
  interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
4
- children: ReactNode;
5
4
  id?: string;
6
5
  fixed?: boolean;
7
6
  fixedColWidth?: number;
@@ -11,5 +10,5 @@ interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
11
10
  resize?: boolean;
12
11
  colSpan?: number;
13
12
  }
14
- export declare const TableCell: ({ children, className, colSpan, id, ...props }: TableCellProps) => JSX.Element;
13
+ export declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
15
14
  export {};
@@ -1,8 +1,7 @@
1
- import React, { ReactNode, ThHTMLAttributes } from 'react';
1
+ import React, { ThHTMLAttributes } from 'react';
2
2
  import { TableSortIndicatorProps } from '../table/TableSortIndicator';
3
3
  import { ColumnAlign } from '../table/types';
4
4
  interface TableColProps extends ThHTMLAttributes<HTMLTableCellElement> {
5
- children: ReactNode;
6
5
  id?: string;
7
6
  width?: number;
8
7
  fixed?: boolean;
@@ -1,6 +1,5 @@
1
- import { ReactNode, TableHTMLAttributes } from 'react';
1
+ import React, { TableHTMLAttributes } from 'react';
2
2
  interface TableRowProps extends TableHTMLAttributes<HTMLTableRowElement> {
3
- children: ReactNode;
4
3
  selected?: boolean;
5
4
  isEmpty?: boolean;
6
5
  cellHoverStyle?: boolean;
@@ -8,5 +7,5 @@ interface TableRowProps extends TableHTMLAttributes<HTMLTableRowElement> {
8
7
  selectable?: boolean;
9
8
  disabled?: boolean;
10
9
  }
11
- export declare const TableRow: ({ children, className, ...props }: TableRowProps) => JSX.Element;
10
+ export declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
12
11
  export {};
@@ -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 {};