@flytedan/flytebot-design-system 0.87.5 → 0.87.7

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.cjs CHANGED
@@ -2877,7 +2877,14 @@ function useSheetOpenMark(active) {
2877
2877
 
2878
2878
  // src/components/loading/ProgressBar.tsx
2879
2879
  var import_jsx_runtime19 = require("react/jsx-runtime");
2880
- function ProgressBar({ value, label, showValue = false, className = "", ...rest }) {
2880
+ function ProgressBar({
2881
+ value,
2882
+ label,
2883
+ "aria-label": ariaLabel = label,
2884
+ showValue = false,
2885
+ className = "",
2886
+ ...rest
2887
+ }) {
2881
2888
  const indeterminate = value === void 0 || value === null;
2882
2889
  const pct = indeterminate ? 0 : Math.max(0, Math.min(100, value));
2883
2890
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: ["fd-stack", className].filter(Boolean).join(" "), style: { gap: 8 }, children: [
@@ -2896,7 +2903,7 @@ function ProgressBar({ value, label, showValue = false, className = "", ...rest
2896
2903
  "aria-valuenow": indeterminate ? void 0 : pct,
2897
2904
  "aria-valuemin": 0,
2898
2905
  "aria-valuemax": 100,
2899
- "aria-label": label,
2906
+ "aria-label": ariaLabel,
2900
2907
  ...rest,
2901
2908
  children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "fd-progress-fill", style: indeterminate ? void 0 : { width: pct + "%" } })
2902
2909
  }
@@ -2955,7 +2962,7 @@ function JobCard({ job, onDismiss }) {
2955
2962
  ] }),
2956
2963
  job.note ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "fd-job-card-note fd-secondary", children: job.note }) : null,
2957
2964
  job.status === "active" ? /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "fd-job-card-progress", children: [
2958
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ProgressBar, { value: job.progress, label: title }),
2965
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ProgressBar, { value: job.progress, "aria-label": title }),
2959
2966
  job.progressNote ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "fd-job-card-note fd-secondary", children: job.progressNote }) : null
2960
2967
  ] }) : null,
2961
2968
  job.status === "done" ? /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "fd-job-card-done", children: [