@firecms/ui 3.0.0-beta.13 → 3.0.0-beta.15

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.
@@ -6,6 +6,7 @@ export interface AlertProps {
6
6
  size?: "small" | "medium" | "large";
7
7
  action?: React.ReactNode;
8
8
  className?: string;
9
+ outerClassName?: string;
9
10
  style?: React.CSSProperties;
10
11
  }
11
12
  export declare const Alert: React.FC<AlertProps>;
@@ -3,6 +3,7 @@ export type AutocompleteProps = {
3
3
  children: React.ReactNode;
4
4
  open: boolean;
5
5
  setOpen: (open: boolean) => void;
6
+ className?: string;
6
7
  };
7
8
  export declare const useAutoComplete: ({ ref }: {
8
9
  ref: React.MutableRefObject<HTMLDivElement | null>;
@@ -11,9 +12,10 @@ export declare const useAutoComplete: ({ ref }: {
11
12
  autoCompleteOpen: boolean;
12
13
  setAutoCompleteOpen: React.Dispatch<React.SetStateAction<boolean>>;
13
14
  };
14
- export declare function Autocomplete({ children, open, setOpen }: AutocompleteProps): import("react/jsx-runtime").JSX.Element;
15
+ export declare function Autocomplete({ children, open, setOpen, className }: AutocompleteProps): import("react/jsx-runtime").JSX.Element;
15
16
  export type AutocompleteItemProps = {
16
17
  children: React.ReactNode;
17
18
  onClick?: () => void;
19
+ className?: string;
18
20
  };
19
- export declare function AutocompleteItem({ children, onClick }: AutocompleteItemProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare function AutocompleteItem({ children, onClick, className }: AutocompleteItemProps): import("react/jsx-runtime").JSX.Element;
@@ -15,6 +15,10 @@ export type DialogProps = {
15
15
  onEscapeKeyDown?: (e: KeyboardEvent) => void;
16
16
  onPointerDownOutside?: (e: Event) => void;
17
17
  onInteractOutside?: (e: Event) => void;
18
+ /**
19
+ * If `true`, the dialog will not focus the first focusable element when opened.
20
+ */
21
+ disableInitialFocus?: boolean;
18
22
  };
19
23
  declare const widthClasses: {
20
24
  xs: string;
@@ -30,5 +34,5 @@ declare const widthClasses: {
30
34
  "7xl": string;
31
35
  full: string;
32
36
  };
33
- export declare const Dialog: ({ open, onOpenChange, children, className, containerClassName, fullWidth, fullHeight, fullScreen, scrollable, maxWidth, modal, onOpenAutoFocus, onEscapeKeyDown, onPointerDownOutside, onInteractOutside }: DialogProps) => import("react/jsx-runtime").JSX.Element;
37
+ export declare const Dialog: ({ open, onOpenChange, children, className, containerClassName, fullWidth, fullHeight, fullScreen, scrollable, maxWidth, modal, onOpenAutoFocus, onEscapeKeyDown, onPointerDownOutside, onInteractOutside, disableInitialFocus }: DialogProps) => import("react/jsx-runtime").JSX.Element;
34
38
  export {};
@@ -9,6 +9,7 @@ export type SelectProps<T extends SelectValue = string> = {
9
9
  value?: T;
10
10
  className?: string;
11
11
  inputClassName?: string;
12
+ viewportClassName?: string;
12
13
  onChange?: React.EventHandler<ChangeEvent<HTMLSelectElement>>;
13
14
  onValueChange?: (updatedValue: T) => void;
14
15
  placeholder?: React.ReactNode;
@@ -23,6 +24,7 @@ export type SelectProps<T extends SelectValue = string> = {
23
24
  padding?: boolean;
24
25
  invisible?: boolean;
25
26
  children?: React.ReactNode;
27
+ dataType?: "string" | "number" | "boolean";
26
28
  };
27
29
  export declare const Select: React.ForwardRefExoticComponent<SelectProps<string> & React.RefAttributes<HTMLDivElement>>;
28
30
  export type SelectItemProps<T extends SelectValue = string> = {
package/dist/index.css CHANGED
@@ -71,3 +71,4 @@
71
71
  a {
72
72
  @apply text-blue-600 dark:text-blue-400 dark:hover:text-blue-600 hover:text-blue-800
73
73
  }
74
+