@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.
- package/dist/components/ExpandablePanel.d.ts +2 -1
- package/dist/components/FileUpload.d.ts +1 -1
- package/dist/components/Sheet.d.ts +1 -0
- package/dist/index.es.js +8 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +8 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +31 -30
- package/src/components/ExpandablePanel.tsx +8 -5
- package/src/components/FileUpload.tsx +1 -1
- package/src/components/Sheet.tsx +4 -2
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@firecms/ui",
|
3
3
|
"type": "module",
|
4
|
-
"version": "3.0.0-canary.
|
4
|
+
"version": "3.0.0-canary.133",
|
5
5
|
"description": "Awesome Firebase/Firestore-based headless open-source CMS",
|
6
6
|
"funding": {
|
7
7
|
"url": "https://github.com/sponsors/firecmsco"
|
@@ -49,29 +49,30 @@
|
|
49
49
|
"generateIcons": "ts-node --esm src/scripts/generateIcons.ts"
|
50
50
|
},
|
51
51
|
"dependencies": {
|
52
|
-
"@radix-ui/react-checkbox": "^1.1.
|
53
|
-
"@radix-ui/react-collapsible": "^1.1.
|
54
|
-
"@radix-ui/react-dialog": "^1.1.
|
55
|
-
"@radix-ui/react-dropdown-menu": "^2.1.
|
52
|
+
"@radix-ui/react-checkbox": "^1.1.2",
|
53
|
+
"@radix-ui/react-collapsible": "^1.1.1",
|
54
|
+
"@radix-ui/react-dialog": "^1.1.2",
|
55
|
+
"@radix-ui/react-dropdown-menu": "^2.1.2",
|
56
56
|
"@radix-ui/react-label": "^2.1.0",
|
57
|
-
"@radix-ui/react-menubar": "^1.1.
|
58
|
-
"@radix-ui/react-popover": "^1.1.
|
59
|
-
"@radix-ui/react-portal": "^1.1.
|
60
|
-
"@radix-ui/react-radio-group": "^1.2.
|
61
|
-
"@radix-ui/react-scroll-area": "^1.
|
62
|
-
"@radix-ui/react-select": "^2.1.
|
57
|
+
"@radix-ui/react-menubar": "^1.1.2",
|
58
|
+
"@radix-ui/react-popover": "^1.1.2",
|
59
|
+
"@radix-ui/react-portal": "^1.1.2",
|
60
|
+
"@radix-ui/react-radio-group": "^1.2.1",
|
61
|
+
"@radix-ui/react-scroll-area": "^1.2.0",
|
62
|
+
"@radix-ui/react-select": "^2.1.2",
|
63
63
|
"@radix-ui/react-separator": "^1.1.0",
|
64
|
-
"@radix-ui/react-switch": "^1.1.
|
65
|
-
"@radix-ui/react-tabs": "^1.1.
|
66
|
-
"@radix-ui/react-tooltip": "^1.1.
|
64
|
+
"@radix-ui/react-switch": "^1.1.1",
|
65
|
+
"@radix-ui/react-tabs": "^1.1.1",
|
66
|
+
"@radix-ui/react-tooltip": "^1.1.3",
|
67
67
|
"clsx": "^2.1.1",
|
68
68
|
"cmdk": "^0.2.1",
|
69
69
|
"date-fns": "^3.6.0",
|
70
|
-
"
|
71
|
-
"
|
72
|
-
"react-
|
70
|
+
"markdown-it": "^14.1.0",
|
71
|
+
"material-icons": "^1.13.12",
|
72
|
+
"react-datepicker": "^7.4.0",
|
73
|
+
"react-dropzone": "^14.2.9",
|
73
74
|
"react-fast-compare": "^3.2.2",
|
74
|
-
"tailwind-merge": "^2.
|
75
|
+
"tailwind-merge": "^2.5.3"
|
75
76
|
},
|
76
77
|
"peerDependencies": {
|
77
78
|
"react": "^18.3.1",
|
@@ -79,25 +80,25 @@
|
|
79
80
|
},
|
80
81
|
"devDependencies": {
|
81
82
|
"@jest/globals": "^29.7.0",
|
82
|
-
"@testing-library/jest-dom": "^6.
|
83
|
-
"@testing-library/react": "^
|
83
|
+
"@testing-library/jest-dom": "^6.5.0",
|
84
|
+
"@testing-library/react": "^16.0.1",
|
84
85
|
"@testing-library/user-event": "^14.5.2",
|
85
|
-
"@types/jest": "^29.5.
|
86
|
-
"@types/node": "^20.
|
86
|
+
"@types/jest": "^29.5.13",
|
87
|
+
"@types/node": "^20.16.11",
|
87
88
|
"@types/object-hash": "^3.0.6",
|
88
|
-
"@types/react": "^18.3.
|
89
|
+
"@types/react": "^18.3.11",
|
89
90
|
"@types/react-dom": "^18.3.0",
|
90
91
|
"@types/react-measure": "^2.0.12",
|
91
|
-
"@vitejs/plugin-react": "^4.3.
|
92
|
+
"@vitejs/plugin-react": "^4.3.2",
|
92
93
|
"cross-env": "^7.0.3",
|
93
|
-
"firebase": "^10.
|
94
|
+
"firebase": "^10.14.0",
|
94
95
|
"jest": "^29.7.0",
|
95
96
|
"npm-run-all": "^4.1.5",
|
96
|
-
"ts-jest": "^29.2.
|
97
|
+
"ts-jest": "^29.2.5",
|
97
98
|
"ts-node": "^10.9.2",
|
98
|
-
"tsd": "^0.31.
|
99
|
-
"typescript": "^5.
|
100
|
-
"vite": "^5.
|
99
|
+
"tsd": "^0.31.2",
|
100
|
+
"typescript": "^5.6.3",
|
101
|
+
"vite": "^5.4.8",
|
101
102
|
"vite-plugin-static-copy": "^1.0.6"
|
102
103
|
},
|
103
104
|
"files": [
|
@@ -105,7 +106,7 @@
|
|
105
106
|
"src",
|
106
107
|
"tailwind.config.js"
|
107
108
|
],
|
108
|
-
"gitHead": "
|
109
|
+
"gitHead": "b8b711f9dd66ea8c5326bfe003df80b6f111e5f9",
|
109
110
|
"publishConfig": {
|
110
111
|
"access": "public"
|
111
112
|
}
|
@@ -15,7 +15,8 @@ export function ExpandablePanel({
|
|
15
15
|
initiallyExpanded = true,
|
16
16
|
titleClassName,
|
17
17
|
asField,
|
18
|
-
className
|
18
|
+
className,
|
19
|
+
innerClassName
|
19
20
|
}: PropsWithChildren<{
|
20
21
|
title: React.ReactNode,
|
21
22
|
invisible?: boolean,
|
@@ -24,7 +25,8 @@ export function ExpandablePanel({
|
|
24
25
|
onExpandedChange?: (expanded: boolean) => void,
|
25
26
|
titleClassName?: string,
|
26
27
|
asField?: boolean,
|
27
|
-
className?: string
|
28
|
+
className?: string,
|
29
|
+
innerClassName?: string
|
28
30
|
}>) {
|
29
31
|
|
30
32
|
useInjectStyles("ExpandablePanel", `
|
@@ -79,7 +81,8 @@ export function ExpandablePanel({
|
|
79
81
|
className={cls(
|
80
82
|
!invisible && defaultBorderMixin + " border",
|
81
83
|
"rounded-md",
|
82
|
-
"w-full"
|
84
|
+
"w-full",
|
85
|
+
className
|
83
86
|
)}
|
84
87
|
open={open}
|
85
88
|
onOpenChange={(updatedOpen: boolean) => {
|
@@ -90,7 +93,7 @@ export function ExpandablePanel({
|
|
90
93
|
<Collapsible.Trigger
|
91
94
|
className={cls(
|
92
95
|
"rounded flex items-center justify-between w-full min-h-[52px]",
|
93
|
-
"hover:bg-slate-
|
96
|
+
"hover:bg-slate-200 hover:bg-opacity-20 dark:hover:bg-gray-800 dark:hover:bg-opacity-20",
|
94
97
|
invisible ? "border-b px-2" : "p-4",
|
95
98
|
invisible && defaultBorderMixin,
|
96
99
|
asField && fieldBackgroundMixin,
|
@@ -107,7 +110,7 @@ export function ExpandablePanel({
|
|
107
110
|
overflow: allowOverflow ? "visible" : "hidden"
|
108
111
|
}}
|
109
112
|
>
|
110
|
-
<div className={
|
113
|
+
<div className={innerClassName}>
|
111
114
|
{children}
|
112
115
|
</div>
|
113
116
|
</Collapsible.Content>
|
@@ -11,7 +11,7 @@ export interface FileUploadError {
|
|
11
11
|
|
12
12
|
export type OnFileUploadRejected = (fileRejections: {
|
13
13
|
file: File;
|
14
|
-
errors: FileUploadError[];
|
14
|
+
errors: readonly FileUploadError[];
|
15
15
|
}[], event: object) => void;
|
16
16
|
|
17
17
|
export type OnFilesUploadAdded = (files: File[]) => void;
|
package/src/components/Sheet.tsx
CHANGED
@@ -7,6 +7,7 @@ interface SheetProps {
|
|
7
7
|
children: React.ReactNode;
|
8
8
|
open: boolean;
|
9
9
|
title?: string;
|
10
|
+
modal?: boolean;
|
10
11
|
side?: "top" | "bottom" | "left" | "right";
|
11
12
|
darkBackground?: boolean;
|
12
13
|
transparent?: boolean;
|
@@ -19,6 +20,7 @@ export const Sheet: React.FC<SheetProps> = ({
|
|
19
20
|
children,
|
20
21
|
side = "right",
|
21
22
|
title,
|
23
|
+
modal = true,
|
22
24
|
open,
|
23
25
|
onOpenChange,
|
24
26
|
transparent,
|
@@ -56,7 +58,7 @@ export const Sheet: React.FC<SheetProps> = ({
|
|
56
58
|
<DialogPrimitive.Title autoFocus tabIndex={0}>
|
57
59
|
{title ?? "Sheet"}
|
58
60
|
</DialogPrimitive.Title>
|
59
|
-
<DialogPrimitive.Overlay
|
61
|
+
{modal && <DialogPrimitive.Overlay
|
60
62
|
className={cls(
|
61
63
|
"fixed inset-0 transition-opacity z-20 ease-in-out duration-100 backdrop-blur-sm",
|
62
64
|
"bg-black bg-opacity-50",
|
@@ -68,7 +70,7 @@ export const Sheet: React.FC<SheetProps> = ({
|
|
68
70
|
pointerEvents: displayed ? "auto" : "none"
|
69
71
|
}}
|
70
72
|
onClick={() => onOpenChange && onOpenChange(false)}
|
71
|
-
/>
|
73
|
+
/>}
|
72
74
|
<DialogPrimitive.Content
|
73
75
|
{...props}
|
74
76
|
onFocusCapture={(event) => event.preventDefault()}
|