@firecms/ui 3.0.0-canary.131 → 3.0.0-canary.133

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.
@@ -1,5 +1,5 @@
1
1
  import React, { PropsWithChildren } from "react";
2
- export declare function ExpandablePanel({ title, children, invisible, expanded, onExpandedChange, initiallyExpanded, titleClassName, asField, className }: PropsWithChildren<{
2
+ export declare function ExpandablePanel({ title, children, invisible, expanded, onExpandedChange, initiallyExpanded, titleClassName, asField, className, innerClassName }: PropsWithChildren<{
3
3
  title: React.ReactNode;
4
4
  invisible?: boolean;
5
5
  initiallyExpanded?: boolean;
@@ -8,4 +8,5 @@ export declare function ExpandablePanel({ title, children, invisible, expanded,
8
8
  titleClassName?: string;
9
9
  asField?: boolean;
10
10
  className?: string;
11
+ innerClassName?: string;
11
12
  }>): import("react/jsx-runtime").JSX.Element;
@@ -5,7 +5,7 @@ export interface FileUploadError {
5
5
  }
6
6
  export type OnFileUploadRejected = (fileRejections: {
7
7
  file: File;
8
- errors: FileUploadError[];
8
+ errors: readonly FileUploadError[];
9
9
  }[], event: object) => void;
10
10
  export type OnFilesUploadAdded = (files: File[]) => void;
11
11
  export type FileUploadProps = {
@@ -3,6 +3,7 @@ interface SheetProps {
3
3
  children: React.ReactNode;
4
4
  open: boolean;
5
5
  title?: string;
6
+ modal?: boolean;
6
7
  side?: "top" | "bottom" | "left" | "right";
7
8
  darkBackground?: boolean;
8
9
  transparent?: boolean;
package/dist/index.es.js CHANGED
@@ -14943,7 +14943,8 @@ function ExpandablePanel({
14943
14943
  initiallyExpanded = true,
14944
14944
  titleClassName,
14945
14945
  asField,
14946
- className
14946
+ className,
14947
+ innerClassName
14947
14948
  }) {
14948
14949
  useInjectStyles("ExpandablePanel", `
14949
14950
  .CollapsibleContent {
@@ -14994,7 +14995,8 @@ function ExpandablePanel({
14994
14995
  className: cls(
14995
14996
  !invisible && defaultBorderMixin + " border",
14996
14997
  "rounded-md",
14997
- "w-full"
14998
+ "w-full",
14999
+ className
14998
15000
  ),
14999
15001
  open,
15000
15002
  onOpenChange: (updatedOpen) => {
@@ -15007,7 +15009,7 @@ function ExpandablePanel({
15007
15009
  {
15008
15010
  className: cls(
15009
15011
  "rounded flex items-center justify-between w-full min-h-[52px]",
15010
- "hover:bg-slate-50 dark:hover:bg-gray-800 dark:hover:bg-opacity-20",
15012
+ "hover:bg-slate-200 hover:bg-opacity-20 dark:hover:bg-gray-800 dark:hover:bg-opacity-20",
15011
15013
  invisible ? "border-b px-2" : "p-4",
15012
15014
  invisible && defaultBorderMixin,
15013
15015
  asField && fieldBackgroundMixin,
@@ -15026,7 +15028,7 @@ function ExpandablePanel({
15026
15028
  style: {
15027
15029
  overflow: allowOverflow ? "visible" : "hidden"
15028
15030
  },
15029
- children: /* @__PURE__ */ jsx("div", { className, children })
15031
+ children: /* @__PURE__ */ jsx("div", { className: innerClassName, children })
15030
15032
  }
15031
15033
  )
15032
15034
  ]
@@ -16190,6 +16192,7 @@ const Sheet = ({
16190
16192
  children,
16191
16193
  side = "right",
16192
16194
  title,
16195
+ modal = true,
16193
16196
  open,
16194
16197
  onOpenChange,
16195
16198
  transparent,
@@ -16223,7 +16226,7 @@ const Sheet = ({
16223
16226
  onOpenChange,
16224
16227
  children: /* @__PURE__ */ jsxs(DialogPrimitive.Portal, { children: [
16225
16228
  /* @__PURE__ */ jsx(DialogPrimitive.Title, { autoFocus: true, tabIndex: 0, children: title ?? "Sheet" }),
16226
- /* @__PURE__ */ jsx(
16229
+ modal && /* @__PURE__ */ jsx(
16227
16230
  DialogPrimitive.Overlay,
16228
16231
  {
16229
16232
  className: cls(