react-better-html 1.1.223 → 1.1.225

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.mjs CHANGED
@@ -1569,7 +1569,7 @@ var PageHeaderComponent = forwardRef5(function PageHeader({
1569
1569
  justifyContent: textAlign === "center" ? "center" : textAlign === "right" ? "flex-end" : void 0,
1570
1570
  gap: theme2.styles.space,
1571
1571
  children: [
1572
- /* @__PURE__ */ jsx5(
1572
+ typeof title === "string" ? /* @__PURE__ */ jsx5(
1573
1573
  Text_default,
1574
1574
  {
1575
1575
  as: titleAs,
@@ -1577,12 +1577,12 @@ var PageHeaderComponent = forwardRef5(function PageHeader({
1577
1577
  color: titleColor ?? (lightMode ? theme2.colors.base : theme2.colors.textPrimary),
1578
1578
  children: title
1579
1579
  }
1580
- ),
1580
+ ) : title,
1581
1581
  titleRightElement
1582
1582
  ]
1583
1583
  }
1584
1584
  ),
1585
- description && /* @__PURE__ */ jsx5(
1585
+ description && (typeof description === "string" ? /* @__PURE__ */ jsx5(
1586
1586
  Text_default,
1587
1587
  {
1588
1588
  maxWidth: !mediaQuery.size600 ? app.contentMaxWidth * 0.6 : void 0,
@@ -1591,7 +1591,7 @@ var PageHeaderComponent = forwardRef5(function PageHeader({
1591
1591
  opacity: lightMode ? 0.7 : void 0,
1592
1592
  children: description
1593
1593
  }
1594
- )
1594
+ ) : description)
1595
1595
  ]
1596
1596
  }
1597
1597
  ),
@@ -1694,8 +1694,11 @@ DivComponent.grid = forwardRef6(function Grid(props, ref) {
1694
1694
  return /* @__PURE__ */ jsx6(DivComponent, { display: "grid", ref, ...props });
1695
1695
  });
1696
1696
  DivComponent.box = forwardRef6(function Box({
1697
+ icon,
1698
+ image,
1697
1699
  imageUrl,
1698
1700
  imageSize,
1701
+ imageAzProfileImage,
1699
1702
  title,
1700
1703
  titleAs,
1701
1704
  titleColor,
@@ -1744,8 +1747,11 @@ DivComponent.box = forwardRef6(function Box({
1744
1747
  /* @__PURE__ */ jsx6(
1745
1748
  PageHeader_default,
1746
1749
  {
1750
+ icon,
1751
+ image,
1747
1752
  imageUrl,
1748
1753
  imageSize,
1754
+ imageAzProfileImage,
1749
1755
  title,
1750
1756
  titleAs,
1751
1757
  titleColor,
@@ -3679,7 +3685,7 @@ var DropdownComponent = forwardRef10(function Dropdown({
3679
3685
  if (!withDebounce) return;
3680
3686
  onChangeSearch?.(debouncedSearchQuery);
3681
3687
  }, [withDebounce, onChangeSearch, debouncedSearchQuery]);
3682
- const displayValue = (withSearch && isFocused && searchQuery.length > 0 ? searchQuery : !Array.isArray(selectedOption) ? selectedOption?.label : void 0) ?? "";
3688
+ const displayValue = (withSearch && isFocused ? searchQuery : !Array.isArray(selectedOption) ? selectedOption?.label : void 0) ?? "";
3683
3689
  const withClearButton = isOpen && (Array.isArray(selectedOption) ? selectedOption.length > 0 : selectedOption);
3684
3690
  const readyPlaceholder = placeholder ?? `Select ${!withMultiselect ? "an " : ""}${label?.toLowerCase() ?? getPluralWord("option", withMultiselect ? 2 : 1)}`;
3685
3691
  return /* @__PURE__ */ jsx15(Div_default.column, { width: "100%", position: "relative", userSelect: "none", ...props, children: /* @__PURE__ */ jsx15(
@@ -3700,7 +3706,7 @@ var DropdownComponent = forwardRef10(function Dropdown({
3700
3706
  leftIcon,
3701
3707
  autoComplete: "off",
3702
3708
  className: `react-better-html-dropdown${Array.isArray(selectedOption) && selectedOption.length > 0 ? " react-better-html-dropdown-multiselect" : ""}${isOpen ? " react-better-html-dropdown-open" : ""}${isOpenLate ? " react-better-html-dropdown-open-late" : ""}${inputFieldClassName ? ` ${inputFieldClassName}` : ""}`,
3703
- onClick: !disabled ? setIsOpen.toggle : void 0,
3709
+ onClick: !disabled ? withMultiselect ? setIsOpen.setTrue : setIsOpen.toggle : void 0,
3704
3710
  onFocus: setIsFocused.setTrue,
3705
3711
  onBlur: setIsFocused.setFalse,
3706
3712
  onKeyDown: onKeyDownInputField,