jclib-ui 1.0.198 → 1.0.200
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/jclib-ui.es.js +11 -4
- package/dist/jclib-ui.es.js.map +1 -1
- package/dist/jclib-ui.umd.js +2 -2
- package/dist/jclib-ui.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/jclib-ui.es.js
CHANGED
|
@@ -5329,7 +5329,11 @@ const PanelHeader = styled.div`
|
|
|
5329
5329
|
function PanelBadge({ value, isCount, ...rest }) {
|
|
5330
5330
|
let total;
|
|
5331
5331
|
if (typeof value == "number") {
|
|
5332
|
-
|
|
5332
|
+
if (isCount) {
|
|
5333
|
+
total = Math.min(value, 9999);
|
|
5334
|
+
} else {
|
|
5335
|
+
total = value <= 0 ? "Inclusão" : `#${value}`;
|
|
5336
|
+
}
|
|
5333
5337
|
} else {
|
|
5334
5338
|
total = value;
|
|
5335
5339
|
}
|
|
@@ -5337,9 +5341,7 @@ function PanelBadge({ value, isCount, ...rest }) {
|
|
|
5337
5341
|
"div",
|
|
5338
5342
|
{
|
|
5339
5343
|
className: "badge bg-info text-dark",
|
|
5340
|
-
style: {
|
|
5341
|
-
borderRadius: "var(--pn-border-radius)"
|
|
5342
|
-
},
|
|
5344
|
+
style: { borderRadius: "var(--pn-border-radius)" },
|
|
5343
5345
|
...rest,
|
|
5344
5346
|
children: total
|
|
5345
5347
|
}
|
|
@@ -19332,6 +19334,7 @@ function ModalBox({
|
|
|
19332
19334
|
alignTop,
|
|
19333
19335
|
paddingBottom = 10,
|
|
19334
19336
|
helpLink,
|
|
19337
|
+
count,
|
|
19335
19338
|
...rest
|
|
19336
19339
|
}) {
|
|
19337
19340
|
if (!visible) {
|
|
@@ -19340,6 +19343,10 @@ function ModalBox({
|
|
|
19340
19343
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Modal, { alignTop, setVisible, visible, ...rest, children: [
|
|
19341
19344
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(ModalHeader, { helpLink, setVisible, children: [
|
|
19342
19345
|
title,
|
|
19346
|
+
count != void 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
19347
|
+
" ",
|
|
19348
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(PanelBadge, { value: count, isCount: true })
|
|
19349
|
+
] }),
|
|
19343
19350
|
/* @__PURE__ */ jsxRuntimeExports.jsx(PanelBadge, { value: codigo })
|
|
19344
19351
|
] }),
|
|
19345
19352
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ModalContent, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ModalBody, { style: { paddingBottom }, children }) })
|