dce-reactkit 3.9.5 → 3.9.7

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.
@@ -17,6 +17,7 @@ type Props = {
17
17
  uncheckedVariant?: Variant;
18
18
  small?: boolean;
19
19
  dashed?: boolean;
20
+ useComplexFormatting?: boolean;
20
21
  };
21
22
  declare const CheckboxButton: React.FC<Props>;
22
23
  export default CheckboxButton;
package/dist/esm/index.js CHANGED
@@ -1697,7 +1697,7 @@ const CheckboxButton = (props) => {
1697
1697
  ? Variant$1.Light
1698
1698
  : Variant$1.Secondary), uncheckedVariant = (isDarkModeOn()
1699
1699
  ? Variant$1.Secondary
1700
- : Variant$1.Light), small, dashed, } = props;
1700
+ : Variant$1.Light), small, dashed, useComplexFormatting, } = props;
1701
1701
  /*------------------------------------------------------------------------*/
1702
1702
  /* ------------------------------- Render ------------------------------- */
1703
1703
  /*------------------------------------------------------------------------*/
@@ -1721,7 +1721,11 @@ const CheckboxButton = (props) => {
1721
1721
  React__default.createElement("div", { className: "d-flex" },
1722
1722
  React__default.createElement("div", { className: "align-items-center" },
1723
1723
  React__default.createElement(FontAwesomeIcon, { icon: icon, className: "me-1" })),
1724
- React__default.createElement("div", { className: "flex-grow-1" }, text))));
1724
+ useComplexFormatting
1725
+ ? (React__default.createElement("pre", { className: "ps-2 text-start text-break", style: {
1726
+ whiteSpace: 'pre-wrap',
1727
+ } }, text))
1728
+ : (React__default.createElement("div", { className: "flex-grow-1 text-start text-break ps-2" }, text)))));
1725
1729
  };
1726
1730
 
1727
1731
  /**