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 +10 -1
- package/dist/index.cjs +5 -2
- 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 +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -660,6 +660,7 @@ interface HazoUiDialogProps {
|
|
|
660
660
|
footerContent?: React.ReactNode;
|
|
661
661
|
sizeWidth?: string;
|
|
662
662
|
sizeHeight?: string;
|
|
663
|
+
fixedSize?: boolean;
|
|
663
664
|
openAnimation?: AnimationPreset | string;
|
|
664
665
|
closeAnimation?: AnimationPreset | string;
|
|
665
666
|
variant?: DialogVariant;
|
|
@@ -690,7 +691,7 @@ interface HazoUiDialogProps {
|
|
|
690
691
|
*
|
|
691
692
|
* A flexible dialog component with standardized layout and customizable behavior
|
|
692
693
|
*/
|
|
693
|
-
declare function HazoUiDialog({ open, onOpenChange, children, onConfirm, onCancel, title, description, actionButtonText, actionButtonVariant, cancelButtonText, showCancelButton, actionButtonLoading, actionButtonDisabled, actionButtonIcon, footerContent, sizeWidth, sizeHeight, openAnimation, closeAnimation, variant, splitHeader, headerBackgroundColor, descriptionBackgroundColor, headerTextColor, bodyBackgroundColor, footerBackgroundColor, borderColor, accentColor, headerBar, headerBarColor, className, contentClassName, overlayClassName, headerClassName, footerClassName, showCloseButton, }: HazoUiDialogProps): react_jsx_runtime.JSX.Element;
|
|
694
|
+
declare function HazoUiDialog({ open, onOpenChange, children, onConfirm, onCancel, title, description, actionButtonText, actionButtonVariant, cancelButtonText, showCancelButton, actionButtonLoading, actionButtonDisabled, actionButtonIcon, footerContent, sizeWidth, sizeHeight, fixedSize, openAnimation, closeAnimation, variant, splitHeader, headerBackgroundColor, descriptionBackgroundColor, headerTextColor, bodyBackgroundColor, footerBackgroundColor, borderColor, accentColor, headerBar, headerBarColor, className, contentClassName, overlayClassName, headerClassName, footerClassName, showCloseButton, }: HazoUiDialogProps): react_jsx_runtime.JSX.Element;
|
|
694
695
|
|
|
695
696
|
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
696
697
|
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -660,6 +660,7 @@ interface HazoUiDialogProps {
|
|
|
660
660
|
footerContent?: React.ReactNode;
|
|
661
661
|
sizeWidth?: string;
|
|
662
662
|
sizeHeight?: string;
|
|
663
|
+
fixedSize?: boolean;
|
|
663
664
|
openAnimation?: AnimationPreset | string;
|
|
664
665
|
closeAnimation?: AnimationPreset | string;
|
|
665
666
|
variant?: DialogVariant;
|
|
@@ -690,7 +691,7 @@ interface HazoUiDialogProps {
|
|
|
690
691
|
*
|
|
691
692
|
* A flexible dialog component with standardized layout and customizable behavior
|
|
692
693
|
*/
|
|
693
|
-
declare function HazoUiDialog({ open, onOpenChange, children, onConfirm, onCancel, title, description, actionButtonText, actionButtonVariant, cancelButtonText, showCancelButton, actionButtonLoading, actionButtonDisabled, actionButtonIcon, footerContent, sizeWidth, sizeHeight, openAnimation, closeAnimation, variant, splitHeader, headerBackgroundColor, descriptionBackgroundColor, headerTextColor, bodyBackgroundColor, footerBackgroundColor, borderColor, accentColor, headerBar, headerBarColor, className, contentClassName, overlayClassName, headerClassName, footerClassName, showCloseButton, }: HazoUiDialogProps): react_jsx_runtime.JSX.Element;
|
|
694
|
+
declare function HazoUiDialog({ open, onOpenChange, children, onConfirm, onCancel, title, description, actionButtonText, actionButtonVariant, cancelButtonText, showCancelButton, actionButtonLoading, actionButtonDisabled, actionButtonIcon, footerContent, sizeWidth, sizeHeight, fixedSize, openAnimation, closeAnimation, variant, splitHeader, headerBackgroundColor, descriptionBackgroundColor, headerTextColor, bodyBackgroundColor, footerBackgroundColor, borderColor, accentColor, headerBar, headerBarColor, className, contentClassName, overlayClassName, headerClassName, footerClassName, showCloseButton, }: HazoUiDialogProps): react_jsx_runtime.JSX.Element;
|
|
694
695
|
|
|
695
696
|
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
696
697
|
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
package/dist/index.js
CHANGED
|
@@ -282,6 +282,7 @@ var DialogTitle = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
282
282
|
ref,
|
|
283
283
|
className: cn(
|
|
284
284
|
"text-lg font-semibold leading-none tracking-tight",
|
|
285
|
+
"break-words [overflow-wrap:anywhere]",
|
|
285
286
|
className
|
|
286
287
|
),
|
|
287
288
|
...props
|
|
@@ -6209,6 +6210,7 @@ function HazoUiDialog({
|
|
|
6209
6210
|
footerContent,
|
|
6210
6211
|
sizeWidth = "min(90vw, 600px)",
|
|
6211
6212
|
sizeHeight = "min(80vh, 800px)",
|
|
6213
|
+
fixedSize = false,
|
|
6212
6214
|
openAnimation = "zoom",
|
|
6213
6215
|
closeAnimation = "zoom",
|
|
6214
6216
|
variant = "default",
|
|
@@ -6243,7 +6245,7 @@ function HazoUiDialog({
|
|
|
6243
6245
|
const resolved_border_color = borderColor ?? variant_preset?.border_color;
|
|
6244
6246
|
const contentStyles = {
|
|
6245
6247
|
width: sizeWidth,
|
|
6246
|
-
maxHeight: sizeHeight,
|
|
6248
|
+
...fixedSize ? { height: sizeHeight, minHeight: sizeHeight, maxHeight: sizeHeight } : { maxHeight: sizeHeight },
|
|
6247
6249
|
...resolved_border_color && { borderColor: resolved_border_color }
|
|
6248
6250
|
};
|
|
6249
6251
|
const finalHeaderBackgroundColor = headerBackgroundColor ?? variant_preset?.header_background_color ?? config.header_background_color;
|
|
@@ -6333,7 +6335,7 @@ function HazoUiDialog({
|
|
|
6333
6335
|
/* @__PURE__ */ jsx(
|
|
6334
6336
|
"div",
|
|
6335
6337
|
{
|
|
6336
|
-
className: "cls_dialog_header_title px-6 pt-6 pb-3",
|
|
6338
|
+
className: cn("cls_dialog_header_title px-6 pt-6 pb-3", showCloseButton && "pr-10"),
|
|
6337
6339
|
style: {
|
|
6338
6340
|
...finalHeaderBackgroundColor && { backgroundColor: finalHeaderBackgroundColor },
|
|
6339
6341
|
...finalHeaderTextColor && { color: finalHeaderTextColor }
|
|
@@ -6364,6 +6366,7 @@ function HazoUiDialog({
|
|
|
6364
6366
|
"cls_dialog_header shrink-0",
|
|
6365
6367
|
!headerBar && "p-6 pb-4",
|
|
6366
6368
|
has_merged_variant_header && "pb-3",
|
|
6369
|
+
showCloseButton && "pr-10",
|
|
6367
6370
|
headerClassName
|
|
6368
6371
|
),
|
|
6369
6372
|
style: headerStyles,
|