@croquiscom/pds 8.22.0 → 8.22.2

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
+ ## 8.22.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 9c8c44e: DropdownItem transition 반영, selected 스타일적용되지 않는 이슈 수정
8
+
9
+ ## 8.22.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 1f1fd8a: Popoverbutton 내보내기
14
+
3
15
  ## 8.22.0
4
16
 
5
17
  ### Minor Changes
@@ -1,5 +1,6 @@
1
1
  export * from './Button';
2
2
  export * from './IconButton';
3
3
  export * from './TextButton';
4
+ export * from './PopoverButton';
4
5
  export * from './CloseButton';
5
6
  export * from './AccordionButton';
@@ -4,6 +4,7 @@ declare const meta: Meta<typeof Dropdown>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof Dropdown>;
6
6
  export declare const Base: Story;
7
+ export declare const NoOptions: Story;
7
8
  export declare const Error: Story;
8
9
  export declare const Flip: Story;
9
10
  export declare const WithFormHelperText: Story;
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode, CSSProperties } from 'react';
2
- import { ExtendedRefs, FloatingContext, MiddlewareData } from '@floating-ui/react';
2
+ import { ExtendedRefs, FloatingContext } from '@floating-ui/react';
3
3
  import { InputSize } from '../input/types';
4
4
  import { AriaFocusProps } from '../../types/common';
5
5
  import { DropdownOption } from '../dropdown';
@@ -10,10 +10,10 @@ export interface PopoverContentProps<OptionValue> {
10
10
  * @default 1030
11
11
  */
12
12
  zIndex?: number;
13
+ hasNoData?: boolean;
13
14
  /** @default large */
15
+ initialFocus?: number;
14
16
  size?: InputSize;
15
- /** @default false */
16
- opened: boolean;
17
17
  options: Array<DropdownOption<OptionValue>>;
18
18
  placeholder?: string;
19
19
  value?: OptionValue;
@@ -27,7 +27,6 @@ export interface PopoverContentProps<OptionValue> {
27
27
  context: FloatingContext;
28
28
  floatingStyles: CSSProperties;
29
29
  refs: ExtendedRefs<Element>;
30
- hide: MiddlewareData['hide'];
31
30
  setRefs: (node: HTMLElement | null, index: number) => void;
32
31
  }
33
- export declare const DropdownOptions: <OptionValue extends string | number>({ className, zIndex, size: sizeProp, options, opened, onClose, value: valueProp, unstableFocusVisible, keyExtractor, onChange, focusIndex, context, getFloatingProps, getItemProps, floatingStyles, refs, hide, setRefs, }: PopoverContentProps<OptionValue> & AriaFocusProps) => React.JSX.Element;
32
+ export declare const DropdownOptions: <OptionValue extends string | number>({ className, zIndex, size: sizeProp, initialFocus, options, onClose, hasNoData, value: valueProp, unstableFocusVisible, keyExtractor, onChange, focusIndex, context, getFloatingProps, getItemProps, floatingStyles, refs, setRefs, }: PopoverContentProps<OptionValue> & AriaFocusProps) => React.JSX.Element;