@tesouro/embedded-components-react 0.11.219 → 0.11.221

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.
Files changed (62) hide show
  1. package/README.md +11 -7
  2. package/dist/experimental/QuickViewWidget.d.ts +25 -13
  3. package/dist/experimental/index.d.ts +25 -13
  4. package/dist/index.css +394 -30
  5. package/dist/index.d.ts +24 -7
  6. package/dist/lib/AcceptDisclosuresWidget.d.ts +6 -2
  7. package/dist/lib/BankAccountsWidget.d.ts +4 -0
  8. package/dist/lib/BillPayWidget.d.ts +4 -3
  9. package/dist/lib/ExpenseManagementWidget.d.ts +7 -0
  10. package/dist/lib/ReceivablesWidget.d.ts +3 -2
  11. package/dist/lib/WidgetSuite.d.ts +13 -1
  12. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +1 -2
  13. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/resolveAcceptDisclosuresContent.js +1 -2
  14. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +0 -1
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +7 -0
  16. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +1 -1
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +5 -1
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +27 -13
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index29.js +1 -0
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +3 -0
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +61 -51
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +6 -6
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +48 -37
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +28 -30
  25. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index2.js +1 -0
  26. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index5.js +3 -0
  27. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/AccordionItemCard/AccordionItemCard.js +8 -3
  28. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsFilterBar/ExpensesTransactionsFilterBar.js +1 -1
  29. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/FileViewer.js +3 -0
  30. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/labels.js +1 -0
  31. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/SingleInsight.js +47 -44
  32. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +105 -97
  33. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +21 -21
  34. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +66 -63
  35. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +73 -74
  36. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +2 -1
  37. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +4 -1
  38. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +42 -35
  39. package/dist/libs/tesouro-embedded-components-react/offer-widget/ui/dist/index7.js +1 -1
  40. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/bills/feature/dist/lib/BillsQuickViewWidget/BillsQuickViewWidgetFeature.js +0 -8
  41. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/bills/ui/dist/index3.js +13 -14
  42. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/CardsQuickViewWidgetFeature.js +1 -6
  43. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/ui/dist/index3.js +5 -5
  44. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/InvoicesQuickViewWidget/InvoicesQuickViewWidgetFeature.js +0 -8
  45. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/ui/dist/index3.js +13 -14
  46. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index6.js +1 -0
  47. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index12.js +5 -6
  48. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +1 -1
  49. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +119 -119
  50. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  51. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index9.js +86 -77
  52. package/dist/libs/tesouro-embedded-components-react/shared/quick-view/ui/dist/index3.js +18 -19
  53. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ConsentBlock/ConsentBlock.js +11 -12
  54. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/FdicLogo.js +76 -72
  55. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +7 -5
  56. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadTray/UploadTray.js +49 -43
  57. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/createTheme.js +20 -4
  58. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/themeTokens.js +10 -10
  59. package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/lib/UploadReceiptWidget.js +1 -0
  60. package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index2.js +1 -0
  61. package/dist/packages/shared-ui-shadcn/dist/index.js +141 -124
  62. package/package.json +1 -1
