@object-ui/components 4.0.6 → 4.0.7

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.
@@ -25,6 +25,12 @@ export interface FilterBuilderProps {
25
25
  value: string;
26
26
  label: string;
27
27
  }>;
28
+ /** For lookup/master_detail/user/owner fields — referenced object name */
29
+ referenceTo?: string;
30
+ /** Display field on the referenced object (defaults to "name") */
31
+ displayField?: string;
32
+ /** ID field on the referenced object (defaults to "id") */
33
+ idField?: string;
28
34
  }>;
29
35
  value?: FilterGroup;
30
36
  onChange?: (value: FilterGroup) => void;
@@ -35,4 +41,18 @@ declare function FilterBuilder({ fields, value, onChange, className, showClearAl
35
41
  declare namespace FilterBuilder {
36
42
  var displayName: string;
37
43
  }
38
- export { FilterBuilder };
44
+ interface LookupValuePickerProps {
45
+ field: {
46
+ value: string;
47
+ label: string;
48
+ type?: string;
49
+ referenceTo?: string;
50
+ displayField?: string;
51
+ idField?: string;
52
+ };
53
+ value: FilterCondition["value"];
54
+ multiple: boolean;
55
+ onChange: (value: FilterCondition["value"]) => void;
56
+ }
57
+ declare function LookupValuePicker({ field, value, multiple, onChange }: LookupValuePickerProps): import("react/jsx-runtime").JSX.Element;
58
+ export { FilterBuilder, LookupValuePicker };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@object-ui/components",
3
- "version": "4.0.6",
3
+ "version": "4.0.7",
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.5.0",
70
70
  "tailwindcss-animate": "^1.0.7",
71
71
  "vaul": "^1.1.2",
72
- "@object-ui/core": "4.0.6",
73
- "@object-ui/react": "4.0.6",
74
- "@object-ui/types": "4.0.6",
75
- "@object-ui/i18n": "4.0.6"
72
+ "@object-ui/core": "4.0.7",
73
+ "@object-ui/i18n": "4.0.7",
74
+ "@object-ui/react": "4.0.7",
75
+ "@object-ui/types": "4.0.7"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "react": "^18.0.0 || ^19.0.0",