jclib-ui 1.0.193 → 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.
@@ -1435,7 +1435,7 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
1435
1435
  * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
1436
1436
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1437
1437
  */
1438
- (function(module, exports) {
1438
+ (function(module, exports$1) {
1439
1439
  !function(t2, e) {
1440
1440
  module.exports = e(require$$0);
1441
1441
  }(commonjsGlobal, function(t2) {
@@ -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
- total = value <= 0 ? "Inclusão" : isCount ? value : `#${value}`;
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
  }
@@ -5447,7 +5449,7 @@ var localforage$1 = { exports: {} };
5447
5449
  https://localforage.github.io/localForage
5448
5450
  (c) 2013-2017 Mozilla, Apache License 2.0
5449
5451
  */
5450
- (function(module, exports) {
5452
+ (function(module, exports$1) {
5451
5453
  (function(f2) {
5452
5454
  {
5453
5455
  module.exports = f2();
@@ -5474,7 +5476,7 @@ var localforage$1 = { exports: {} };
5474
5476
  var i2 = typeof commonjsRequire == "function" && commonjsRequire;
5475
5477
  for (var o2 = 0; o2 < r.length; o2++) s2(r[o2]);
5476
5478
  return s2;
5477
- }({ 1: [function(_dereq_, module2, exports2) {
5479
+ }({ 1: [function(_dereq_, module2, exports$12) {
5478
5480
  (function(global2) {
5479
5481
  var Mutation = global2.MutationObserver || global2.WebKitMutationObserver;
5480
5482
  var scheduleDrain;
@@ -5536,7 +5538,7 @@ var localforage$1 = { exports: {} };
5536
5538
  }
5537
5539
  }
5538
5540
  }).call(this, typeof commonjsGlobal !== "undefined" ? commonjsGlobal : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {});
5539
- }, {}], 2: [function(_dereq_, module2, exports2) {
5541
+ }, {}], 2: [function(_dereq_, module2, exports$12) {
5540
5542
  var immediate = _dereq_(1);
5541
5543
  function INTERNAL() {
5542
5544
  }
@@ -5760,13 +5762,13 @@ var localforage$1 = { exports: {} };
5760
5762
  });
5761
5763
  }
5762
5764
  }
5763
- }, { "1": 1 }], 3: [function(_dereq_, module2, exports2) {
5765
+ }, { "1": 1 }], 3: [function(_dereq_, module2, exports$12) {
5764
5766
  (function(global2) {
5765
5767
  if (typeof global2.Promise !== "function") {
5766
5768
  global2.Promise = _dereq_(2);
5767
5769
  }
5768
5770
  }).call(this, typeof commonjsGlobal !== "undefined" ? commonjsGlobal : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {});
5769
- }, { "2": 2 }], 4: [function(_dereq_, module2, exports2) {
5771
+ }, { "2": 2 }], 4: [function(_dereq_, module2, exports$12) {
5770
5772
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
5771
5773
  return typeof obj;
5772
5774
  } : function(obj) {
@@ -8173,22 +8175,22 @@ const ContainerFixed = styled.div`
8173
8175
 
8174
8176
  z-index: 1032;
8175
8177
 
8176
- .modal--header {
8178
+ & > .modal--header {
8177
8179
  border-radius: var(--pn-border-radius) var(--pn-border-radius) 0 0;
8178
8180
  }
8179
8181
 
8180
- .modal--content {
8182
+ & > .modal--content {
8181
8183
  max-height: ${(p2) => p2.alignTop ? "calc(100vh - 140px)" : "calc(100vh - 110px)"};
8182
8184
 
8183
8185
  overflow-y: auto;
8184
8186
  overflow-x: hidden;
8185
8187
 
8186
- .modal--body {
8188
+ & > .modal--body {
8187
8189
  background-color: var(--bs-body-bg);
8188
8190
  padding: 10px 15px;
8189
8191
  }
8190
8192
 
8191
- .modal--footer {
8193
+ & > .modal--footer {
8192
8194
  background-color: var(--bs-body-bg);
8193
8195
  padding: 0px 15px 12px;
8194
8196
  position: sticky;
@@ -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 }) })