@object-ui/components 4.8.0 → 5.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/CHANGELOG.md +253 -0
- package/dist/index.css +51 -0
- package/dist/index.js +2867 -2626
- package/dist/index.umd.cjs +3 -3
- package/dist/packages/components/src/custom/RecordTitleChip.d.ts +25 -0
- package/dist/packages/components/src/custom/index.d.ts +1 -0
- package/dist/packages/components/src/hooks/related-count-store.d.ts +2 -2
- package/dist/packages/components/src/renderers/layout/containers.d.ts +10 -1
- package/package.json +5 -5
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface RecordTitleChipProps {
|
|
3
|
+
/** Resolved title text (already interpolated against the record). */
|
|
4
|
+
title: string;
|
|
5
|
+
/** Optional icon node (object icon, e.g. <Lucide /> or an emoji). */
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
/** Object label shown beneath the title (e.g. "Lead"). */
|
|
8
|
+
objectLabel?: string;
|
|
9
|
+
/** Record identifier shown next to the object label with a copy button. */
|
|
10
|
+
resourceId?: string;
|
|
11
|
+
/** Hide the favourite star (default: shown). */
|
|
12
|
+
showStar?: boolean;
|
|
13
|
+
/** Hide the copy-id button (default: shown when `resourceId` is given). */
|
|
14
|
+
showCopyId?: boolean;
|
|
15
|
+
/** Controlled favourite state. When omitted, the chip manages its own. */
|
|
16
|
+
isFavorite?: boolean;
|
|
17
|
+
/** Called when the favourite star is toggled. */
|
|
18
|
+
onToggleFavorite?: (next: boolean) => void;
|
|
19
|
+
/** Extra classes for the outer flex column. */
|
|
20
|
+
className?: string;
|
|
21
|
+
/** Optional inline action node rendered after the title (e.g. badges). */
|
|
22
|
+
inlineExtras?: React.ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export declare const RecordTitleChip: React.FC<RecordTitleChipProps>;
|
|
25
|
+
export default RecordTitleChip;
|
|
@@ -18,6 +18,7 @@ export * from './sort-builder';
|
|
|
18
18
|
export * from './grouping-editor';
|
|
19
19
|
export * from './action-param-dialog';
|
|
20
20
|
export * from './view-skeleton';
|
|
21
|
+
export * from './RecordTitleChip';
|
|
21
22
|
export * from './refresh-indicator';
|
|
22
23
|
export * from './view-states';
|
|
23
24
|
export * from './mobile-dialog-content';
|
|
@@ -16,4 +16,13 @@
|
|
|
16
16
|
* - PageHeaderProps -> page:header
|
|
17
17
|
* - page:footer / page:sidebar / page:section thin wrappers
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Strip dangling connectors that survive when a `titleFormat` interpolates
|
|
21
|
+
* with one side empty — e.g. `{number} - {name}` becomes `CTR-0001 -` when
|
|
22
|
+
* `name` is blank. Removes a trailing/leading hyphen / middle-dot / colon /
|
|
23
|
+
* slash / pipe (optionally surrounded by whitespace) and collapses
|
|
24
|
+
* adjacent whitespace into a single space. Idempotent.
|
|
25
|
+
*
|
|
26
|
+
* Exported for unit tests.
|
|
27
|
+
*/
|
|
28
|
+
export declare function cleanupTitleSeparators(s: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Standard UI component library for Object UI, built with Shadcn UI + Tailwind CSS",
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
"tailwind-merge": "^3.6.0",
|
|
70
70
|
"tailwindcss-animate": "^1.0.7",
|
|
71
71
|
"vaul": "^1.1.2",
|
|
72
|
-
"@object-ui/core": "
|
|
73
|
-
"@object-ui/i18n": "
|
|
74
|
-
"@object-ui/react": "
|
|
75
|
-
"@object-ui/types": "
|
|
72
|
+
"@object-ui/core": "5.0.0",
|
|
73
|
+
"@object-ui/i18n": "5.0.0",
|
|
74
|
+
"@object-ui/react": "5.0.0",
|
|
75
|
+
"@object-ui/types": "5.0.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"react": "^18.0.0 || ^19.0.0",
|