@@ -1,58 +1,65 @@
1
1
  import { Button as e, Tabs as t, TabsContent as n, TabsList as r, TabsTrigger as i, Tooltip as a, TooltipContent as o, TooltipProvider as s, TooltipTrigger as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
2
  import { INVOICING_TABS_LABELS_EN as l } from "./index6.js";
3
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
4
- import { SettingsIcon as f } from "lucide-react";
3
+ import { createPortal as u } from "react-dom";
4
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
5
+ import { SettingsIcon as p } from "lucide-react";
5
6
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js
6
- function p({ headerStart: p, tabs: m, selectedTabId: h, onTabChange: g, onSettingsClick: _, actionContainerRef: v, labels: y }) {
7
- let b = {
7
+ function m({ headerStart: e, settingsContainerRef: t }) {
8
+ return /* @__PURE__ */ f("div", {
9
+ className: "ttw:mb-4 ttw:hidden ttw:items-start ttw:justify-between ttw:gap-4 ttw:has-[>:not(:empty)]:flex",
10
+ children: [/* @__PURE__ */ d("div", {
11
+ className: "ttw:flex ttw:min-w-0 ttw:flex-col ttw:gap-2",
12
+ children: e
13
+ }), /* @__PURE__ */ d("div", {
14
+ ref: t,
15
+ className: "ttw:flex ttw:items-center"
16
+ })]
17
+ });
18
+ }
19
+ function h({ tabs: m, selectedTabId: h, onTabChange: g, onSettingsClick: _, settingsContainer: v, actionContainerRef: y, labels: b }) {
20
+ let x = {
8
21
  ...l,
9
- ...y
22
+ ...b
10
23
  };
11
- return /* @__PURE__ */ d("div", {
24
+ return /* @__PURE__ */ f("div", {
12
25
  className: "ttw:flex ttw:flex-col ttw:gap-4",
13
- children: [(p || _) && /* @__PURE__ */ d("div", {
14
- className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-4",
15
- children: [/* @__PURE__ */ u("div", {
16
- className: "ttw:flex ttw:min-w-0 ttw:flex-col ttw:gap-2",
17
- children: p
18
- }), _ && /* @__PURE__ */ u(s, { children: /* @__PURE__ */ d(a, { children: [/* @__PURE__ */ u(c, {
19
- asChild: !0,
20
- children: /* @__PURE__ */ u(e, {
21
- type: "button",
22
- variant: "ghost",
23
- size: "icon",
24
- "aria-label": b.settingsButton,
25
- onClick: _,
26
- children: /* @__PURE__ */ u(f, {
27
- className: "ttw:size-5",
28
- "aria-hidden": !0
29
- })
26
+ children: [_ && v && u(/* @__PURE__ */ d(s, { children: /* @__PURE__ */ f(a, { children: [/* @__PURE__ */ d(c, {
27
+ asChild: !0,
28
+ children: /* @__PURE__ */ d(e, {
29
+ type: "button",
30
+ variant: "ghost",
31
+ size: "icon",
32
+ "aria-label": x.settingsButton,
33
+ onClick: _,
34
+ children: /* @__PURE__ */ d(p, {
35
+ className: "ttw:size-5",
36
+ "aria-hidden": !0
30
37
  })
31
- }), /* @__PURE__ */ u(o, {
32
- sideOffset: 4,
33
- children: b.settingsButton
34
- })] }) })]
35
- }), /* @__PURE__ */ d(t, {
38
+ })
39
+ }), /* @__PURE__ */ d(o, {
40
+ sideOffset: 4,
41
+ children: x.settingsButton
42
+ })] }) }), v), /* @__PURE__ */ f(t, {
36
43
  value: h,
37
44
  onValueChange: g,
38
45
  className: "ttw:flex ttw:w-full ttw:flex-col ttw:gap-4",
39
- children: [/* @__PURE__ */ d("div", {
46
+ children: [/* @__PURE__ */ f("div", {
40
47
  className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4",
41
- children: [/* @__PURE__ */ u(r, {
48
+ children: [/* @__PURE__ */ d(r, {
42
49
  variant: "underline",
43
- children: m.map((e) => /* @__PURE__ */ u(i, {
50
+ children: m.map((e) => /* @__PURE__ */ d(i, {
44
51
  value: e.id,
45
52
  children: e.label
46
53
  }, e.id))
47
- }), /* @__PURE__ */ u("div", {
48
- ref: v,
54
+ }), /* @__PURE__ */ d("div", {
55
+ ref: y,
49
56
  className: "ttw:flex ttw:items-center ttw:gap-2"
50
57
  })]
51
- }), m.map((e) => /* @__PURE__ */ u(n, {
58
+ }), m.map((e) => /* @__PURE__ */ d(n, {
52
59
  value: e.id,
53
60
  children: e.content
54
61
  }, e.id))]
55
62
  })]
56
63
  });
57
64
  }
58
- export { p as InvoicingTabs, p as default };
65
+ export { m as InvoicingHeader, h as InvoicingTabs, h as default };
@@ -21,7 +21,7 @@ function d({ open: d, vspLogo: f, providedByCaption: p, primaryModalHeader: m, h
21
21
  className: "ttw:max-h-[90vh] ttw:max-w-[500px] ttw:gap-0 ttw:overflow-y-auto ttw:p-6",
22
22
  children: [
23
23
  /* @__PURE__ */ c(n, {
24
- className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:text-muted-foreground ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2",
24
+ className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:text-muted-foreground ttw:ring-offset-background ttw:transition-colors ttw:hover:text-foreground ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2",
25
25
  onClick: y,
26
26
  "aria-label": C.dismissModalAriaLabel,
27
27
  children: /* @__PURE__ */ c(u, {
@@ -39,7 +39,6 @@ var S = (r) => {
39
39
  function C(e, t, n) {
40
40
  let r = (e, t = "viewBills") => ({
41
41
  subtext: e,
42
- description: e,
43
42
  subtextTone: "muted",
44
43
  callToAction: t
45
44
  });
@@ -48,7 +47,6 @@ function C(e, t, n) {
48
47
  let i = e.awaitingApprovalCount > 0 ? [t.awaitingApprovalCount(e.awaitingApprovalCount)] : [], a = e.overdueCount > 0 ? [t.overdueCount(e.overdueCount), ...i] : [t.billCount(e.openCount), ...i];
49
48
  return {
50
49
  subtext: t.joinSubtext(a),
51
- description: t.joinDescription(a),
52
50
  subtextTone: e.overdueCount > 0 ? "warning" : "muted",
53
51
  callToAction: "viewBills"
54
52
  };
@@ -78,12 +76,6 @@ function w({ labels: e, onViewBillsClick: t, onAddBillClick: n, className: c, st
78
76
  subtextTone: U?.subtextTone,
79
77
  linkText: w[U?.callToAction ?? "viewBills"],
80
78
  onClick: W,
81
- ariaLabel: U ? w.accessibleName({
82
- title: w.accessibleTitle,
83
- value: H?.exact ?? "",
84
- detail: U.description,
85
- action: w[U.callToAction]
86
- }) : void 0,
87
79
  isLoading: z,
88
80
  isError: B,
89
81
  onRetry: B ? V : void 0,
@@ -3,31 +3,30 @@ import "../../../../shared/quick-view/ui/dist/index.js";
3
3
  import { BILLS_QUICK_VIEW_TILE_LABELS_EN as t } from "./index2.js";
4
4
  import { jsx as n } from "react/jsx-runtime";
5
5
  // ../../libs/tesouro-embedded-components-react/quick-view-widget/bills/ui/dist/index3.js
6
- function r({ value: r, exactValue: i, subtext: a, subtextTone: o, linkText: s, onClick: c, ariaLabel: l, isLoading: u, isError: d, onRetry: f, labels: p, testIds: m, className: h, style: g }) {
7
- let _ = {
6
+ function r({ value: r, exactValue: i, subtext: a, subtextTone: o, linkText: s, onClick: c, isLoading: l, isError: u, onRetry: d, labels: f, testIds: p, className: m, style: h }) {
7
+ let g = {
8
8
  ...t,
9
- ...p
9
+ ...f
10
10
  };
11
11
  return /* @__PURE__ */ n(e, {
12
- title: _.title,
12
+ title: g.title,
13
13
  value: r,
14
14
  exactValue: i,
15
15
  subtext: a,
16
16
  subtextTone: o,
17
17
  linkText: s,
18
18
  onClick: c,
19
- ariaLabel: l,
20
- isLoading: u,
21
- isError: d,
22
- onRetry: f,
19
+ isLoading: l,
20
+ isError: u,
21
+ onRetry: d,
23
22
  labels: {
24
- loadingLabel: _.loadingLabel,
25
- loadErrorTitle: _.loadErrorTitle,
26
- loadErrorRetry: _.loadErrorRetry
23
+ loadingLabel: g.loadingLabel,
24
+ loadErrorTitle: g.loadErrorTitle,
25
+ loadErrorRetry: g.loadErrorRetry
27
26
  },
28
- testIds: m,
29
- className: h,
30
- style: g
27
+ testIds: p,
28
+ className: m,
29
+ style: h
31
30
  });
32
31
  }
33
32
  export { r as BillsQuickViewTile };
@@ -57,13 +57,8 @@ function w({ labels: e, onViewCardsClick: t, className: n, style: c }) {
57
57
  exactValue: H?.compact ? U : void 0,
58
58
  subtext: G,
59
59
  linkText: g.viewCards,
60
+ spokenValue: H?.isNegative ? g.negativeAmount(H.magnitude) : void 0,
60
61
  onClick: t,
61
- ariaLabel: N && G && V !== void 0 ? g.accessibleName({
62
- title: g.accessibleTitleForMonth(V),
63
- value: H?.isNegative ? g.negativeAmount(H.magnitude) : U,
64
- detail: G,
65
- action: g.viewCards
66
- }) : void 0,
67
62
  isLoading: R,
68
63
  isError: z,
69
64
  onRetry: z ? B : void 0,
@@ -3,7 +3,7 @@ import "../../../../shared/quick-view/ui/dist/index.js";
3
3
  import { CARDS_QUICK_VIEW_TILE_LABELS_EN as t } from "./index2.js";
4
4
  import { jsx as n } from "react/jsx-runtime";
5
5
  // ../../libs/tesouro-embedded-components-react/quick-view-widget/cards/ui/dist/index3.js
6
- function r({ title: r, value: i, exactValue: a, subtext: o, linkText: s, onClick: c, ariaLabel: l, isLoading: u, isError: d, onRetry: f, labels: p, testIds: m, className: h, style: g }) {
6
+ function r({ title: r, value: i, exactValue: a, spokenValue: o, subtext: s, linkText: c, onClick: l, isLoading: u, isError: d, onRetry: f, labels: p, testIds: m, className: h, style: g }) {
7
7
  let _ = {
8
8
  ...t,
9
9
  ...p
@@ -12,10 +12,10 @@ function r({ title: r, value: i, exactValue: a, subtext: o, linkText: s, onClick
12
12
  title: r ?? _.title,
13
13
  value: i,
14
14
  exactValue: a,
15
- subtext: o,
16
- linkText: s,
17
- onClick: c,
18
- ariaLabel: l,
15
+ spokenValue: o,
16
+ subtext: s,
17
+ linkText: c,
18
+ onClick: l,
19
19
  isLoading: u,
20
20
  isError: d,
21
21
  onRetry: f,
@@ -40,7 +40,6 @@ var S = (r) => {
40
40
  function C(e, t, n) {
41
41
  let r = (e, t = "viewInvoices") => ({
42
42
  subtext: e,
43
- description: e,
44
43
  subtextTone: "muted",
45
44
  callToAction: t
46
45
  });
@@ -54,7 +53,6 @@ function C(e, t, n) {
54
53
  text: t.overdueAmount(n.shown),
55
54
  tone: "destructive"
56
55
  }, { text: r }],
57
- description: t.overdueDescription(n.exact, e.overdueCount),
58
56
  exactSubtext: n.shown === n.exact ? void 0 : `${t.overdueAmount(n.exact)}${r}`,
59
57
  subtextTone: "muted",
60
58
  callToAction: "viewInvoices"
@@ -88,12 +86,6 @@ function w({ labels: e, onViewInvoicesClick: t, onCreateInvoiceClick: n, classNa
88
86
  subtextTone: U?.subtextTone,
89
87
  linkText: w[U?.callToAction ?? "viewInvoices"],
90
88
  onClick: W,
91
- ariaLabel: U ? w.accessibleName({
92
- title: w.title,
93
- value: H?.exact ?? "",
94
- detail: U.description,
95
- action: w[U.callToAction]
96
- }) : void 0,
97
89
  isLoading: z,
98
90
  isError: B,
99
91
  onRetry: B ? V : void 0,
@@ -3,13 +3,13 @@ import "../../../../shared/quick-view/ui/dist/index.js";
3
3
  import { INVOICES_QUICK_VIEW_TILE_LABELS_EN as t } from "./index2.js";
4
4
  import { jsx as n } from "react/jsx-runtime";
5
5
  // ../../libs/tesouro-embedded-components-react/quick-view-widget/invoices/ui/dist/index3.js
6
- function r({ value: r, exactValue: i, exactSubtext: a, subtext: o, subtextTone: s, linkText: c, onClick: l, ariaLabel: u, isLoading: d, isError: f, onRetry: p, labels: m, testIds: h, className: g, style: _ }) {
7
- let v = {
6
+ function r({ value: r, exactValue: i, exactSubtext: a, subtext: o, subtextTone: s, linkText: c, onClick: l, isLoading: u, isError: d, onRetry: f, labels: p, testIds: m, className: h, style: g }) {
7
+ let _ = {
8
8
  ...t,
9
- ...m
9
+ ...p
10
10
  };
11
11
  return /* @__PURE__ */ n(e, {
12
- title: v.title,
12
+ title: _.title,
13
13
  value: r,
14
14
  exactValue: i,
15
15
  exactSubtext: a,
@@ -17,18 +17,17 @@ function r({ value: r, exactValue: i, exactSubtext: a, subtext: o, subtextTone:
17
17
  subtextTone: s,
18
18
  linkText: c,
19
19
  onClick: l,
20
- ariaLabel: u,
21
- isLoading: d,
22
- isError: f,
23
- onRetry: p,
20
+ isLoading: u,
21
+ isError: d,
22
+ onRetry: f,
24
23
  labels: {
25
- loadingLabel: v.loadingLabel,
26
- loadErrorTitle: v.loadErrorTitle,
27
- loadErrorRetry: v.loadErrorRetry
24
+ loadingLabel: _.loadingLabel,
25
+ loadErrorTitle: _.loadErrorTitle,
26
+ loadErrorRetry: _.loadErrorRetry
28
27
  },
29
- testIds: h,
30
- className: g,
31
- style: _
28
+ testIds: m,
29
+ className: h,
30
+ style: g
32
31
  });
33
32
  }
34
33
  export { r as InvoicesQuickViewTile };
@@ -82,6 +82,7 @@ function h({ labels: h, testIds: g, side: _, onCapture: v }) {
82
82
  C ? /* @__PURE__ */ c("div", {
83
83
  className: "ttw:flex ttw:h-full ttw:w-full ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-4 ttw:px-8 ttw:text-center",
84
84
  children: [/* @__PURE__ */ s("p", {
85
+ role: "alert",
85
86
  className: "ttw:text-base ttw:text-white",
86
87
  children: y.cameraError
87
88
  }), /* @__PURE__ */ s(e, {
@@ -10,16 +10,15 @@ function b({ id: e, label: t }) {
10
10
  };
11
11
  }
12
12
  function x({ option: t, isSelected: n, isDisabled: r, reason: o, onToggle: c }) {
13
- let l = /* @__PURE__ */ g("label", {
13
+ let l = r && !n, u = /* @__PURE__ */ g("label", {
14
14
  "data-testid": `approver-option-${t.id}`,
15
- "aria-selected": n,
16
- "aria-disabled": r,
17
15
  className: `ttw:flex ttw:w-full ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:px-2 ttw:py-1.5 ttw:text-sm ${r ? "ttw:cursor-not-allowed ttw:opacity-50" : "ttw:cursor-pointer ttw:hover:bg-accent ttw:hover:text-accent-foreground"}`,
18
16
  children: [
19
17
  /* @__PURE__ */ h(e, {
20
18
  checked: n,
19
+ "aria-disabled": l,
21
20
  onCheckedChange: () => {
22
- (!r || n) && c();
21
+ l || c();
23
22
  }
24
23
  }),
25
24
  /* @__PURE__ */ h("span", {
@@ -34,11 +33,11 @@ function x({ option: t, isSelected: n, isDisabled: r, reason: o, onToggle: c })
34
33
  });
35
34
  return o ? /* @__PURE__ */ g(i, { children: [/* @__PURE__ */ h(s, {
36
35
  asChild: !0,
37
- children: l
36
+ children: u
38
37
  }), /* @__PURE__ */ h(a, {
39
38
  side: "right",
40
39
  children: o
41
- })] }) : l;
40
+ })] }) : u;
42
41
  }
43
42
  var S = ({ value: e, options: S, onChange: C, lockedSections: w, lockedOptions: T, disabled: E, error: D, labels: O, testId: k }) => {
44
43
  let [A, j] = p(!1), [M, N] = p(""), P = u(), F = u(), I = f(null), L = f(null), R = d(() => new Set(e.map((e) => e.id)), [e]), z = d(() => {
@@ -2,7 +2,7 @@
2
2
  var e = {
3
3
  accent: "ttw:border-violet-100 ttw:bg-violet-100 ttw:text-violet-700 ttw:hover:bg-violet-100",
4
4
  committed: "ttw:border-cyan-200 ttw:bg-cyan-50 ttw:text-cyan-700 ttw:hover:bg-cyan-50",
5
- danger: "ttw:border-destructive/20 ttw:bg-destructive/20 ttw:text-destructive ttw:hover:bg-destructive/20",
5
+ danger: "ttw:border-destructive-subtle ttw:bg-destructive-subtle ttw:text-destructive-subtle-foreground ttw:hover:bg-destructive-subtle",
6
6
  info: "ttw:border-blue-100 ttw:bg-blue-100 ttw:text-blue-700 ttw:hover:bg-blue-100",
7
7
  neutral: "ttw:border-border ttw:bg-muted ttw:text-foreground ttw:hover:bg-muted",
8
8
  settled: "ttw:border-border ttw:bg-background ttw:text-green-900 ttw:hover:bg-background",