hazo_ui 2.6.2 → 2.6.3

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/dist/index.cjs CHANGED
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  'use strict';
2
3
 
3
4
  var React27 = require('react');
@@ -172,6 +173,37 @@ var require_objectWithoutPropertiesLoose = __commonJS({
172
173
  module.exports = _objectWithoutPropertiesLoose10, module.exports.__esModule = true, module.exports["default"] = module.exports;
173
174
  }
174
175
  });
176
+
177
+ // src/lib/hazo_ui_config.ts
178
+ var default_config = {
179
+ // Headers use default theme colors by default (no override)
180
+ header_background_color: void 0,
181
+ header_text_color: void 0,
182
+ // Submit buttons use primary/default variant (no override needed for default styling)
183
+ submit_button_background_color: void 0,
184
+ submit_button_text_color: void 0,
185
+ submit_button_hover_color: void 0,
186
+ // Cancel buttons use outline variant (no override needed for default styling)
187
+ cancel_button_background_color: void 0,
188
+ cancel_button_text_color: void 0,
189
+ cancel_button_border_color: void 0,
190
+ cancel_button_hover_color: void 0,
191
+ // Clear buttons use outline variant (no override needed for default styling)
192
+ clear_button_background_color: void 0,
193
+ clear_button_text_color: void 0,
194
+ clear_button_border_color: void 0,
195
+ clear_button_hover_color: void 0
196
+ };
197
+ var global_config = { ...default_config };
198
+ function get_hazo_ui_config() {
199
+ return { ...global_config };
200
+ }
201
+ function set_hazo_ui_config(config) {
202
+ global_config = { ...global_config, ...config };
203
+ }
204
+ function reset_hazo_ui_config() {
205
+ global_config = { ...default_config };
206
+ }
175
207
  function cn(...inputs) {
176
208
  return tailwindMerge.twMerge(clsx.clsx(inputs));
177
209
  }
