@saleor/macaw-ui 1.1.17 → 1.1.18
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/dist/components/List/List.d.ts +1 -1
- package/dist/components/List/index.d.ts +1 -1
- package/dist/components/Select/SelectWrapper.d.ts +11 -11
- package/dist/hooks/useFloating.d.ts +20 -12
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +735 -745
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -1260,4 +1260,4 @@ export declare const List: import('react').ForwardRefExoticComponent<Omit<{
|
|
1260
1260
|
children: ReactNode;
|
1261
1261
|
as?: "ol" | "ul" | undefined;
|
1262
1262
|
className?: string | undefined;
|
1263
|
-
} & import("react").RefAttributes<
|
1263
|
+
} & import("react").RefAttributes<HTMLOListElement | HTMLUListElement>>;
|
@@ -1257,7 +1257,7 @@ export declare const List: import('react').ForwardRefExoticComponent<Omit<{
|
|
1257
1257
|
children: import("react").ReactNode;
|
1258
1258
|
as?: "ol" | "ul" | undefined;
|
1259
1259
|
className?: string | undefined;
|
1260
|
-
} & import("react").RefAttributes<
|
1260
|
+
} & import("react").RefAttributes<HTMLOListElement | HTMLUListElement>> & {
|
1261
1261
|
Item: import('react').ForwardRefExoticComponent<Omit<{
|
1262
1262
|
as?: import("react").ElementType<any> | undefined;
|
1263
1263
|
children?: import("react").ReactNode;
|
@@ -1,20 +1,20 @@
|
|
1
1
|
import { useSelect } from './useSelect';
|
2
2
|
import { Option } from '../BaseSelect';
|
3
|
-
import { LabelVariants } from '../BaseInput';
|
4
3
|
import { ReactNode } from 'react';
|
5
4
|
import { UseSelectPropGetters } from 'downshift';
|
6
5
|
|
7
|
-
|
8
|
-
|
6
|
+
export declare const SelectWrapper: import('react').ForwardRefExoticComponent<{
|
7
|
+
size?: "medium" | "small" | "large" | undefined;
|
8
|
+
active?: boolean | undefined;
|
9
|
+
typed?: boolean | undefined;
|
10
|
+
disabled?: boolean | undefined;
|
11
|
+
error?: boolean | undefined;
|
12
|
+
} & {
|
13
|
+
id?: string | undefined;
|
9
14
|
label?: ReactNode;
|
10
|
-
className?: string;
|
11
|
-
error?: boolean;
|
15
|
+
className?: string | undefined;
|
16
|
+
error?: boolean | undefined;
|
12
17
|
children: ReactNode;
|
13
18
|
getToggleButtonProps: ReturnType<typeof useSelect>["getToggleButtonProps"];
|
14
19
|
getLabelProps: UseSelectPropGetters<Option>["getLabelProps"];
|
15
|
-
}
|
16
|
-
export declare const SelectWrapper: {
|
17
|
-
({ id, label, className, error, children, getToggleButtonProps, getLabelProps, typed, active, disabled, size, }: SelectWrapperProps): JSX.Element;
|
18
|
-
displayName: string;
|
19
|
-
};
|
20
|
-
export {};
|
20
|
+
} & import("react").RefAttributes<HTMLLabelElement>>;
|
@@ -1,18 +1,26 @@
|
|
1
|
-
import { UseFloatingReturn
|
1
|
+
import { UseFloatingReturn } from '@floating-ui/react-dom';
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
3
|
+
export declare const useFloating: (zIndexValue?: number) => {
|
4
|
+
placement: import('@floating-ui/react-dom').Placement;
|
5
|
+
strategy: import('@floating-ui/react-dom').Strategy;
|
6
|
+
middlewareData: import('@floating-ui/react-dom').MiddlewareData;
|
7
|
+
x: number;
|
8
|
+
y: number;
|
9
|
+
isPositioned: boolean;
|
10
|
+
update: () => void;
|
11
|
+
floatingStyles: import('react').CSSProperties;
|
11
12
|
refs: {
|
12
|
-
reference: import('react').MutableRefObject<
|
13
|
+
reference: import('react').MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
|
13
14
|
floating: import('react').MutableRefObject<HTMLElement | null>;
|
14
|
-
setReference: (node:
|
15
|
+
setReference: (node: import('@floating-ui/react-dom').ReferenceType | null) => void;
|
15
16
|
setFloating: (node: HTMLElement | null) => void;
|
16
17
|
};
|
18
|
+
elements: {
|
19
|
+
reference: import('@floating-ui/react-dom').ReferenceType | null;
|
20
|
+
floating: HTMLElement | null;
|
21
|
+
};
|
22
|
+
} & {
|
23
|
+
floatingStyles: {
|
24
|
+
zIndex: number;
|
25
|
+
};
|
17
26
|
};
|
18
|
-
export {};
|