@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.
@@ -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<HTMLElement>>;
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<HTMLElement>> & {
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
- type SelectWrapperProps = LabelVariants & {
8
- id?: string;
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, ReferenceType } from '@floating-ui/react-dom';
1
+ import { UseFloatingReturn } from '@floating-ui/react-dom';
2
2
 
3
- interface UseFloatingProps {
4
- zIndexValue?: number;
5
- shouldUpdate: boolean;
6
- }
7
- export declare const useFloating: <T extends ReferenceType>({ zIndexValue, shouldUpdate, }: UseFloatingProps) => {
8
- floatingStyles: import('react').CSSProperties & {
9
- zIndex: number;
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<T | null>;
13
+ reference: import('react').MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
13
14
  floating: import('react').MutableRefObject<HTMLElement | null>;
14
- setReference: (node: T | null) => void;
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 {};