@firecms/core 3.0.0-tw4.3 → 3.0.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@firecms/core",
3
3
  "type": "module",
4
- "version": "3.0.0-tw4.3",
4
+ "version": "3.0.0",
5
5
  "description": "Awesome Firebase/Firestore-based headless open-source CMS",
6
6
  "funding": {
7
7
  "url": "https://github.com/sponsors/firecmsco"
@@ -53,9 +53,9 @@
53
53
  "@dnd-kit/core": "^6.3.1",
54
54
  "@dnd-kit/modifiers": "^9.0.0",
55
55
  "@dnd-kit/sortable": "^10.0.0",
56
- "@firecms/editor": "^3.0.0-tw4.3",
57
- "@firecms/formex": "^3.0.0-tw4.3",
58
- "@firecms/ui": "^3.0.0-tw4.3",
56
+ "@firecms/editor": "^3.0.0",
57
+ "@firecms/formex": "^3.0.0",
58
+ "@firecms/ui": "^3.0.0",
59
59
  "@radix-ui/react-portal": "^1.1.10",
60
60
  "clsx": "^2.1.1",
61
61
  "compressorjs": "^1.2.1",
@@ -108,7 +108,7 @@
108
108
  "dist",
109
109
  "src"
110
110
  ],
111
- "gitHead": "cd0162fc6759a7e55df77471c3433d89894ce2a1",
111
+ "gitHead": "d106a7fde537c4330ae4ba5471c74d4536dea710",
112
112
  "publishConfig": {
113
113
  "access": "public"
114
114
  },
