@donotdev/core 0.0.42 → 0.0.44
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/index.d.ts +7 -10
- package/next/index.js +25 -25
- package/package.json +2 -2
- package/server.d.ts +6 -9
- package/vite/index.js +31 -31
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@donotdev/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.44",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
],
|
|
53
53
|
"sideEffects": false,
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@donotdev/components": "^0.0.
|
|
55
|
+
"@donotdev/components": "^0.0.32",
|
|
56
56
|
"lucide-react": "^0.575.0",
|
|
57
57
|
"react": "^19.2.4",
|
|
58
58
|
"react-dom": "^19.2.4",
|
package/server.d.ts
CHANGED
|
@@ -7028,6 +7028,10 @@ interface EntityCardListProps extends EntityBrowseBaseProps {
|
|
|
7028
7028
|
* @default 'ghost' (transparent — inherits parent background)
|
|
7029
7029
|
*/
|
|
7030
7030
|
tone?: 'ghost' | 'base' | 'muted' | 'contrast' | 'accent';
|
|
7031
|
+
/** Make filter/results sections collapsible. @default false */
|
|
7032
|
+
collapsible?: boolean;
|
|
7033
|
+
/** Initial open state when collapsible. Only relevant when `collapsible` is true. */
|
|
7034
|
+
defaultOpen?: boolean;
|
|
7031
7035
|
}
|
|
7032
7036
|
/**
|
|
7033
7037
|
* Props for CrudCard — presentational card built from entity + item + field slots.
|
|
@@ -7042,13 +7046,8 @@ interface CrudCardProps {
|
|
|
7042
7046
|
/** The entity definition (for entity.fields and formatting) */
|
|
7043
7047
|
entity: Entity;
|
|
7044
7048
|
/**
|
|
7045
|
-
*
|
|
7046
|
-
*
|
|
7047
|
-
*/
|
|
7048
|
-
detailHref?: string;
|
|
7049
|
-
/**
|
|
7050
|
-
* Called when card is clicked. If detailHref is also set, Link handles navigation;
|
|
7051
|
-
* use onClick only when overriding (e.g. open sheet). If no detailHref, onClick is used for navigation.
|
|
7049
|
+
* Called when card is clicked (e.g. open sheet instead of navigating).
|
|
7050
|
+
* Navigation via Link is handled by the parent wrapper (CrudCardLink), not by CrudCard itself.
|
|
7052
7051
|
*/
|
|
7053
7052
|
onClick?: (id: string) => void;
|
|
7054
7053
|
/** Field names for card title (values joined with space) */
|
|
@@ -7063,8 +7062,6 @@ interface CrudCardProps {
|
|
|
7063
7062
|
showDelete?: boolean;
|
|
7064
7063
|
/** Optional actions slot (e.g. favorites heart) rendered in card corner */
|
|
7065
7064
|
renderActions?: ReactNode;
|
|
7066
|
-
/** Card elevated style */
|
|
7067
|
-
elevated?: boolean;
|
|
7068
7065
|
/** Optional className for the card wrapper */
|
|
7069
7066
|
className?: string;
|
|
7070
7067
|
}
|