jclib-ui 1.0.88 → 1.0.90

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.
@@ -8041,7 +8041,7 @@ function InputPesquisa({
8041
8041
  )
8042
8042
  ] });
8043
8043
  }
8044
- const Container$3 = styled.div`
8044
+ const ContainerFixed = styled.div`
8045
8045
  position: fixed;
8046
8046
  inset: 0 0 0;
8047
8047
  background-color: var(--jc-overlay-bg);
@@ -8051,7 +8051,37 @@ const Container$3 = styled.div`
8051
8051
  display: grid;
8052
8052
  place-items: center;
8053
8053
 
8054
- .mod-panel {
8054
+ & > .mod-panel {
8055
+ background-color: var(--pn-color);
8056
+ border: 1px solid var(--pn-color);
8057
+ border-radius: 6px;
8058
+
8059
+ overflow: hidden;
8060
+ width: 100%;
8061
+ max-width: ${(props) => props.maxWidth ? props.maxWidth : 1200}px;
8062
+ box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
8063
+ z-index: 1032;
8064
+
8065
+ .mod-body {
8066
+ background-color: var(--bs-body-bg);
8067
+ max-height: calc(100vh - 110px);
8068
+ overflow-y: auto;
8069
+ overflow-x: hidden;
8070
+ padding: 10px 15px;
8071
+ }
8072
+ }
8073
+ `;
8074
+ const Container$3 = styled(motion.div)`
8075
+ position: fixed;
8076
+ inset: 0 0 0;
8077
+ background-color: var(--jc-overlay-bg);
8078
+ z-index: 1031;
8079
+ padding: 0 8px;
8080
+
8081
+ display: grid;
8082
+ place-items: center;
8083
+
8084
+ & > .mod-panel {
8055
8085
  background-color: var(--pn-color);
8056
8086
  border: 1px solid var(--pn-color);
8057
8087
  border-radius: 6px;
@@ -8072,11 +8102,9 @@ const Container$3 = styled.div`
8072
8102
  overflow-y: auto;
8073
8103
  overflow-x: hidden;
8074
8104
  padding: 10px 15px;
8075
- /* padding-bottom: ${(props) => props.paddingBottom || 10}px; */
8076
8105
  }
8077
8106
  }
8078
8107
  `;
8079
- const ContainerMotion = styled(motion.div)``;
8080
8108
  const CLASS = "modal-hide-sb";
8081
8109
  function ModalBox({
8082
8110
  maxWidth,
@@ -8125,8 +8153,8 @@ function ModalBox({
8125
8153
  controls.start(e);
8126
8154
  }
8127
8155
  if (fixed) {
8128
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$3, { paddingBottom, maxWidth, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mod-panel", children: [
8129
- /* @__PURE__ */ jsxRuntimeExports.jsxs(PanelHeader, { className: "mod-header", onPointerDown: startDrag, children: [
8156
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ContainerFixed, { maxWidth, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mod-panel", children: [
8157
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(PanelHeader, { className: "mod-header", children: [
8130
8158
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: title }),
8131
8159
  /* @__PURE__ */ jsxRuntimeExports.jsx(
8132
8160
  ButtonClose,
@@ -8138,47 +8166,40 @@ function ModalBox({
8138
8166
  ] }),
8139
8167
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mod-body", style: { paddingBottom }, children })
8140
8168
  ] }) });
8141
- } else {
8142
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
8143
- ContainerMotion,
8144
- {
8145
- paddingBottom,
8146
- isDraggable: !fixed,
8147
- maxWidth,
8148
- ref: modalRef,
8149
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
8150
- motion.div,
8151
- {
8152
- className: "mod-panel",
8153
- drag: true,
8154
- dragListener: false,
8155
- dragControls: controls,
8156
- dragConstraints: modalRef,
8157
- dragMomentum: false,
8158
- dragElastic: 0.1,
8159
- initial: { scale: 0 },
8160
- animate: { scale: 1 },
8161
- transition: {
8162
- duration: 0.2
8163
- },
8164
- children: [
8165
- /* @__PURE__ */ jsxRuntimeExports.jsxs(PanelHeader, { className: "mod-header", onPointerDown: startDrag, children: [
8166
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: title }),
8167
- /* @__PURE__ */ jsxRuntimeExports.jsx(
8168
- ButtonClose,
8169
- {
8170
- type: "button",
8171
- onClick: () => setVisible(false)
8172
- }
8173
- )
8174
- ] }),
8175
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mod-body", style: { paddingBottom }, children })
8176
- ]
8177
- }
8178
- )
8179
- }
8180
- );
8181
8169
  }
8170
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
8171
+ Container$3,
8172
+ {
8173
+ paddingBottom,
8174
+ isDraggable: !fixed,
8175
+ maxWidth,
8176
+ ref: modalRef,
8177
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
8178
+ motion.div,
8179
+ {
8180
+ className: "mod-panel",
8181
+ drag: true,
8182
+ dragListener: false,
8183
+ dragControls: controls,
8184
+ dragConstraints: modalRef,
8185
+ dragMomentum: false,
8186
+ dragElastic: 0.1,
8187
+ initial: { scale: 0 },
8188
+ animate: { scale: 1 },
8189
+ transition: {
8190
+ duration: 0.2
8191
+ },
8192
+ children: [
8193
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(PanelHeader, { className: "mod-header", onPointerDown: startDrag, children: [
8194
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: title }),
8195
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ButtonClose, { type: "button", onClick: () => setVisible(false) })
8196
+ ] }),
8197
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mod-body", style: { paddingBottom }, children })
8198
+ ]
8199
+ }
8200
+ )
8201
+ }
8202
+ );
8182
8203
  }
8183
8204
  var n, o, i = (n = function(t2, e) {
8184
8205
  return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e2) {