@object-ui/components 15.0.0 → 16.1.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 +169 -0
- package/dist/custom/shimmer-skeleton.d.ts +1 -2
- package/dist/index.css +1411 -2806
- package/dist/index.js +2484 -2431
- package/dist/index.umd.cjs +3 -3
- package/dist/renderers/complex/data-table.d.ts +26 -0
- package/dist/ui/form.d.ts +1 -1
- package/package.json +41 -41
|
@@ -34,4 +34,30 @@ export declare const DataTableRowActionItem: React.FC<{
|
|
|
34
34
|
row: any;
|
|
35
35
|
onActionDef?: (action: RowActionDef, row: any) => void | Promise<void>;
|
|
36
36
|
}>;
|
|
37
|
+
/**
|
|
38
|
+
* A built-in Edit/Delete item in the data-table's row overflow menu, gated by
|
|
39
|
+
* the per-record CEL predicates from the object's `userActions.edit` /
|
|
40
|
+
* `delete` object form (objectui#2614) — `schema.rowEditPredicates` /
|
|
41
|
+
* `rowDeletePredicates`. Mirrors `BuiltinRowActionItem` on the ObjectGrid
|
|
42
|
+
* path so BOTH row-menu renderers honor the predicates identically (the
|
|
43
|
+
* related-list case is where the master-detail scenario from the issue
|
|
44
|
+
* actually renders). Same posture: `visibleWhen` fails CLOSED, `disabledWhen`
|
|
45
|
+
* fails soft. Evaluation only happens when the menu is open (Radix mounts
|
|
46
|
+
* content lazily), so declared predicates cost nothing at table render time.
|
|
47
|
+
*
|
|
48
|
+
* Exported for unit tests — NOT part of the package's public API (the barrel
|
|
49
|
+
* only side-effect-imports this module; see `DataTableRowActionItem`).
|
|
50
|
+
*/
|
|
51
|
+
export declare const DataTableBuiltinRowActionItem: React.FC<{
|
|
52
|
+
name: 'edit' | 'delete';
|
|
53
|
+
predicates?: {
|
|
54
|
+
visibleWhen?: unknown;
|
|
55
|
+
disabledWhen?: unknown;
|
|
56
|
+
};
|
|
57
|
+
row: any;
|
|
58
|
+
icon: React.ReactNode;
|
|
59
|
+
label: string;
|
|
60
|
+
className?: string;
|
|
61
|
+
onSelect: (row: any) => void;
|
|
62
|
+
}>;
|
|
37
63
|
export {};
|
package/dist/ui/form.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
|
8
8
|
*/
|
|
9
9
|
import * as React from "react";
|
|
10
10
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
11
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, handleSubmit, unregister, control, register, setFocus, subscribe, }: import('react-hook-form').FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
11
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, resetDefaultValues, handleSubmit, unregister, control, register, setFocus, subscribe, }: import('react-hook-form').FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
12
12
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React.JSX.Element;
|
|
13
13
|
declare const useFormField: () => {
|
|
14
14
|
invalid: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.1.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",
|
|
@@ -26,55 +26,55 @@
|
|
|
26
26
|
"./style.css": "./dist/index.css"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@radix-ui/react-accordion": "^1.2.
|
|
30
|
-
"@radix-ui/react-alert-dialog": "^1.1.
|
|
31
|
-
"@radix-ui/react-aspect-ratio": "^1.1.
|
|
32
|
-
"@radix-ui/react-avatar": "^1.2.
|
|
33
|
-
"@radix-ui/react-checkbox": "^1.3.
|
|
34
|
-
"@radix-ui/react-collapsible": "^1.1.
|
|
35
|
-
"@radix-ui/react-context-menu": "^2.3.
|
|
36
|
-
"@radix-ui/react-dialog": "^1.1.
|
|
37
|
-
"@radix-ui/react-dropdown-menu": "^2.1.
|
|
38
|
-
"@radix-ui/react-hover-card": "^1.1.
|
|
39
|
-
"@radix-ui/react-label": "^2.1.
|
|
40
|
-
"@radix-ui/react-menubar": "^1.1.
|
|
41
|
-
"@radix-ui/react-navigation-menu": "^1.2.
|
|
42
|
-
"@radix-ui/react-popover": "^1.1.
|
|
43
|
-
"@radix-ui/react-progress": "^1.1.
|
|
44
|
-
"@radix-ui/react-radio-group": "^1.4.
|
|
45
|
-
"@radix-ui/react-scroll-area": "^1.2.
|
|
46
|
-
"@radix-ui/react-select": "^2.3.
|
|
47
|
-
"@radix-ui/react-separator": "^1.1.
|
|
48
|
-
"@radix-ui/react-slider": "^1.4.
|
|
29
|
+
"@radix-ui/react-accordion": "^1.2.17",
|
|
30
|
+
"@radix-ui/react-alert-dialog": "^1.1.20",
|
|
31
|
+
"@radix-ui/react-aspect-ratio": "^1.1.12",
|
|
32
|
+
"@radix-ui/react-avatar": "^1.2.3",
|
|
33
|
+
"@radix-ui/react-checkbox": "^1.3.8",
|
|
34
|
+
"@radix-ui/react-collapsible": "^1.1.17",
|
|
35
|
+
"@radix-ui/react-context-menu": "^2.3.4",
|
|
36
|
+
"@radix-ui/react-dialog": "^1.1.20",
|
|
37
|
+
"@radix-ui/react-dropdown-menu": "^2.1.21",
|
|
38
|
+
"@radix-ui/react-hover-card": "^1.1.20",
|
|
39
|
+
"@radix-ui/react-label": "^2.1.12",
|
|
40
|
+
"@radix-ui/react-menubar": "^1.1.21",
|
|
41
|
+
"@radix-ui/react-navigation-menu": "^1.2.19",
|
|
42
|
+
"@radix-ui/react-popover": "^1.1.20",
|
|
43
|
+
"@radix-ui/react-progress": "^1.1.13",
|
|
44
|
+
"@radix-ui/react-radio-group": "^1.4.4",
|
|
45
|
+
"@radix-ui/react-scroll-area": "^1.2.15",
|
|
46
|
+
"@radix-ui/react-select": "^2.3.4",
|
|
47
|
+
"@radix-ui/react-separator": "^1.1.12",
|
|
48
|
+
"@radix-ui/react-slider": "^1.4.4",
|
|
49
49
|
"@radix-ui/react-slot": "^1.3.0",
|
|
50
|
-
"@radix-ui/react-switch": "^1.3.
|
|
51
|
-
"@radix-ui/react-tabs": "^1.1.
|
|
52
|
-
"@radix-ui/react-toast": "^1.2.
|
|
53
|
-
"@radix-ui/react-toggle": "^1.1.
|
|
54
|
-
"@radix-ui/react-toggle-group": "^1.1.
|
|
55
|
-
"@radix-ui/react-tooltip": "^1.2.
|
|
50
|
+
"@radix-ui/react-switch": "^1.3.4",
|
|
51
|
+
"@radix-ui/react-tabs": "^1.1.18",
|
|
52
|
+
"@radix-ui/react-toast": "^1.2.20",
|
|
53
|
+
"@radix-ui/react-toggle": "^1.1.15",
|
|
54
|
+
"@radix-ui/react-toggle-group": "^1.1.16",
|
|
55
|
+
"@radix-ui/react-tooltip": "^1.2.13",
|
|
56
56
|
"class-variance-authority": "^0.7.1",
|
|
57
57
|
"clsx": "^2.1.1",
|
|
58
58
|
"cmdk": "^1.1.1",
|
|
59
59
|
"date-fns": "^4.4.0",
|
|
60
60
|
"embla-carousel-react": "^8.6.0",
|
|
61
61
|
"input-otp": "^1.4.2",
|
|
62
|
-
"lucide-react": "^1.
|
|
62
|
+
"lucide-react": "^1.25.0",
|
|
63
63
|
"next-themes": "^0.4.6",
|
|
64
64
|
"react-day-picker": "^10.0.1",
|
|
65
|
-
"react-hook-form": "^7.
|
|
65
|
+
"react-hook-form": "^7.82.0",
|
|
66
66
|
"react-resizable-panels": "^4.12.2",
|
|
67
67
|
"recharts": "3.9.2",
|
|
68
68
|
"sonner": "^2.0.7",
|
|
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/react-runtime": "
|
|
76
|
-
"@object-ui/sdui-parser": "
|
|
77
|
-
"@object-ui/types": "
|
|
72
|
+
"@object-ui/core": "16.1.0",
|
|
73
|
+
"@object-ui/i18n": "16.1.0",
|
|
74
|
+
"@object-ui/react": "16.1.0",
|
|
75
|
+
"@object-ui/react-runtime": "16.1.0",
|
|
76
|
+
"@object-ui/sdui-parser": "16.1.0",
|
|
77
|
+
"@object-ui/types": "16.1.0"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -82,16 +82,16 @@
|
|
|
82
82
|
"tailwindcss": "^4.2.1"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@tailwindcss/postcss": "^4.3.
|
|
85
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
86
86
|
"@types/react": "19.2.17",
|
|
87
87
|
"@types/react-dom": "19.2.3",
|
|
88
88
|
"@vitejs/plugin-react": "^6.0.3",
|
|
89
|
-
"autoprefixer": "^10.5.
|
|
90
|
-
"postcss": "^8.5.
|
|
91
|
-
"shadcn": "^4.13.
|
|
92
|
-
"tailwindcss": "^4.3.
|
|
89
|
+
"autoprefixer": "^10.5.4",
|
|
90
|
+
"postcss": "^8.5.20",
|
|
91
|
+
"shadcn": "^4.13.1",
|
|
92
|
+
"tailwindcss": "^4.3.3",
|
|
93
93
|
"typescript": "^6.0.3",
|
|
94
|
-
"vite": "^8.1.
|
|
94
|
+
"vite": "^8.1.5",
|
|
95
95
|
"vite-plugin-dts": "^5.0.3"
|
|
96
96
|
},
|
|
97
97
|
"keywords": [
|