hazo_ui 2.6.4 → 2.6.6

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 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
@@ -341,6 +341,7 @@ var DialogTitle = React27__namespace.forwardRef(({ className, ...props }, ref) =
341
341
  ref,
342
342
  className: cn(
343
343
  "text-lg font-semibold leading-none tracking-tight",
344
+ "break-words [overflow-wrap:anywhere]",
344
345
  className
345
346
  ),
346
347
  ...props
@@ -6268,6 +6269,7 @@ function HazoUiDialog({
6268
6269
  footerContent,
6269
6270
  sizeWidth = "min(90vw, 600px)",
6270
6271
  sizeHeight = "min(80vh, 800px)",
6272
+ fixedSize = false,
6271
6273
  openAnimation = "zoom",
6272
6274
  closeAnimation = "zoom",
6273
6275
  variant = "default",
@@ -6302,7 +6304,7 @@ function HazoUiDialog({
6302
6304
  const resolved_border_color = borderColor ?? variant_preset?.border_color;
6303
6305
  const contentStyles = {
6304
6306
  width: sizeWidth,
6305
- maxHeight: sizeHeight,
6307
+ ...fixedSize ? { height: sizeHeight, minHeight: sizeHeight, maxHeight: sizeHeight } : { maxHeight: sizeHeight },
6306
6308
  ...resolved_border_color && { borderColor: resolved_border_color }
6307
6309
  };
6308
6310
  const finalHeaderBackgroundColor = headerBackgroundColor ?? variant_preset?.header_background_color ?? config.header_background_color;
@@ -6392,7 +6394,7 @@ function HazoUiDialog({
6392
6394
  /* @__PURE__ */ jsxRuntime.jsx(
6393
6395
  "div",
6394
6396
  {
6395
- className: "cls_dialog_header_title px-6 pt-6 pb-3",
6397
+ className: cn("cls_dialog_header_title px-6 pt-6 pb-3", showCloseButton && "pr-10"),
6396
6398
  style: {
6397
6399
  ...finalHeaderBackgroundColor && { backgroundColor: finalHeaderBackgroundColor },
6398
6400
  ...finalHeaderTextColor && { color: finalHeaderTextColor }
@@ -6423,6 +6425,7 @@ function HazoUiDialog({
6423
6425
  "cls_dialog_header shrink-0",
6424
6426
  !headerBar && "p-6 pb-4",
6425
6427
  has_merged_variant_header && "pb-3",
6428
+ showCloseButton && "pr-10",
6426
6429
  headerClassName
6427
6430
  ),
6428
6431
  style: headerStyles,