@firecms/ui 3.2.0 → 3.3.0-canary.102f274
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/components/Autocomplete.d.ts +1 -1
- package/dist/components/BooleanSwitchWithLabel.d.ts +2 -1
- package/dist/components/Checkbox.d.ts +1 -1
- package/dist/components/Chip.d.ts +1 -1
- package/dist/components/CircularProgress.d.ts +2 -1
- package/dist/components/Collapse.d.ts +1 -1
- package/dist/components/ColorPicker.d.ts +2 -1
- package/dist/components/DebouncedTextField.d.ts +2 -1
- package/dist/components/Dialog.d.ts +1 -1
- package/dist/components/DialogActions.d.ts +1 -1
- package/dist/components/DialogContent.d.ts +1 -1
- package/dist/components/DialogTitle.d.ts +1 -1
- package/dist/components/ExpandablePanel.d.ts +1 -1
- package/dist/components/FileUpload.d.ts +1 -1
- package/dist/components/InfoLabel.d.ts +1 -1
- package/dist/components/LoadingButton.d.ts +1 -1
- package/dist/components/Menu.d.ts +1 -1
- package/dist/components/Menubar.d.ts +16 -16
- package/dist/components/MultiSelect.d.ts +1 -1
- package/dist/components/Paper.d.ts +1 -1
- package/dist/components/Popover.d.ts +1 -1
- package/dist/components/ResizablePanels.d.ts +16 -0
- package/dist/components/SearchBar.d.ts +1 -1
- package/dist/components/SearchableSelect.d.ts +48 -0
- package/dist/components/Select.d.ts +1 -1
- package/dist/components/Separator.d.ts +1 -1
- package/dist/components/Skeleton.d.ts +2 -1
- package/dist/components/Table.d.ts +5 -5
- package/dist/components/Tabs.d.ts +9 -2
- package/dist/components/ToggleButtonGroup.d.ts +1 -1
- package/dist/components/Tooltip.d.ts +18 -2
- package/dist/components/Typography.d.ts +1 -1
- package/dist/components/common/SelectInputLabel.d.ts +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/hooks/PortalContainerContext.d.ts +1 -1
- package/dist/icons/FirestoreIcon.d.ts +7 -0
- package/dist/icons/GitHubIcon.d.ts +2 -1
- package/dist/icons/HandleIcon.d.ts +1 -1
- package/dist/icons/components/DatabaseIcon.d.ts +6 -0
- package/dist/icons/index.d.ts +2 -0
- package/dist/index.es.js +1376 -476
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1378 -478
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -3
- package/src/components/BooleanSwitchWithLabel.tsx +4 -0
- package/src/components/Button.tsx +2 -1
- package/src/components/Chip.tsx +4 -3
- package/src/components/MultiSelect.tsx +23 -4
- package/src/components/ResizablePanels.tsx +181 -0
- package/src/components/SearchableSelect.tsx +335 -0
- package/src/components/Skeleton.tsx +4 -2
- package/src/components/Tabs.tsx +44 -16
- package/src/components/TextareaAutosize.tsx +90 -215
- package/src/components/Tooltip.tsx +7 -6
- package/src/components/index.tsx +2 -0
- package/src/icons/FirestoreIcon.tsx +47 -0
- package/src/icons/components/DatabaseIcon.tsx +10 -0
- package/src/icons/index.ts +2 -0
|
@@ -12,7 +12,7 @@ export declare const useAutoComplete: ({ ref }: {
|
|
|
12
12
|
autoCompleteOpen: boolean;
|
|
13
13
|
setAutoCompleteOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
14
14
|
};
|
|
15
|
-
export declare function Autocomplete({ children, open, setOpen, className }: AutocompleteProps):
|
|
15
|
+
export declare function Autocomplete({ children, open, setOpen, className }: AutocompleteProps): React.JSX.Element;
|
|
16
16
|
export type AutocompleteItemProps = {
|
|
17
17
|
children: React.ReactNode;
|
|
18
18
|
onClick?: () => void;
|
|
@@ -9,9 +9,10 @@ export type BooleanSwitchWithLabelProps = BooleanSwitchProps & {
|
|
|
9
9
|
fullWidth?: boolean;
|
|
10
10
|
className?: string;
|
|
11
11
|
inputClassName?: string;
|
|
12
|
+
switchAdornment?: React.ReactNode;
|
|
12
13
|
};
|
|
13
14
|
/**
|
|
14
15
|
* Simple boolean switch.
|
|
15
16
|
*
|
|
16
17
|
*/
|
|
17
|
-
export declare const BooleanSwitchWithLabel: ({ value, position, size, invisible, onValueChange, error, label, autoFocus, disabled, className, fullWidth, inputClassName, ...props }: BooleanSwitchWithLabelProps) =>
|
|
18
|
+
export declare const BooleanSwitchWithLabel: ({ value, position, size, invisible, onValueChange, error, label, autoFocus, disabled, className, fullWidth, inputClassName, switchAdornment, ...props }: BooleanSwitchWithLabelProps) => React.JSX.Element;
|
|
@@ -9,4 +9,4 @@ export interface CheckboxProps {
|
|
|
9
9
|
size?: "smallest" | "small" | "medium" | "large";
|
|
10
10
|
color?: "primary" | "secondary";
|
|
11
11
|
}
|
|
12
|
-
export declare const Checkbox: React.MemoExoticComponent<({ id, checked, indeterminate, padding, disabled, size, onCheckedChange, color }: CheckboxProps) =>
|
|
12
|
+
export declare const Checkbox: React.MemoExoticComponent<({ id, checked, indeterminate, padding, disabled, size, onCheckedChange, color }: CheckboxProps) => React.JSX.Element>;
|
|
@@ -19,4 +19,4 @@ export interface ChipProps {
|
|
|
19
19
|
/**
|
|
20
20
|
* @group Preview components
|
|
21
21
|
*/
|
|
22
|
-
export declare
|
|
22
|
+
export declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export type CircularProgressProps = {
|
|
2
3
|
size?: "smallest" | "small" | "medium" | "large";
|
|
3
4
|
className?: string;
|
|
4
5
|
};
|
|
5
|
-
export declare function CircularProgress({ size, className }: CircularProgressProps):
|
|
6
|
+
export declare function CircularProgress({ size, className }: CircularProgressProps): React.JSX.Element;
|
|
@@ -5,5 +5,5 @@ interface CollapseProps {
|
|
|
5
5
|
in?: boolean;
|
|
6
6
|
duration?: number;
|
|
7
7
|
}
|
|
8
|
-
export declare const Collapse: React.MemoExoticComponent<({ children, className, in: isOpen, duration }: CollapseProps) =>
|
|
8
|
+
export declare const Collapse: React.MemoExoticComponent<({ children, className, in: isOpen, duration }: CollapseProps) => React.JSX.Element>;
|
|
9
9
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ChipColorKey } from "./Chip";
|
|
2
3
|
export interface ColorPickerProps {
|
|
3
4
|
/**
|
|
@@ -27,4 +28,4 @@ export interface ColorPickerProps {
|
|
|
27
28
|
*
|
|
28
29
|
* @group Form components
|
|
29
30
|
*/
|
|
30
|
-
export declare function ColorPicker({ value, onChange, size, allowClear, disabled }: ColorPickerProps):
|
|
31
|
+
export declare function ColorPicker({ value, onChange, size, allowClear, disabled }: ColorPickerProps): React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { TextFieldProps } from "./index";
|
|
2
|
-
export declare function DebouncedTextField<T extends string | number>(props: TextFieldProps<T>):
|
|
3
|
+
export declare function DebouncedTextField<T extends string | number>(props: TextFieldProps<T>): React.JSX.Element;
|
|
@@ -35,5 +35,5 @@ declare const widthClasses: {
|
|
|
35
35
|
"7xl": string;
|
|
36
36
|
full: string;
|
|
37
37
|
};
|
|
38
|
-
export declare const Dialog: ({ open, onOpenChange, children, className, containerClassName, fullWidth, fullHeight, fullScreen, scrollable, maxWidth, modal, onOpenAutoFocus, onEscapeKeyDown, onPointerDownOutside, onInteractOutside, disableInitialFocus, portalContainer }: DialogProps) =>
|
|
38
|
+
export declare const Dialog: ({ open, onOpenChange, children, className, containerClassName, fullWidth, fullHeight, fullScreen, scrollable, maxWidth, modal, onOpenAutoFocus, onEscapeKeyDown, onPointerDownOutside, onInteractOutside, disableInitialFocus, portalContainer }: DialogProps) => React.JSX.Element;
|
|
39
39
|
export {};
|
|
@@ -7,4 +7,4 @@ export type DialogContentProps = TypographyProps & {
|
|
|
7
7
|
includeMargin?: boolean;
|
|
8
8
|
variant?: TypographyVariant;
|
|
9
9
|
};
|
|
10
|
-
export declare function DialogTitle({ children, hidden, className, variant, gutterBottom, includeMargin, ...props }: DialogContentProps):
|
|
10
|
+
export declare function DialogTitle({ children, hidden, className, variant, gutterBottom, includeMargin, ...props }: DialogContentProps): React.JSX.Element;
|
|
@@ -20,4 +20,4 @@ export type FileUploadProps = {
|
|
|
20
20
|
preventDropOnDocument?: boolean;
|
|
21
21
|
size?: "small" | "medium" | "large";
|
|
22
22
|
};
|
|
23
|
-
export declare function FileUpload({ accept, onFilesAdded, onFilesRejected, maxSize, disabled, maxFiles, title, uploadDescription, children, preventDropOnDocument, size }: React.PropsWithChildren<FileUploadProps>):
|
|
23
|
+
export declare function FileUpload({ accept, onFilesAdded, onFilesRejected, maxSize, disabled, maxFiles, title, uploadDescription, children, preventDropOnDocument, size }: React.PropsWithChildren<FileUploadProps>): React.JSX.Element;
|
|
@@ -4,4 +4,4 @@ export type LoadingButtonProps<P extends React.ElementType> = ButtonProps<P> & {
|
|
|
4
4
|
startIcon?: React.ReactNode;
|
|
5
5
|
loading?: boolean;
|
|
6
6
|
};
|
|
7
|
-
export declare function LoadingButton<P extends React.ElementType = "button">({ children, loading, disabled, onClick, startIcon, ...props }: LoadingButtonProps<P>):
|
|
7
|
+
export declare function LoadingButton<P extends React.ElementType = "button">({ children, loading, disabled, onClick, startIcon, ...props }: LoadingButtonProps<P>): React.JSX.Element;
|
|
@@ -20,4 +20,4 @@ export type MenuItemProps = {
|
|
|
20
20
|
onClick?: (event: React.MouseEvent) => void;
|
|
21
21
|
className?: string;
|
|
22
22
|
};
|
|
23
|
-
export declare const MenuItem: React.MemoExoticComponent<({ children, dense, disabled, onClick, className }: MenuItemProps) =>
|
|
23
|
+
export declare const MenuItem: React.MemoExoticComponent<({ children, dense, disabled, onClick, className }: MenuItemProps) => React.JSX.Element>;
|
|
@@ -3,19 +3,19 @@ export declare function Menubar({ children, onSelect, className }: {
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
onSelect?: (event: React.SyntheticEvent) => void;
|
|
5
5
|
className?: string;
|
|
6
|
-
}):
|
|
6
|
+
}): React.JSX.Element;
|
|
7
7
|
export declare function MenubarMenu({ children, }: {
|
|
8
8
|
children: React.ReactNode;
|
|
9
|
-
}):
|
|
9
|
+
}): React.JSX.Element;
|
|
10
10
|
export declare function MenubarTrigger({ children, onSelect, className }: {
|
|
11
11
|
children: React.ReactNode;
|
|
12
12
|
onSelect?: (event: React.SyntheticEvent) => void;
|
|
13
13
|
className?: string;
|
|
14
|
-
}):
|
|
14
|
+
}): React.JSX.Element;
|
|
15
15
|
export declare function MenubarPortal({ children, portalContainer, }: {
|
|
16
16
|
children: React.ReactNode;
|
|
17
17
|
portalContainer?: HTMLElement | null;
|
|
18
|
-
}):
|
|
18
|
+
}): React.JSX.Element;
|
|
19
19
|
export declare function MenubarContent({ children, className, align, sideOffset, alignOffset, onSelect, ...rest }: {
|
|
20
20
|
children: React.ReactNode;
|
|
21
21
|
className?: string;
|
|
@@ -23,58 +23,58 @@ export declare function MenubarContent({ children, className, align, sideOffset,
|
|
|
23
23
|
align?: "start" | "center" | "end";
|
|
24
24
|
sideOffset?: number;
|
|
25
25
|
alignOffset?: number;
|
|
26
|
-
}):
|
|
26
|
+
}): React.JSX.Element;
|
|
27
27
|
export declare function MenubarItem({ children, leftPadding, className, disabled, onSelect, ...rest }: {
|
|
28
28
|
children: React.ReactNode;
|
|
29
29
|
onSelect?: (event: Event) => void;
|
|
30
30
|
leftPadding?: boolean;
|
|
31
31
|
className?: string;
|
|
32
32
|
disabled?: boolean;
|
|
33
|
-
}):
|
|
33
|
+
}): React.JSX.Element;
|
|
34
34
|
export declare function MenubarSeparator({ children, className, ...rest }: {
|
|
35
35
|
children?: React.ReactNode;
|
|
36
36
|
className?: string;
|
|
37
|
-
}):
|
|
37
|
+
}): React.JSX.Element;
|
|
38
38
|
export declare function MenubarSub({ children, ...rest }: {
|
|
39
39
|
children?: React.ReactNode;
|
|
40
|
-
}):
|
|
40
|
+
}): React.JSX.Element;
|
|
41
41
|
export declare function MenubarSubTrigger({ children, className, onSelect, ...rest }: {
|
|
42
42
|
children?: React.ReactNode;
|
|
43
43
|
onSelect?: (event: React.SyntheticEvent) => void;
|
|
44
44
|
className?: string;
|
|
45
|
-
}):
|
|
45
|
+
}): React.JSX.Element;
|
|
46
46
|
export declare function MenubarSubContent({ children, alignOffset, className, onSelect, ...rest }: {
|
|
47
47
|
children?: React.ReactNode;
|
|
48
48
|
onSelect?: (event: React.SyntheticEvent) => void;
|
|
49
49
|
alignOffset?: number;
|
|
50
50
|
className?: string;
|
|
51
|
-
}):
|
|
51
|
+
}): React.JSX.Element;
|
|
52
52
|
export declare function MenubarCheckboxItem({ children, checked, onCheckedChange, className, onSelect, ...rest }: {
|
|
53
53
|
children?: React.ReactNode;
|
|
54
54
|
onSelect?: (event: Event) => void;
|
|
55
55
|
checked?: boolean;
|
|
56
56
|
onCheckedChange?: () => void;
|
|
57
57
|
className?: string;
|
|
58
|
-
}):
|
|
58
|
+
}): React.JSX.Element;
|
|
59
59
|
export declare function MenubarItemIndicator({ children, className, ...rest }: {
|
|
60
60
|
children?: React.ReactNode;
|
|
61
61
|
className?: string;
|
|
62
|
-
}):
|
|
62
|
+
}): React.JSX.Element;
|
|
63
63
|
export declare function MenubarRadioGroup({ children, className, value, onValueChange, onSelect, ...rest }: {
|
|
64
64
|
children?: React.ReactNode;
|
|
65
65
|
onSelect?: (event: React.SyntheticEvent) => void;
|
|
66
66
|
value?: string;
|
|
67
67
|
onValueChange?: (value: string) => void;
|
|
68
68
|
className?: string;
|
|
69
|
-
}):
|
|
69
|
+
}): React.JSX.Element;
|
|
70
70
|
export declare function MenubarRadioItem({ children, className, value, onSelect, ...rest }: {
|
|
71
71
|
children?: React.ReactNode;
|
|
72
72
|
onSelect?: (event: Event) => void;
|
|
73
73
|
value: string;
|
|
74
74
|
className?: string;
|
|
75
|
-
}):
|
|
75
|
+
}): React.JSX.Element;
|
|
76
76
|
export declare function MenubarShortcut({ children, className, ...rest }: {
|
|
77
77
|
children?: React.ReactNode;
|
|
78
78
|
className?: string;
|
|
79
|
-
}):
|
|
80
|
-
export declare function MenubarSubTriggerIndicator():
|
|
79
|
+
}): React.JSX.Element;
|
|
80
|
+
export declare function MenubarSubTriggerIndicator(): React.JSX.Element;
|
|
@@ -44,5 +44,5 @@ export interface MultiSelectItemProps<T extends MultiSelectValue = string> {
|
|
|
44
44
|
children?: React.ReactNode;
|
|
45
45
|
className?: string;
|
|
46
46
|
}
|
|
47
|
-
export declare const MultiSelectItem: React.MemoExoticComponent<(<T extends MultiSelectValue = string>({ children, value, className }: MultiSelectItemProps<T>) =>
|
|
47
|
+
export declare const MultiSelectItem: React.MemoExoticComponent<(<T extends MultiSelectValue = string>({ children, value, className }: MultiSelectItemProps<T>) => React.JSX.Element)>;
|
|
48
48
|
export {};
|
|
@@ -19,4 +19,4 @@ export interface PopoverProps {
|
|
|
19
19
|
className?: string;
|
|
20
20
|
portalContainer?: HTMLElement | null;
|
|
21
21
|
}
|
|
22
|
-
export declare function Popover({ trigger, children, open, onOpenChange, side, sideOffset, align, alignOffset, arrowPadding, sticky, hideWhenDetached, avoidCollisions, enabled, modal, portalContainer, className }: PopoverProps):
|
|
22
|
+
export declare function Popover({ trigger, children, open, onOpenChange, side, sideOffset, align, alignOffset, arrowPadding, sticky, hideWhenDetached, avoidCollisions, enabled, modal, portalContainer, className }: PopoverProps): React.JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ResizablePanelsProps = {
|
|
3
|
+
firstPanel: React.ReactNode;
|
|
4
|
+
secondPanel: React.ReactNode;
|
|
5
|
+
/** Whether the first panel is visible (e.g. Sidebar) */
|
|
6
|
+
showFirstPanel?: boolean;
|
|
7
|
+
/** Whether the second panel is visible (e.g. Results) */
|
|
8
|
+
showSecondPanel?: boolean;
|
|
9
|
+
/** 0-100 representing the width/height of the first panel */
|
|
10
|
+
panelSizePercent: number;
|
|
11
|
+
onPanelSizeChange: (sizePercent: number) => void;
|
|
12
|
+
minPanelSizePx?: number;
|
|
13
|
+
orientation?: 'horizontal' | 'vertical';
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function ResizablePanels({ firstPanel, secondPanel, showFirstPanel, showSecondPanel, panelSizePercent, onPanelSizeChange, minPanelSizePx, orientation, className }: ResizablePanelsProps): React.JSX.Element;
|
|
@@ -22,5 +22,5 @@ interface SearchBarProps {
|
|
|
22
22
|
loading?: boolean;
|
|
23
23
|
inputRef?: React.Ref<HTMLInputElement>;
|
|
24
24
|
}
|
|
25
|
-
export declare function SearchBar({ onClick, onTextSearch, placeholder, expandable, size, large, innerClassName, className, autoFocus, disabled, loading, inputRef }: SearchBarProps):
|
|
25
|
+
export declare function SearchBar({ onClick, onTextSearch, placeholder, expandable, size, large, innerClassName, className, autoFocus, disabled, loading, inputRef }: SearchBarProps): React.JSX.Element;
|
|
26
26
|
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SearchableSelectProps {
|
|
3
|
+
/** Currently selected value. Can be one of the items or a custom string. */
|
|
4
|
+
value?: string;
|
|
5
|
+
/** Callback when the value changes (from selection or custom input). */
|
|
6
|
+
onValueChange?: (value: string) => void;
|
|
7
|
+
/** Placeholder shown when no value is selected. */
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
/** Label above the field. */
|
|
10
|
+
label?: React.ReactNode | string;
|
|
11
|
+
/** Size variant. */
|
|
12
|
+
size?: "smallest" | "small" | "medium" | "large";
|
|
13
|
+
/** Whether the field is disabled. */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Whether to show an error state. */
|
|
16
|
+
error?: boolean;
|
|
17
|
+
/** Whether to use the invisible (borderless) style. */
|
|
18
|
+
invisible?: boolean;
|
|
19
|
+
/** CSS class for the trigger button. */
|
|
20
|
+
className?: string;
|
|
21
|
+
/** CSS class for the trigger input area. */
|
|
22
|
+
inputClassName?: string;
|
|
23
|
+
/** Render the selected value in a custom way in the trigger. */
|
|
24
|
+
renderValue?: (value: string) => React.ReactNode;
|
|
25
|
+
/** Whether the popover should trap focus. */
|
|
26
|
+
modalPopover?: boolean;
|
|
27
|
+
/** If true, allow accepting the typed text as the value even if it doesn't match an item. */
|
|
28
|
+
allowCustomValues?: boolean;
|
|
29
|
+
/** Portal container element. */
|
|
30
|
+
portalContainer?: HTMLElement | null;
|
|
31
|
+
/** If true, auto-open the popover on mount so the user can start typing immediately. */
|
|
32
|
+
autoFocus?: boolean;
|
|
33
|
+
/** The option items — use SearchableSelectItem. */
|
|
34
|
+
children: React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
export interface SearchableSelectItemProps {
|
|
37
|
+
value: string;
|
|
38
|
+
children?: React.ReactNode;
|
|
39
|
+
className?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare const SearchableSelect: React.ForwardRefExoticComponent<SearchableSelectProps & React.RefAttributes<HTMLButtonElement>>;
|
|
42
|
+
/**
|
|
43
|
+
* A single option inside a SearchableSelect.
|
|
44
|
+
* The `value` prop is the string value that gets selected.
|
|
45
|
+
* The `children` is what's displayed in the dropdown.
|
|
46
|
+
* This component is not rendered directly — SearchableSelect reads its props.
|
|
47
|
+
*/
|
|
48
|
+
export declare function SearchableSelectItem(_props: SearchableSelectItemProps): null;
|
|
@@ -34,7 +34,7 @@ export type SelectItemProps<T extends SelectValue = string> = {
|
|
|
34
34
|
disabled?: boolean;
|
|
35
35
|
className?: string;
|
|
36
36
|
};
|
|
37
|
-
export declare const SelectItem: React.MemoExoticComponent<(<T extends SelectValue = string>({ value, children, disabled, className }: SelectItemProps<T>) =>
|
|
37
|
+
export declare const SelectItem: React.MemoExoticComponent<(<T extends SelectValue = string>({ value, children, disabled, className }: SelectItemProps<T>) => React.JSX.Element)>;
|
|
38
38
|
export type SelectGroupProps = {
|
|
39
39
|
label: React.ReactNode;
|
|
40
40
|
children: React.ReactNode;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export type SkeletonProps = {
|
|
2
3
|
width?: number;
|
|
3
4
|
height?: number;
|
|
4
5
|
className?: string;
|
|
5
6
|
};
|
|
6
|
-
export declare function Skeleton({ width, height, className }: SkeletonProps):
|
|
7
|
+
export declare function Skeleton({ width, height, className }: SkeletonProps): React.JSX.Element;
|
|
@@ -4,24 +4,24 @@ export type TableProps = {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
style?: React.CSSProperties;
|
|
6
6
|
} & React.TableHTMLAttributes<HTMLTableElement>;
|
|
7
|
-
export declare const Table: React.MemoExoticComponent<({ children, className, style, ...rest }: TableProps) =>
|
|
7
|
+
export declare const Table: React.MemoExoticComponent<({ children, className, style, ...rest }: TableProps) => React.JSX.Element>;
|
|
8
8
|
export type TableBodyProps = {
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
className?: string;
|
|
11
11
|
} & React.HTMLAttributes<HTMLTableSectionElement>;
|
|
12
|
-
export declare const TableBody: React.MemoExoticComponent<({ children, className, ...rest }: TableBodyProps) =>
|
|
12
|
+
export declare const TableBody: React.MemoExoticComponent<({ children, className, ...rest }: TableBodyProps) => React.JSX.Element>;
|
|
13
13
|
export type TableHeaderProps = {
|
|
14
14
|
children?: React.ReactNode;
|
|
15
15
|
className?: string;
|
|
16
16
|
} & React.HTMLAttributes<HTMLTableSectionElement>;
|
|
17
|
-
export declare const TableHeader: React.MemoExoticComponent<({ children, className, ...rest }: TableHeaderProps) =>
|
|
17
|
+
export declare const TableHeader: React.MemoExoticComponent<({ children, className, ...rest }: TableHeaderProps) => React.JSX.Element>;
|
|
18
18
|
export type TableRowProps = {
|
|
19
19
|
children?: React.ReactNode;
|
|
20
20
|
className?: string;
|
|
21
21
|
onClick?: React.MouseEventHandler<any>;
|
|
22
22
|
style?: React.CSSProperties;
|
|
23
23
|
} & React.HTMLAttributes<HTMLTableRowElement>;
|
|
24
|
-
export declare const TableRow: React.MemoExoticComponent<({ children, className, onClick, style, ...rest }: TableRowProps) =>
|
|
24
|
+
export declare const TableRow: React.MemoExoticComponent<({ children, className, onClick, style, ...rest }: TableRowProps) => React.JSX.Element>;
|
|
25
25
|
export type TableCellProps = {
|
|
26
26
|
children?: React.ReactNode;
|
|
27
27
|
header?: boolean;
|
|
@@ -31,4 +31,4 @@ export type TableCellProps = {
|
|
|
31
31
|
align?: "left" | "center" | "right";
|
|
32
32
|
colspan?: number;
|
|
33
33
|
} & React.HTMLAttributes<HTMLTableCellElement>;
|
|
34
|
-
export declare const TableCell: React.MemoExoticComponent<({ children, header, scope, align, className, style, colspan, ...rest }: TableCellProps) =>
|
|
34
|
+
export declare const TableCell: React.MemoExoticComponent<({ children, header, scope, align, className, style, colspan, ...rest }: TableCellProps) => React.JSX.Element>;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
type TabsMode = "primary" | "secondary";
|
|
2
3
|
export type TabsProps = {
|
|
3
4
|
value: string;
|
|
4
5
|
children: React.ReactNode;
|
|
5
6
|
innerClassName?: string;
|
|
6
7
|
className?: string;
|
|
7
8
|
onValueChange: (value: string) => void;
|
|
9
|
+
/**
|
|
10
|
+
* "primary" renders the default pill-style tabs.
|
|
11
|
+
* "secondary" renders underline-style tabs suitable for inner/nested panels.
|
|
12
|
+
*/
|
|
13
|
+
mode?: TabsMode;
|
|
8
14
|
};
|
|
9
|
-
export declare function Tabs({ value, onValueChange, className, innerClassName, children }: TabsProps):
|
|
15
|
+
export declare function Tabs({ value, onValueChange, className, innerClassName, children, mode }: TabsProps): React.JSX.Element;
|
|
10
16
|
export type TabProps = {
|
|
11
17
|
value: string;
|
|
12
18
|
className?: string;
|
|
@@ -14,4 +20,5 @@ export type TabProps = {
|
|
|
14
20
|
children: React.ReactNode;
|
|
15
21
|
disabled?: boolean;
|
|
16
22
|
};
|
|
17
|
-
export declare function Tab({ value, className, innerClassName, children, disabled }: TabProps):
|
|
23
|
+
export declare function Tab({ value, className, innerClassName, children, disabled }: TabProps): React.JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -27,4 +27,4 @@ export type ToggleButtonGroupProps<T extends string = string> = {
|
|
|
27
27
|
* A toggle button group component for selecting one option from a set.
|
|
28
28
|
* Displays options as buttons in a horizontal row with active state styling.
|
|
29
29
|
*/
|
|
30
|
-
export declare function ToggleButtonGroup<T extends string = string>({ value, onValueChange, options, className }: ToggleButtonGroupProps<T>):
|
|
30
|
+
export declare function ToggleButtonGroup<T extends string = string>({ value, onValueChange, options, className }: ToggleButtonGroupProps<T>): React.JSX.Element;
|
|
@@ -15,5 +15,21 @@ export type TooltipProps = {
|
|
|
15
15
|
className?: string;
|
|
16
16
|
container?: HTMLElement;
|
|
17
17
|
style?: React.CSSProperties;
|
|
18
|
-
}
|
|
19
|
-
export declare const Tooltip:
|
|
18
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "title">;
|
|
19
|
+
export declare const Tooltip: React.ForwardRefExoticComponent<{
|
|
20
|
+
open?: boolean;
|
|
21
|
+
defaultOpen?: boolean;
|
|
22
|
+
onOpenChange?: (open: boolean) => void;
|
|
23
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
24
|
+
align?: "start" | "center" | "end";
|
|
25
|
+
sideOffset?: number;
|
|
26
|
+
title?: string | React.ReactNode;
|
|
27
|
+
delayDuration?: number;
|
|
28
|
+
asChild?: boolean;
|
|
29
|
+
tooltipClassName?: string;
|
|
30
|
+
tooltipStyle?: React.CSSProperties;
|
|
31
|
+
children: React.ReactNode;
|
|
32
|
+
className?: string;
|
|
33
|
+
container?: HTMLElement;
|
|
34
|
+
style?: React.CSSProperties;
|
|
35
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "title"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -32,5 +32,5 @@ declare const typographyVariants: {
|
|
|
32
32
|
caption: string;
|
|
33
33
|
button: string;
|
|
34
34
|
};
|
|
35
|
-
export declare function Typography<C extends React.ElementType = "span">({ align, color, children, className, component, gutterBottom, noWrap, paragraph, variant, variantMapping, style, onClick, ...other }: TypographyProps<C>):
|
|
35
|
+
export declare function Typography<C extends React.ElementType = "span">({ align, color, children, className, component, gutterBottom, noWrap, paragraph, variant, variantMapping, style, onClick, ...other }: TypographyProps<C>): React.JSX.Element;
|
|
36
36
|
export {};
|
|
@@ -30,7 +30,9 @@ export * from "./Menubar";
|
|
|
30
30
|
export * from "./MultiSelect";
|
|
31
31
|
export * from "./Paper";
|
|
32
32
|
export * from "./RadioGroup";
|
|
33
|
+
export * from "./ResizablePanels";
|
|
33
34
|
export * from "./SearchBar";
|
|
35
|
+
export * from "./SearchableSelect";
|
|
34
36
|
export * from "./Select";
|
|
35
37
|
export * from "./Separator";
|
|
36
38
|
export * from "./Slider";
|
|
@@ -21,7 +21,7 @@ export interface PortalContainerProviderProps {
|
|
|
21
21
|
* </div>
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
export declare function PortalContainerProvider({ container, children }: PortalContainerProviderProps):
|
|
24
|
+
export declare function PortalContainerProvider({ container, children }: PortalContainerProviderProps): React.JSX.Element;
|
|
25
25
|
/**
|
|
26
26
|
* Hook to access the portal container from context.
|
|
27
27
|
* Returns null if no provider is found in the tree.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function HandleIcon(): import("react
|
|
1
|
+
export declare function HandleIcon(): import("react").JSX.Element;
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./cool_icon_keys";
|
|
|
3
3
|
export * from "./Icon";
|
|
4
4
|
export * from "./GitHubIcon";
|
|
5
5
|
export * from "./HandleIcon";
|
|
6
|
+
export * from "./FirestoreIcon";
|
|
6
7
|
export * from "./components/_10kIcon";
|
|
7
8
|
export * from "./components/_10mpIcon";
|
|
8
9
|
export * from "./components/_11mpIcon";
|
|
@@ -522,6 +523,7 @@ export * from "./components/DataThresholdingIcon";
|
|
|
522
523
|
export * from "./components/DataUsageIcon";
|
|
523
524
|
export * from "./components/DatasetIcon";
|
|
524
525
|
export * from "./components/DatasetLinkedIcon";
|
|
526
|
+
export * from "./components/DatabaseIcon";
|
|
525
527
|
export * from "./components/DateRangeIcon";
|
|
526
528
|
export * from "./components/DeblurIcon";
|
|
527
529
|
export * from "./components/DeckIcon";
|