hazo_ui 2.6.4 → 2.6.5
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/README.md +10 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1873,6 +1873,7 @@ interface HazoUiDialogProps {
|
|
|
1873
1873
|
// Size Configuration
|
|
1874
1874
|
sizeWidth?: string; // default: "min(90vw, 600px)"
|
|
1875
1875
|
sizeHeight?: string; // default: "min(80vh, 800px)"
|
|
1876
|
+
fixedSize?: boolean; // default: false - When true, sizeHeight becomes a fixed height instead of maxHeight
|
|
1876
1877
|
|
|
1877
1878
|
// Animation Configuration
|
|
1878
1879
|
openAnimation?: AnimationPreset | string; // default: "zoom"
|
|
@@ -2361,6 +2362,13 @@ function ProgressDialog() {
|
|
|
2361
2362
|
sizeHeight="min(90vh, 1000px)"
|
|
2362
2363
|
{...props}
|
|
2363
2364
|
/>
|
|
2365
|
+
|
|
2366
|
+
// Fixed Size - dialog maintains exact height regardless of content
|
|
2367
|
+
<HazoUiDialog
|
|
2368
|
+
sizeHeight="500px"
|
|
2369
|
+
fixedSize={true}
|
|
2370
|
+
{...props}
|
|
2371
|
+
/>
|
|
2364
2372
|
```
|
|
2365
2373
|
|
|
2366
2374
|
#### Animation Variants
|
|
@@ -2653,7 +2661,8 @@ function FormDialog() {
|
|
|
2653
2661
|
| `actionButtonIcon` | `React.ReactNode` | - | Icon element rendered before action button text |
|
|
2654
2662
|
| `footerContent` | `React.ReactNode` | - | Custom footer content that replaces default buttons |
|
|
2655
2663
|
| `sizeWidth` | `string` | `"min(90vw, 600px)"` | Dialog width |
|
|
2656
|
-
| `sizeHeight` | `string` | `"min(80vh, 800px)"` | Dialog max height |
|
|
2664
|
+
| `sizeHeight` | `string` | `"min(80vh, 800px)"` | Dialog max height (or fixed height when `fixedSize` is true) |
|
|
2665
|
+
| `fixedSize` | `boolean` | `false` | When true, `sizeHeight` becomes a fixed height instead of max height |
|
|
2657
2666
|
| `openAnimation` | `AnimationPreset \| string` | `"zoom"` | Open animation |
|
|
2658
2667
|
| `closeAnimation` | `AnimationPreset \| string` | `"zoom"` | Close animation |
|
|
2659
2668
|
| `headerBackgroundColor` | `string` | - | Header background color |
|
package/dist/index.cjs
CHANGED
|
@@ -6268,6 +6268,7 @@ function HazoUiDialog({
|
|
|
6268
6268
|
footerContent,
|
|
6269
6269
|
sizeWidth = "min(90vw, 600px)",
|
|
6270
6270
|
sizeHeight = "min(80vh, 800px)",
|
|
6271
|
+
fixedSize = false,
|
|
6271
6272
|
openAnimation = "zoom",
|
|
6272
6273
|
closeAnimation = "zoom",
|
|
6273
6274
|
variant = "default",
|
|
@@ -6302,7 +6303,7 @@ function HazoUiDialog({
|
|
|
6302
6303
|
const resolved_border_color = borderColor ?? variant_preset?.border_color;
|
|
6303
6304
|
const contentStyles = {
|
|
6304
6305
|
width: sizeWidth,
|
|
6305
|
-
maxHeight: sizeHeight,
|
|
6306
|
+
...fixedSize ? { height: sizeHeight, minHeight: sizeHeight, maxHeight: sizeHeight } : { maxHeight: sizeHeight },
|
|
6306
6307
|
...resolved_border_color && { borderColor: resolved_border_color }
|
|
6307
6308
|
};
|
|
6308
6309
|
const finalHeaderBackgroundColor = headerBackgroundColor ?? variant_preset?.header_background_color ?? config.header_background_color;
|