@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.
- package/dist/Geist-Black.woff2 +0 -0
- package/dist/Geist-BlackItalic.woff2 +0 -0
- package/dist/Geist-Bold.woff2 +0 -0
- package/dist/Geist-BoldItalic.woff2 +0 -0
- package/dist/Geist-ExtraBold.woff2 +0 -0
- package/dist/Geist-ExtraBoldItalic.woff2 +0 -0
- package/dist/Geist-ExtraLight.woff2 +0 -0
- package/dist/Geist-ExtraLightItalic.woff2 +0 -0
- package/dist/Geist-Italic[wght].woff2 +0 -0
- package/dist/Geist-Light.woff2 +0 -0
- package/dist/Geist-LightItalic.woff2 +0 -0
- package/dist/Geist-Medium.woff2 +0 -0
- package/dist/Geist-MediumItalic.woff2 +0 -0
- package/dist/Geist-Regular.woff2 +0 -0
- package/dist/Geist-RegularItalic.woff2 +0 -0
- package/dist/Geist-SemiBold.woff2 +0 -0
- package/dist/Geist-SemiBoldItalic.woff2 +0 -0
- package/dist/Geist-Thin.woff2 +0 -0
- package/dist/Geist-ThinItalic.woff2 +0 -0
- package/dist/Geist[wght].woff2 +0 -0
- package/dist/components/Icons/ArrowDownIcon.d.ts +1 -3
- package/dist/components/Icons/ArrowLeftIcon.d.ts +1 -3
- package/dist/components/Icons/ArrowRightIcon.d.ts +1 -3
- package/dist/components/Icons/ArrowUpIcon.d.ts +1 -3
- package/dist/components/Icons/CatalogIcon.d.ts +1 -3
- package/dist/components/Icons/CheckboxIcon.d.ts +1 -3
- package/dist/components/Icons/ChervonDoubleIcon.d.ts +1 -3
- package/dist/components/Icons/ChervonDownIcon.d.ts +1 -3
- package/dist/components/Icons/ChervonUpIcon.d.ts +1 -3
- package/dist/components/Icons/ChevronLeftIcon.d.ts +1 -3
- package/dist/components/Icons/ChevronRightIcon.d.ts +1 -3
- package/dist/components/Icons/CloseIcon.d.ts +1 -3
- package/dist/components/Icons/ConfigurationIcon.d.ts +1 -3
- package/dist/components/Icons/CopyIcon.d.ts +1 -3
- package/dist/components/Icons/CustomersIcon.d.ts +1 -3
- package/dist/components/Icons/DarkModeIcon.d.ts +1 -3
- package/dist/components/Icons/DashboardIcon.d.ts +1 -3
- package/dist/components/Icons/EditIcon.d.ts +1 -3
- package/dist/components/Icons/EnvironmentIcon.d.ts +1 -3
- package/dist/components/Icons/ExportIcon.d.ts +1 -3
- package/dist/components/Icons/ExternalLinkIcon.d.ts +1 -3
- package/dist/components/Icons/FileExportIcon.d.ts +1 -3
- package/dist/components/Icons/FloppyDiscIcon.d.ts +1 -3
- package/dist/components/Icons/FullscreenOffIcon.d.ts +1 -3
- package/dist/components/Icons/FullscreenOnIcon.d.ts +1 -3
- package/dist/components/Icons/GenericAppIcon.d.ts +1 -3
- package/dist/components/Icons/GraphQLIcon.d.ts +1 -3
- package/dist/components/Icons/GripIcon.d.ts +1 -3
- package/dist/components/Icons/HelpIcon.d.ts +1 -3
- package/dist/components/Icons/HomeIcon.d.ts +1 -3
- package/dist/components/Icons/InfoIcon.d.ts +1 -3
- package/dist/components/Icons/LightModeIcon.d.ts +1 -3
- package/dist/components/Icons/MailIcon.d.ts +1 -3
- package/dist/components/Icons/MarketplaceIcon.d.ts +1 -3
- package/dist/components/Icons/MenuIcon.d.ts +1 -3
- package/dist/components/Icons/MoreOptionsIcon.d.ts +1 -3
- package/dist/components/Icons/OrdersIcon.d.ts +1 -3
- package/dist/components/Icons/PlusIcon.d.ts +1 -3
- package/dist/components/Icons/ProductsIcons.d.ts +1 -3
- package/dist/components/Icons/RemoveIcon.d.ts +1 -3
- package/dist/components/Icons/SVGWrapper/SVGWrapper.d.ts +3 -7
- package/dist/components/Icons/SVGWrapper/createSVGWrapper.d.ts +1 -3
- package/dist/components/Icons/SearchIcon.d.ts +1 -3
- package/dist/components/Icons/SellsIcon.d.ts +1 -3
- package/dist/components/Icons/StorefrontIcon.d.ts +1 -3
- package/dist/components/Icons/TableEditIcon.d.ts +1 -3
- package/dist/components/Icons/TranslationsIcon.d.ts +1 -3
- package/dist/components/Icons/TrashBinIcon.d.ts +1 -3
- package/dist/components/Icons/ViewListIcon.d.ts +1 -3
- package/dist/components/Icons/ViewTableIcon.d.ts +1 -3
- package/dist/components/Icons/ViewTilesIcon.d.ts +1 -3
- package/dist/components/Icons/ViewWideTilesIcon.d.ts +1 -3
- package/dist/components/Icons/VouchersIcon.d.ts +1 -3
- package/dist/components/Icons/WarningIcon.d.ts +1 -3
- 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 +749 -739
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- 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<
|
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 {};
|