@viliha/vui-ui 1.1.0 → 1.1.2
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/AGENT.md +14 -0
- package/package.json +1 -1
- package/src/input.tsx +1 -1
- package/src/record-view.tsx +1 -1
package/AGENT.md
CHANGED
|
@@ -226,6 +226,20 @@ Allow RecordView to manage:
|
|
|
226
226
|
- bulk actions
|
|
227
227
|
- import/export
|
|
228
228
|
|
|
229
|
+
## Add / edit form
|
|
230
|
+
|
|
231
|
+
The buffered add/edit form renders in one of two layouts:
|
|
232
|
+
|
|
233
|
+
- **Slide-over panel** — the default; nothing to configure.
|
|
234
|
+
- **Full-page form** — set `formMode="page"` (with `formColumns={1 | 2}`). Add
|
|
235
|
+
`formDescription` and a per-field `description` to show an AWS-style help
|
|
236
|
+
panel beside the form.
|
|
237
|
+
|
|
238
|
+
For the form on its own URL, render the exported `RecordForm` on a route and use
|
|
239
|
+
controlled data (`data` + `onDataChange`) with `onCreate` / `onView` / `onEdit`
|
|
240
|
+
to navigate instead of opening the overlay. Breadcrumbs everywhere come from the
|
|
241
|
+
shared `@viliha/vui-ui/breadcrumbs` component.
|
|
242
|
+
|
|
229
243
|
---
|
|
230
244
|
|
|
231
245
|
# Charts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viliha/vui-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Vui UI — a clean, token-driven React admin/CRM component library built on Tailwind CSS v4, shadcn-style patterns, and Radix Icons. Ships as TypeScript source (Just-in-Time), compiled by the consuming app.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Suman Bonakurthi",
|
package/src/input.tsx
CHANGED
|
@@ -14,7 +14,7 @@ export const Input = React.forwardRef<
|
|
|
14
14
|
"placeholder:text-muted-foreground",
|
|
15
15
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background",
|
|
16
16
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
17
|
-
"file:border-0 file:bg-transparent file:
|
|
17
|
+
"file:border-0 file:bg-transparent file:font-medium",
|
|
18
18
|
className,
|
|
19
19
|
)}
|
|
20
20
|
{...props}
|
package/src/record-view.tsx
CHANGED
|
@@ -1515,7 +1515,7 @@ function RecordDetailPanel<T extends { id: RowId }>({
|
|
|
1515
1515
|
|
|
1516
1516
|
// Footer actions — View shows Close/Edit; Add/Edit shows Cancel/Save.
|
|
1517
1517
|
const formFooter = (
|
|
1518
|
-
<div className="flex shrink-0 items-center justify-end gap-2 border-
|
|
1518
|
+
<div className="flex shrink-0 items-center justify-end gap-2 border-y border-border bg-muted/40 px-4 py-3">
|
|
1519
1519
|
{readOnly ? (
|
|
1520
1520
|
<>
|
|
1521
1521
|
<Button onClick={() => dismiss(onCancel)}>
|