@object-ui/components 4.2.1 → 4.4.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 +115 -0
- package/dist/index.css +22 -0
- package/dist/index.js +2670 -2510
- package/dist/index.umd.cjs +2 -2
- package/dist/packages/components/src/custom/config-panel-renderer.d.ts +3 -1
- package/dist/packages/components/src/renderers/layout/containers.d.ts +19 -0
- package/package.json +5 -5
|
@@ -30,6 +30,8 @@ export interface ConfigPanelRendererProps {
|
|
|
30
30
|
objectDef?: Record<string, any>;
|
|
31
31
|
/** Additional CSS class name */
|
|
32
32
|
className?: string;
|
|
33
|
+
/** Additional inline styles applied to the panel root (e.g. to override `--config-panel-width`). */
|
|
34
|
+
style?: React.CSSProperties;
|
|
33
35
|
/** Label for save button (default: "Save") */
|
|
34
36
|
saveLabel?: string;
|
|
35
37
|
/** Label for discard button (default: "Discard") */
|
|
@@ -78,4 +80,4 @@ export interface ConfigPanelRendererProps {
|
|
|
78
80
|
* Each concrete panel (Dashboard, Form, Page…) only needs to provide
|
|
79
81
|
* a schema and wire up `useConfigDraft`.
|
|
80
82
|
*/
|
|
81
|
-
export declare function ConfigPanelRenderer({ open, onClose, schema, draft, isDirty, onFieldChange, onSave, onDiscard, headerExtra, objectDef, className, saveLabel, discardLabel, panelRef, role, ariaLabel, tabIndex, testId, closeTitle, footerTestId, saveTestId, discardTestId, expandedSections, onUndo, onRedo, canUndo, canRedo, undoLabel, redoLabel, }: ConfigPanelRendererProps): import("react/jsx-runtime").JSX.Element | null;
|
|
83
|
+
export declare function ConfigPanelRenderer({ open, onClose, schema, draft, isDirty, onFieldChange, onSave, onDiscard, headerExtra, objectDef, className, style, saveLabel, discardLabel, panelRef, role, ariaLabel, tabIndex, testId, closeTitle, footerTestId, saveTestId, discardTestId, expandedSections, onUndo, onRedo, canUndo, canRedo, undoLabel, redoLabel, }: ConfigPanelRendererProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ObjectUI
|
|
3
|
+
* Copyright (c) 2024-present ObjectStack Inc.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*
|
|
8
|
+
* Spec-aligned container renderers for the `page:*` component namespace.
|
|
9
|
+
* Backs the Page-as-root record detail page model (Salesforce Lightning
|
|
10
|
+
* Record Page parity).
|
|
11
|
+
*
|
|
12
|
+
* Maps `packages/spec/src/ui/component.zod.ts` props:
|
|
13
|
+
* - PageTabsProps -> page:tabs
|
|
14
|
+
* - PageCardProps -> page:card
|
|
15
|
+
* - PageAccordionProps -> page:accordion
|
|
16
|
+
* - PageHeaderProps -> page:header
|
|
17
|
+
* - page:footer / page:sidebar / page:section thin wrappers
|
|
18
|
+
*/
|
|
19
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.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": "4.
|
|
73
|
-
"@object-ui/i18n": "4.
|
|
74
|
-
"@object-ui/react": "4.
|
|
75
|
-
"@object-ui/types": "4.
|
|
72
|
+
"@object-ui/core": "4.4.0",
|
|
73
|
+
"@object-ui/i18n": "4.4.0",
|
|
74
|
+
"@object-ui/react": "4.4.0",
|
|
75
|
+
"@object-ui/types": "4.4.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"react": "^18.0.0 || ^19.0.0",
|