@firecms/ui 3.2.0-canary.9c3d298 → 3.3.0-canary.451aa49
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/BooleanSwitchWithLabel.d.ts +2 -1
- package/dist/components/Chip.d.ts +1 -1
- package/dist/components/ResizablePanels.d.ts +16 -0
- package/dist/components/SearchableSelect.d.ts +48 -0
- package/dist/components/Tabs.d.ts +8 -1
- package/dist/components/Tooltip.d.ts +18 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/icons/FirestoreIcon.d.ts +6 -0
- package/dist/icons/components/DatabaseIcon.d.ts +6 -0
- package/dist/icons/index.d.ts +2 -0
- package/dist/index.es.js +1370 -476
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1372 -478
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- 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 +77 -212
- 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
|
@@ -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) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const BooleanSwitchWithLabel: ({ value, position, size, invisible, onValueChange, error, label, autoFocus, disabled, className, fullWidth, inputClassName, switchAdornment, ...props }: BooleanSwitchWithLabelProps) => import("react/jsx-runtime").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>>;
|
|
@@ -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): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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;
|
|
@@ -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): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function Tabs({ value, onValueChange, className, innerClassName, children, mode }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
10
16
|
export type TabProps = {
|
|
11
17
|
value: string;
|
|
12
18
|
className?: string;
|
|
@@ -15,3 +21,4 @@ export type TabProps = {
|
|
|
15
21
|
disabled?: boolean;
|
|
16
22
|
};
|
|
17
23
|
export declare function Tab({ value, className, innerClassName, children, disabled }: TabProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -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>>;
|
|
@@ -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";
|
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";
|