@croquiscom/pds 8.22.1 → 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 +6 -0
- package/dist/components/dropdown/Dropdown.stories.d.ts +1 -0
- package/dist/components/dropdown/DropdownOptions.d.ts +4 -5
- package/dist/index.es.js +8 -8
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -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
|
|
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,
|
|
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;
|