chesai-ui 0.9.2 → 0.12.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/chesai-ui.css +1 -1
- package/dist/chesai-ui.es.js +259 -241
- package/dist/chesai-ui.umd.js +295 -192
- package/dist/components/accordion/index.d.ts +10 -6
- package/dist/components/alert/index.d.ts +3 -6
- package/dist/components/appbar/index.d.ts +5 -4
- package/dist/components/avatar/index.d.ts +1 -1
- package/dist/components/bottom-tabs/index.d.ts +3 -0
- package/dist/components/button/index.d.ts +4 -3
- package/dist/components/button-group/index.d.ts +4 -1
- package/dist/components/card/index.d.ts +10 -3
- package/dist/components/charts/area-chart.d.ts +3 -1
- package/dist/components/charts/bar-chart.d.ts +1 -1
- package/dist/components/charts/line-chart.d.ts +1 -1
- package/dist/components/code-editor/index.d.ts +36 -0
- package/dist/components/combobox/index.d.ts +10 -2
- package/dist/components/command/index.d.ts +13 -19
- package/dist/components/context-menu/index.d.ts +40 -24
- package/dist/components/data-display/index.d.ts +2 -2
- package/dist/components/date-input/date-input-styles.d.ts +1 -1
- package/dist/components/date-picker/date-picker.d.ts +3 -1
- package/dist/components/dialog/index.d.ts +3 -1
- package/dist/components/dropdown-menu/index.d.ts +17 -16
- package/dist/components/elastic-scroll-area/index.d.ts +8 -5
- package/dist/components/empty-state/index.d.ts +2 -6
- package/dist/components/floating-panel/index.d.ts +48 -0
- package/dist/components/full-calendar/calendar-context.d.ts +37 -0
- package/dist/components/full-calendar/event-popover.d.ts +1 -0
- package/dist/components/full-calendar/index.d.ts +17 -0
- package/dist/components/full-calendar/month-view.d.ts +1 -0
- package/dist/components/full-calendar/print-preview-dialog.d.ts +1 -0
- package/dist/components/full-calendar/timeline-view.d.ts +1 -0
- package/dist/components/full-calendar/types.d.ts +56 -0
- package/dist/components/full-calendar/utils.d.ts +23 -0
- package/dist/components/full-calendar/year-view.d.ts +1 -0
- package/dist/components/icon-button/index.d.ts +3 -3
- package/dist/components/index.d.ts +9 -5
- package/dist/components/input/input-styles.d.ts +2 -2
- package/dist/components/input/use-input.d.ts +2 -2
- package/dist/components/install-command/index.d.ts +13 -0
- package/dist/components/item/index.d.ts +22 -11
- package/dist/components/kbd/index.d.ts +4 -8
- package/dist/components/{layout → layouts}/flex.d.ts +1 -1
- package/dist/components/lexical-editor/index.d.ts +28 -0
- package/dist/components/lexical-editor/nodes/CodeBlockNode.d.ts +32 -0
- package/dist/components/lexical-editor/plugins/ToolbarPlugin.d.ts +3 -0
- package/dist/components/lexical-editor/theme.d.ts +2 -0
- package/dist/components/loadingIndicator/MaterialMorph.d.ts +5 -0
- package/dist/components/loadingIndicator/index.d.ts +2 -0
- package/dist/components/material3-carousel/types.d.ts +5 -2
- package/dist/components/{rich-text-editor → medium-text-editor}/index.d.ts +3 -3
- package/dist/components/menubar/index.d.ts +46 -32
- package/dist/components/multi-select/multi-select-styles.d.ts +1 -1
- package/dist/components/navigation-menu/index.d.ts +22 -13
- package/dist/components/navigation-rail/index.d.ts +30 -3
- package/dist/components/number-input/number-input-styles.d.ts +1 -1
- package/dist/components/number-input/use-number-input.d.ts +2 -2
- package/dist/components/progress/circular-progress.d.ts +8 -11
- package/dist/components/progress/linear-progress.d.ts +6 -0
- package/dist/components/qr-code/index.d.ts +1 -1
- package/dist/components/select/select-styles.d.ts +1 -1
- package/dist/components/select/select-subcomponents.d.ts +4 -4
- package/dist/components/separator/index.d.ts +1 -1
- package/dist/components/shallow-router/index.d.ts +1 -1
- package/dist/components/shape/shaped-components.d.ts +32 -16
- package/dist/components/sheet/index.d.ts +2 -0
- package/dist/components/sidebar/index.d.ts +20 -4
- package/dist/components/slider/bar-line-slider.d.ts +1 -1
- package/dist/components/slider/index.d.ts +14 -1
- package/dist/components/stack-router/adapters/tanstack.d.ts +16 -0
- package/dist/components/stack-router/index.d.ts +17 -13
- package/dist/components/stack-router/types.d.ts +35 -4
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/textarea/textarea-styles.d.ts +1 -1
- package/dist/components/textarea/use-textarea.d.ts +2 -2
- package/dist/components/time-picker/index.d.ts +1 -0
- package/dist/components/timeline/index.d.ts +18 -0
- package/dist/components/toolbar/index.d.ts +29 -31
- package/dist/components/tooltip/index.d.ts +3 -2
- package/dist/components/tree-view/index.d.ts +52 -0
- package/dist/components/view-transition/index.d.ts +14 -0
- package/dist/components/view-transition/use-view-transition.d.ts +1 -0
- package/dist/components/view-transition/useGlobalViewTransitions.d.ts +1 -0
- package/dist/components/virtual-list/index.d.ts +1 -2
- package/dist/components/website-studio/BuilderContext.d.ts +16 -0
- package/dist/components/website-studio/ScriptAndStyleInjector.d.ts +12 -0
- package/dist/components/website-studio/ThemeInjector.d.ts +12 -0
- package/dist/components/website-studio/builder/ComponentPickerDialog.d.ts +1 -0
- package/dist/components/website-studio/builder/ComponentsTab.d.ts +11 -0
- package/dist/components/website-studio/builder/InspectorPanel.d.ts +6 -0
- package/dist/components/website-studio/builder/LayersTab.d.ts +12 -0
- package/dist/components/website-studio/builder/PageDialogs.d.ts +19 -0
- package/dist/components/website-studio/builder/PagesTab.d.ts +14 -0
- package/dist/components/website-studio/builder/PreviewOverlay.d.ts +6 -0
- package/dist/components/website-studio/builder/helpers.d.ts +3 -0
- package/dist/components/website-studio/builder/types.d.ts +23 -0
- package/dist/components/website-studio/builder.d.ts +19 -0
- package/dist/components/website-studio/canvas/ArtboardIframe.d.ts +6 -0
- package/dist/components/website-studio/canvas/ArtboardNode.d.ts +2 -0
- package/dist/components/website-studio/canvas/CanvasOverlay.d.ts +7 -0
- package/dist/components/website-studio/canvas/IframeWrappers.d.ts +9 -0
- package/dist/components/website-studio/canvas/StudioCanvas.d.ts +21 -0
- package/dist/components/website-studio/canvas/artboard-types.d.ts +53 -0
- package/dist/components/website-studio/canvas/artboard-utils.d.ts +17 -0
- package/dist/components/website-studio/defaultActions.d.ts +5 -0
- package/dist/components/website-studio/index.d.ts +11 -0
- package/dist/components/website-studio/renderer.d.ts +31 -0
- package/dist/components/website-studio/store.d.ts +47 -0
- package/dist/components/website-studio/types.d.ts +68 -0
- package/dist/context/ChesaiProvider.d.ts +4 -6
- package/dist/context/ThemeProvider.d.ts +11 -2
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useAppBar.d.ts +1 -1
- package/dist/hooks/useShallowRouter.d.ts +6 -1
- package/dist/{index-CzSl-8Ic.mjs → index-DtvJZDGt.mjs} +136884 -105926
- package/dist/{maplibre-gl-BjVNQqoX.mjs → maplibre-gl-C7uF7zuT.mjs} +1 -1
- package/dist/{web-H0ujTUcU.mjs → web-BuBkYllI.mjs} +1 -1
- package/package.json +23 -7
- package/dist/components/animated-outlet/index.d.ts +0 -25
- package/dist/components/editor/editor-canvas.d.ts +0 -7
- package/dist/components/editor/editor-context.d.ts +0 -37
- package/dist/components/editor/editor-item.d.ts +0 -15
- package/dist/components/editor/editor-measurements.d.ts +0 -1
- package/dist/components/editor/index.d.ts +0 -9
- package/dist/components/window-controls/index.d.ts +0 -2
- /package/dist/components/{layout → layouts}/grid.d.ts +0 -0
- /package/dist/components/{layout → layouts}/index.d.ts +0 -0
- /package/dist/components/{layout → layouts}/masonry.d.ts +0 -0
- /package/dist/components/{layout → layouts}/virtual-flex.d.ts +0 -0
- /package/dist/components/{layout → layouts}/virtual-grid.d.ts +0 -0
- /package/dist/components/{layout → layouts}/virtual-masonry.d.ts +0 -0
|
@@ -5,11 +5,15 @@ type AccordionRootProps = React.ComponentPropsWithoutRef<typeof AccordionPrimiti
|
|
|
5
5
|
shape?: "full" | "minimal" | "sharp";
|
|
6
6
|
layout?: "integrated" | "separated";
|
|
7
7
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
declare const AccordionRoot: React.ForwardRefExoticComponent<AccordionRootProps & React.RefAttributes<never>>;
|
|
9
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item> & React.RefAttributes<React.ElementRef<typeof AccordionPrimitive.Item>>>;
|
|
10
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<(React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger> & {
|
|
11
|
+
disableRipple?: boolean;
|
|
12
|
+
}) & React.RefAttributes<React.ElementRef<typeof AccordionPrimitive.Trigger>>>;
|
|
13
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content> & React.RefAttributes<React.ElementRef<typeof AccordionPrimitive.Content>>>;
|
|
14
|
+
export declare const Accordion: typeof AccordionRoot & {
|
|
15
|
+
Item: typeof AccordionItem;
|
|
16
|
+
Trigger: typeof AccordionTrigger;
|
|
17
|
+
Content: typeof AccordionContent;
|
|
14
18
|
};
|
|
15
19
|
export {};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
1
|
import { default as React } from 'react';
|
|
3
|
-
|
|
4
|
-
variant?: "
|
|
5
|
-
shape?: "full" | "minimal" | "sharp"
|
|
6
|
-
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
7
|
-
export interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
|
|
2
|
+
export interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
variant?: "primary" | "secondary" | "tertiary" | "error" | "outline";
|
|
4
|
+
shape?: "full" | "minimal" | "sharp";
|
|
8
5
|
}
|
|
9
6
|
declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
7
|
declare const AlertIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { MotionValue } from 'framer-motion';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
export interface AppBarContextValue {
|
|
4
|
-
/** The raw scroll offset of the container */
|
|
5
4
|
scrollY: MotionValue<number>;
|
|
6
|
-
/** Progress from 0 (fully expanded) to 1 (fully collapsed) */
|
|
7
5
|
collapseProgress: MotionValue<number>;
|
|
8
|
-
/** The total distance in pixels it takes to fully collapse the header */
|
|
9
6
|
collapseDistance: number;
|
|
10
7
|
}
|
|
11
8
|
export declare const useAppBarContext: () => AppBarContextValue;
|
|
12
|
-
export type AppBarVariant = "small" | "center" | "medium" | "large";
|
|
9
|
+
export type AppBarVariant = "small" | "center" | "medium" | "large" | "custom";
|
|
13
10
|
export type AppBarScrollBehavior = "pinned" | "floating" | "hide";
|
|
14
11
|
export type AppBarColor = "surface" | "surface-container-lowest" | "surface-container-low" | "surface-container" | "surface-container-high" | "surface-container-highest" | "primary" | "secondary" | "transparent";
|
|
15
12
|
export interface AppBarSharedProps {
|
|
@@ -49,5 +46,9 @@ export interface AppBarProps extends Omit<React.HTMLAttributes<HTMLElement>, "ti
|
|
|
49
46
|
expandedHeight?: number;
|
|
50
47
|
effectScrollThreshold?: number;
|
|
51
48
|
collapseScrollDistance?: number;
|
|
49
|
+
/** Automatically smooth-snaps to fully collapsed or fully expanded state if the user stops scrolling halfway */
|
|
50
|
+
snap?: boolean;
|
|
51
|
+
/** Automatically passes mouse wheels and touch drags on the AppBar down to the scroll container */
|
|
52
|
+
forwardScroll?: boolean;
|
|
52
53
|
}
|
|
53
54
|
export declare const AppBar: React.ForwardRefExoticComponent<AppBarProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -10,5 +10,5 @@ export interface AvatarProps extends React.ComponentPropsWithoutRef<typeof Radix
|
|
|
10
10
|
fallback?: string;
|
|
11
11
|
variant?: "default" | "count";
|
|
12
12
|
}
|
|
13
|
-
export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<
|
|
13
|
+
export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<never>>;
|
|
14
14
|
export {};
|
|
@@ -24,6 +24,9 @@ interface NavigatorProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
24
24
|
onTabPress: (name: string) => void;
|
|
25
25
|
itemLayout?: "stacked" | "inline";
|
|
26
26
|
showLabels?: boolean;
|
|
27
|
+
pillStyle?: "full" | "icon";
|
|
28
|
+
disableRipple?: boolean;
|
|
29
|
+
indicatorAnimation?: "slide" | "bloom";
|
|
27
30
|
}
|
|
28
31
|
export declare const BottomTabs: {
|
|
29
32
|
Navigator: React.FC<NavigatorProps>;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export declare const buttonVariants: (props?: ({
|
|
3
|
-
variant?: "link" | "
|
|
4
|
-
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
3
|
+
variant?: "link" | "outline" | "primary" | "secondary" | "tertiary" | "destructive" | "ghost" | null | undefined;
|
|
4
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
5
5
|
shape?: "full" | "minimal" | "sharp" | null | undefined;
|
|
6
6
|
isLoading?: boolean | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
8
8
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
9
9
|
variant?: "primary" | "secondary" | "tertiary" | "outline" | "destructive" | "ghost" | "link";
|
|
10
|
-
size?: "xs" | "sm" | "md" | "lg";
|
|
10
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
11
11
|
shape?: "full" | "minimal" | "sharp";
|
|
12
12
|
isLoading?: boolean;
|
|
13
|
+
isActive?: boolean;
|
|
13
14
|
startIcon?: React.ReactNode;
|
|
14
15
|
endIcon?: React.ReactNode;
|
|
15
16
|
asChild?: boolean;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
type ButtonShape = "full" | "minimal" | "sharp";
|
|
3
|
+
type ButtonGap = "none" | "xs" | "sm" | "md" | "lg";
|
|
3
4
|
interface ButtonGroupProps extends React.HTMLAttributes<HTMLFieldSetElement> {
|
|
4
5
|
children: React.ReactNode;
|
|
5
6
|
shape?: ButtonShape;
|
|
7
|
+
gap?: ButtonGap;
|
|
8
|
+
activeShape?: ButtonShape;
|
|
6
9
|
}
|
|
7
10
|
export declare const ButtonGroup: {
|
|
8
|
-
({ children, className, shape, ...props }: ButtonGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
({ children, className, shape, gap, activeShape, ...props }: ButtonGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
9
12
|
displayName: string;
|
|
10
13
|
};
|
|
11
14
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
1
|
import { default as React } from 'react';
|
|
3
2
|
export declare const cardVariants: (props?: ({
|
|
4
3
|
variant?: "primary" | "secondary" | "tertiary" | "ghost" | "high-contrast" | "surface" | "surface-container-lowest" | "surface-container-low" | "surface-container" | "surface-container-high" | "surface-container-highest" | null | undefined;
|
|
@@ -6,9 +5,17 @@ export declare const cardVariants: (props?: ({
|
|
|
6
5
|
shape?: "full" | "minimal" | "sharp" | null | undefined;
|
|
7
6
|
padding?: "sm" | "md" | "lg" | "none" | null | undefined;
|
|
8
7
|
bordered?: boolean | null | undefined;
|
|
9
|
-
elevation?: 1 | "none" | 2 |
|
|
8
|
+
elevation?: 1 | "none" | 2 | 5 | 4 | 3 | null | undefined;
|
|
9
|
+
glass?: boolean | null | undefined;
|
|
10
10
|
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
11
|
-
export interface CardProps extends React.HTMLAttributes<HTMLDivElement
|
|
11
|
+
export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
variant?: "primary" | "secondary" | "tertiary" | "high-contrast" | "ghost" | "surface" | "surface-container-lowest" | "surface-container-low" | "surface-container" | "surface-container-high" | "surface-container-highest";
|
|
13
|
+
hoverEffect?: boolean;
|
|
14
|
+
shape?: "full" | "minimal" | "sharp";
|
|
15
|
+
padding?: "none" | "sm" | "md" | "lg";
|
|
16
|
+
bordered?: boolean;
|
|
17
|
+
elevation?: "none" | 1 | 2 | 3 | 4 | 5;
|
|
12
18
|
enableRipple?: boolean;
|
|
19
|
+
glass?: boolean;
|
|
13
20
|
}
|
|
14
21
|
export declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -8,5 +8,7 @@ export interface ChartProps {
|
|
|
8
8
|
height?: number | string;
|
|
9
9
|
className?: string;
|
|
10
10
|
valueFormatter?: (value: number) => string;
|
|
11
|
+
scrollable?: boolean;
|
|
12
|
+
minWidth?: number | string;
|
|
11
13
|
}
|
|
12
|
-
export declare const AreaChart: ({ data, categories, index, variant, shape, colors, height, className, valueFormatter, }: ChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const AreaChart: ({ data, categories, index, variant, shape, colors, height, className, valueFormatter, scrollable, minWidth, }: ChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ChartProps } from './area-chart';
|
|
2
|
-
export declare const BarChart: ({ data, categories, index, variant, shape, colors, height, className, valueFormatter, }: ChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const BarChart: ({ data, categories, index, variant, shape, colors, height, className, valueFormatter, scrollable, minWidth, }: ChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ChartProps } from './area-chart';
|
|
2
|
-
export declare const LineChart: ({ data, categories, index, variant, colors, height, className, valueFormatter, }: ChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const LineChart: ({ data, categories, index, variant, colors, height, className, valueFormatter, scrollable, minWidth, }: ChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
declare const codeEditorVariants: (props?: ({
|
|
4
|
+
variant?: "primary" | "secondary" | "ghost" | "surface" | null | undefined;
|
|
5
|
+
shape?: "full" | "minimal" | "sharp" | null | undefined;
|
|
6
|
+
shadow?: "sm" | "md" | "lg" | "none" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
8
|
+
export interface CodeEditorAction {
|
|
9
|
+
id: string;
|
|
10
|
+
label: string;
|
|
11
|
+
keybindings?: number[];
|
|
12
|
+
contextMenuGroupId?: string;
|
|
13
|
+
contextMenuOrder?: number;
|
|
14
|
+
run: (editor: any, monaco: any) => void;
|
|
15
|
+
}
|
|
16
|
+
export interface CodeEditorProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">, VariantProps<typeof codeEditorVariants> {
|
|
17
|
+
value?: string;
|
|
18
|
+
original?: string;
|
|
19
|
+
language?: string;
|
|
20
|
+
isDiff?: boolean;
|
|
21
|
+
readOnly?: boolean;
|
|
22
|
+
height?: string | number;
|
|
23
|
+
fileName?: string;
|
|
24
|
+
onChange?: (value: string | undefined) => void;
|
|
25
|
+
options?: any;
|
|
26
|
+
collapsible?: boolean;
|
|
27
|
+
defaultCollapsed?: boolean;
|
|
28
|
+
enableCopy?: boolean;
|
|
29
|
+
toolbarSize?: "sm" | "md" | "lg";
|
|
30
|
+
toolbarContent?: React.ReactNode;
|
|
31
|
+
hideToolbar?: boolean;
|
|
32
|
+
disableContextMenu?: boolean;
|
|
33
|
+
customActions?: CodeEditorAction[];
|
|
34
|
+
}
|
|
35
|
+
export declare const CodeEditor: React.ForwardRefExoticComponent<CodeEditorProps & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
export {};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { selectSlots } from '../select/select-styles';
|
|
2
3
|
export interface ComboboxOption {
|
|
3
4
|
value: string;
|
|
4
5
|
label: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
icon?: React.ReactNode;
|
|
5
8
|
}
|
|
6
9
|
export interface ComboboxProps {
|
|
7
10
|
options: ComboboxOption[];
|
|
8
11
|
value?: string;
|
|
9
|
-
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
onValueChange?: (value: string) => void;
|
|
10
14
|
placeholder?: string;
|
|
11
15
|
searchPlaceholder?: string;
|
|
12
16
|
emptyMessage?: string;
|
|
@@ -15,11 +19,15 @@ export interface ComboboxProps {
|
|
|
15
19
|
errorMessage?: React.ReactNode;
|
|
16
20
|
disabled?: boolean;
|
|
17
21
|
isInvalid?: boolean;
|
|
22
|
+
isClearable?: boolean;
|
|
18
23
|
shape?: "full" | "minimal" | "sharp";
|
|
19
|
-
variant?: "
|
|
24
|
+
variant?: "filled" | "filled-inverted" | "outlined" | "outlined-inverted" | "underlined" | "underlined-inverted" | "ghost" | "ghost-inverted";
|
|
20
25
|
size?: "sm" | "md" | "lg";
|
|
21
26
|
labelPlacement?: "inside" | "outside" | "outside-left";
|
|
22
27
|
startContent?: React.ReactNode;
|
|
23
28
|
className?: string;
|
|
29
|
+
classNames?: Partial<Record<keyof typeof selectSlots, string>>;
|
|
30
|
+
mobileLayout?: "default" | "bottom-sheet" | "dialog";
|
|
31
|
+
name?: string;
|
|
24
32
|
}
|
|
25
33
|
export declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,26 +1,15 @@
|
|
|
1
|
+
import { Command as CommandPrimitive } from 'cmdk';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
import { Dialog } from '../dialog';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
} & {
|
|
8
|
-
asChild?: boolean;
|
|
9
|
-
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
10
|
-
label?: string;
|
|
11
|
-
shouldFilter?: boolean;
|
|
12
|
-
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
13
|
-
defaultValue?: string;
|
|
14
|
-
value?: string;
|
|
15
|
-
onValueChange?: (value: string) => void;
|
|
16
|
-
loop?: boolean;
|
|
17
|
-
disablePointerSelection?: boolean;
|
|
18
|
-
vimBindings?: boolean;
|
|
19
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export interface CommandProps extends React.ComponentPropsWithoutRef<typeof CommandPrimitive> {
|
|
5
|
+
glass?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const Command: React.ForwardRefExoticComponent<CommandProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
8
|
interface CommandDialogProps extends React.ComponentPropsWithoutRef<typeof Dialog> {
|
|
21
9
|
children: React.ReactNode;
|
|
10
|
+
glass?: boolean;
|
|
22
11
|
}
|
|
23
|
-
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare const CommandDialog: ({ children, glass, ...props }: CommandDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
13
|
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
25
14
|
ref?: React.Ref<HTMLInputElement>;
|
|
26
15
|
} & {
|
|
@@ -76,4 +65,9 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
76
65
|
keywords?: string[];
|
|
77
66
|
forceMount?: boolean;
|
|
78
67
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
79
|
-
|
|
68
|
+
declare const CommandShortcut: {
|
|
69
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
displayName: string;
|
|
71
|
+
};
|
|
72
|
+
declare const CommandFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
73
|
+
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandSeparator, CommandShortcut, CommandFooter, };
|
|
@@ -5,30 +5,46 @@ type ContextMenuSize = "sm" | "md" | "lg";
|
|
|
5
5
|
interface ContextMenuProps extends RadixContextMenu.ContextMenuProps {
|
|
6
6
|
shape?: ContextMenuShape;
|
|
7
7
|
size?: ContextMenuSize;
|
|
8
|
+
glass?: boolean;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
10
|
+
declare const ContextMenuRoot: React.FC<ContextMenuProps>;
|
|
11
|
+
declare const ContextMenuTrigger: typeof RadixContextMenu.Trigger;
|
|
12
|
+
declare const ContextMenuGroup: typeof RadixContextMenu.Group;
|
|
13
|
+
declare const ContextMenuPortal: typeof RadixContextMenu.Portal;
|
|
14
|
+
declare const ContextMenuSub: typeof RadixContextMenu.Sub;
|
|
15
|
+
declare const ContextMenuRadioGroup: typeof RadixContextMenu.RadioGroup;
|
|
16
|
+
declare const ContextMenuContent: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof RadixContextMenu.Content> & React.RefAttributes<React.ElementRef<typeof RadixContextMenu.Content>>>;
|
|
17
|
+
declare const ContextMenuItem: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof RadixContextMenu.Item> & {
|
|
18
|
+
inset?: boolean;
|
|
19
|
+
} & React.RefAttributes<React.ElementRef<typeof RadixContextMenu.Item>>>;
|
|
20
|
+
declare const ContextMenuCheckboxItem: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof RadixContextMenu.CheckboxItem> & React.RefAttributes<React.ElementRef<typeof RadixContextMenu.CheckboxItem>>>;
|
|
21
|
+
declare const ContextMenuRadioItem: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof RadixContextMenu.RadioItem> & React.RefAttributes<React.ElementRef<typeof RadixContextMenu.RadioItem>>>;
|
|
22
|
+
declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof RadixContextMenu.SubTrigger> & {
|
|
23
|
+
inset?: boolean;
|
|
24
|
+
} & React.RefAttributes<React.ElementRef<typeof RadixContextMenu.SubTrigger>>>;
|
|
25
|
+
declare const ContextMenuSubContent: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof RadixContextMenu.SubContent> & React.RefAttributes<React.ElementRef<typeof RadixContextMenu.SubContent>>>;
|
|
26
|
+
declare const ContextMenuLabel: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof RadixContextMenu.Label> & {
|
|
27
|
+
inset?: boolean;
|
|
28
|
+
} & React.RefAttributes<React.ElementRef<typeof RadixContextMenu.Label>>>;
|
|
29
|
+
declare const ContextMenuSeparator: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof RadixContextMenu.Separator> & React.RefAttributes<React.ElementRef<typeof RadixContextMenu.Separator>>>;
|
|
30
|
+
declare const ContextMenuShortcut: {
|
|
31
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const ContextMenu: typeof ContextMenuRoot & {
|
|
35
|
+
Trigger: typeof ContextMenuTrigger;
|
|
36
|
+
Content: typeof ContextMenuContent;
|
|
37
|
+
Item: typeof ContextMenuItem;
|
|
38
|
+
CheckboxItem: typeof ContextMenuCheckboxItem;
|
|
39
|
+
RadioGroup: typeof ContextMenuRadioGroup;
|
|
40
|
+
RadioItem: typeof ContextMenuRadioItem;
|
|
41
|
+
Label: typeof ContextMenuLabel;
|
|
42
|
+
Separator: typeof ContextMenuSeparator;
|
|
43
|
+
Shortcut: typeof ContextMenuShortcut;
|
|
44
|
+
Group: typeof ContextMenuGroup;
|
|
45
|
+
Portal: typeof ContextMenuPortal;
|
|
46
|
+
Sub: typeof ContextMenuSub;
|
|
47
|
+
SubContent: typeof ContextMenuSubContent;
|
|
48
|
+
SubTrigger: typeof ContextMenuSubTrigger;
|
|
33
49
|
};
|
|
34
50
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColumnDef, ColumnFiltersState, OnChangeFn, PaginationState, Row, SortingState, Table as TanstackTable } from '@tanstack/react-table';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
import { GridProps } from '../
|
|
4
|
-
import { MasonryProps } from '../
|
|
3
|
+
import { GridProps } from '../layouts/grid';
|
|
4
|
+
import { MasonryProps } from '../layouts/masonry';
|
|
5
5
|
export type DataDisplayLayout = "grid" | "list" | "masonry";
|
|
6
6
|
export interface DataDisplayProps<TData> {
|
|
7
7
|
data: TData[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
export declare const dateInputStyles: (props?: ({
|
|
3
|
-
variant?: "
|
|
3
|
+
variant?: "filled" | "ghost" | "filled-inverted" | "outlined" | "outlined-inverted" | "underlined" | "underlined-inverted" | "ghost-inverted" | null | undefined;
|
|
4
4
|
color?: "error" | "primary" | "secondary" | null | undefined;
|
|
5
5
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
6
6
|
shape?: "full" | "minimal" | "sharp" | null | undefined;
|
|
@@ -14,6 +14,8 @@ export interface DatePickerProps {
|
|
|
14
14
|
size?: "sm" | "md" | "lg";
|
|
15
15
|
color?: "primary" | "secondary" | "error";
|
|
16
16
|
itemShape?: Shape;
|
|
17
|
+
className?: string;
|
|
18
|
+
classNames?: Partial<Record<"base" | "label" | "inputWrapper" | "innerWrapper", string>>;
|
|
17
19
|
}
|
|
18
|
-
export declare const DatePicker: ({ value, onChange, variant, inputVariant, size, color, label, placeholder, disabled, isInvalid, shape, itemShape, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const DatePicker: ({ value, onChange, variant, inputVariant, size, color, label, placeholder, disabled, isInvalid, shape, itemShape, classNames, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
21
|
export {};
|
|
@@ -10,6 +10,7 @@ export interface DialogProps {
|
|
|
10
10
|
variant?: DialogVariant;
|
|
11
11
|
animation?: DialogAnimationType;
|
|
12
12
|
isLocked?: boolean;
|
|
13
|
+
glass?: boolean;
|
|
13
14
|
}
|
|
14
15
|
declare const Dialog: FC<DialogProps>;
|
|
15
16
|
interface DialogTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -21,6 +22,7 @@ export interface DialogContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
21
22
|
variant?: CardProps["variant"];
|
|
22
23
|
padding?: CardProps["padding"];
|
|
23
24
|
layout?: boolean | "size" | "position" | "preserve-aspect";
|
|
25
|
+
glass?: boolean;
|
|
24
26
|
}
|
|
25
27
|
declare const DialogContent: import('react').ForwardRefExoticComponent<DialogContentProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
26
28
|
interface DialogCloseProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -31,7 +33,7 @@ declare const DialogHeader: (props: HTMLAttributes<HTMLDivElement>) => import("r
|
|
|
31
33
|
declare const DialogFooter: (props: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
32
34
|
declare const DialogTitle: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
33
35
|
declare const DialogDescription: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
34
|
-
export interface DialogBodyProps extends
|
|
36
|
+
export interface DialogBodyProps extends ElasticScrollAreaProps {
|
|
35
37
|
}
|
|
36
38
|
declare const DialogBody: import('react').ForwardRefExoticComponent<DialogBodyProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
37
39
|
export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, };
|
|
@@ -3,27 +3,28 @@ import * as RadixDropdownMenu from "@radix-ui/react-dropdown-menu";
|
|
|
3
3
|
type DropdownMenuShape = "full" | "minimal" | "sharp";
|
|
4
4
|
interface DropdownMenuProps extends RadixDropdownMenu.DropdownMenuProps {
|
|
5
5
|
shape?: DropdownMenuShape;
|
|
6
|
+
glass?: boolean;
|
|
6
7
|
}
|
|
7
8
|
declare const DropdownMenu: React.FC<DropdownMenuProps>;
|
|
8
|
-
declare const DropdownMenuTrigger:
|
|
9
|
-
declare const DropdownMenuGroup:
|
|
10
|
-
declare const DropdownMenuPortal:
|
|
11
|
-
declare const DropdownMenuSub:
|
|
12
|
-
declare const DropdownMenuRadioGroup:
|
|
13
|
-
declare const DropdownMenuContent: React.ForwardRefExoticComponent<
|
|
14
|
-
declare const DropdownMenuItem: React.ForwardRefExoticComponent<
|
|
9
|
+
declare const DropdownMenuTrigger: typeof RadixDropdownMenu.Trigger;
|
|
10
|
+
declare const DropdownMenuGroup: typeof RadixDropdownMenu.Group;
|
|
11
|
+
declare const DropdownMenuPortal: typeof RadixDropdownMenu.Portal;
|
|
12
|
+
declare const DropdownMenuSub: typeof RadixDropdownMenu.Sub;
|
|
13
|
+
declare const DropdownMenuRadioGroup: typeof RadixDropdownMenu.RadioGroup;
|
|
14
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof RadixDropdownMenu.Content> & React.RefAttributes<React.ElementRef<typeof RadixDropdownMenu.Content>>>;
|
|
15
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof RadixDropdownMenu.Item> & {
|
|
15
16
|
inset?: boolean;
|
|
16
|
-
} & React.RefAttributes<
|
|
17
|
-
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<
|
|
18
|
-
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<
|
|
19
|
-
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<
|
|
17
|
+
} & React.RefAttributes<React.ElementRef<typeof RadixDropdownMenu.Item>>>;
|
|
18
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof RadixDropdownMenu.CheckboxItem> & React.RefAttributes<React.ElementRef<typeof RadixDropdownMenu.CheckboxItem>>>;
|
|
19
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof RadixDropdownMenu.RadioItem> & React.RefAttributes<React.ElementRef<typeof RadixDropdownMenu.RadioItem>>>;
|
|
20
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof RadixDropdownMenu.SubTrigger> & {
|
|
20
21
|
inset?: boolean;
|
|
21
|
-
} & React.RefAttributes<
|
|
22
|
-
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<
|
|
23
|
-
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<
|
|
22
|
+
} & React.RefAttributes<React.ElementRef<typeof RadixDropdownMenu.SubTrigger>>>;
|
|
23
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof RadixDropdownMenu.SubContent> & React.RefAttributes<React.ElementRef<typeof RadixDropdownMenu.SubContent>>>;
|
|
24
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof RadixDropdownMenu.Label> & {
|
|
24
25
|
inset?: boolean;
|
|
25
|
-
} & React.RefAttributes<
|
|
26
|
-
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<
|
|
26
|
+
} & React.RefAttributes<React.ElementRef<typeof RadixDropdownMenu.Label>>>;
|
|
27
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof RadixDropdownMenu.Separator> & React.RefAttributes<React.ElementRef<typeof RadixDropdownMenu.Separator>>>;
|
|
27
28
|
declare const DropdownMenuShortcut: {
|
|
28
29
|
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
29
30
|
displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MotionValue } from 'framer-motion';
|
|
2
|
-
import { ComponentPropsWithoutRef, ComponentType } from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef, ComponentType, ElementRef, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
4
4
|
interface RefreshIndicatorProps {
|
|
5
5
|
pullProgress: MotionValue<number>;
|
|
@@ -17,10 +17,13 @@ export interface ElasticScrollAreaProps extends ComponentPropsWithoutRef<typeof
|
|
|
17
17
|
onScrollUp?: () => void;
|
|
18
18
|
onScrollDown?: () => void;
|
|
19
19
|
viewportClassName?: string;
|
|
20
|
+
dimmingEdges?: boolean;
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
declare const ElasticScrollAreaRoot: ForwardRefExoticComponent<ElasticScrollAreaProps & RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const ScrollBar: ForwardRefExoticComponent<ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Scrollbar> & {
|
|
24
|
+
scrollbarVisibility?: ElasticScrollAreaProps["scrollbarVisibility"];
|
|
25
|
+
} & RefAttributes<ElementRef<typeof ScrollAreaPrimitive.Scrollbar>>>;
|
|
26
|
+
export declare const ElasticScrollArea: typeof ElasticScrollAreaRoot & {
|
|
27
|
+
ScrollBar: typeof ScrollBar;
|
|
25
28
|
};
|
|
26
29
|
export {};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
1
|
import { default as React } from 'react';
|
|
3
|
-
|
|
4
|
-
variant?: "default" | "card"
|
|
5
|
-
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
6
|
-
export interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof emptyStateVariants> {
|
|
2
|
+
export interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
variant?: "default" | "card";
|
|
7
4
|
icon?: React.ReactNode;
|
|
8
5
|
title: string;
|
|
9
6
|
description?: string;
|
|
10
7
|
action?: React.ReactNode;
|
|
11
8
|
}
|
|
12
9
|
export declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type FloatingPanelPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "left-center" | "right-center" | "center";
|
|
3
|
+
export type FloatingPanelVariant = "primary" | "secondary" | "tertiary" | "surface" | "surface-lowest" | "ghost";
|
|
4
|
+
interface FloatingPanelContextValue {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
setIsOpen: (val: boolean) => void;
|
|
7
|
+
triggerVariant: FloatingPanelVariant;
|
|
8
|
+
panelVariant: FloatingPanelVariant;
|
|
9
|
+
}
|
|
10
|
+
export declare const useFloatingPanel: () => FloatingPanelContextValue;
|
|
11
|
+
export interface FloatingPanelProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "onDrag" | "onDragStart" | "onDragEnd" | "onAnimationStart"> {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
position?: FloatingPanelPosition;
|
|
14
|
+
offset?: number;
|
|
15
|
+
triggerWidth?: number;
|
|
16
|
+
triggerHeight?: number;
|
|
17
|
+
triggerRadius?: number;
|
|
18
|
+
panelWidth?: number;
|
|
19
|
+
panelHeight?: number;
|
|
20
|
+
panelRadius?: number;
|
|
21
|
+
triggerVariant?: FloatingPanelVariant;
|
|
22
|
+
panelVariant?: FloatingPanelVariant;
|
|
23
|
+
open?: boolean;
|
|
24
|
+
onOpenChange?: (open: boolean) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const FloatingPanel: React.ForwardRefExoticComponent<FloatingPanelProps & React.RefAttributes<HTMLDivElement>> & {
|
|
27
|
+
Trigger: {
|
|
28
|
+
({ children, className, }: {
|
|
29
|
+
children: React.ReactNode;
|
|
30
|
+
className?: string;
|
|
31
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
Content: {
|
|
35
|
+
({ children, className, }: {
|
|
36
|
+
children: React.ReactNode;
|
|
37
|
+
className?: string;
|
|
38
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
displayName: string;
|
|
40
|
+
};
|
|
41
|
+
CloseButton: {
|
|
42
|
+
({ className }: {
|
|
43
|
+
className?: string;
|
|
44
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
displayName: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CalendarEvent, CalendarVariant, CalendarView, FullCalendarProps, PrintSettings } from './types';
|
|
3
|
+
export interface PopoverState {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
mode: "create" | "edit";
|
|
6
|
+
anchorRect?: DOMRect;
|
|
7
|
+
}
|
|
8
|
+
interface FullCalendarContextType extends FullCalendarProps {
|
|
9
|
+
currentDate: Date;
|
|
10
|
+
view: CalendarView;
|
|
11
|
+
variant: CalendarVariant;
|
|
12
|
+
navigateNext: () => void;
|
|
13
|
+
navigatePrev: () => void;
|
|
14
|
+
navigateToday: () => void;
|
|
15
|
+
setView: (view: CalendarView) => void;
|
|
16
|
+
setCurrentDate: (date: Date) => void;
|
|
17
|
+
popover: PopoverState;
|
|
18
|
+
draftEvent: CalendarEvent | null;
|
|
19
|
+
setDraftEvent: React.Dispatch<React.SetStateAction<CalendarEvent | null>>;
|
|
20
|
+
openPopover: (mode: "create" | "edit", anchorRect?: DOMRect, initialDate?: Date, event?: CalendarEvent) => void;
|
|
21
|
+
closePopover: () => void;
|
|
22
|
+
isPrintPreviewOpen: boolean;
|
|
23
|
+
setPrintPreviewOpen: (v: boolean) => void;
|
|
24
|
+
printSettings: PrintSettings;
|
|
25
|
+
setPrintSettings: React.Dispatch<React.SetStateAction<PrintSettings>>;
|
|
26
|
+
}
|
|
27
|
+
export declare const useFullCalendar: () => FullCalendarContextType;
|
|
28
|
+
export declare const PrintModeContext: React.Context<boolean>;
|
|
29
|
+
export declare const PrintOverrideProvider: ({ children, overrideDate, overrideView, }: {
|
|
30
|
+
children: React.ReactNode;
|
|
31
|
+
overrideDate: Date;
|
|
32
|
+
overrideView: CalendarView;
|
|
33
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare const FullCalendarProvider: ({ children, initialDate, initialView, variant, events, onEventCreate, onEventUpdate, onEventDelete, onViewChange, onDateRangeChange, renderPopoverCustomFields, renderEventContent, className, ...props }: FullCalendarProps & {
|
|
35
|
+
children: React.ReactNode;
|
|
36
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EventPopover: () => import("react/jsx-runtime").JSX.Element | null;
|