@firecms/ui 3.0.0-canary.1 → 3.0.0-canary.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/components/Avatar.d.ts +1 -0
- package/dist/components/BooleanSwitch.d.ts +1 -1
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Card.d.ts +4 -2
- package/dist/components/CenteredView.d.ts +5 -2
- package/dist/components/Checkbox.d.ts +5 -4
- package/dist/components/Chip.d.ts +3 -2
- package/dist/components/DateTimeField.d.ts +3 -4
- package/dist/components/Dialog.d.ts +2 -1
- package/dist/components/InputLabel.d.ts +2 -2
- package/dist/components/Label.d.ts +7 -0
- package/dist/components/Markdown.d.ts +1 -0
- package/dist/components/Menu.d.ts +2 -1
- package/dist/components/Menubar.d.ts +79 -0
- package/dist/components/RadioGroup.d.ts +28 -0
- package/dist/components/Select.d.ts +1 -1
- package/dist/components/Sheet.d.ts +4 -0
- package/dist/components/TextField.d.ts +1 -1
- package/dist/components/TextareaAutosize.d.ts +3 -34
- package/dist/components/Tooltip.d.ts +4 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/useLocaleConfig.d.ts +1 -0
- package/dist/icons/Icon.d.ts +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +12943 -13422
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +19515 -49
- package/dist/index.umd.js.map +1 -1
- package/dist/styles.d.ts +6 -6
- package/dist/util/{cn.d.ts → cls.d.ts} +4 -0
- package/dist/util/index.d.ts +1 -3
- package/package.json +40 -48
- package/src/components/Alert.tsx +4 -4
- package/src/components/Autocomplete.tsx +4 -3
- package/src/components/Avatar.tsx +7 -4
- package/src/components/Badge.tsx +1 -1
- package/src/components/BooleanSwitch.tsx +11 -11
- package/src/components/BooleanSwitchWithLabel.tsx +5 -5
- package/src/components/Button.tsx +15 -23
- package/src/components/Card.tsx +18 -12
- package/src/components/CenteredView.tsx +26 -14
- package/src/components/Checkbox.tsx +36 -25
- package/src/components/Chip.tsx +9 -6
- package/src/components/CircularProgress.tsx +2 -2
- package/src/components/Collapse.tsx +3 -2
- package/src/components/Container.tsx +2 -2
- package/src/components/DateTimeField.tsx +37 -40
- package/src/components/Dialog.tsx +8 -5
- package/src/components/DialogActions.tsx +2 -2
- package/src/components/DialogContent.tsx +2 -2
- package/src/components/ExpandablePanel.tsx +9 -7
- package/src/components/FileUpload.tsx +5 -7
- package/src/components/IconButton.tsx +4 -4
- package/src/components/InfoLabel.tsx +2 -2
- package/src/components/InputLabel.tsx +10 -9
- package/src/components/Label.tsx +31 -0
- package/src/components/Markdown.tsx +14 -3
- package/src/components/Menu.tsx +13 -7
- package/src/components/Menubar.tsx +322 -0
- package/src/components/MultiSelect.tsx +7 -6
- package/src/components/Paper.tsx +2 -2
- package/src/components/Popover.tsx +3 -2
- package/src/components/RadioGroup.tsx +73 -0
- package/src/components/SearchBar.tsx +6 -6
- package/src/components/Select.tsx +27 -26
- package/src/components/Sheet.tsx +40 -23
- package/src/components/Skeleton.tsx +9 -6
- package/src/components/Table.tsx +6 -6
- package/src/components/Tabs.tsx +7 -7
- package/src/components/TextField.tsx +9 -8
- package/src/components/TextareaAutosize.tsx +3 -3
- package/src/components/Tooltip.tsx +13 -4
- package/src/components/Typography.tsx +20 -3
- package/src/components/common/SelectInputLabel.tsx +2 -2
- package/src/components/index.tsx +3 -1
- package/src/hooks/index.ts +4 -0
- package/src/hooks/useLocaleConfig.tsx +18 -0
- package/src/icons/Icon.tsx +46 -43
- package/src/icons/icon_keys.ts +114 -1301
- package/src/index.ts +1 -0
- package/src/scripts/generateIconKeys.ts +20 -11
- package/src/styles.ts +6 -6
- package/src/util/cls.ts +14 -0
- package/src/util/index.ts +1 -3
- package/tailwind.config.js +70 -0
- package/dist/components/Spinner.d.ts +0 -1
- package/src/components/Spinner.tsx +0 -18
- package/src/util/cn.ts +0 -6
- /package/dist/{util → hooks}/useDebounceValue.d.ts +0 -0
- /package/dist/{util → hooks}/useInjectStyles.d.ts +0 -0
- /package/dist/{util → hooks}/useOutsideAlerter.d.ts +0 -0
- /package/src/{util → hooks}/useDebounceValue.tsx +0 -0
- /package/src/{util → hooks}/useInjectStyles.tsx +0 -0
- /package/src/{util → hooks}/useOutsideAlerter.tsx +0 -0
package/README.md
CHANGED
@@ -49,7 +49,7 @@ FireCMS is based on this great technologies:
|
|
49
49
|
The easiest way to get going is to check our quickstart guide! You will just
|
50
50
|
need to follow some quick steps:
|
51
51
|
|
52
|
-
https://firecms.co/docs
|
52
|
+
https://firecms.co/docs
|
53
53
|
|
54
54
|
### Demo
|
55
55
|
|
@@ -82,7 +82,7 @@ data.
|
|
82
82
|
|
83
83
|
### ✨ Robust Forms
|
84
84
|
|
85
|
-

