braid-ui 1.0.8 → 1.0.9

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.js CHANGED
@@ -5759,6 +5759,50 @@ var StatementView = ({
5759
5759
  !statementGenerated && /* @__PURE__ */ jsxs(Card, { children: [
5760
5760
  /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { size: "md", children: "Statement Parameters" }) }),
5761
5761
  /* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
5762
+ statementType === "program" && programsError && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 p-4 bg-destructive/10 border border-destructive/20 rounded-md", children: [
5763
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
5764
+ /* @__PURE__ */ jsx(AlertCircle, { className: "h-5 w-5 text-destructive flex-shrink-0" }),
5765
+ /* @__PURE__ */ jsxs("div", { children: [
5766
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-destructive", children: "Failed to load programs" }),
5767
+ /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive/80 mt-0.5", children: programsError })
5768
+ ] })
5769
+ ] }),
5770
+ /* @__PURE__ */ jsxs(
5771
+ Button,
5772
+ {
5773
+ onClick: onRetryFetch,
5774
+ variant: "outline",
5775
+ size: "sm",
5776
+ disabled: programsLoading,
5777
+ children: [
5778
+ programsLoading ? /* @__PURE__ */ jsx(Loader2, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4" }),
5779
+ "Retry"
5780
+ ]
5781
+ }
5782
+ )
5783
+ ] }),
5784
+ statementType === "product" && productsError && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 p-4 bg-destructive/10 border border-destructive/20 rounded-md", children: [
5785
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
5786
+ /* @__PURE__ */ jsx(AlertCircle, { className: "h-5 w-5 text-destructive flex-shrink-0" }),
5787
+ /* @__PURE__ */ jsxs("div", { children: [
5788
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-destructive", children: "Failed to load products" }),
5789
+ /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive/80 mt-0.5", children: productsError })
5790
+ ] })
5791
+ ] }),
5792
+ /* @__PURE__ */ jsxs(
5793
+ Button,
5794
+ {
5795
+ onClick: onRetryFetch,
5796
+ variant: "outline",
5797
+ size: "sm",
5798
+ disabled: productsLoading,
5799
+ children: [
5800
+ productsLoading ? /* @__PURE__ */ jsx(Loader2, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4" }),
5801
+ "Retry"
5802
+ ]
5803
+ }
5804
+ )
5805
+ ] }),
5762
5806
  /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4", children: [
5763
5807
  /* @__PURE__ */ jsx(
5764
5808
  EnhancedSelect,
@@ -5770,14 +5814,6 @@ var StatementView = ({
5770
5814
  onValueChange: onStatementTypeChange
5771
5815
  }
5772
5816
  ),
5773
- statementType === "program" && programsError && /* @__PURE__ */ jsx("div", { className: "col-span-full", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 p-3 bg-destructive/10 border border-destructive/20 rounded-md text-sm text-destructive", children: [
5774
- /* @__PURE__ */ jsx(AlertCircle, { className: "h-4 w-4" }),
5775
- /* @__PURE__ */ jsx("span", { children: programsError })
5776
- ] }) }),
5777
- statementType === "product" && productsError && /* @__PURE__ */ jsx("div", { className: "col-span-full", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 p-3 bg-destructive/10 border border-destructive/20 rounded-md text-sm text-destructive", children: [
5778
- /* @__PURE__ */ jsx(AlertCircle, { className: "h-4 w-4" }),
5779
- /* @__PURE__ */ jsx("span", { children: productsError })
5780
- ] }) }),
5781
5817
  statementType === "program" && /* @__PURE__ */ jsx(
5782
5818
  EnhancedSelect,
5783
5819
  {
@@ -5834,21 +5870,7 @@ var StatementView = ({
5834
5870
  )
5835
5871
  ] })
5836
5872
  ] }),
5837
- /* @__PURE__ */ jsx("div", { className: "flex justify-end", children: shouldShowRetry ? /* @__PURE__ */ jsxs(
5838
- Button,
5839
- {
5840
- onClick: onRetryFetch,
5841
- variant: "outline",
5842
- disabled: programsLoading || productsLoading,
5843
- children: [
5844
- (programsLoading || productsLoading) && /* @__PURE__ */ jsx(Loader2, { className: "h-4 w-4 animate-spin" }),
5845
- programsLoading || productsLoading ? "Retrying..." : /* @__PURE__ */ jsxs(Fragment, { children: [
5846
- /* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4" }),
5847
- "Retry"
5848
- ] })
5849
- ]
5850
- }
5851
- ) : /* @__PURE__ */ jsxs(
5873
+ /* @__PURE__ */ jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsxs(
5852
5874
  Button,
5853
5875
  {
5854
5876
  onClick: onGenerateStatement,