@firecms/ui 3.0.0-canary.7 → 3.0.0-canary.9

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 CHANGED
@@ -82,7 +82,7 @@ data.
82
82
 
83
83
  ### ✨ Robust Forms
84
84
 
85
- ![fields](https://firecms.co/img/post_editing.webp)
85
+ ![fields](https://firecms.co/img/form_editing.webp)
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
@@ -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
- export declare function Card({ children, style, onClick, className }: {
2
+ type CardProps = {
3
3
  children: React.ReactNode;
4
4
  style?: React.CSSProperties;
5
5
  onClick?: () => void;
6
6
  className?: string;
7
- }): import("react/jsx-runtime").JSX.Element;
7
+ };
8
+ declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
9
+ export { Card };
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
- export declare function CenteredView({ children, maxWidth, className }: {
2
+ export declare function CenteredView({ children, maxWidth, className, fullScreen }: {
3
3
  children: React.ReactNode;
4
4
  maxWidth?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl";
5
5
  className?: string;
6
+ fullScreen?: boolean;
6
7
  }): import("react/jsx-runtime").JSX.Element;
@@ -3,7 +3,7 @@ interface CheckboxProps {
3
3
  disabled?: boolean;
4
4
  indeterminate?: boolean;
5
5
  onCheckedChange?: (checked: boolean) => void;
6
- size?: "small" | "medium" | "large";
6
+ size?: "tiny" | "small" | "medium" | "large";
7
7
  color?: "primary" | "secondary";
8
8
  }
9
9
  export declare const Checkbox: ({ checked, indeterminate, disabled, size, onCheckedChange, color }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -8,7 +8,7 @@ export type ChipColorKey = keyof typeof CHIP_COLORS;
8
8
  export interface ChipProps {
9
9
  className?: string;
10
10
  children: React.ReactNode;
11
- size?: "smaller" | "small" | "medium";
11
+ size?: "tiny" | "small" | "medium";
12
12
  colorScheme?: ChipColorScheme | ChipColorKey;
13
13
  error?: boolean;
14
14
  outlined?: boolean;
@@ -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 {};
@@ -0,0 +1,4 @@
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"> & React.RefAttributes<HTMLLabelElement>>;
4
+ export { Label };
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
3
+ declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
+ export { RadioGroup, RadioGroupItem };
@@ -3,6 +3,7 @@ export type TooltipProps = {
3
3
  open?: boolean;
4
4
  onOpenChange?: (open: boolean) => void;
5
5
  side?: "top" | "bottom" | "left" | "right";
6
+ align?: "start" | "center" | "end";
6
7
  sideOffset?: number;
7
8
  title?: string | React.ReactNode;
8
9
  delayDuration?: number;
@@ -11,4 +12,4 @@ export type TooltipProps = {
11
12
  children: React.ReactNode;
12
13
  style?: React.CSSProperties;
13
14
  };
14
- export declare const Tooltip: ({ open, side, delayDuration, sideOffset, onOpenChange, title, className, style, tooltipClassName, children }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const Tooltip: ({ open, side, delayDuration, sideOffset, align, onOpenChange, title, className, style, tooltipClassName, children }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
@@ -20,11 +20,13 @@ 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";
26
27
  export * from "./MultiSelect";
27
28
  export * from "./Paper";
29
+ export * from "./RadioGroup";
28
30
  export * from "./SearchBar";
29
31
  export * from "./Select";
30
32
  export * from "./Separator";