@camstack/ui-library 1.2.346 → 1.2.347
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 +6 -0
- package/dist/composites/item-form-dialog.d.ts +7 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.347] - 2026-10-29
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- ItemFormDialog accepts fill, so a child can take the dialog's remaining height and scroll inside it
|
|
15
|
+
|
|
10
16
|
## [1.2.346] - 2026-10-28
|
|
11
17
|
|
|
12
18
|
### Changed
|
|
@@ -28,5 +28,11 @@ export interface ItemFormDialogProps {
|
|
|
28
28
|
/** Footer actions (Save, …). Dismiss is the Dialog Close control, not a second Cancel. */
|
|
29
29
|
readonly footer?: ReactNode;
|
|
30
30
|
readonly testId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The body is a flex column, so a child with `min-h-0 flex-1` takes the
|
|
33
|
+
* dialog's remaining height and scrolls inside it (a long picker). Off by
|
|
34
|
+
* default: the body scrolls as a whole.
|
|
35
|
+
*/
|
|
36
|
+
readonly fill?: boolean;
|
|
31
37
|
}
|
|
32
|
-
export declare function ItemFormDialog({ open, onClose, title, icon: Icon, error, width, children, beforeBody, footer, testId }: ItemFormDialogProps): JSX.Element | null;
|
|
38
|
+
export declare function ItemFormDialog({ open, onClose, title, icon: Icon, error, width, children, beforeBody, footer, testId, fill }: ItemFormDialogProps): JSX.Element | null;
|
package/dist/index.cjs
CHANGED
|
@@ -63460,7 +63460,7 @@ function SectionToolbar({ start, end, className, testId }) {
|
|
|
63460
63460
|
}
|
|
63461
63461
|
//#endregion
|
|
63462
63462
|
//#region src/composites/item-form-dialog.tsx
|
|
63463
|
-
function ItemFormDialog({ open, onClose, title, icon: Icon, error, width = "lg", children, beforeBody, footer, testId }) {
|
|
63463
|
+
function ItemFormDialog({ open, onClose, title, icon: Icon, error, width = "lg", children, beforeBody, footer, testId, fill = false }) {
|
|
63464
63464
|
if (!open) return null;
|
|
63465
63465
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Dialog, {
|
|
63466
63466
|
open: true,
|
|
@@ -63493,7 +63493,7 @@ function ItemFormDialog({ open, onClose, title, icon: Icon, error, width = "lg",
|
|
|
63493
63493
|
children: beforeBody
|
|
63494
63494
|
}),
|
|
63495
63495
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogBody, {
|
|
63496
|
-
className: "space-y-3 px-1",
|
|
63496
|
+
className: fill ? "flex flex-col gap-3 px-1" : "space-y-3 px-1",
|
|
63497
63497
|
children
|
|
63498
63498
|
}),
|
|
63499
63499
|
footer != null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogFooter, {
|
package/dist/index.js
CHANGED
|
@@ -63436,7 +63436,7 @@ function SectionToolbar({ start, end, className, testId }) {
|
|
|
63436
63436
|
}
|
|
63437
63437
|
//#endregion
|
|
63438
63438
|
//#region src/composites/item-form-dialog.tsx
|
|
63439
|
-
function ItemFormDialog({ open, onClose, title, icon: Icon, error, width = "lg", children, beforeBody, footer, testId }) {
|
|
63439
|
+
function ItemFormDialog({ open, onClose, title, icon: Icon, error, width = "lg", children, beforeBody, footer, testId, fill = false }) {
|
|
63440
63440
|
if (!open) return null;
|
|
63441
63441
|
return /* @__PURE__ */ jsx(Dialog, {
|
|
63442
63442
|
open: true,
|
|
@@ -63469,7 +63469,7 @@ function ItemFormDialog({ open, onClose, title, icon: Icon, error, width = "lg",
|
|
|
63469
63469
|
children: beforeBody
|
|
63470
63470
|
}),
|
|
63471
63471
|
/* @__PURE__ */ jsx(DialogBody, {
|
|
63472
|
-
className: "space-y-3 px-1",
|
|
63472
|
+
className: fill ? "flex flex-col gap-3 px-1" : "space-y-3 px-1",
|
|
63473
63473
|
children
|
|
63474
63474
|
}),
|
|
63475
63475
|
footer != null && /* @__PURE__ */ jsx(DialogFooter, {
|