@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 +1 -1
- 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 +12 -20
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +770 -737
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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<
|
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<
|
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
|
-
|
7
|
-
|
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
|
16
|
-
error?: boolean
|
10
|
+
className?: string;
|
11
|
+
error?: boolean;
|
17
12
|
children: ReactNode;
|
18
13
|
getToggleButtonProps: ReturnType<typeof useSelect>["getToggleButtonProps"];
|
19
14
|
getLabelProps: UseSelectPropGetters<Option>["getLabelProps"];
|
20
|
-
}
|
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
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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<
|
12
|
+
reference: import('react').MutableRefObject<T | null>;
|
14
13
|
floating: import('react').MutableRefObject<HTMLElement | null>;
|
15
|
-
setReference: (node:
|
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 {};
|