@saleor/macaw-ui 1.1.16 → 1.1.17

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/README.md CHANGED
@@ -120,7 +120,7 @@ pnpm change:add
120
120
 
121
121
  ### Useful tooling
122
122
 
123
- - Chrome browser extension - [Atomic CSS Devtools](https://chromewebstore.google.com/detail/atomic-css-devtools)
123
+ - Chrome browser extension - [Atomic CSS Devtools](https://chromewebstore.google.com/detail/atomic-css-devtools/cbjhfeooiomphlikkblgdageenemhpgc)
124
124
 
125
125
  ## License
126
126
 
@@ -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<HTMLOListElement | HTMLUListElement>>;
1263
+ } & import("react").RefAttributes<HTMLElement>>;
@@ -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<HTMLOListElement | HTMLUListElement>> & {
1260
+ } & import("react").RefAttributes<HTMLElement>> & {
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';
3
4
  import { ReactNode } from 'react';
4
5
  import { UseSelectPropGetters } from 'downshift';
5
6
 
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;
7
+ type SelectWrapperProps = LabelVariants & {
8
+ id?: string;
14
9
  label?: ReactNode;
15
- className?: string | undefined;
16
- error?: boolean | undefined;
10
+ className?: string;
11
+ error?: boolean;
17
12
  children: ReactNode;
18
13
  getToggleButtonProps: ReturnType<typeof useSelect>["getToggleButtonProps"];
19
14
  getLabelProps: UseSelectPropGetters<Option>["getLabelProps"];
20
- } & import("react").RefAttributes<HTMLLabelElement>>;
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 {};
@@ -1,26 +1,18 @@
1
- import { UseFloatingReturn } from '@floating-ui/react-dom';
1
+ import { UseFloatingReturn, ReferenceType } from '@floating-ui/react-dom';
2
2
 
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;
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
+ };
12
11
  refs: {
13
- reference: import('react').MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
12
+ reference: import('react').MutableRefObject<T | null>;
14
13
  floating: import('react').MutableRefObject<HTMLElement | null>;
15
- setReference: (node: import('@floating-ui/react-dom').ReferenceType | null) => void;
14
+ setReference: (node: T | null) => void;
16
15
  setFloating: (node: HTMLElement | null) => void;
17
16
  };
18
- elements: {
19
- reference: import('@floating-ui/react-dom').ReferenceType | null;
20
- floating: HTMLElement | null;
21
- };
22
- } & {
23
- floatingStyles: {
24
- zIndex: number;
25
- };
26
17
  };
18
+ export {};