|
86
86
|
|
87
87
|
When editing an entity, FireCMS offers a nested system of side dialogs for
|
88
88
|
navigating through **subcollections** and accessing custom views (such as custom
|
@@ -4,6 +4,7 @@ export interface AvatarProps {
|
|
4
4
|
alt?: string;
|
5
5
|
children?: React.ReactNode;
|
6
6
|
className?: string;
|
7
|
+
outerClassName?: string;
|
7
8
|
style?: React.CSSProperties;
|
8
9
|
}
|
9
10
|
export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLButtonElement>>;
|
@@ -3,7 +3,7 @@ export type ButtonProps<P extends React.ElementType> = Omit<(P extends "button"
|
|
3
3
|
variant?: "filled" | "outlined" | "text";
|
4
4
|
disabled?: boolean;
|
5
5
|
color?: "primary" | "secondary" | "text" | "error";
|
6
|
-
size?: "small" | "medium" | "large";
|
6
|
+
size?: "small" | "medium" | "large" | "xl" | "2xl";
|
7
7
|
startIcon?: React.ReactNode;
|
8
8
|
fullWidth?: boolean;
|
9
9
|
className?: string;
|
@@ -1,7 +1,9 @@
|
|
1
1
|
import React from "react";
|
2
|
-
|
2
|
+
type CardProps = {
|
3
3
|
children: React.ReactNode;
|
4
4
|
style?: React.CSSProperties;
|
5
5
|
onClick?: () => void;
|
6
6
|
className?: string;
|
7
|
-
}
|
7
|
+
};
|
8
|
+
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
9
|
+
export { Card };
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import React from "react";
|
2
|
-
export
|
2
|
+
export type CenteredViewProps = {
|
3
3
|
children: React.ReactNode;
|
4
4
|
maxWidth?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl";
|
5
|
+
outerClassName?: string;
|
5
6
|
className?: string;
|
6
|
-
|
7
|
+
fullScreen?: boolean;
|
8
|
+
};
|
9
|
+
export declare const CenteredView: React.ForwardRefExoticComponent<CenteredViewProps & React.RefAttributes<HTMLDivElement>>;
|
@@ -1,10 +1,11 @@
|
|
1
|
-
interface CheckboxProps {
|
1
|
+
export interface CheckboxProps {
|
2
2
|
checked: boolean;
|
3
|
+
id?: string;
|
3
4
|
disabled?: boolean;
|
4
5
|
indeterminate?: boolean;
|
5
6
|
onCheckedChange?: (checked: boolean) => void;
|
6
|
-
|
7
|
+
padding?: boolean;
|
8
|
+
size?: "tiny" | "small" | "medium" | "large";
|
7
9
|
color?: "primary" | "secondary";
|
8
10
|
}
|
9
|
-
export declare const Checkbox: ({ checked, indeterminate, disabled, size, onCheckedChange, color }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
10
|
-
export {};
|
11
|
+
export declare const Checkbox: ({ id, checked, indeterminate, padding, disabled, size, onCheckedChange, color }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -8,14 +8,15 @@ export type ChipColorKey = keyof typeof CHIP_COLORS;
|
|
8
8
|
export interface ChipProps {
|
9
9
|
className?: string;
|
10
10
|
children: React.ReactNode;
|
11
|
-
size?: "
|
11
|
+
size?: "tiny" | "small" | "medium";
|
12
12
|
colorScheme?: ChipColorScheme | ChipColorKey;
|
13
13
|
error?: boolean;
|
14
14
|
outlined?: boolean;
|
15
15
|
onClick?: () => void;
|
16
16
|
icon?: React.ReactNode;
|
17
|
+
style?: React.CSSProperties;
|
17
18
|
}
|
18
19
|
/**
|
19
20
|
* @group Preview components
|
20
21
|
*/
|
21
|
-
export declare function Chip({ children, colorScheme, error, outlined, onClick, icon, size, className }: ChipProps): import("react/jsx-runtime").JSX.Element;
|
22
|
+
export declare function Chip({ children, colorScheme, error, outlined, onClick, icon, size, className, style }: ChipProps): import("react/jsx-runtime").JSX.Element;
|
@@ -1,18 +1,17 @@
|
|
1
1
|
import React from "react";
|
2
2
|
interface DateTimeFieldProps {
|
3
|
-
value?: Date;
|
4
|
-
onChange
|
3
|
+
value?: Date | null;
|
4
|
+
onChange?: (date: Date | null) => void;
|
5
5
|
mode?: "date" | "date_time";
|
6
6
|
disabled?: boolean;
|
7
7
|
clearable?: boolean;
|
8
8
|
error?: boolean;
|
9
|
-
size
|
9
|
+
size?: "small" | "medium";
|
10
10
|
label?: React.ReactNode;
|
11
11
|
className?: string;
|
12
12
|
style?: React.CSSProperties;
|
13
13
|
inputClassName?: string;
|
14
14
|
invisible?: boolean;
|
15
|
-
preventOpenOnFocus?: boolean;
|
16
15
|
locale?: string;
|
17
16
|
}
|
18
17
|
export declare const DateTimeField: React.FC<DateTimeFieldProps>;
|
@@ -10,6 +10,7 @@ export type DialogProps = {
|
|
10
10
|
scrollable?: boolean;
|
11
11
|
maxWidth?: keyof typeof widthClasses;
|
12
12
|
modal?: boolean;
|
13
|
+
onOpenAutoFocus?: (e: Event) => void;
|
13
14
|
};
|
14
15
|
declare const widthClasses: {
|
15
16
|
xs: string;
|
@@ -25,5 +26,5 @@ declare const widthClasses: {
|
|
25
26
|
"7xl": string;
|
26
27
|
full: string;
|
27
28
|
};
|
28
|
-
export declare const Dialog: ({ open, onOpenChange, children, className, fullWidth, fullHeight, fullScreen, scrollable, maxWidth, modal }: DialogProps) => import("react/jsx-runtime").JSX.Element;
|
29
|
+
export declare const Dialog: ({ open, onOpenChange, children, className, fullWidth, fullHeight, fullScreen, scrollable, maxWidth, modal, onOpenAutoFocus }: DialogProps) => import("react/jsx-runtime").JSX.Element;
|
29
30
|
export {};
|
@@ -6,6 +6,6 @@ export type InputLabelProps = {
|
|
6
6
|
} & React.LabelHTMLAttributes<HTMLLabelElement>;
|
7
7
|
export declare const InputLabel: React.ForwardRefExoticComponent<{
|
8
8
|
children?: React.ReactNode;
|
9
|
-
className?: string
|
10
|
-
shrink?: boolean
|
9
|
+
className?: string;
|
10
|
+
shrink?: boolean;
|
11
11
|
} & React.LabelHTMLAttributes<HTMLLabelElement> & React.RefAttributes<HTMLLabelElement>>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
3
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & {
|
4
|
+
border?: boolean;
|
5
|
+
onClick?: React.MouseEventHandler<HTMLLabelElement>;
|
6
|
+
} & React.RefAttributes<HTMLLabelElement>>;
|
7
|
+
export { Label };
|
@@ -13,4 +13,5 @@ export type MenuItemProps = {
|
|
13
13
|
dense?: boolean;
|
14
14
|
onClick?: (event: React.MouseEvent) => void;
|
15
15
|
};
|
16
|
-
export declare function MenuItem({ children, dense,
|
16
|
+
export declare function MenuItem({ children, dense, // Default value is false if not provided
|
17
|
+
onClick }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,79 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
export declare function Menubar({ children, onSelect, className }: {
|
3
|
+
children: React.ReactNode;
|
4
|
+
onSelect?: (event: React.SyntheticEvent) => void;
|
5
|
+
className?: string;
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
7
|
+
export declare function MenubarMenu({ children, }: {
|
8
|
+
children: React.ReactNode;
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
10
|
+
export declare function MenubarTrigger({ children, onSelect, className }: {
|
11
|
+
children: React.ReactNode;
|
12
|
+
onSelect?: (event: React.SyntheticEvent) => void;
|
13
|
+
className?: string;
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
15
|
+
export declare function MenubarPortal({ children, }: {
|
16
|
+
children: React.ReactNode;
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
18
|
+
export declare function MenubarContent({ children, className, align, sideOffset, alignOffset, onSelect, ...rest }: {
|
19
|
+
children: React.ReactNode;
|
20
|
+
className?: string;
|
21
|
+
onSelect?: (event: React.SyntheticEvent) => void;
|
22
|
+
align?: "start" | "center" | "end";
|
23
|
+
sideOffset?: number;
|
24
|
+
alignOffset?: number;
|
25
|
+
}): import("react/jsx-runtime").JSX.Element;
|
26
|
+
export declare function MenubarItem({ children, leftPadding, className, disabled, onSelect, ...rest }: {
|
27
|
+
children: React.ReactNode;
|
28
|
+
onSelect?: (event: Event) => void;
|
29
|
+
leftPadding?: boolean;
|
30
|
+
className?: string;
|
31
|
+
disabled?: boolean;
|
32
|
+
}): import("react/jsx-runtime").JSX.Element;
|
33
|
+
export declare function MenubarSeparator({ children, className, ...rest }: {
|
34
|
+
children?: React.ReactNode;
|
35
|
+
className?: string;
|
36
|
+
}): import("react/jsx-runtime").JSX.Element;
|
37
|
+
export declare function MenubarSub({ children, ...rest }: {
|
38
|
+
children?: React.ReactNode;
|
39
|
+
}): import("react/jsx-runtime").JSX.Element;
|
40
|
+
export declare function MenubarSubTrigger({ children, className, onSelect, ...rest }: {
|
41
|
+
children?: React.ReactNode;
|
42
|
+
onSelect?: (event: React.SyntheticEvent) => void;
|
43
|
+
className?: string;
|
44
|
+
}): import("react/jsx-runtime").JSX.Element;
|
45
|
+
export declare function MenubarSubContent({ children, alignOffset, className, onSelect, ...rest }: {
|
46
|
+
children?: React.ReactNode;
|
47
|
+
onSelect?: (event: React.SyntheticEvent) => void;
|
48
|
+
alignOffset?: number;
|
49
|
+
className?: string;
|
50
|
+
}): import("react/jsx-runtime").JSX.Element;
|
51
|
+
export declare function MenubarCheckboxItem({ children, checked, onCheckedChange, className, onSelect, ...rest }: {
|
52
|
+
children?: React.ReactNode;
|
53
|
+
onSelect?: (event: Event) => void;
|
54
|
+
checked?: boolean;
|
55
|
+
onCheckedChange?: () => void;
|
56
|
+
className?: string;
|
57
|
+
}): import("react/jsx-runtime").JSX.Element;
|
58
|
+
export declare function MenubarItemIndicator({ children, className, ...rest }: {
|
59
|
+
children?: React.ReactNode;
|
60
|
+
className?: string;
|
61
|
+
}): import("react/jsx-runtime").JSX.Element;
|
62
|
+
export declare function MenubarRadioGroup({ children, className, value, onValueChange, onSelect, ...rest }: {
|
63
|
+
children?: React.ReactNode;
|
64
|
+
onSelect?: (event: React.SyntheticEvent) => void;
|
65
|
+
value?: string;
|
66
|
+
onValueChange?: (value: string) => void;
|
67
|
+
className?: string;
|
68
|
+
}): import("react/jsx-runtime").JSX.Element;
|
69
|
+
export declare function MenubarRadioItem({ children, className, value, onSelect, ...rest }: {
|
70
|
+
children?: React.ReactNode;
|
71
|
+
onSelect?: (event: Event) => void;
|
72
|
+
value: string;
|
73
|
+
className?: string;
|
74
|
+
}): import("react/jsx-runtime").JSX.Element;
|
75
|
+
export declare function MenubarShortcut({ children, className, ...rest }: {
|
76
|
+
children?: React.ReactNode;
|
77
|
+
className?: string;
|
78
|
+
}): import("react/jsx-runtime").JSX.Element;
|
79
|
+
export declare function MenubarSubTriggerIndicator(): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
export interface RadioGroupProps {
|
3
|
+
id?: string;
|
4
|
+
children: React.ReactNode;
|
5
|
+
name?: string;
|
6
|
+
required?: boolean;
|
7
|
+
disabled?: boolean;
|
8
|
+
/**
|
9
|
+
* Whether keyboard navigation should loop around
|
10
|
+
* @defaultValue false
|
11
|
+
*/
|
12
|
+
loop?: boolean;
|
13
|
+
defaultValue?: string;
|
14
|
+
value?: string;
|
15
|
+
onValueChange?(value: string): void;
|
16
|
+
className?: string;
|
17
|
+
}
|
18
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
19
|
+
export interface RadioGroupItemProps {
|
20
|
+
id?: string;
|
21
|
+
value: string;
|
22
|
+
checked?: boolean;
|
23
|
+
required?: boolean;
|
24
|
+
className?: string;
|
25
|
+
disabled?: boolean;
|
26
|
+
}
|
27
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
28
|
+
export { RadioGroup, RadioGroupItem };
|
@@ -14,7 +14,7 @@ export type SelectProps = {
|
|
14
14
|
renderValue?: (value: string, index: number) => React.ReactNode;
|
15
15
|
renderValues?: (values: string[]) => React.ReactNode;
|
16
16
|
size?: "small" | "medium";
|
17
|
-
label?: React.ReactNode;
|
17
|
+
label?: React.ReactNode | string;
|
18
18
|
disabled?: boolean;
|
19
19
|
error?: boolean;
|
20
20
|
position?: "item-aligned" | "popper";
|
@@ -2,9 +2,13 @@ import React from "react";
|
|
2
2
|
interface SheetProps {
|
3
3
|
children: React.ReactNode;
|
4
4
|
open: boolean;
|
5
|
+
title?: string;
|
5
6
|
side?: "top" | "bottom" | "left" | "right";
|
7
|
+
darkBackground?: boolean;
|
6
8
|
transparent?: boolean;
|
7
9
|
onOpenChange?: (open: boolean) => void;
|
10
|
+
className?: string;
|
11
|
+
overlayClassName?: string;
|
8
12
|
}
|
9
13
|
export declare const Sheet: React.FC<SheetProps>;
|
10
14
|
export {};
|
@@ -13,7 +13,7 @@ export type TextFieldProps<T extends string | number> = {
|
|
13
13
|
endAdornment?: React.ReactNode;
|
14
14
|
autoFocus?: boolean;
|
15
15
|
placeholder?: string;
|
16
|
-
size?: "small" | "medium";
|
16
|
+
size?: "smallest" | "small" | "medium";
|
17
17
|
className?: string;
|
18
18
|
style?: React.CSSProperties;
|
19
19
|
inputClassName?: string;
|
@@ -3,40 +3,9 @@ type State = {
|
|
3
3
|
outerHeightStyle: number;
|
4
4
|
overflow?: boolean | undefined;
|
5
5
|
};
|
6
|
-
export declare const TextareaAutosize: React.
|
7
|
-
|
8
|
-
|
9
|
-
/**
|
10
|
-
* Maximum number of rows to display.
|
11
|
-
*/
|
12
|
-
maxRows?: string | number | undefined;
|
13
|
-
/**
|
14
|
-
* Minimum number of rows to display.
|
15
|
-
* @default 1
|
16
|
-
*/
|
17
|
-
minRows?: string | number | undefined;
|
18
|
-
/**
|
19
|
-
* @ignore
|
20
|
-
*/
|
21
|
-
onChange?: ((event: React.ChangeEvent<HTMLTextAreaElement>) => void) | undefined;
|
22
|
-
/**
|
23
|
-
* @ignore
|
24
|
-
*/
|
25
|
-
placeholder?: string | undefined;
|
26
|
-
/**
|
27
|
-
* @ignore
|
28
|
-
*/
|
29
|
-
style?: object | undefined;
|
30
|
-
/**
|
31
|
-
* @ignore
|
32
|
-
*/
|
33
|
-
value?: string | number | string[] | undefined;
|
34
|
-
sizeRef?: React.RefObject<HTMLDivElement> | undefined;
|
35
|
-
onScroll?: ((event: React.UIEvent<HTMLTextAreaElement>) => void) | undefined;
|
36
|
-
onResize?: ((state: State) => void) | undefined;
|
37
|
-
autoFocus?: boolean | undefined;
|
38
|
-
ignoreBoxSizing?: boolean | undefined;
|
39
|
-
} & React.RefAttributes<Element>>;
|
6
|
+
export declare const TextareaAutosize: React.FC<TextareaAutosizeProps & {
|
7
|
+
ref?: React.ForwardedRef<Element>;
|
8
|
+
}>;
|
40
9
|
export type TextareaAutosizeProps = Omit<React.InputHTMLAttributes<HTMLTextAreaElement>, "onResize"> & {
|
41
10
|
className?: string;
|
42
11
|
shadowClassName?: string;
|
@@ -1,14 +1,17 @@
|
|
1
1
|
import React from "react";
|
2
2
|
export type TooltipProps = {
|
3
3
|
open?: boolean;
|
4
|
+
defaultOpen?: boolean;
|
4
5
|
onOpenChange?: (open: boolean) => void;
|
5
6
|
side?: "top" | "bottom" | "left" | "right";
|
7
|
+
align?: "start" | "center" | "end";
|
6
8
|
sideOffset?: number;
|
7
9
|
title?: string | React.ReactNode;
|
8
10
|
delayDuration?: number;
|
9
11
|
className?: string;
|
10
12
|
tooltipClassName?: string;
|
13
|
+
tooltipStyle?: React.CSSProperties;
|
11
14
|
children: React.ReactNode;
|
12
15
|
style?: React.CSSProperties;
|
13
16
|
};
|
14
|
-
export declare const Tooltip: ({ open, side, delayDuration, sideOffset, onOpenChange, title, className, style, tooltipClassName, children }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
17
|
+
export declare const Tooltip: ({ open, defaultOpen, side, delayDuration, sideOffset, align, onOpenChange, title, className, style, tooltipClassName, tooltipStyle, children }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -20,16 +20,18 @@ export * from "./FileUpload";
|
|
20
20
|
export * from "./IconButton";
|
21
21
|
export * from "./InputLabel";
|
22
22
|
export * from "./InfoLabel";
|
23
|
+
export * from "./Label";
|
23
24
|
export * from "./LoadingButton";
|
24
25
|
export * from "./Markdown";
|
25
26
|
export * from "./Menu";
|
27
|
+
export * from "./Menubar";
|
26
28
|
export * from "./MultiSelect";
|
27
29
|
export * from "./Paper";
|
30
|
+
export * from "./RadioGroup";
|
28
31
|
export * from "./SearchBar";
|
29
32
|
export * from "./Select";
|
30
33
|
export * from "./Separator";
|
31
34
|
export * from "./Sheet";
|
32
|
-
export * from "./Spinner";
|
33
35
|
export * from "./TextareaAutosize";
|
34
36
|
export * from "./TextField";
|
35
37
|
export * from "./Tooltip";
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function useLocaleConfig(locale?: string): void;
|
package/dist/icons/Icon.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React from "react";
|
2
|
-
import
|
2
|
+
import 'material-icons/iconfont/filled.css';
|
3
3
|
export type IconColor = "inherit" | "primary" | "secondary" | "disabled" | "error" | "success" | "warning";
|
4
4
|
export type IconProps = {
|
5
5
|
size?: "smallest" | "small" | "medium" | "large" | number;
|
@@ -8,6 +8,6 @@ export type IconProps = {
|
|
8
8
|
onClick?: (e: React.SyntheticEvent) => void;
|
9
9
|
style?: React.CSSProperties;
|
10
10
|
};
|
11
|
-
export declare
|
11
|
+
export declare const Icon: React.ForwardRefExoticComponent<IconProps & {
|
12
12
|
iconKey: string;
|
13
|
-
}
|
13
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
package/dist/index.d.ts
CHANGED