analytica-frontend-lib 1.3.76 → 1.3.77

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/index.mjs CHANGED
@@ -16688,6 +16688,7 @@ var loadingModal_default = LoadingModal;
16688
16688
 
16689
16689
  // src/components/ProgressModal/ProgressModal.tsx
16690
16690
  init_Modal();
16691
+ init_Text();
16691
16692
  import { jsx as jsx75, jsxs as jsxs61 } from "react/jsx-runtime";
16692
16693
  var ProgressModal = ({
16693
16694
  isOpen,
@@ -16695,30 +16696,42 @@ var ProgressModal = ({
16695
16696
  message,
16696
16697
  image,
16697
16698
  imageAlt,
16699
+ accessibleName,
16698
16700
  progress,
16699
16701
  size = "sm"
16700
16702
  }) => {
16701
16703
  const isIndeterminate = progress === void 0;
16702
- const resolvedAlt = imageAlt ?? (typeof message === "string" ? message : "Carregando");
16703
- return /* @__PURE__ */ jsx75(Modal_default, { isOpen, onClose, title: message, size, children: /* @__PURE__ */ jsxs61("div", { className: "flex flex-col items-center gap-6 py-2", children: [
16704
- image && /* @__PURE__ */ jsx75(
16705
- "img",
16706
- {
16707
- src: image,
16708
- alt: resolvedAlt,
16709
- className: "w-60 h-60 object-contain"
16710
- }
16711
- ),
16712
- /* @__PURE__ */ jsx75("div", { className: isIndeterminate ? "w-full animate-pulse" : "w-full", children: /* @__PURE__ */ jsx75(
16713
- ProgressBar_default,
16714
- {
16715
- value: progress ?? 60,
16716
- size: "medium",
16717
- variant: "blue",
16718
- showPercentage: !isIndeterminate
16719
- }
16720
- ) })
16721
- ] }) });
16704
+ const resolvedAccessibleName = typeof message === "string" ? message : accessibleName ?? "Carregando";
16705
+ const resolvedAlt = imageAlt ?? resolvedAccessibleName;
16706
+ return /* @__PURE__ */ jsx75(
16707
+ Modal_default,
16708
+ {
16709
+ isOpen,
16710
+ onClose,
16711
+ title: /* @__PURE__ */ jsx75("span", { className: "sr-only", children: resolvedAccessibleName }),
16712
+ size,
16713
+ children: /* @__PURE__ */ jsxs61("div", { className: "flex flex-col items-center gap-6 py-2", children: [
16714
+ image && /* @__PURE__ */ jsx75(
16715
+ "img",
16716
+ {
16717
+ src: image,
16718
+ alt: resolvedAlt,
16719
+ className: "w-60 h-60 object-contain"
16720
+ }
16721
+ ),
16722
+ /* @__PURE__ */ jsx75(Text_default, { size: "md", className: "text-text-950 text-center", children: message }),
16723
+ /* @__PURE__ */ jsx75("div", { className: isIndeterminate ? "w-full animate-pulse" : "w-full", children: /* @__PURE__ */ jsx75(
16724
+ ProgressBar_default,
16725
+ {
16726
+ value: progress ?? 60,
16727
+ size: "medium",
16728
+ variant: "blue",
16729
+ showPercentage: !isIndeterminate
16730
+ }
16731
+ ) })
16732
+ ] })
16733
+ }
16734
+ );
16722
16735
  };
16723
16736
  var ProgressModal_default = ProgressModal;
16724
16737