jclib-ui 1.0.84 → 1.0.86

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.
@@ -4107,7 +4107,7 @@ function JCAlert({
4107
4107
  {
4108
4108
  dangerouslySetInnerHTML: { __html: text.replaceAll("\n", "<br/>") }
4109
4109
  }
4110
- ) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children }) }),
4110
+ ) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: text || children }) }),
4111
4111
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "jc-alert-buttons", children: [
4112
4112
  (type === AlertTypes.Alerta || type === AlertTypes.Aviso) && /* @__PURE__ */ jsxRuntimeExports.jsx(
4113
4113
  "button",
@@ -8072,6 +8072,7 @@ const Container$3 = styled(motion.div)`
8072
8072
  overflow-y: auto;
8073
8073
  overflow-x: hidden;
8074
8074
  padding: 10px 15px;
8075
+ padding-bottom: ${(props) => props.paddingBottom || 10}px;
8075
8076
  }
8076
8077
  }
8077
8078
  `;
@@ -8083,6 +8084,7 @@ function ModalBox({
8083
8084
  title,
8084
8085
  children,
8085
8086
  hideScrollBar = true,
8087
+ paddingBottom,
8086
8088
  id,
8087
8089
  fixed = true
8088
8090
  //TODO: o padrão deve ser falso qdo resolver problema do framer-motion
@@ -8121,30 +8123,39 @@ function ModalBox({
8121
8123
  }
8122
8124
  controls.start(e);
8123
8125
  }
8124
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$3, { isDraggable: !fixed, maxWidth, ref: modalRef, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
8125
- motion.div,
8126
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
8127
+ Container$3,
8126
8128
  {
8127
- className: "mod-panel",
8128
- drag: true,
8129
- dragListener: false,
8130
- dragControls: controls,
8131
- dragConstraints: modalRef,
8132
- dragMomentum: false,
8133
- dragElastic: 0.1,
8134
- initial: { scale: 0 },
8135
- animate: { scale: 1 },
8136
- transition: {
8137
- duration: 0.2
8138
- },
8139
- children: [
8140
- /* @__PURE__ */ jsxRuntimeExports.jsxs(PanelHeader, { className: "mod-header", onPointerDown: startDrag, children: [
8141
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: title }),
8142
- /* @__PURE__ */ jsxRuntimeExports.jsx(ButtonClose, { type: "button", onClick: () => setVisible(false) })
8143
- ] }),
8144
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mod-body", children })
8145
- ]
8129
+ paddingBottom,
8130
+ isDraggable: !fixed,
8131
+ maxWidth,
8132
+ ref: modalRef,
8133
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
8134
+ motion.div,
8135
+ {
8136
+ className: "mod-panel",
8137
+ drag: true,
8138
+ dragListener: false,
8139
+ dragControls: controls,
8140
+ dragConstraints: modalRef,
8141
+ dragMomentum: false,
8142
+ dragElastic: 0.1,
8143
+ initial: { scale: 0 },
8144
+ animate: { scale: 1 },
8145
+ transition: {
8146
+ duration: 0.2
8147
+ },
8148
+ children: [
8149
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(PanelHeader, { className: "mod-header", onPointerDown: startDrag, children: [
8150
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: title }),
8151
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ButtonClose, { type: "button", onClick: () => setVisible(false) })
8152
+ ] }),
8153
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mod-body", children })
8154
+ ]
8155
+ }
8156
+ )
8146
8157
  }
8147
- ) });
8158
+ );
8148
8159
  }
8149
8160
  var n, o, i = (n = function(t2, e) {
8150
8161
  return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e2) {