@gamecrafters/base-ui 0.0.18 → 0.0.19
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/build/components/floating-panel/FloatingPanel.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanel.types.d.ts +100 -0
- package/build/components/floating-panel/FloatingPanelBody.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanelCloseTrigger.d.ts +5 -0
- package/build/components/floating-panel/FloatingPanelContent.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanelContext.d.ts +3 -0
- package/build/components/floating-panel/FloatingPanelControl.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanelDragTrigger.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanelHeader.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanelPositioner.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanelResizeTrigger.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanelStageTrigger.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanelTitle.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanelTrigger.d.ts +5 -0
- package/build/components/floating-panel/floatingPanelRect.d.ts +23 -0
- package/build/components/floating-panel/index.d.ts +67 -0
- package/build/components/format-byte/FormatByte.d.ts +10 -0
- package/build/components/format-byte/FormatByte.types.d.ts +11 -0
- package/build/components/format-byte/index.d.ts +2 -0
- package/build/components/format-number/FormatNumber.d.ts +10 -0
- package/build/components/format-number/FormatNumber.types.d.ts +10 -0
- package/build/components/format-number/index.d.ts +2 -0
- package/build/components/frame/Frame.d.ts +9 -0
- package/build/components/frame/Frame.types.d.ts +12 -0
- package/build/components/frame/FrameContent.d.ts +7 -0
- package/build/components/frame/index.d.ts +2 -0
- package/build/components/index.d.ts +4 -0
- package/build/main.cjs.js +71 -71
- package/build/main.esm.js +68 -68
- package/build/providers/index.d.ts +1 -0
- package/build/providers/locale/Locale.types.d.ts +23 -0
- package/build/providers/locale/LocaleContext.d.ts +4 -0
- package/build/providers/locale/LocaleProvider.d.ts +8 -0
- package/build/providers/locale/index.d.ts +8 -0
- package/build/providers/locale/useCollator.d.ts +2 -0
- package/build/providers/locale/useDateFormatter.d.ts +2 -0
- package/build/providers/locale/useFilter.d.ts +2 -0
- package/build/providers/locale/useLocaleContext.d.ts +1 -0
- package/build/providers/locale/useNumberFormatter.d.ts +2 -0
- package/build/styles/main.css +1 -1
- package/build/utilities/i18n.d.ts +26 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { FloatingPanelProps } from "./FloatingPanel.types";
|
|
3
|
+
declare function FloatingPanel(props: FloatingPanelProps): React.JSX.Element;
|
|
4
|
+
declare namespace FloatingPanel {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
7
|
+
export default FloatingPanel;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
3
|
+
export type FloatingPanelPoint = {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
};
|
|
7
|
+
export type FloatingPanelSize = {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
};
|
|
11
|
+
export type FloatingPanelRect = FloatingPanelPoint & FloatingPanelSize;
|
|
12
|
+
export type FloatingPanelResizeAxis = "n" | "e" | "s" | "w" | "ne" | "nw" | "se" | "sw";
|
|
13
|
+
export type FloatingPanelStage = "default" | "minimized" | "maximized";
|
|
14
|
+
export type FloatingPanelStrategy = "fixed" | "absolute";
|
|
15
|
+
export type FloatingPanelProps = {
|
|
16
|
+
open?: boolean;
|
|
17
|
+
defaultOpen?: boolean;
|
|
18
|
+
onOpenChange?: (open: boolean) => void;
|
|
19
|
+
position?: FloatingPanelPoint;
|
|
20
|
+
defaultPosition?: FloatingPanelPoint;
|
|
21
|
+
onPositionChange?: (position: FloatingPanelPoint) => void;
|
|
22
|
+
onPositionChangeEnd?: (position: FloatingPanelPoint) => void;
|
|
23
|
+
size?: FloatingPanelSize;
|
|
24
|
+
defaultSize?: FloatingPanelSize;
|
|
25
|
+
onSizeChange?: (size: FloatingPanelSize) => void;
|
|
26
|
+
onSizeChangeEnd?: (size: FloatingPanelSize) => void;
|
|
27
|
+
stage?: FloatingPanelStage;
|
|
28
|
+
defaultStage?: FloatingPanelStage;
|
|
29
|
+
onStageChange?: (stage: FloatingPanelStage) => void;
|
|
30
|
+
minSize?: FloatingPanelSize;
|
|
31
|
+
maxSize?: FloatingPanelSize;
|
|
32
|
+
draggable?: boolean;
|
|
33
|
+
resizable?: boolean;
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
closeOnEscape?: boolean;
|
|
36
|
+
lockAspectRatio?: boolean;
|
|
37
|
+
allowOverflow?: boolean;
|
|
38
|
+
gridSize?: number;
|
|
39
|
+
strategy?: FloatingPanelStrategy;
|
|
40
|
+
getBoundaryElement?: () => HTMLElement | null;
|
|
41
|
+
children?: React.ReactNode;
|
|
42
|
+
};
|
|
43
|
+
export type FloatingPanelTriggerProps = React.ComponentPropsWithoutRef<"button"> & {
|
|
44
|
+
className?: string;
|
|
45
|
+
};
|
|
46
|
+
export type FloatingPanelPositionerProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
|
|
47
|
+
className?: string;
|
|
48
|
+
}>;
|
|
49
|
+
export type FloatingPanelContentProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
|
|
50
|
+
className?: string;
|
|
51
|
+
}>;
|
|
52
|
+
export type FloatingPanelHeaderProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
|
|
53
|
+
className?: string;
|
|
54
|
+
}>;
|
|
55
|
+
export type FloatingPanelTitleProps<As extends React.ElementType = "h2"> = PolymorphicProps<As, "h2", {
|
|
56
|
+
className?: string;
|
|
57
|
+
}>;
|
|
58
|
+
export type FloatingPanelBodyProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
|
|
59
|
+
className?: string;
|
|
60
|
+
}>;
|
|
61
|
+
export type FloatingPanelControlProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
|
|
62
|
+
className?: string;
|
|
63
|
+
}>;
|
|
64
|
+
export type FloatingPanelDragTriggerProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
|
|
65
|
+
className?: string;
|
|
66
|
+
}>;
|
|
67
|
+
export type FloatingPanelCloseTriggerProps = Omit<React.ComponentPropsWithoutRef<"button">, "children" | "aria-label" | "aria-labelledby"> & {
|
|
68
|
+
className?: string;
|
|
69
|
+
};
|
|
70
|
+
export type FloatingPanelStageTriggerProps = Omit<React.ComponentPropsWithoutRef<"button">, "children" | "aria-label" | "aria-labelledby"> & {
|
|
71
|
+
stage: FloatingPanelStage;
|
|
72
|
+
className?: string;
|
|
73
|
+
};
|
|
74
|
+
export type FloatingPanelResizeTriggerProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
75
|
+
axis: FloatingPanelResizeAxis;
|
|
76
|
+
className?: string;
|
|
77
|
+
};
|
|
78
|
+
export type FloatingPanelContextValue = {
|
|
79
|
+
open: boolean;
|
|
80
|
+
setOpen: (open: boolean) => void;
|
|
81
|
+
position: FloatingPanelPoint;
|
|
82
|
+
size: FloatingPanelSize;
|
|
83
|
+
stage: FloatingPanelStage;
|
|
84
|
+
setStage: (stage: FloatingPanelStage) => void;
|
|
85
|
+
dragging: boolean;
|
|
86
|
+
resizing: boolean;
|
|
87
|
+
draggable: boolean;
|
|
88
|
+
resizable: boolean;
|
|
89
|
+
canDrag: boolean;
|
|
90
|
+
canResize: boolean;
|
|
91
|
+
disabled: boolean;
|
|
92
|
+
strategy: FloatingPanelStrategy;
|
|
93
|
+
triggerId: string;
|
|
94
|
+
contentId: string;
|
|
95
|
+
titleId: string;
|
|
96
|
+
startDrag: (event: React.PointerEvent) => void;
|
|
97
|
+
startResize: (event: React.PointerEvent, axis: FloatingPanelResizeAxis) => void;
|
|
98
|
+
moveBy: (delta: FloatingPanelPoint) => void;
|
|
99
|
+
resizeBy: (axis: FloatingPanelResizeAxis, delta: FloatingPanelPoint) => void;
|
|
100
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
}, "as"> & {
|
|
5
|
+
as?: As | undefined;
|
|
6
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "aria-label" | "aria-labelledby" | "children"> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
}, "as"> & {
|
|
5
|
+
as?: As | undefined;
|
|
6
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
}, "as"> & {
|
|
5
|
+
as?: As | undefined;
|
|
6
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
}, "as"> & {
|
|
5
|
+
as?: As | undefined;
|
|
6
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
}, "as"> & {
|
|
5
|
+
as?: As | undefined;
|
|
6
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
}, "as"> & {
|
|
5
|
+
as?: As | undefined;
|
|
6
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { FloatingPanelResizeAxis } from "./FloatingPanel.types";
|
|
3
|
+
declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
axis: FloatingPanelResizeAxis;
|
|
5
|
+
className?: string;
|
|
6
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { FloatingPanelStage } from "./FloatingPanel.types";
|
|
3
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "aria-label" | "aria-labelledby" | "children"> & {
|
|
4
|
+
stage: FloatingPanelStage;
|
|
5
|
+
className?: string;
|
|
6
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "h2">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "h2" : As> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
}, "as"> & {
|
|
5
|
+
as?: As | undefined;
|
|
6
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { FloatingPanelPoint, FloatingPanelRect, FloatingPanelResizeAxis, FloatingPanelSize } from "./FloatingPanel.types";
|
|
2
|
+
export declare const DEFAULT_FLOATING_PANEL_SIZE: FloatingPanelSize;
|
|
3
|
+
export declare const DEFAULT_FLOATING_PANEL_POSITION: FloatingPanelPoint;
|
|
4
|
+
export declare const DEFAULT_FLOATING_PANEL_MIN_SIZE: FloatingPanelSize;
|
|
5
|
+
export declare const FLOATING_PANEL_STEP = 8;
|
|
6
|
+
export declare const FLOATING_PANEL_LARGE_STEP = 40;
|
|
7
|
+
export declare const snapToGrid: (value: number, gridSize?: number) => number;
|
|
8
|
+
export declare const clampSize: (size: FloatingPanelSize, minSize: FloatingPanelSize, maxSize?: FloatingPanelSize) => FloatingPanelSize;
|
|
9
|
+
export declare const clampPosition: (position: FloatingPanelPoint, size: FloatingPanelSize, boundary?: FloatingPanelRect, allowOverflow?: boolean) => FloatingPanelPoint;
|
|
10
|
+
export declare const isHorizontalAxis: (axis: FloatingPanelResizeAxis) => boolean;
|
|
11
|
+
export declare const isVerticalAxis: (axis: FloatingPanelResizeAxis) => boolean;
|
|
12
|
+
type ResizeOptions = {
|
|
13
|
+
minSize: FloatingPanelSize;
|
|
14
|
+
maxSize?: FloatingPanelSize;
|
|
15
|
+
boundary?: FloatingPanelRect;
|
|
16
|
+
allowOverflow?: boolean;
|
|
17
|
+
lockAspectRatio?: boolean;
|
|
18
|
+
gridSize?: number;
|
|
19
|
+
};
|
|
20
|
+
export declare const resizeRect: (rect: FloatingPanelRect, axis: FloatingPanelResizeAxis, delta: FloatingPanelPoint, options: ResizeOptions) => FloatingPanelRect;
|
|
21
|
+
export declare const moveRect: (rect: FloatingPanelRect, delta: FloatingPanelPoint, options: Pick<ResizeOptions, "boundary" | "allowOverflow" | "gridSize">) => FloatingPanelPoint;
|
|
22
|
+
export declare const getBoundaryRect: (element?: HTMLElement | null) => FloatingPanelRect | undefined;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import FloatingPanelBase from "./FloatingPanel";
|
|
2
|
+
import FloatingPanelBody from "./FloatingPanelBody";
|
|
3
|
+
import FloatingPanelCloseTrigger from "./FloatingPanelCloseTrigger";
|
|
4
|
+
import FloatingPanelContent from "./FloatingPanelContent";
|
|
5
|
+
import FloatingPanelControl from "./FloatingPanelControl";
|
|
6
|
+
import FloatingPanelDragTrigger from "./FloatingPanelDragTrigger";
|
|
7
|
+
import FloatingPanelHeader from "./FloatingPanelHeader";
|
|
8
|
+
import FloatingPanelPositioner from "./FloatingPanelPositioner";
|
|
9
|
+
import FloatingPanelResizeTrigger from "./FloatingPanelResizeTrigger";
|
|
10
|
+
import FloatingPanelStageTrigger from "./FloatingPanelStageTrigger";
|
|
11
|
+
import FloatingPanelTitle from "./FloatingPanelTitle";
|
|
12
|
+
import FloatingPanelTrigger from "./FloatingPanelTrigger";
|
|
13
|
+
export declare const FloatingPanel: typeof FloatingPanelBase & {
|
|
14
|
+
Trigger: (props: Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
15
|
+
className?: string;
|
|
16
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
17
|
+
Positioner: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
|
|
18
|
+
className?: string;
|
|
19
|
+
}, "as"> & {
|
|
20
|
+
as?: As | undefined;
|
|
21
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
22
|
+
Content: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
|
|
23
|
+
className?: string;
|
|
24
|
+
}, "as"> & {
|
|
25
|
+
as?: As | undefined;
|
|
26
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
27
|
+
DragTrigger: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
|
|
28
|
+
className?: string;
|
|
29
|
+
}, "as"> & {
|
|
30
|
+
as?: As | undefined;
|
|
31
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
32
|
+
Header: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
|
|
33
|
+
className?: string;
|
|
34
|
+
}, "as"> & {
|
|
35
|
+
as?: As | undefined;
|
|
36
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
37
|
+
Title: <As extends React.ElementType = "h2">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "h2" : As> & {
|
|
38
|
+
className?: string;
|
|
39
|
+
}, "as"> & {
|
|
40
|
+
as?: As | undefined;
|
|
41
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
42
|
+
Control: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
|
|
43
|
+
className?: string;
|
|
44
|
+
}, "as"> & {
|
|
45
|
+
as?: As | undefined;
|
|
46
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
47
|
+
StageTrigger: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "aria-label" | "aria-labelledby" | "children"> & {
|
|
48
|
+
stage: import("./FloatingPanel.types").FloatingPanelStage;
|
|
49
|
+
className?: string;
|
|
50
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
51
|
+
CloseTrigger: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "aria-label" | "aria-labelledby" | "children"> & {
|
|
52
|
+
className?: string;
|
|
53
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
54
|
+
Body: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
|
|
55
|
+
className?: string;
|
|
56
|
+
}, "as"> & {
|
|
57
|
+
as?: As | undefined;
|
|
58
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
59
|
+
ResizeTrigger: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
60
|
+
axis: import("./FloatingPanel.types").FloatingPanelResizeAxis;
|
|
61
|
+
className?: string;
|
|
62
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
63
|
+
};
|
|
64
|
+
export { FloatingPanelTrigger, FloatingPanelPositioner, FloatingPanelContent, FloatingPanelDragTrigger, FloatingPanelHeader, FloatingPanelTitle, FloatingPanelControl, FloatingPanelStageTrigger, FloatingPanelCloseTrigger, FloatingPanelBody, FloatingPanelResizeTrigger, };
|
|
65
|
+
export { FloatingPanelContext, useFloatingPanelContext } from "./FloatingPanelContext";
|
|
66
|
+
export { DEFAULT_FLOATING_PANEL_MIN_SIZE, DEFAULT_FLOATING_PANEL_POSITION, DEFAULT_FLOATING_PANEL_SIZE, FLOATING_PANEL_LARGE_STEP, FLOATING_PANEL_STEP, } from "./floatingPanelRect";
|
|
67
|
+
export * from "./FloatingPanel.types";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "span">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "span" : As> & {
|
|
3
|
+
value: number;
|
|
4
|
+
format?: import("./FormatByte.types").FormatBytesOptions;
|
|
5
|
+
locale?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}, "as"> & {
|
|
8
|
+
as?: As | undefined;
|
|
9
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { FormatBytesOptions } from "../../utilities/i18n";
|
|
3
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
4
|
+
export type { FormatBytesOptions };
|
|
5
|
+
type FormatByteOwnProps = {
|
|
6
|
+
value: number;
|
|
7
|
+
format?: FormatBytesOptions;
|
|
8
|
+
locale?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export type FormatByteProps<As extends React.ElementType = "span"> = PolymorphicProps<As, "span", FormatByteOwnProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "span">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "span" : As> & {
|
|
3
|
+
value: number;
|
|
4
|
+
format?: Intl.NumberFormatOptions;
|
|
5
|
+
locale?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}, "as"> & {
|
|
8
|
+
as?: As | undefined;
|
|
9
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
3
|
+
type FormatNumberOwnProps = {
|
|
4
|
+
value: number;
|
|
5
|
+
format?: Intl.NumberFormatOptions;
|
|
6
|
+
locale?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export type FormatNumberProps<As extends React.ElementType = "span"> = PolymorphicProps<As, "span", FormatNumberOwnProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare const FRAME_ROOT_CLASS = "frame-root";
|
|
3
|
+
declare const _default: (props: Omit<React.DetailedHTMLProps<React.IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>, "ref"> & {
|
|
4
|
+
head?: React.ReactNode;
|
|
5
|
+
onMount?: () => void;
|
|
6
|
+
onUnmount?: () => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type FrameProps = React.ComponentPropsWithoutRef<"iframe"> & {
|
|
3
|
+
head?: React.ReactNode;
|
|
4
|
+
onMount?: () => void;
|
|
5
|
+
onUnmount?: () => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export type FrameContentProps = {
|
|
9
|
+
onMount?: () => void;
|
|
10
|
+
onUnmount?: () => void;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { FrameContentProps } from "./Frame.types";
|
|
3
|
+
declare function FrameContent({ onMount, onUnmount, children }: FrameContentProps): React.JSX.Element;
|
|
4
|
+
declare namespace FrameContent {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
7
|
+
export default FrameContent;
|
|
@@ -41,8 +41,12 @@ export * from "./em";
|
|
|
41
41
|
export * from "./empty-state";
|
|
42
42
|
export * from "./file-upload";
|
|
43
43
|
export * from "./filtered-action-list";
|
|
44
|
+
export * from "./floating-panel";
|
|
44
45
|
export * from "./flow";
|
|
45
46
|
export * from "./form-control";
|
|
47
|
+
export * from "./format-byte";
|
|
48
|
+
export * from "./format-number";
|
|
49
|
+
export * from "./frame";
|
|
46
50
|
export * from "./header";
|
|
47
51
|
export * from "./heading";
|
|
48
52
|
export * from "./hidden";
|