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.
- package/dist/cjs/index.js +6 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/CheckboxButton.d.ts +1 -0
- package/dist/esm/index.js +6 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/CheckboxButton.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/CheckboxButton.tsx +21 -3
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
|
-
|
|
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
|
/**
|