@saleor/macaw-ui 1.1.19 → 1.2.0

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.
Files changed (84) hide show
  1. package/dist/Geist-Black.woff2 +0 -0
  2. package/dist/Geist-BlackItalic.woff2 +0 -0
  3. package/dist/Geist-Bold.woff2 +0 -0
  4. package/dist/Geist-BoldItalic.woff2 +0 -0
  5. package/dist/Geist-ExtraBold.woff2 +0 -0
  6. package/dist/Geist-ExtraBoldItalic.woff2 +0 -0
  7. package/dist/Geist-ExtraLight.woff2 +0 -0
  8. package/dist/Geist-ExtraLightItalic.woff2 +0 -0
  9. package/dist/Geist-Italic[wght].woff2 +0 -0
  10. package/dist/Geist-Light.woff2 +0 -0
  11. package/dist/Geist-LightItalic.woff2 +0 -0
  12. package/dist/Geist-Medium.woff2 +0 -0
  13. package/dist/Geist-MediumItalic.woff2 +0 -0
  14. package/dist/Geist-Regular.woff2 +0 -0
  15. package/dist/Geist-RegularItalic.woff2 +0 -0
  16. package/dist/Geist-SemiBold.woff2 +0 -0
  17. package/dist/Geist-SemiBoldItalic.woff2 +0 -0
  18. package/dist/Geist-Thin.woff2 +0 -0
  19. package/dist/Geist-ThinItalic.woff2 +0 -0
  20. package/dist/Geist[wght].woff2 +0 -0
  21. package/dist/components/Icons/ArrowDownIcon.d.ts +1 -3
  22. package/dist/components/Icons/ArrowLeftIcon.d.ts +1 -3
  23. package/dist/components/Icons/ArrowRightIcon.d.ts +1 -3
  24. package/dist/components/Icons/ArrowUpIcon.d.ts +1 -3
  25. package/dist/components/Icons/CatalogIcon.d.ts +1 -3
  26. package/dist/components/Icons/CheckboxIcon.d.ts +1 -3
  27. package/dist/components/Icons/ChervonDoubleIcon.d.ts +1 -3
  28. package/dist/components/Icons/ChervonDownIcon.d.ts +1 -3
  29. package/dist/components/Icons/ChervonUpIcon.d.ts +1 -3
  30. package/dist/components/Icons/ChevronLeftIcon.d.ts +1 -3
  31. package/dist/components/Icons/ChevronRightIcon.d.ts +1 -3
  32. package/dist/components/Icons/CloseIcon.d.ts +1 -3
  33. package/dist/components/Icons/ConfigurationIcon.d.ts +1 -3
  34. package/dist/components/Icons/CopyIcon.d.ts +1 -3
  35. package/dist/components/Icons/CustomersIcon.d.ts +1 -3
  36. package/dist/components/Icons/DarkModeIcon.d.ts +1 -3
  37. package/dist/components/Icons/DashboardIcon.d.ts +1 -3
  38. package/dist/components/Icons/EditIcon.d.ts +1 -3
  39. package/dist/components/Icons/EnvironmentIcon.d.ts +1 -3
  40. package/dist/components/Icons/ExportIcon.d.ts +1 -3
  41. package/dist/components/Icons/ExternalLinkIcon.d.ts +1 -3
  42. package/dist/components/Icons/FileExportIcon.d.ts +1 -3
  43. package/dist/components/Icons/FloppyDiscIcon.d.ts +1 -3
  44. package/dist/components/Icons/FullscreenOffIcon.d.ts +1 -3
  45. package/dist/components/Icons/FullscreenOnIcon.d.ts +1 -3
  46. package/dist/components/Icons/GenericAppIcon.d.ts +1 -3
  47. package/dist/components/Icons/GraphQLIcon.d.ts +1 -3
  48. package/dist/components/Icons/GripIcon.d.ts +1 -3
  49. package/dist/components/Icons/HelpIcon.d.ts +1 -3
  50. package/dist/components/Icons/HomeIcon.d.ts +1 -3
  51. package/dist/components/Icons/InfoIcon.d.ts +1 -3
  52. package/dist/components/Icons/LightModeIcon.d.ts +1 -3
  53. package/dist/components/Icons/MailIcon.d.ts +1 -3
  54. package/dist/components/Icons/MarketplaceIcon.d.ts +1 -3
  55. package/dist/components/Icons/MenuIcon.d.ts +1 -3
  56. package/dist/components/Icons/MoreOptionsIcon.d.ts +1 -3
  57. package/dist/components/Icons/OrdersIcon.d.ts +1 -3
  58. package/dist/components/Icons/PlusIcon.d.ts +1 -3
  59. package/dist/components/Icons/ProductsIcons.d.ts +1 -3
  60. package/dist/components/Icons/RemoveIcon.d.ts +1 -3
  61. package/dist/components/Icons/SVGWrapper/SVGWrapper.d.ts +3 -7
  62. package/dist/components/Icons/SVGWrapper/createSVGWrapper.d.ts +1 -3
  63. package/dist/components/Icons/SearchIcon.d.ts +1 -3
  64. package/dist/components/Icons/SellsIcon.d.ts +1 -3
  65. package/dist/components/Icons/StorefrontIcon.d.ts +1 -3
  66. package/dist/components/Icons/TableEditIcon.d.ts +1 -3
  67. package/dist/components/Icons/TranslationsIcon.d.ts +1 -3
  68. package/dist/components/Icons/TrashBinIcon.d.ts +1 -3
  69. package/dist/components/Icons/ViewListIcon.d.ts +1 -3
  70. package/dist/components/Icons/ViewTableIcon.d.ts +1 -3
  71. package/dist/components/Icons/ViewTilesIcon.d.ts +1 -3
  72. package/dist/components/Icons/ViewWideTilesIcon.d.ts +1 -3
  73. package/dist/components/Icons/VouchersIcon.d.ts +1 -3
  74. package/dist/components/Icons/WarningIcon.d.ts +1 -3
  75. package/dist/components/List/List.d.ts +1 -1
  76. package/dist/components/List/index.d.ts +1 -1
  77. package/dist/components/Select/SelectWrapper.d.ts +11 -11
  78. package/dist/hooks/useFloating.d.ts +12 -20
  79. package/dist/index.js +4 -4
  80. package/dist/index.js.map +1 -1
  81. package/dist/index.mjs +749 -739
  82. package/dist/index.mjs.map +1 -1
  83. package/dist/style.css +1 -1
  84. package/package.json +3 -3
