jclib-ui 1.1.4 → 1.1.6

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.
@@ -1,4 +1,4 @@
1
- import React, { useEffect, createContext, useContext, useState, useCallback, useRef, Fragment, useMemo, useLayoutEffect, useImperativeHandle } from "react";
1
+ import React, { useEffect, createContext, useContext, useState, useCallback, useRef, useMemo, useLayoutEffect, useImperativeHandle } from "react";
2
2
  import { isMobile, isDarkMode, random, formatData, formatDataHora, formatValor, isDesktop, getDateTimeStr, getHash, validarCNPJ, validarCPF } from "jcinfo-utils";
3
3
  import { useDragControls, motion } from "framer-motion";
4
4
  import styled from "styled-components";
@@ -1193,10 +1193,7 @@ function JCAlert({
1193
1193
  ] }),
1194
1194
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "jc-alert-title", children: title })
1195
1195
  ] }),
1196
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "jc-alert-body", children: text2 && typeof text2 == "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: text2.split("\n").map((line, i, arr) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
1197
- line,
1198
- i < arr.length - 1 && /* @__PURE__ */ jsxRuntimeExports.jsx("br", {})
1199
- ] }, i)) }) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: text2 || children }) }),
1196
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "jc-alert-body", children: text2 && typeof text2 == "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx(TextHTML, { value: text2 }) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: text2 || children }) }),
1200
1197
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "jc-alert-buttons", children: [
1201
1198
  (type === AlertTypes.Alerta || type === AlertTypes.Aviso) && /* @__PURE__ */ jsxRuntimeExports.jsx(
1202
1199
  "button",
@@ -3520,7 +3517,7 @@ function CheckBox({ enabled = true, onChange, children, ...rest }) {
3520
3517
  ...rest
3521
3518
  }
3522
3519
  ),
3523
- children
3520
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children })
3524
3521
  ] }) });
3525
3522
  }
3526
3523
  function adjustValue(value) {
@@ -7158,7 +7155,7 @@ function requireReactIs_development() {
7158
7155
  var ContextProvider = REACT_PROVIDER_TYPE;
7159
7156
  var Element = REACT_ELEMENT_TYPE;
7160
7157
  var ForwardRef = REACT_FORWARD_REF_TYPE;
7161
- var Fragment2 = REACT_FRAGMENT_TYPE;
7158
+ var Fragment = REACT_FRAGMENT_TYPE;
7162
7159
  var Lazy = REACT_LAZY_TYPE;
7163
7160
  var Memo = REACT_MEMO_TYPE;
7164
7161
  var Portal = REACT_PORTAL_TYPE;
@@ -7217,7 +7214,7 @@ function requireReactIs_development() {
7217
7214
  reactIs_development.ContextProvider = ContextProvider;
7218
7215
  reactIs_development.Element = Element;
7219
7216
  reactIs_development.ForwardRef = ForwardRef;
7220
- reactIs_development.Fragment = Fragment2;
7217
+ reactIs_development.Fragment = Fragment;
7221
7218
  reactIs_development.Lazy = Lazy;
7222
7219
  reactIs_development.Memo = Memo;
7223
7220
  reactIs_development.Portal = Portal;