@flytedan/flytebot-design-system 0.87.5 → 0.87.6

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.d.cts CHANGED
@@ -647,11 +647,14 @@ declare function PhasedProgress({ phases, summary, className }: PhasedProgressPr
647
647
  interface ProgressBarProps {
648
648
  /** 0-100. Omit for indeterminate. */
649
649
  value?: number;
650
+ /** Shown above the bar, and the bar's accessible name. */
650
651
  label?: string;
652
+ /** The bar's accessible name when its surroundings already show what it measures, so no label is shown. */
653
+ "aria-label"?: string;
651
654
  showValue?: boolean;
652
655
  className?: string;
653
656
  }
654
- declare function ProgressBar({ value, label, showValue, className, ...rest }: ProgressBarProps): React.JSX.Element;
657
+ declare function ProgressBar({ value, label, "aria-label": ariaLabel, showValue, className, ...rest }: ProgressBarProps): React.JSX.Element;
655
658
 
656
659
  /**
657
660
  * A skeleton exactly as large as the content it stands in for. `children` is that content's own
package/dist/index.d.ts CHANGED
@@ -647,11 +647,14 @@ declare function PhasedProgress({ phases, summary, className }: PhasedProgressPr
647
647
  interface ProgressBarProps {
648
648
  /** 0-100. Omit for indeterminate. */
649
649
  value?: number;
650
+ /** Shown above the bar, and the bar's accessible name. */
650
651
  label?: string;
652
+ /** The bar's accessible name when its surroundings already show what it measures, so no label is shown. */
653
+ "aria-label"?: string;
651
654
  showValue?: boolean;
652
655
  className?: string;
653
656
  }
654
- declare function ProgressBar({ value, label, showValue, className, ...rest }: ProgressBarProps): React.JSX.Element;
657
+ declare function ProgressBar({ value, label, "aria-label": ariaLabel, showValue, className, ...rest }: ProgressBarProps): React.JSX.Element;
655
658
 
656
659
  /**
657
660
  * A skeleton exactly as large as the content it stands in for. `children` is that content's own
package/dist/index.js CHANGED
@@ -1691,7 +1691,14 @@ function useSheetOpenMark(active) {
1691
1691
 
1692
1692
  // src/components/loading/ProgressBar.tsx
1693
1693
  import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
1694
- function ProgressBar({ value, label, showValue = false, className = "", ...rest }) {
1694
+ function ProgressBar({
1695
+ value,
1696
+ label,
1697
+ "aria-label": ariaLabel = label,
1698
+ showValue = false,
1699
+ className = "",
1700
+ ...rest
1701
+ }) {
1695
1702
  const indeterminate = value === void 0 || value === null;
1696
1703
  const pct = indeterminate ? 0 : Math.max(0, Math.min(100, value));
1697
1704
  return /* @__PURE__ */ jsxs13("div", { className: ["fd-stack", className].filter(Boolean).join(" "), style: { gap: 8 }, children: [
@@ -1710,7 +1717,7 @@ function ProgressBar({ value, label, showValue = false, className = "", ...rest
1710
1717
  "aria-valuenow": indeterminate ? void 0 : pct,
1711
1718
  "aria-valuemin": 0,
1712
1719
  "aria-valuemax": 100,
1713
- "aria-label": label,
1720
+ "aria-label": ariaLabel,
1714
1721
  ...rest,
1715
1722
  children: /* @__PURE__ */ jsx19("div", { className: "fd-progress-fill", style: indeterminate ? void 0 : { width: pct + "%" } })
1716
1723
  }
@@ -1769,7 +1776,7 @@ function JobCard({ job, onDismiss }) {
1769
1776
  ] }),
1770
1777
  job.note ? /* @__PURE__ */ jsx20("span", { className: "fd-job-card-note fd-secondary", children: job.note }) : null,
1771
1778
  job.status === "active" ? /* @__PURE__ */ jsxs14("div", { className: "fd-job-card-progress", children: [
1772
- /* @__PURE__ */ jsx20(ProgressBar, { value: job.progress, label: title }),
1779
+ /* @__PURE__ */ jsx20(ProgressBar, { value: job.progress, "aria-label": title }),
1773
1780
  job.progressNote ? /* @__PURE__ */ jsx20("span", { className: "fd-job-card-note fd-secondary", children: job.progressNote }) : null
1774
1781
  ] }) : null,
1775
1782
  job.status === "done" ? /* @__PURE__ */ jsxs14("div", { className: "fd-job-card-done", children: [