@@ -1,18 +1,14 @@
1
1
  import { SVGWrapperVariants } from './SVGWrapper.css';
2
2
  import { Sprinkles } from '../../../theme';
3
- import { ReactNode } from 'react';
3
+ import { ReactNode, SVGProps } from 'react';
4
4
 
5
- export type SVGWrapperProps = SVGWrapperVariants & {
6
- className?: string;
7
- viewBox?: string;
5
+ export type SVGWrapperProps = SVGWrapperVariants & Omit<SVGProps<SVGSVGElement>, "ref"> & {
8
6
  children: ReactNode;
9
7
  color?: Sprinkles["color"];
10
8
  };
11
9
  export declare const SVGWrapper: import('react').ForwardRefExoticComponent<{
12
10
  readonly size?: "medium" | "fill" | "small" | "large" | undefined;
13
- } & {
14
- className?: string | undefined;
15
- viewBox?: string | undefined;
11
+ } & Omit<SVGProps<SVGSVGElement>, "ref"> & {
16
12
  children: ReactNode;
17
13
  color?: Sprinkles["color"];
18
14
  } & import("react").RefAttributes<SVGSVGElement>>;
@@ -2,9 +2,7 @@ import { ReactNode } from 'react';
2
2
 
3
3
  export declare const createSVGWrapper: (node: ReactNode, viewBox?: string) => import('react').ForwardRefExoticComponent<Omit<{
4
4
  readonly size?: "medium" | "fill" | "small" | "large" | undefined;
5
- } & {
6
- className?: string | undefined;
7
- viewBox?: string | undefined;
5
+ } & Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
8
6
  children: ReactNode;
9
7
  color?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | {
10
8
  default?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | undefined;
@@ -1,9 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const SearchIcon: import('react').ForwardRefExoticComponent<Omit<{
3
3
  readonly size?: "medium" | "fill" | "small" | "large" | undefined;
4
- } & {
5
- className?: string | undefined;
6
- viewBox?: string | undefined;
4
+ } & Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
7
5
  children: import("react").ReactNode;
8
6
  color?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | {
9
7
  default?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | undefined;
@@ -1,9 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const SellsIcon: import('react').ForwardRefExoticComponent<Omit<{
3
3
  readonly size?: "medium" | "fill" | "small" | "large" | undefined;
4
- } & {
5
- className?: string | undefined;
6
- viewBox?: string | undefined;
4
+ } & Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
7
5
  children: import("react").ReactNode;
8
6
  color?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | {
9
7
  default?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | undefined;
@@ -1,9 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const StorefrontIcon: import('react').ForwardRefExoticComponent<Omit<{
3
3
  readonly size?: "medium" | "fill" | "small" | "large" | undefined;
4
- } & {
5
- className?: string | undefined;
6
- viewBox?: string | undefined;
4
+ } & Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
7
5
  children: import("react").ReactNode;
8
6
  color?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | {
9
7
  default?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | undefined;
@@ -1,9 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const TableEditIcon: import('react').ForwardRefExoticComponent<Omit<{
3
3
  readonly size?: "medium" | "fill" | "small" | "large" | undefined;
4
- } & {
5
- className?: string | undefined;
6
- viewBox?: string | undefined;
4
+ } & Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
7
5
  children: import("react").ReactNode;
8
6
  color?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | {
9
7
  default?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | undefined;
@@ -1,9 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const TranslationsIcon: import('react').ForwardRefExoticComponent<Omit<{
3
3
  readonly size?: "medium" | "fill" | "small" | "large" | undefined;
4
- } & {
5
- className?: string | undefined;
6
- viewBox?: string | undefined;
4
+ } & Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
7
5
  children: import("react").ReactNode;
8
6
  color?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | {
9
7
  default?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | undefined;
@@ -1,9 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const TrashBinIcon: import('react').ForwardRefExoticComponent<Omit<{
3
3
  readonly size?: "medium" | "fill" | "small" | "large" | undefined;
4
- } & {
5
- className?: string | undefined;
6
- viewBox?: string | undefined;
4
+ } & Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
7
5
  children: import("react").ReactNode;
8
6
  color?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | {
9
7
  default?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | undefined;
@@ -1,9 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const ViewListIcon: import('react').ForwardRefExoticComponent<Omit<{
3
3
  readonly size?: "medium" | "fill" | "small" | "large" | undefined;
4
- } & {
5
- className?: string | undefined;
6
- viewBox?: string | undefined;
4
+ } & Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
7
5
  children: import("react").ReactNode;
8
6
  color?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | {
9
7
  default?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | undefined;
@@ -1,9 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const ViewTableIcon: import('react').ForwardRefExoticComponent<Omit<{
3
3
  readonly size?: "medium" | "fill" | "small" | "large" | undefined;
4
- } & {
5
- className?: string | undefined;
6
- viewBox?: string | undefined;
4
+ } & Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
7
5
  children: import("react").ReactNode;
8
6
  color?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | {
9
7
  default?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | undefined;
@@ -1,9 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const ViewTilesIcon: import('react').ForwardRefExoticComponent<Omit<{
3
3
  readonly size?: "medium" | "fill" | "small" | "large" | undefined;
4
- } & {
5
- className?: string | undefined;
6
- viewBox?: string | undefined;
4
+ } & Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
7
5
  children: import("react").ReactNode;
8
6
  color?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | {
9
7
  default?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | undefined;
@@ -1,9 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const ViewWideTilesIcon: import('react').ForwardRefExoticComponent<Omit<{
3
3
  readonly size?: "medium" | "fill" | "small" | "large" | undefined;
4
- } & {
5
- className?: string | undefined;
6
- viewBox?: string | undefined;
4
+ } & Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
7
5
  children: import("react").ReactNode;
8
6
  color?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | {
9
7
  default?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | undefined;
@@ -1,9 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const VouchersIcon: import('react').ForwardRefExoticComponent<Omit<{
3
3
  readonly size?: "medium" | "fill" | "small" | "large" | undefined;
4
- } & {
5
- className?: string | undefined;
6
- viewBox?: string | undefined;
4
+ } & Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
7
5
  children: import("react").ReactNode;
8
6
  color?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | {
9
7
  default?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | undefined;
@@ -1,9 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const WarningIcon: import('react').ForwardRefExoticComponent<Omit<{
3
3
  readonly size?: "medium" | "fill" | "small" | "large" | undefined;
4
- } & {
5
- className?: string | undefined;
6
- viewBox?: string | undefined;
4
+ } & Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
7
5
  children: import("react").ReactNode;
8
6
  color?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | {
9
7
  default?: "accent1" | "buttonCriticalDisabled" | "buttonCriticalPrimary" | "buttonDefaultPrimary" | "buttonDefaultSecondary" | "buttonDefaultTertiary" | "critical1" | "critical2" | "default1" | "default2" | "defaultDisabled" | "info1" | "success1" | "warning1" | "inherit" | undefined;
@@ -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 {};