@@ -228,7 +228,7 @@ function DrawerWrapper(props: {
228
228
  open={props.open}
229
229
  onOpenChange={props.setDrawerOpen}
230
230
  title={"Navigation drawer"}
231
- overlayClassName={"bg-white bg-opacity-80 bg-white/80"}
231
+ overlayClassName={"bg-white bg-opacity-80"}
232
232
  >
233
233
  {innerDrawer}
234
234
  </Sheet>
@@ -186,7 +186,7 @@ export function ArrayContainerItem({
186
186
  <div
187
187
  ref={nodeRef}
188
188
  style={style}
189
- className={`relative ${!isDragging ? "hover\\:bg-surface-accent-50 dark\\:hover\\:bg-surface-800 dark\\:hover\\:bg-opacity-20 dark\\:hover\\:bg-surface-800/20" : ""} rounded-md opacity-100`}
189
+ className={`relative ${!isDragging ? "hover\\:bg-surface-accent-50 dark\\:hover\\:bg-surface-800 dark\\:hover\\:bg-opacity-20" : ""} rounded-md opacity-100`}
190
190
  >
191
191
  <div className="flex items-start">
192
192
  <div className="flex-grow w-[calc(100%-48px)] text-text-primary dark:text-text-primary-dark">
@@ -75,7 +75,7 @@ export const EntityCollectionRowActions = function EntityCollectionRowActions({
75
75
  return (
76
76
  <div
77
77
  className={cls(
78
- "h-full flex items-center justify-center flex-col bg-surface-50 dark:bg-surface-900 bg-opacity-90 bg-surface-50/90 dark:bg-opacity-90 dark:bg-surface-900/90 z-10",
78
+ "h-full flex items-center justify-center flex-col bg-surface-50 dark:bg-surface-900 bg-opacity-90 dark:bg-opacity-90 z-10",
79
79
  frozen ? "sticky left-0" : ""
80
80
  )}
81
81
  onClick={useCallback((event: any) => {
@@ -188,9 +188,9 @@ export const EntityTableCell = React.memo<EntityTableCellProps>(
188
188
  <div
189
189
  className={cls(
190
190
  "transition-colors duration-100 ease-in-out",
191
- `flex relative h-full rounded-md p-${p} border border-4 border-opacity-75`,
191
+ `flex relative h-full rounded-md p-${p} border border-4 border-opacity-75`,
192
192
  onHover && !disabled ? "bg-surface-50 dark:bg-surface-900" : "",
193
- saved ? "bg-surface-100/75 dark:bg-surface-800/75" : "",
193
+ saved ? "bg-surface-100 bg-opacity-75 dark:bg-surface-800 dark:bg-opacity-75" : "",
194
194
  hideOverflow ? "overflow-hidden" : "",
195
195
  isSelected ? "bg-surface-50 dark:bg-surface-900" : "",
196
196
  borderClass
@@ -237,7 +237,7 @@ export const EntityTableCell = React.memo<EntityTableCellProps>(
237
237
  {disabled && onHover && disabledTooltip &&
238
238
  <div className="absolute top-1 right-1 text-xs">
239
239
  <Tooltip title={disabledTooltip}>
240
- <DoNotDisturbOnIcon size={"smallest"} color={"disabled"} className={"text-text-disabled"}/>
240
+ <DoNotDisturbOnIcon size={"smallest"} color={"disabled"} className={"text-surface-500"}/>
241
241
  </Tooltip>
242
242
  </div>}
243
243
 
@@ -136,7 +136,7 @@ export function ReferenceWidget<M extends Record<string, any>>({
136
136
  "min-w-80 flex flex-col gap-4",
137
137
  "relative transition-colors duration-200 ease-in rounded font-medium",
138
138
  disabled ? "bg-opacity-50" : "hover:bg-opacity-75",
139
- "text-opacity-50 text-text-primary/50 dark:text-white dark:text-opacity-50 dark:text-white/50",
139
+ "text-opacity-50 dark:text-white dark:text-opacity-50",
140
140
  className
141
141
  )}
142
142
  >
@@ -247,7 +247,7 @@ export const SelectableTable = function SelectableTable<M extends Record<string,
247
247
  checkFilterCombination={checkFilterCombination}
248
248
  createFilterField={filterable ? createFilterField : undefined}
249
249
  rowClassName={useCallback((entity: Entity<M>) => {
250
- return highlightedRow?.(entity) ? "bg-surface-100 bg-opacity-75 bg-surface-100/75 dark:bg-surface-800 dark:bg-opacity-75 dark:bg-surface-800/75" : "";
250
+ return highlightedRow?.(entity) ? "bg-surface-100 bg-opacity-75 dark:bg-surface-800 dark:bg-opacity-75" : "";
251
251
  }, [highlightedRow])}
252
252
  className="flex-grow"
253
253
  emptyComponent={emptyComponent}
@@ -87,7 +87,7 @@ export const VirtualTableHeader = React.memo<VirtualTableHeaderProps<any>>(
87
87
  <div
88
88
  className={cls("flex py-0 px-3 h-full text-xs uppercase font-semibold relative select-none items-center bg-surface-50 dark:bg-surface-900",
89
89
  "text-text-secondary hover:text-text-primary dark:text-text-secondary-dark dark:hover:text-text-primary-dark",
90
- "hover:bg-surface-100 dark:hover:bg-surface-800 hover:bg-opacity-50 hover:bg-surface-100/50 dark:hover:bg-opacity-50 dark:hover:bg-surface-800/50",
90
+ "hover:bg-surface-100 dark:hover:bg-surface-800 hover:bg-opacity-50 dark:hover:bg-opacity-50",
91
91
  column.frozen ? "sticky left-0 z-10" : "relative z-0"
92
92
  )}
93
93
  style={{
@@ -29,7 +29,7 @@ export const VirtualTableRow = React.memo<VirtualTableRowProps<any>>(
29
29
  return (
30
30
  <div
31
31
  className={cls(
32
- "flex min-w-full text-sm border-b border-surface-200 dark:border-surface-800 border-opacity-40 border-surface-200/40 dark:border-opacity-40 dark:border-surface-800/40",
32
+ "flex min-w-full text-sm border-b border-surface-200 dark:border-surface-800 border-opacity-40 dark:border-opacity-40",
33
33
  rowClassName ? rowClassName(rowData) : "",
34
34
  {
35
35
  "hover:bg-opacity-95": hoverRow,
@@ -85,7 +85,7 @@ export function DefaultDrawer({
85
85
 
86
86
  {groupsWithoutAdmin.map((group) => (
87
87
  <div
88
- className={"bg-surface-50 dark:bg-surface-800 dark:bg-opacity-30 dark:bg-surface-800/30 bg-surface-50 dark:bg-surface-800/30 my-4 rounded-lg ml-3 mr-1"}
88
+ className={"bg-surface-50 dark:bg-surface-800 dark:bg-opacity-30 my-4 rounded-lg ml-3 mr-1"}
89
89
  key={`drawer_group_${group}`}>
90
90
  {buildGroupHeader(group)}
91
91
  {Object.values(navigationEntries)
@@ -34,13 +34,13 @@ export function DrawerNavigationItem({
34
34
  transition: drawerOpen ? "width 150ms ease-in" : undefined
35
35
  }}
36
36
  className={({ isActive }: any) => cls("rounded-lg truncate",
37
- "hover:bg-surface-accent-300 hover:bg-opacity-75 hover:bg-surface-accent-300/75 dark:hover:bg-surface-accent-800 dark:hover:bg-opacity-75 dark:hover:bg-surface-accent-800/75 text-text-primary dark:text-surface-200 hover:text-surface-900 hover:dark:text-white hover:bg-surface-accent-300/75 dark:hover:bg-surface-accent-800/75",
37
+ "hover:bg-surface-accent-300 hover:bg-opacity-75 dark:hover:bg-surface-accent-800 dark:hover:bg-opacity-75 text-text-primary dark:text-surface-200 hover:text-surface-900 hover:dark:text-white",
38
38
  "flex flex-row items-center mr-8",
39
39
  // "transition-all ease-in-out delay-100 duration-300",
40
40
  // drawerOpen ? "w-full" : "w-18",
41
41
  drawerOpen ? "pl-4 h-10" : "pl-4 h-9",
42
42
  "font-semibold text-xs",
43
- isActive ? "bg-surface-accent-200 bg-opacity-60 dark:bg-surface-800 dark:bg-opacity-50 bg-surface-accent-200/60 dark:bg-surface-800/50" : ""
43
+ isActive ? "bg-surface-accent-200 bg-opacity-60 dark:bg-surface-800 dark:bg-opacity-50" : ""
44
44
  )}
45
45
  to={url}
46
46
  >
@@ -49,9 +49,8 @@ export function DrawerNavigationItem({
49
49
 
50
50
  <div
51
51
  className={cls(
52
- "text-text-primary dark:text-surface-200",
53
52
  drawerOpen ? "opacity-100" : "opacity-0 hidden",
54
- "ml-4 font-inherit"
53
+ "ml-4 font-inherit text-inherit"
55
54
  )}>
56
55
  {name.toUpperCase()}
57
56
  </div>
@@ -6,5 +6,5 @@ import React from "react";
6
6
  export function EmptyValue() {
7
7
 
8
8
  return <div
9
- className="rounded-full bg-surface-200 bg-opacity-30 bg-surface-200/30 dark:bg-opacity-20 dark:bg-surface-200/20 w-5 h-2 inline-block"/>;
9
+ className="rounded-full bg-surface-200 bg-opacity-30 dark:bg-opacity-20 w-5 h-2 inline-block"/>;
10
10
  }