@apia/components 4.0.46 → 4.0.47

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.d.ts CHANGED
@@ -1184,6 +1184,7 @@ interface IAccordionItemButton {
1184
1184
  className?: string;
1185
1185
  disableSelection?: boolean;
1186
1186
  domButtonProps?: ISimpleButton;
1187
+ isHtml?: boolean | boolean[];
1187
1188
  label: string;
1188
1189
  /**
1189
1190
  * Evento que se dispara cuando el usuario hace click en el checkbox o
package/dist/index.js CHANGED
@@ -4884,7 +4884,25 @@ const DefaultAccordionItemButton = (props) => {
4884
4884
  onChange: setIsChecked
4885
4885
  }
4886
4886
  ),
4887
- /* @__PURE__ */ jsx(Box, { as: "h3", className: "accordion__item__button__label", children: /* @__PURE__ */ jsx(AutoEllipsis, { overrideStyles: () => ({ textAlign: "left" }), children: props.label ?? props.title ?? props.ariaLabel }) })
4887
+ (props.label ?? props.title ?? props.ariaLabel).split(" | ").map((content, i) => {
4888
+ if (typeof props.isHtml === "boolean" && props.isHtml || Array.isArray(props.isHtml) && props.isHtml[i]) {
4889
+ return /* @__PURE__ */ jsx(
4890
+ Box,
4891
+ {
4892
+ className: "accordion__item__button__html",
4893
+ dangerouslySetInnerHTML: {
4894
+ __html: String(content).replaceAll(
4895
+ /<TOK(\d+)/g,
4896
+ "&lt;TOK$1"
4897
+ )
4898
+ },
4899
+ as: "span"
4900
+ }
4901
+ );
4902
+ } else {
4903
+ return /* @__PURE__ */ jsx(Box, { as: "h3", className: "accordion__item__button__label", children: /* @__PURE__ */ jsx(AutoEllipsis, { overrideStyles: () => ({ textAlign: "left" }), children: content }) });
4904
+ }
4905
+ })
4888
4906
  ] }),
4889
4907
  /* @__PURE__ */ jsxs(Box, { className: "accordion__item__button__rightGroup", children: [
4890
4908
  props.rightButtons,