@@ -787,8 +819,47 @@ function HazoUiMultiFilterDialog({
787
819
  onFilterChange,
788
820
  initialFilters = [],
789
821
  title = "Filter",
790
- description = "Add multiple fields to filter by. Select a field and set its filter value."
822
+ description = "Add multiple fields to filter by. Select a field and set its filter value.",
823
+ headerBackgroundColor,
824
+ headerTextColor,
825
+ submitButtonBackgroundColor,
826
+ submitButtonTextColor,
827
+ cancelButtonBackgroundColor,
828
+ cancelButtonTextColor,
829
+ cancelButtonBorderColor,
830
+ clearButtonBackgroundColor,
831
+ clearButtonTextColor,
832
+ clearButtonBorderColor
791
833
  }) {
834
+ const config = get_hazo_ui_config();
835
+ const finalSubmitBgColor = submitButtonBackgroundColor ?? config.submit_button_background_color;
836
+ const finalSubmitTextColor = submitButtonTextColor ?? config.submit_button_text_color;
837
+ const finalCancelBgColor = cancelButtonBackgroundColor ?? config.cancel_button_background_color;
838
+ const finalCancelTextColor = cancelButtonTextColor ?? config.cancel_button_text_color;
839
+ const finalCancelBorderColor = cancelButtonBorderColor ?? config.cancel_button_border_color;
840
+ const finalClearBgColor = clearButtonBackgroundColor ?? config.clear_button_background_color;
841
+ const finalClearTextColor = clearButtonTextColor ?? config.clear_button_text_color;
842
+ const finalClearBorderColor = clearButtonBorderColor ?? config.clear_button_border_color;
843
+ const submitButtonStyles = {
844
+ ...finalSubmitBgColor && { backgroundColor: finalSubmitBgColor, borderColor: finalSubmitBgColor },
845
+ ...finalSubmitTextColor && { color: finalSubmitTextColor }
846
+ };
847
+ const cancelButtonStyles = {
848
+ ...finalCancelBgColor && { backgroundColor: finalCancelBgColor },
849
+ ...finalCancelTextColor && { color: finalCancelTextColor },
850
+ ...finalCancelBorderColor && { borderColor: finalCancelBorderColor }
851
+ };
852
+ const clearButtonStyles = {
853
+ ...finalClearBgColor && { backgroundColor: finalClearBgColor },
854
+ ...finalClearTextColor && { color: finalClearTextColor },
855
+ ...finalClearBorderColor && { borderColor: finalClearBorderColor }
856
+ };
857
+ const finalHeaderBgColor = headerBackgroundColor ?? config.header_background_color;
858
+ const finalHeaderTextColor = headerTextColor ?? config.header_text_color;
859
+ const headerStyles = {
860
+ ...finalHeaderBgColor && { backgroundColor: finalHeaderBgColor },
861
+ ...finalHeaderTextColor && { color: finalHeaderTextColor }
862
+ };
792
863
  const [isOpen, setIsOpen] = React27.useState(false);
793
864
  const [filterFields, setFilterFields] = React27.useState(initialFilters);
794
865
  const [isComboboxOpen, setIsComboboxOpen] = React27.useState(false);
@@ -908,7 +979,7 @@ function HazoUiMultiFilterDialog({
908
979
  /* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: tooltipContent })
909
980
  ] }) }),
910
981
  /* @__PURE__ */ jsxRuntime.jsxs(DialogContent, { className: "cls_filter_dialog_content max-w-lg w-full max-h-[90vh] overflow-y-auto", children: [
911
- /* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { children: [
982
+ /* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { style: headerStyles, children: [
912
983
  /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { children: title }),
913
984
  /* @__PURE__ */ jsxRuntime.jsx(DialogDescription, { children: description })
914
985
  ] }),
@@ -978,6 +1049,7 @@ function HazoUiMultiFilterDialog({
978
1049
  variant: "outline",
979
1050
  onClick: handleClearAll,
980
1051
  className: "cls_clear_all_btn",
1052
+ style: clearButtonStyles,
981
1053
  children: [
982
1054
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "cls_clear_all_icon h-4 w-4 mr-2" }),
983
1055
  "Clear All"
@@ -989,6 +1061,7 @@ function HazoUiMultiFilterDialog({
989
1061
  {
990
1062
  onClick: handleApply,
991
1063
  className: "cls_apply_btn",
1064
+ style: submitButtonStyles,
992
1065
  children: "Apply"
993
1066
  }
994
1067
  ),
@@ -998,6 +1071,7 @@ function HazoUiMultiFilterDialog({
998
1071
  variant: "outline",
999
1072
  onClick: handleCancel,
1000
1073
  className: "cls_cancel_btn",
1074
+ style: cancelButtonStyles,
1001
1075
  children: "Cancel"
1002
1076
  }
1003
1077
  )
@@ -1109,8 +1183,47 @@ function HazoUiMultiSortDialog({
1109
1183
  onSortChange,
1110
1184
  initialSortFields = [],
1111
1185
  title = "Sort",
1112
- description = "Add multiple fields to sort by and reorder them. Use the switch to toggle between ascending and descending."
1186
+ description = "Add multiple fields to sort by and reorder them. Use the switch to toggle between ascending and descending.",
1187
+ headerBackgroundColor,
1188
+ headerTextColor,
1189
+ submitButtonBackgroundColor,
1190
+ submitButtonTextColor,
1191
+ cancelButtonBackgroundColor,
1192
+ cancelButtonTextColor,
1193
+ cancelButtonBorderColor,
1194
+ clearButtonBackgroundColor,
1195
+ clearButtonTextColor,
1196
+ clearButtonBorderColor
1113
1197
  }) {
1198
+ const config = get_hazo_ui_config();
1199
+ const finalSubmitBgColor = submitButtonBackgroundColor ?? config.submit_button_background_color;
1200
+ const finalSubmitTextColor = submitButtonTextColor ?? config.submit_button_text_color;
1201
+ const finalCancelBgColor = cancelButtonBackgroundColor ?? config.cancel_button_background_color;
1202
+ const finalCancelTextColor = cancelButtonTextColor ?? config.cancel_button_text_color;
1203
+ const finalCancelBorderColor = cancelButtonBorderColor ?? config.cancel_button_border_color;
1204
+ const finalClearBgColor = clearButtonBackgroundColor ?? config.clear_button_background_color;
1205
+ const finalClearTextColor = clearButtonTextColor ?? config.clear_button_text_color;
1206
+ const finalClearBorderColor = clearButtonBorderColor ?? config.clear_button_border_color;
1207
+ const submitButtonStyles = {
1208
+ ...finalSubmitBgColor && { backgroundColor: finalSubmitBgColor, borderColor: finalSubmitBgColor },
1209
+ ...finalSubmitTextColor && { color: finalSubmitTextColor }
1210
+ };
1211
+ const cancelButtonStyles = {
1212
+ ...finalCancelBgColor && { backgroundColor: finalCancelBgColor },
1213
+ ...finalCancelTextColor && { color: finalCancelTextColor },
1214
+ ...finalCancelBorderColor && { borderColor: finalCancelBorderColor }
1215
+ };
1216
+ const clearButtonStyles = {
1217
+ ...finalClearBgColor && { backgroundColor: finalClearBgColor },
1218
+ ...finalClearTextColor && { color: finalClearTextColor },
1219
+ ...finalClearBorderColor && { borderColor: finalClearBorderColor }
1220
+ };
1221
+ const finalHeaderBgColor = headerBackgroundColor ?? config.header_background_color;
1222
+ const finalHeaderTextColor = headerTextColor ?? config.header_text_color;
1223
+ const headerStyles = {
1224
+ ...finalHeaderBgColor && { backgroundColor: finalHeaderBgColor },
1225
+ ...finalHeaderTextColor && { color: finalHeaderTextColor }
1226
+ };
1114
1227
  const [isOpen, setIsOpen] = React27.useState(false);
1115
1228
  const [sortFields, setSortFields] = React27.useState(initialSortFields);
1116
1229
  const [isComboboxOpen, setIsComboboxOpen] = React27.useState(false);
@@ -1212,7 +1325,7 @@ function HazoUiMultiSortDialog({
1212
1325
  /* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: tooltipContent })
1213
1326
  ] }) }),
1214
1327
  /* @__PURE__ */ jsxRuntime.jsxs(DialogContent, { className: "cls_sort_dialog_content max-w-lg", children: [
1215
- /* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { children: [
1328
+ /* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { style: headerStyles, children: [
1216
1329
  /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { children: title }),
1217
1330
  /* @__PURE__ */ jsxRuntime.jsx(DialogDescription, { children: description })
1218
1331
  ] }),
@@ -1292,6 +1405,7 @@ function HazoUiMultiSortDialog({
1292
1405
  variant: "outline",
1293
1406
  onClick: handleClearAll,
1294
1407
  className: "cls_clear_all_btn",
1408
+ style: clearButtonStyles,
1295
1409
  children: [
1296
1410
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { className: "cls_clear_all_icon h-4 w-4 mr-2" }),
1297
1411
  "Clear All"
@@ -1303,6 +1417,7 @@ function HazoUiMultiSortDialog({
1303
1417
  {
1304
1418
  onClick: handleApply,
1305
1419
  className: "cls_apply_btn",
1420
+ style: submitButtonStyles,
1306
1421
  children: "Apply"
1307
1422
  }
1308
1423
  ),
@@ -1312,6 +1427,7 @@ function HazoUiMultiSortDialog({
1312
1427
  variant: "outline",
1313
1428
  onClick: handleCancel,
1314
1429
  className: "cls_cancel_btn",
1430
+ style: cancelButtonStyles,
1315
1431
  children: "Cancel"
1316
1432
  }
1317
1433
  )
@@ -6032,6 +6148,41 @@ var HazoUiTextarea = ({
6032
6148
  );
6033
6149
  };
6034
6150
  HazoUiTextarea.displayName = "HazoUiTextarea";
6151
+ var VARIANT_PRESETS = {
6152
+ info: {
6153
+ header_background_color: "rgb(191, 219, 254)",
6154
+ description_background_color: "rgb(219, 234, 254)",
6155
+ header_text_color: "rgb(30, 58, 138)",
6156
+ border_color: "rgb(59, 130, 246)",
6157
+ accent_color: "rgb(59, 130, 246)",
6158
+ overlay_class_name: "bg-blue-950/50"
6159
+ },
6160
+ success: {
6161
+ header_background_color: "rgb(187, 247, 208)",
6162
+ description_background_color: "rgb(220, 252, 231)",
6163
+ header_text_color: "rgb(22, 101, 52)",
6164
+ border_color: "rgb(34, 197, 94)",
6165
+ accent_color: "rgb(34, 197, 94)",
6166
+ overlay_class_name: "bg-green-950/50"
6167
+ },
6168
+ warning: {
6169
+ header_background_color: "rgb(253, 230, 138)",
6170
+ description_background_color: "rgb(254, 249, 195)",
6171
+ header_text_color: "rgb(113, 63, 18)",
6172
+ border_color: "rgb(234, 179, 8)",
6173
+ accent_color: "rgb(234, 179, 8)",
6174
+ overlay_class_name: "bg-yellow-950/50"
6175
+ },
6176
+ danger: {
6177
+ header_background_color: "rgb(254, 202, 202)",
6178
+ description_background_color: "rgb(254, 226, 226)",
6179
+ header_text_color: "rgb(127, 29, 29)",
6180
+ border_color: "rgb(239, 68, 68)",
6181
+ accent_color: "rgb(239, 68, 68)",
6182
+ overlay_class_name: "bg-red-950/50",
6183
+ action_button_variant: "destructive"
6184
+ }
6185
+ };
6035
6186
  var ANIMATION_PRESETS = {
6036
6187
  zoom: {
6037
6188
  open: "animate-dialog-zoom",
@@ -6085,7 +6236,7 @@ function HazoUiDialog({
6085
6236
  title = "Action required",
6086
6237
  description,
6087
6238
  actionButtonText = "Confirm",
6088
- actionButtonVariant = "default",
6239
+ actionButtonVariant,
6089
6240
  cancelButtonText = "Cancel",
6090
6241
  showCancelButton = true,
6091
6242
  actionButtonLoading = false,
@@ -6096,7 +6247,10 @@ function HazoUiDialog({
6096
6247
  sizeHeight = "min(80vh, 800px)",
6097
6248
  openAnimation = "zoom",
6098
6249
  closeAnimation = "zoom",
6250
+ variant = "default",
6251
+ splitHeader = true,
6099
6252
  headerBackgroundColor,
6253
+ descriptionBackgroundColor,
6100
6254
  headerTextColor,
6101
6255
  bodyBackgroundColor,
6102
6256
  footerBackgroundColor,
@@ -6111,6 +6265,9 @@ function HazoUiDialog({
6111
6265
  footerClassName,
6112
6266
  showCloseButton = true
6113
6267
  }) {
6268
+ const config = get_hazo_ui_config();
6269
+ const variant_preset = variant !== "default" ? VARIANT_PRESETS[variant] : void 0;
6270
+ const resolved_action_button_variant = actionButtonVariant ?? variant_preset?.action_button_variant ?? "default";
6114
6271
  const handleConfirm = () => {
6115
6272
  onConfirm?.();
6116
6273
  };
@@ -6119,27 +6276,28 @@ function HazoUiDialog({
6119
6276
  onOpenChange?.(false);
6120
6277
  };
6121
6278
  const animationClasses = resolveAnimationClasses(openAnimation, closeAnimation);
6279
+ const resolved_border_color = borderColor ?? variant_preset?.border_color;
6122
6280
  const contentStyles = {
6123
6281
  width: sizeWidth,
6124
6282
  maxHeight: sizeHeight,
6125
- ...borderColor && { borderColor }
6283
+ ...resolved_border_color && { borderColor: resolved_border_color }
6126
6284
  };
6285
+ const finalHeaderBackgroundColor = headerBackgroundColor ?? variant_preset?.header_background_color ?? config.header_background_color;
6286
+ const finalDescriptionBgColor = descriptionBackgroundColor ?? variant_preset?.description_background_color;
6287
+ const finalHeaderTextColor = headerTextColor ?? variant_preset?.header_text_color ?? config.header_text_color;
6288
+ const is_variant_active = variant !== "default";
6289
+ const has_split_header = splitHeader && !headerBar && !!finalDescriptionBgColor && !!description;
6290
+ const has_merged_variant_header = !splitHeader && is_variant_active && !headerBar && !!description;
6127
6291
  const headerStyles = {
6128
6292
  ...headerBar && {
6129
6293
  backgroundColor: headerBarColor,
6130
- marginLeft: "-1.5rem",
6131
- marginRight: "-1.5rem",
6132
- marginTop: "0",
6133
- marginBottom: "0",
6134
6294
  paddingTop: "1.5rem",
6135
6295
  paddingBottom: "1.5rem",
6136
6296
  paddingLeft: "1.5rem",
6137
- paddingRight: "1.5rem",
6138
- borderTopLeftRadius: "inherit",
6139
- borderTopRightRadius: "inherit"
6297
+ paddingRight: "1.5rem"
6140
6298
  },
6141
- ...headerBackgroundColor && !headerBar && { backgroundColor: headerBackgroundColor },
6142
- ...headerTextColor && { color: headerTextColor }
6299
+ ...!has_split_header && finalHeaderBackgroundColor && !headerBar && { backgroundColor: finalHeaderBackgroundColor },
6300
+ ...!has_split_header && finalHeaderTextColor && { color: finalHeaderTextColor }
6143
6301
  };
6144
6302
  const titleClassName = cn(
6145
6303
  "cls_dialog_title",
@@ -6155,17 +6313,30 @@ function HazoUiDialog({
6155
6313
  const footerStyles = {
6156
6314
  ...footerBackgroundColor && { backgroundColor: footerBackgroundColor }
6157
6315
  };
6316
+ const finalSubmitBgColor = accentColor ?? variant_preset?.accent_color ?? config.submit_button_background_color;
6317
+ const finalSubmitTextColor = config.submit_button_text_color;
6318
+ const finalCancelBgColor = config.cancel_button_background_color;
6319
+ const finalCancelTextColor = config.cancel_button_text_color;
6320
+ const finalCancelBorderColor = config.cancel_button_border_color;
6158
6321
  const actionButtonStyles = {
6159
- ...accentColor && actionButtonVariant === "default" && {
6160
- backgroundColor: accentColor,
6161
- borderColor: accentColor
6322
+ ...finalSubmitBgColor && resolved_action_button_variant === "default" && {
6323
+ backgroundColor: finalSubmitBgColor,
6324
+ borderColor: finalSubmitBgColor
6325
+ },
6326
+ ...finalSubmitTextColor && resolved_action_button_variant === "default" && {
6327
+ color: finalSubmitTextColor
6162
6328
  }
6163
6329
  };
6330
+ const cancelButtonStyles = {
6331
+ ...finalCancelBgColor && { backgroundColor: finalCancelBgColor },
6332
+ ...finalCancelTextColor && { color: finalCancelTextColor },
6333
+ ...finalCancelBorderColor && { borderColor: finalCancelBorderColor }
6334
+ };
6164
6335
  return /* @__PURE__ */ jsxRuntime.jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
6165
6336
  /* @__PURE__ */ jsxRuntime.jsx(
6166
6337
  DialogOverlay,
6167
6338
  {
6168
- className: cn("cls_hazo_dialog_overlay", overlayClassName)
6339
+ className: cn("cls_hazo_dialog_overlay", overlayClassName ?? variant_preset?.overlay_class_name)
6169
6340
  }
6170
6341
  ),
6171
6342
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -6185,27 +6356,69 @@ function HazoUiDialog({
6185
6356
  ),
6186
6357
  style: contentStyles,
6187
6358
  children: [
6188
- /* @__PURE__ */ jsxRuntime.jsxs(
6189
- DialogHeader,
6190
- {
6191
- className: cn(
6192
- "cls_dialog_header",
6193
- !headerBar && "p-6 pb-4",
6194
- headerClassName
6195
- ),
6196
- style: headerStyles,
6197
- children: [
6198
- /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { className: titleClassName, children: title }),
6199
- description && /* @__PURE__ */ jsxRuntime.jsx(DialogDescription, { className: descriptionClassName, children: description })
6200
- ]
6201
- }
6359
+ has_split_header ? (
6360
+ /* Split header: two rows with different backgrounds */
6361
+ /* @__PURE__ */ jsxRuntime.jsxs(
6362
+ DialogHeader,
6363
+ {
6364
+ className: cn(
6365
+ "cls_dialog_header shrink-0 p-0 space-y-0",
6366
+ headerClassName
6367
+ ),
6368
+ children: [
6369
+ /* @__PURE__ */ jsxRuntime.jsx(
6370
+ "div",
6371
+ {
6372
+ className: "cls_dialog_header_title px-6 pt-6 pb-3",
6373
+ style: {
6374
+ ...finalHeaderBackgroundColor && { backgroundColor: finalHeaderBackgroundColor },
6375
+ ...finalHeaderTextColor && { color: finalHeaderTextColor }
6376
+ },
6377
+ children: /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { className: titleClassName, children: title })
6378
+ }
6379
+ ),
6380
+ /* @__PURE__ */ jsxRuntime.jsx(
6381
+ "div",
6382
+ {
6383
+ className: "cls_dialog_header_description px-6 py-1.5",
6384
+ style: {
6385
+ backgroundColor: finalDescriptionBgColor,
6386
+ ...finalHeaderTextColor && { color: finalHeaderTextColor }
6387
+ },
6388
+ children: /* @__PURE__ */ jsxRuntime.jsx(DialogDescription, { className: cn(descriptionClassName, "italic text-xs"), children: description })
6389
+ }
6390
+ )
6391
+ ]
6392
+ }
6393
+ )
6394
+ ) : (
6395
+ /* Single header: one background, italic description when variant is active */
6396
+ /* @__PURE__ */ jsxRuntime.jsxs(
6397
+ DialogHeader,
6398
+ {
6399
+ className: cn(
6400
+ "cls_dialog_header shrink-0",
6401
+ !headerBar && "p-6 pb-4",
6402
+ has_merged_variant_header && "pb-3",
6403
+ headerClassName
6404
+ ),
6405
+ style: headerStyles,
6406
+ children: [
6407
+ /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { className: titleClassName, children: title }),
6408
+ description && /* @__PURE__ */ jsxRuntime.jsx(DialogDescription, { className: cn(
6409
+ descriptionClassName,
6410
+ has_merged_variant_header && "italic text-xs mt-1"
6411
+ ), children: description })
6412
+ ]
6413
+ }
6414
+ )
6202
6415
  ),
6203
6416
  /* @__PURE__ */ jsxRuntime.jsx(
6204
6417
  "div",
6205
6418
  {
6206
6419
  className: cn(
6207
6420
  "cls_dialog_body",
6208
- "px-6 py-4 overflow-y-auto flex-1",
6421
+ "px-6 py-4 overflow-y-auto flex-1 min-h-0",
6209
6422
  contentClassName
6210
6423
  ),
6211
6424
  style: bodyStyles,
@@ -6215,7 +6428,7 @@ function HazoUiDialog({
6215
6428
  /* @__PURE__ */ jsxRuntime.jsx(
6216
6429
  DialogFooter,
6217
6430
  {
6218
- className: cn("cls_dialog_footer p-6 pt-4", footerClassName),
6431
+ className: cn("cls_dialog_footer shrink-0 p-6 pt-4", footerClassName),
6219
6432
  style: footerStyles,
6220
6433
  children: footerContent ? (
6221
6434
  // Custom footer content replaces default buttons
@@ -6230,6 +6443,7 @@ function HazoUiDialog({
6230
6443
  className: "cls_cancel_button",
6231
6444
  variant: "outline",
6232
6445
  onClick: handleCancel,
6446
+ style: cancelButtonStyles,
6233
6447
  children: cancelButtonText
6234
6448
  }
6235
6449
  ),
@@ -6238,7 +6452,7 @@ function HazoUiDialog({
6238
6452
  {
6239
6453
  type: "button",
6240
6454
  className: "cls_confirm_button",
6241
- variant: actionButtonVariant,
6455
+ variant: resolved_action_button_variant,
6242
6456
  onClick: handleConfirm,
6243
6457
  style: actionButtonStyles,
6244
6458
  disabled: actionButtonLoading || actionButtonDisabled,
@@ -6256,7 +6470,7 @@ function HazoUiDialog({
6256
6470
  DialogPrimitive__namespace.Close,
6257
6471
  {
6258
6472
  className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
6259
- style: headerBar ? { color: "white" } : headerTextColor ? { color: headerTextColor } : void 0,
6473
+ style: headerBar ? { color: "white" } : finalHeaderTextColor ? { color: finalHeaderTextColor } : void 0,
6260
6474
  children: [
6261
6475
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" }),
6262
6476
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
@@ -6291,7 +6505,10 @@ exports.HazoUiRte = HazoUiRte;
6291
6505
  exports.HazoUiTextarea = HazoUiTextarea;
6292
6506
  exports.HazoUiTextbox = HazoUiTextbox;
6293
6507
  exports.create_command_suggestion_extension = create_command_suggestion_extension;
6508
+ exports.get_hazo_ui_config = get_hazo_ui_config;
6294
6509
  exports.parse_commands_from_text = parse_commands_from_text;
6510
+ exports.reset_hazo_ui_config = reset_hazo_ui_config;
6511
+ exports.set_hazo_ui_config = set_hazo_ui_config;
6295
6512
  exports.text_to_tiptap_content = text_to_tiptap_content;
6296
6513
  //# sourceMappingURL=index.cjs.map
6297
6514
  //# sourceMappingURL=index.cjs.map