@croquiscom/pds 10.8.0 → 10.9.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,5 +1,17 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 10.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5fa6d3f: ConfirmModal kind 옵션 추가
8
+
9
+ ## 10.8.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 99fde0e: Dropdown/DropdownInput 컴포넌트에서 필요한 경우에만 가상스크롤을 사용하도록 enableVirtualScroll prop 추가
14
+
3
15
  ## 10.8.0
4
16
 
5
17
  ### Minor Changes
@@ -42,5 +42,6 @@ export interface DropdownProps<OptionValue> {
42
42
  keyExtractor?: (item: DropdownOption<OptionValue>, index: number) => string | number;
43
43
  onChange?: (value: OptionValue) => void;
44
44
  renderLabel?: (selectedOption: DropdownOption<OptionValue>) => ReactNode;
45
+ enableVirtualScroll?: boolean;
45
46
  }
46
- export declare const Dropdown: <OptionValue extends string | number>({ className, width, maxHeight, zIndex, size: sizeProp, disabled, optionsMatchRefWidth, options, placeholder, status, value: valueProp, autoPlacement: autoPlacementProps, unstableFocusVisible, keyExtractor, onChange, renderLabel, }: DropdownProps<OptionValue> & AriaFocusProps) => React.JSX.Element;
47
+ export declare const Dropdown: <OptionValue extends string | number>({ className, width, maxHeight, zIndex, size: sizeProp, disabled, optionsMatchRefWidth, options, placeholder, status, value: valueProp, autoPlacement: autoPlacementProps, unstableFocusVisible, keyExtractor, onChange, renderLabel, enableVirtualScroll, }: DropdownProps<OptionValue> & AriaFocusProps) => React.JSX.Element;
@@ -34,4 +34,4 @@ export interface DropdownInputProps<OptionValue> extends Omit<DropdownProps<Opti
34
34
  keyExtractor?: (item: DropdownInputOption<OptionValue>, index: number) => string | number;
35
35
  optionFilter?: (inputValue: string, item: DropdownInputOption<OptionValue>, index: number) => boolean;
36
36
  }
37
- export declare const DropdownInput: <OptionValue extends string | number>({ width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, allowCustomValue, keyExtractor, optionFilter, autoPlacement: autoPlacementProps, startElement, endElement, onSearch, onChange, }: DropdownInputProps<OptionValue> & AriaFocusProps) => React.JSX.Element;
37
+ export declare const DropdownInput: <OptionValue extends string | number>({ width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, allowCustomValue, keyExtractor, optionFilter, autoPlacement: autoPlacementProps, startElement, endElement, onSearch, onChange, enableVirtualScroll, }: DropdownInputProps<OptionValue> & AriaFocusProps) => React.JSX.Element;
@@ -30,5 +30,6 @@ export interface PopoverContentProps<OptionValue> {
30
30
  setRefs: (node: HTMLElement | null, index: number) => void;
31
31
  isPositioned?: boolean;
32
32
  setFocusIndex?: (index: number) => void;
33
+ enableVirtualScroll?: boolean;
33
34
  }
34
- export declare const DropdownOptions: <OptionValue extends string | number>({ className, zIndex, size: sizeProp, initialFocus, options, onClose, noDataText, value: valueProp, unstableFocusVisible, keyExtractor, onChange, focusIndex, context, getFloatingProps, getItemProps, floatingStyles, refs, setRefs, isPositioned, setFocusIndex, }: PopoverContentProps<OptionValue> & AriaFocusProps) => React.JSX.Element;
35
+ export declare const DropdownOptions: <OptionValue extends string | number>({ className, zIndex, size: sizeProp, initialFocus, options, onClose, noDataText, value: valueProp, unstableFocusVisible, keyExtractor, onChange, focusIndex, context, getFloatingProps, getItemProps, floatingStyles, refs, setRefs, isPositioned, setFocusIndex, enableVirtualScroll, }: PopoverContentProps<OptionValue> & AriaFocusProps) => React.JSX.Element;
@@ -2,7 +2,12 @@ import React, { ReactNode } from 'react';
2
2
  import { ModalButtonProps } from './Modal';
3
3
  import { ModalOverlayBaseProps } from './ModalOverlay';
4
4
  import { ModalActionButtonType } from './ModalActionButton';
5
+ import { NotificationKind } from '../notification';
5
6
  export interface ConfirmModalProps extends Omit<ModalOverlayBaseProps, 'onClose'> {
7
+ /**
8
+ * @default info
9
+ */
10
+ kind?: NotificationKind;
6
11
  title: ReactNode;
7
12
  text?: ReactNode;
8
13
  subtext?: ReactNode;
@@ -38,7 +43,7 @@ export interface ConfirmModalProps extends Omit<ModalOverlayBaseProps, 'onClose'
38
43
  */
39
44
  onClose?: () => void | Promise<void>;
40
45
  }
41
- export declare const ConfirmModal: ({ title, width, zIndex, dense, fill, text, subtext, confirmText, cancelText, confirmButtonProps, cancelButtonProps, autoFocusButton, onConfirm, onCancel, onClose, onExited, ...props }: ConfirmModalProps) => React.JSX.Element;
46
+ export declare const ConfirmModal: ({ title, kind, width, zIndex, dense, fill, text, subtext, confirmText, cancelText, confirmButtonProps, cancelButtonProps, autoFocusButton, onConfirm, onCancel, onClose, onExited, ...props }: ConfirmModalProps) => React.JSX.Element;
42
47
  export declare const StyledText: import("@emotion/styled").StyledComponent<(import("../text").BaseTextProps & (React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement> | React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>)) & {
43
48
  theme?: import("@emotion/react").Theme;
44
49
  }, {}, {}>;
@@ -9,3 +9,4 @@ export declare const ContinuosOpen: Story;
9
9
  export declare const AutoFocusButtonCustom: Story;
10
10
  export declare const DisabledAutoFocusButton: Story;
11
11
  export declare const CustomPropsButton: Story;
12
+ export declare const Kind: Story;