@tesouro/embedded-components-react 0.11.219 → 0.11.220

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 (54) hide show
  1. package/README.md +7 -4
  2. package/dist/experimental/QuickViewWidget.d.ts +25 -13
  3. package/dist/experimental/index.d.ts +25 -13
  4. package/dist/index.css +388 -25
  5. package/dist/index.d.ts +18 -2
  6. package/dist/lib/AcceptDisclosuresWidget.d.ts +6 -2
  7. package/dist/lib/BankAccountsWidget.d.ts +4 -0
  8. package/dist/lib/ExpenseManagementWidget.d.ts +7 -0
  9. package/dist/lib/ReceivablesWidget.d.ts +1 -0
  10. package/dist/lib/WidgetSuite.d.ts +12 -0
  11. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +1 -2
  12. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/resolveAcceptDisclosuresContent.js +1 -2
  13. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +0 -1
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +7 -0
  15. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +5 -1
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +27 -13
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index29.js +1 -0
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +3 -0
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +28 -30
  21. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index2.js +1 -0
  22. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index5.js +3 -0
  23. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/AccordionItemCard/AccordionItemCard.js +8 -3
  24. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsFilterBar/ExpensesTransactionsFilterBar.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/FileViewer.js +3 -0
  26. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/labels.js +1 -0
  27. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/SingleInsight.js +47 -44
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +66 -63
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +73 -74
  30. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +2 -1
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +4 -1
  32. package/dist/libs/tesouro-embedded-components-react/offer-widget/ui/dist/index7.js +1 -1
  33. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/bills/feature/dist/lib/BillsQuickViewWidget/BillsQuickViewWidgetFeature.js +0 -8
  34. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/bills/ui/dist/index3.js +13 -14
  35. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/CardsQuickViewWidgetFeature.js +1 -6
  36. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/ui/dist/index3.js +5 -5
  37. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/InvoicesQuickViewWidget/InvoicesQuickViewWidgetFeature.js +0 -8
  38. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/ui/dist/index3.js +13 -14
  39. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index6.js +1 -0
  40. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index12.js +5 -6
  41. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +1 -1
  42. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  43. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index9.js +86 -77
  44. package/dist/libs/tesouro-embedded-components-react/shared/quick-view/ui/dist/index3.js +18 -19
  45. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ConsentBlock/ConsentBlock.js +11 -12
  46. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/FdicLogo.js +76 -72
  47. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +7 -5
  48. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadTray/UploadTray.js +49 -43
  49. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/createTheme.js +20 -4
  50. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/themeTokens.js +10 -10
  51. package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/lib/UploadReceiptWidget.js +1 -0
  52. package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index2.js +1 -0
  53. package/dist/packages/shared-ui-shadcn/dist/index.js +141 -124
  54. package/package.json +1 -1
package/README.md CHANGED
@@ -310,14 +310,17 @@ removed in a future major version. None is declared: until you set one,
310
310
  them out.
311
311
 
312
312
  In development, `createTheme` warns once in the console about unknown keys,
313
- text under 4.5:1 contrast (3:1 for `mutedForeground` on `muted`) and a radius
314
- outside 0–1.25rem, and the widgets run the same contrast check once against
313
+ text under 4.5:1 contrast and a radius outside
314
+ 0–1.25rem, and the widgets run the same contrast check once against
315
315
  the theme they actually render with.
316
316
  Nothing warns in production, and a warning never stops a widget rendering.
317
317
  `themeIssues(tokens)` returns the same findings as data, for a test in your
318
318
  own CI; a variable you leave out is judged at its default, so
319
- `themeIssues(createTheme({ primary }))` checks `primary` against the default
320
- `primaryForeground`.
319
+ `themeIssues({ '--ttw-primary': primary })` checks `primary` against the
320
+ default `primaryForeground`. If you set `primary` without
321
+ `primaryForeground` and the default text would fall under 4.5:1 on it,
322
+ `createTheme` sets `primaryForeground` to white or black, whichever reads
323
+ better.
321
324
 
322
325
  A status colour you set (`info`, `success`, `warning`, `destructive`,
323
326
  `violet`, `cyan`) gets its pale fill and its text derived from it. Browsers
@@ -661,11 +661,16 @@ interface InvoicesQuickViewWidgetLabels extends InvoicesQuickViewTileLabels {
661
661
  * `overdueAmount` directly, so it carries its own separator.
662
662
  */
663
663
  overdueInvoiceCount: (count: number) => string;
664
- /** The overdue line as a screen reader hears it, without the separator. */
664
+ /**
665
+ * @deprecated No longer read: the tile is named by its visible text, so a
666
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
667
+ * overrides still type-check; removed in a future release.
668
+ */
665
669
  overdueDescription: (amount: string, count: number) => string;
666
670
  /**
667
- * The tile's one-sentence accessible name, e.g. "Open invoices, $18,300.00,
668
- * $6,450.00 overdue across 3 invoices. View invoices."
671
+ * @deprecated No longer read: the tile is named by its visible text, so a
672
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
673
+ * overrides still type-check; removed in a future release.
669
674
  */
670
675
  accessibleName: (parts: {
671
676
  title: string;
@@ -688,8 +693,9 @@ interface BillsQuickViewTileLabels {
688
693
 
689
694
  interface BillsQuickViewWidgetLabels extends BillsQuickViewTileLabels {
690
695
  /**
691
- * The tile heading as a screen reader hears it, at the start of the
692
- * accessible name. Override it alongside `title`.
696
+ * @deprecated No longer read: the tile is named by its visible text, so a
697
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
698
+ * overrides still type-check; removed in a future release.
693
699
  */
694
700
  accessibleTitle: string;
695
701
  /** Call to action that opens the bills list. */
@@ -714,11 +720,16 @@ interface BillsQuickViewWidgetLabels extends BillsQuickViewTileLabels {
714
720
  awaitingApprovalCount: (count: number) => string;
715
721
  /** Joins the sub-line parts, e.g. "1 overdue · 1 awaiting approval". */
716
722
  joinSubtext: (parts: string[]) => string;
717
- /** Joins the same parts as a screen reader hears them, without the dot. */
723
+ /**
724
+ * @deprecated No longer read: the tile is named by its visible text, so a
725
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
726
+ * overrides still type-check; removed in a future release.
727
+ */
718
728
  joinDescription: (parts: string[]) => string;
719
729
  /**
720
- * The tile's one-sentence accessible name, e.g. "Bills due in the next 30
721
- * days, $9,615.00, 1 overdue, 1 awaiting approval. View bills."
730
+ * @deprecated No longer read: the tile is named by its visible text, so a
731
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
732
+ * overrides still type-check; removed in a future release.
722
733
  */
723
734
  accessibleName: (parts: {
724
735
  title: string;
@@ -749,9 +760,9 @@ interface CardsQuickViewWidgetLabels extends CardsQuickViewTileLabels {
749
760
  */
750
761
  titleForMonth: (month: number) => string;
751
762
  /**
752
- * The heading as a screen reader hears it, at the start of the accessible
753
- * name, e.g. "Card spend in October". Override it alongside
754
- * `titleForMonth`.
763
+ * @deprecated No longer read: the tile is named by its visible text, so a
764
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
765
+ * overrides still type-check; removed in a future release.
755
766
  */
756
767
  accessibleTitleForMonth: (month: number) => string;
757
768
  /** Call to action that opens the cards list. */
@@ -766,8 +777,9 @@ interface CardsQuickViewWidgetLabels extends CardsQuickViewTileLabels {
766
777
  */
767
778
  negativeAmount: (magnitude: string) => string;
768
779
  /**
769
- * The tile's one-sentence accessible name, e.g. "Card spend in October,
770
- * $3,186.52, 5 cards. View cards."
780
+ * @deprecated No longer read: the tile is named by its visible text, so a
781
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
782
+ * overrides still type-check; removed in a future release.
771
783
  */
772
784
  accessibleName: (parts: {
773
785
  title: string;
@@ -752,11 +752,16 @@ interface InvoicesQuickViewWidgetLabels extends InvoicesQuickViewTileLabels {
752
752
  * `overdueAmount` directly, so it carries its own separator.
753
753
  */
754
754
  overdueInvoiceCount: (count: number) => string;
755
- /** The overdue line as a screen reader hears it, without the separator. */
755
+ /**
756
+ * @deprecated No longer read: the tile is named by its visible text, so a
757
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
758
+ * overrides still type-check; removed in a future release.
759
+ */
756
760
  overdueDescription: (amount: string, count: number) => string;
757
761
  /**
758
- * The tile's one-sentence accessible name, e.g. "Open invoices, $18,300.00,
759
- * $6,450.00 overdue across 3 invoices. View invoices."
762
+ * @deprecated No longer read: the tile is named by its visible text, so a
763
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
764
+ * overrides still type-check; removed in a future release.
760
765
  */
761
766
  accessibleName: (parts: {
762
767
  title: string;
@@ -779,8 +784,9 @@ interface BillsQuickViewTileLabels {
779
784
 
780
785
  interface BillsQuickViewWidgetLabels extends BillsQuickViewTileLabels {
781
786
  /**
782
- * The tile heading as a screen reader hears it, at the start of the
783
- * accessible name. Override it alongside `title`.
787
+ * @deprecated No longer read: the tile is named by its visible text, so a
788
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
789
+ * overrides still type-check; removed in a future release.
784
790
  */
785
791
  accessibleTitle: string;
786
792
  /** Call to action that opens the bills list. */
@@ -805,11 +811,16 @@ interface BillsQuickViewWidgetLabels extends BillsQuickViewTileLabels {
805
811
  awaitingApprovalCount: (count: number) => string;
806
812
  /** Joins the sub-line parts, e.g. "1 overdue · 1 awaiting approval". */
807
813
  joinSubtext: (parts: string[]) => string;
808
- /** Joins the same parts as a screen reader hears them, without the dot. */
814
+ /**
815
+ * @deprecated No longer read: the tile is named by its visible text, so a
816
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
817
+ * overrides still type-check; removed in a future release.
818
+ */
809
819
  joinDescription: (parts: string[]) => string;
810
820
  /**
811
- * The tile's one-sentence accessible name, e.g. "Bills due in the next 30
812
- * days, $9,615.00, 1 overdue, 1 awaiting approval. View bills."
821
+ * @deprecated No longer read: the tile is named by its visible text, so a
822
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
823
+ * overrides still type-check; removed in a future release.
813
824
  */
814
825
  accessibleName: (parts: {
815
826
  title: string;
@@ -840,9 +851,9 @@ interface CardsQuickViewWidgetLabels extends CardsQuickViewTileLabels {
840
851
  */
841
852
  titleForMonth: (month: number) => string;
842
853
  /**
843
- * The heading as a screen reader hears it, at the start of the accessible
844
- * name, e.g. "Card spend in October". Override it alongside
845
- * `titleForMonth`.
854
+ * @deprecated No longer read: the tile is named by its visible text, so a
855
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
856
+ * overrides still type-check; removed in a future release.
846
857
  */
847
858
  accessibleTitleForMonth: (month: number) => string;
848
859
  /** Call to action that opens the cards list. */
@@ -857,8 +868,9 @@ interface CardsQuickViewWidgetLabels extends CardsQuickViewTileLabels {
857
868
  */
858
869
  negativeAmount: (magnitude: string) => string;
859
870
  /**
860
- * The tile's one-sentence accessible name, e.g. "Card spend in October,
861
- * $3,186.52, 5 cards. View cards."
871
+ * @deprecated No longer read: the tile is named by its visible text, so a
872
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
873
+ * overrides still type-check; removed in a future release.
862
874
  */
863
875
  accessibleName: (parts: {
864
876
  title: string;
package/dist/index.css CHANGED
@@ -1996,6 +1996,126 @@
1996
1996
  .ttw\:border-destructive {
1997
1997
  border-color: var(--ttw-destructive);
1998
1998
  }
1999
+ .ttw\:border-destructive-subtle {
2000
+ border-color: var(
2001
+ --ttw-destructive-subtle,
2002
+ var(
2003
+ --_ttw-tint-relative,
2004
+ oklch(
2005
+ from
2006
+ oklch(from var(--ttw-destructive) 0.56 c h)
2007
+ l
2008
+ min(
2009
+ calc(c * 2.5),
2010
+ calc(
2011
+ (1 - l) *
2012
+ (
2013
+ 0.498 +
2014
+ (
2015
+ -0.028 * clamp(0, h, 30) + 0.087 *
2016
+ clamp(0, h - 30, 30) + 0.498 * clamp(0, h - 60, 30) +
2017
+ 0.253 * clamp(0, h - 90, 30) + 0.113 *
2018
+ clamp(0, h - 120, 30) - 0.485 *
2019
+ clamp(0, h - 150, 30) - 0.14 * clamp(0, h - 180, 30) -
2020
+ 0.316 * clamp(0, h - 210, 30) - 0.031 *
2021
+ clamp(0, h - 240, 30) + 0.083 *
2022
+ clamp(0, h - 270, 30) + 0.221 *
2023
+ clamp(0, h - 300, 30) - 0.255 * clamp(0, h - 330, 30)
2024
+ ) /
2025
+ 30
2026
+ )
2027
+ ),
2028
+ calc(
2029
+ l *
2030
+ (
2031
+ 0.396 +
2032
+ (
2033
+ -0.041 * clamp(0, h, 30) - 0.146 *
2034
+ clamp(0, h - 30, 30) - 0.016 * clamp(0, h - 60, 30) +
2035
+ 0.032 * clamp(0, h - 90, 30) + 0.025 *
2036
+ clamp(0, h - 120, 30) - 0.086 *
2037
+ clamp(0, h - 150, 30) - 0.004 *
2038
+ clamp(0, h - 180, 30) + 0.001 *
2039
+ clamp(0, h - 210, 30) + 0.328 *
2040
+ clamp(0, h - 240, 30) + 0.036 *
2041
+ clamp(0, h - 270, 30) - 0.081 *
2042
+ clamp(0, h - 300, 30) - 0.048 * clamp(0, h - 330, 30)
2043
+ ) /
2044
+ 30
2045
+ )
2046
+ )
2047
+ )
2048
+ h
2049
+ )
2050
+ )
2051
+ var(
2052
+ --_ttw-tint-legacy,
2053
+ var(--ttw-destructive)
2054
+ )
2055
+ );
2056
+ @supports (color: color-mix(in lab, red, red)) {
2057
+ border-color: var(
2058
+ --ttw-destructive-subtle,
2059
+ var(
2060
+ --_ttw-tint-relative,
2061
+ oklch(
2062
+ from
2063
+ color-mix(
2064
+ in oklch,
2065
+ oklch(from var(--ttw-destructive) 0.56 c h) 16%,
2066
+ oklch(from var(--ttw-background) l 0 none)
2067
+ )
2068
+ l
2069
+ min(
2070
+ calc(c * 2.5),
2071
+ calc(
2072
+ (1 - l) *
2073
+ (
2074
+ 0.498 +
2075
+ (
2076
+ -0.028 * clamp(0, h, 30) + 0.087 *
2077
+ clamp(0, h - 30, 30) + 0.498 * clamp(0, h - 60, 30) +
2078
+ 0.253 * clamp(0, h - 90, 30) + 0.113 *
2079
+ clamp(0, h - 120, 30) - 0.485 *
2080
+ clamp(0, h - 150, 30) - 0.14 * clamp(0, h - 180, 30) -
2081
+ 0.316 * clamp(0, h - 210, 30) - 0.031 *
2082
+ clamp(0, h - 240, 30) + 0.083 *
2083
+ clamp(0, h - 270, 30) + 0.221 *
2084
+ clamp(0, h - 300, 30) - 0.255 * clamp(0, h - 330, 30)
2085
+ ) /
2086
+ 30
2087
+ )
2088
+ ),
2089
+ calc(
2090
+ l *
2091
+ (
2092
+ 0.396 +
2093
+ (
2094
+ -0.041 * clamp(0, h, 30) - 0.146 *
2095
+ clamp(0, h - 30, 30) - 0.016 * clamp(0, h - 60, 30) +
2096
+ 0.032 * clamp(0, h - 90, 30) + 0.025 *
2097
+ clamp(0, h - 120, 30) - 0.086 *
2098
+ clamp(0, h - 150, 30) - 0.004 *
2099
+ clamp(0, h - 180, 30) + 0.001 *
2100
+ clamp(0, h - 210, 30) + 0.328 *
2101
+ clamp(0, h - 240, 30) + 0.036 *
2102
+ clamp(0, h - 270, 30) - 0.081 *
2103
+ clamp(0, h - 300, 30) - 0.048 * clamp(0, h - 330, 30)
2104
+ ) /
2105
+ 30
2106
+ )
2107
+ )
2108
+ )
2109
+ h
2110
+ )
2111
+ )
2112
+ var(
2113
+ --_ttw-tint-legacy,
2114
+ color-mix(in oklab, var(--ttw-destructive) 12%, var(--ttw-background))
2115
+ )
2116
+ );
2117
+ }
2118
+ }
1999
2119
  .ttw\:border-destructive\/20 {
2000
2120
  border-color: var(--ttw-destructive);
2001
2121
  @supports (color: color-mix(in lab, red, red)) {
@@ -2521,12 +2641,6 @@
2521
2641
  background-color: color-mix(in oklab, var(--ttw-destructive) 10%, transparent);
2522
2642
  }
2523
2643
  }
2524
- .ttw\:bg-destructive\/20 {
2525
- background-color: var(--ttw-destructive);
2526
- @supports (color: color-mix(in lab, red, red)) {
2527
- background-color: color-mix(in oklab, var(--ttw-destructive) 20%, transparent);
2528
- }
2529
- }
2530
2644
  .ttw\:bg-emerald-50 {
2531
2645
  background-color: var(--ttw-color-emerald-50);
2532
2646
  }
@@ -3751,6 +3865,9 @@
3751
3865
  .ttw\:pr-8 {
3752
3866
  padding-right: calc(var(--ttw-spacing) * 8);
3753
3867
  }
3868
+ .ttw\:pr-12 {
3869
+ padding-right: calc(var(--ttw-spacing) * 12);
3870
+ }
3754
3871
  .ttw\:pr-14 {
3755
3872
  padding-right: calc(var(--ttw-spacing) * 14);
3756
3873
  }
@@ -4063,9 +4180,6 @@
4063
4180
  .ttw\:text-\[\#101317\] {
4064
4181
  color: #101317;
4065
4182
  }
4066
- .ttw\:text-\[\#999999\] {
4067
- color: #999999;
4068
- }
4069
4183
  .ttw\:text-accent-foreground {
4070
4184
  color: var(--ttw-accent-foreground);
4071
4185
  }
@@ -5073,12 +5187,126 @@
5073
5187
  .ttw\:hover\:bg-cyan-50:hover {
5074
5188
  background-color: var(--ttw-color-cyan-50);
5075
5189
  }
5076
- .ttw\:hover\:bg-destructive\/20:hover {
5077
- background-color: var(--ttw-destructive);
5190
+ .ttw\:hover\:bg-destructive-subtle:hover {
5191
+ background-color: var(
5192
+ --ttw-destructive-subtle,
5193
+ var(
5194
+ --_ttw-tint-relative,
5195
+ oklch(
5196
+ from
5197
+ oklch(from var(--ttw-destructive) 0.56 c h)
5198
+ l
5199
+ min(
5200
+ calc(c * 2.5),
5201
+ calc(
5202
+ (1 - l) *
5203
+ (
5204
+ 0.498 +
5205
+ (
5206
+ -0.028 * clamp(0, h, 30) + 0.087 *
5207
+ clamp(0, h - 30, 30) + 0.498 * clamp(0, h - 60, 30) +
5208
+ 0.253 * clamp(0, h - 90, 30) + 0.113 *
5209
+ clamp(0, h - 120, 30) - 0.485 *
5210
+ clamp(0, h - 150, 30) - 0.14 * clamp(0, h - 180, 30) -
5211
+ 0.316 * clamp(0, h - 210, 30) - 0.031 *
5212
+ clamp(0, h - 240, 30) + 0.083 *
5213
+ clamp(0, h - 270, 30) + 0.221 *
5214
+ clamp(0, h - 300, 30) - 0.255 * clamp(0, h - 330, 30)
5215
+ ) /
5216
+ 30
5217
+ )
5218
+ ),
5219
+ calc(
5220
+ l *
5221
+ (
5222
+ 0.396 +
5223
+ (
5224
+ -0.041 * clamp(0, h, 30) - 0.146 *
5225
+ clamp(0, h - 30, 30) - 0.016 * clamp(0, h - 60, 30) +
5226
+ 0.032 * clamp(0, h - 90, 30) + 0.025 *
5227
+ clamp(0, h - 120, 30) - 0.086 *
5228
+ clamp(0, h - 150, 30) - 0.004 *
5229
+ clamp(0, h - 180, 30) + 0.001 *
5230
+ clamp(0, h - 210, 30) + 0.328 *
5231
+ clamp(0, h - 240, 30) + 0.036 *
5232
+ clamp(0, h - 270, 30) - 0.081 *
5233
+ clamp(0, h - 300, 30) - 0.048 * clamp(0, h - 330, 30)
5234
+ ) /
5235
+ 30
5236
+ )
5237
+ )
5238
+ )
5239
+ h
5240
+ )
5241
+ )
5242
+ var(
5243
+ --_ttw-tint-legacy,
5244
+ var(--ttw-destructive)
5245
+ )
5246
+ );
5078
5247
  }
5079
5248
  @supports (color: color-mix(in lab, red, red)) {
5080
- .ttw\:hover\:bg-destructive\/20:hover {
5081
- background-color: color-mix(in oklab, var(--ttw-destructive) 20%, transparent);
5249
+ .ttw\:hover\:bg-destructive-subtle:hover {
5250
+ background-color: var(
5251
+ --ttw-destructive-subtle,
5252
+ var(
5253
+ --_ttw-tint-relative,
5254
+ oklch(
5255
+ from
5256
+ color-mix(
5257
+ in oklch,
5258
+ oklch(from var(--ttw-destructive) 0.56 c h) 16%,
5259
+ oklch(from var(--ttw-background) l 0 none)
5260
+ )
5261
+ l
5262
+ min(
5263
+ calc(c * 2.5),
5264
+ calc(
5265
+ (1 - l) *
5266
+ (
5267
+ 0.498 +
5268
+ (
5269
+ -0.028 * clamp(0, h, 30) + 0.087 *
5270
+ clamp(0, h - 30, 30) + 0.498 * clamp(0, h - 60, 30) +
5271
+ 0.253 * clamp(0, h - 90, 30) + 0.113 *
5272
+ clamp(0, h - 120, 30) - 0.485 *
5273
+ clamp(0, h - 150, 30) - 0.14 * clamp(0, h - 180, 30) -
5274
+ 0.316 * clamp(0, h - 210, 30) - 0.031 *
5275
+ clamp(0, h - 240, 30) + 0.083 *
5276
+ clamp(0, h - 270, 30) + 0.221 *
5277
+ clamp(0, h - 300, 30) - 0.255 * clamp(0, h - 330, 30)
5278
+ ) /
5279
+ 30
5280
+ )
5281
+ ),
5282
+ calc(
5283
+ l *
5284
+ (
5285
+ 0.396 +
5286
+ (
5287
+ -0.041 * clamp(0, h, 30) - 0.146 *
5288
+ clamp(0, h - 30, 30) - 0.016 * clamp(0, h - 60, 30) +
5289
+ 0.032 * clamp(0, h - 90, 30) + 0.025 *
5290
+ clamp(0, h - 120, 30) - 0.086 *
5291
+ clamp(0, h - 150, 30) - 0.004 *
5292
+ clamp(0, h - 180, 30) + 0.001 *
5293
+ clamp(0, h - 210, 30) + 0.328 *
5294
+ clamp(0, h - 240, 30) + 0.036 *
5295
+ clamp(0, h - 270, 30) - 0.081 *
5296
+ clamp(0, h - 300, 30) - 0.048 * clamp(0, h - 330, 30)
5297
+ ) /
5298
+ 30
5299
+ )
5300
+ )
5301
+ )
5302
+ h
5303
+ )
5304
+ )
5305
+ var(
5306
+ --_ttw-tint-legacy,
5307
+ color-mix(in oklab, var(--ttw-destructive) 12%, var(--ttw-background))
5308
+ )
5309
+ );
5082
5310
  }
5083
5311
  }
5084
5312
  .ttw\:hover\:bg-destructive\/90:hover {
@@ -5964,14 +6192,155 @@
5964
6192
  .ttw\:data-\[variant\=destructive\]\:text-destructive[data-variant="destructive"] {
5965
6193
  color: var(--ttw-destructive);
5966
6194
  }
5967
- .ttw\:data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant="destructive"]:focus {
5968
- background-color: var(--ttw-destructive);
6195
+ .ttw\:data-\[variant\=destructive\]\:focus\:bg-destructive-subtle[data-variant="destructive"]:focus {
6196
+ background-color: var(
6197
+ --ttw-destructive-subtle,
6198
+ var(
6199
+ --_ttw-tint-relative,
6200
+ oklch(
6201
+ from
6202
+ oklch(from var(--ttw-destructive) 0.56 c h)
6203
+ l
6204
+ min(
6205
+ calc(c * 2.5),
6206
+ calc(
6207
+ (1 - l) *
6208
+ (
6209
+ 0.498 +
6210
+ (
6211
+ -0.028 * clamp(0, h, 30) + 0.087 *
6212
+ clamp(0, h - 30, 30) + 0.498 * clamp(0, h - 60, 30) +
6213
+ 0.253 * clamp(0, h - 90, 30) + 0.113 *
6214
+ clamp(0, h - 120, 30) - 0.485 *
6215
+ clamp(0, h - 150, 30) - 0.14 * clamp(0, h - 180, 30) -
6216
+ 0.316 * clamp(0, h - 210, 30) - 0.031 *
6217
+ clamp(0, h - 240, 30) + 0.083 *
6218
+ clamp(0, h - 270, 30) + 0.221 *
6219
+ clamp(0, h - 300, 30) - 0.255 * clamp(0, h - 330, 30)
6220
+ ) /
6221
+ 30
6222
+ )
6223
+ ),
6224
+ calc(
6225
+ l *
6226
+ (
6227
+ 0.396 +
6228
+ (
6229
+ -0.041 * clamp(0, h, 30) - 0.146 *
6230
+ clamp(0, h - 30, 30) - 0.016 * clamp(0, h - 60, 30) +
6231
+ 0.032 * clamp(0, h - 90, 30) + 0.025 *
6232
+ clamp(0, h - 120, 30) - 0.086 *
6233
+ clamp(0, h - 150, 30) - 0.004 *
6234
+ clamp(0, h - 180, 30) + 0.001 *
6235
+ clamp(0, h - 210, 30) + 0.328 *
6236
+ clamp(0, h - 240, 30) + 0.036 *
6237
+ clamp(0, h - 270, 30) - 0.081 *
6238
+ clamp(0, h - 300, 30) - 0.048 * clamp(0, h - 330, 30)
6239
+ ) /
6240
+ 30
6241
+ )
6242
+ )
6243
+ )
6244
+ h
6245
+ )
6246
+ )
6247
+ var(
6248
+ --_ttw-tint-legacy,
6249
+ var(--ttw-destructive)
6250
+ )
6251
+ );
5969
6252
  @supports (color: color-mix(in lab, red, red)) {
5970
- background-color: color-mix(in oklab, var(--ttw-destructive) 10%, transparent);
6253
+ background-color: var(
6254
+ --ttw-destructive-subtle,
6255
+ var(
6256
+ --_ttw-tint-relative,
6257
+ oklch(
6258
+ from
6259
+ color-mix(
6260
+ in oklch,
6261
+ oklch(from var(--ttw-destructive) 0.56 c h) 16%,
6262
+ oklch(from var(--ttw-background) l 0 none)
6263
+ )
6264
+ l
6265
+ min(
6266
+ calc(c * 2.5),
6267
+ calc(
6268
+ (1 - l) *
6269
+ (
6270
+ 0.498 +
6271
+ (
6272
+ -0.028 * clamp(0, h, 30) + 0.087 *
6273
+ clamp(0, h - 30, 30) + 0.498 * clamp(0, h - 60, 30) +
6274
+ 0.253 * clamp(0, h - 90, 30) + 0.113 *
6275
+ clamp(0, h - 120, 30) - 0.485 *
6276
+ clamp(0, h - 150, 30) - 0.14 * clamp(0, h - 180, 30) -
6277
+ 0.316 * clamp(0, h - 210, 30) - 0.031 *
6278
+ clamp(0, h - 240, 30) + 0.083 *
6279
+ clamp(0, h - 270, 30) + 0.221 *
6280
+ clamp(0, h - 300, 30) - 0.255 * clamp(0, h - 330, 30)
6281
+ ) /
6282
+ 30
6283
+ )
6284
+ ),
6285
+ calc(
6286
+ l *
6287
+ (
6288
+ 0.396 +
6289
+ (
6290
+ -0.041 * clamp(0, h, 30) - 0.146 *
6291
+ clamp(0, h - 30, 30) - 0.016 * clamp(0, h - 60, 30) +
6292
+ 0.032 * clamp(0, h - 90, 30) + 0.025 *
6293
+ clamp(0, h - 120, 30) - 0.086 *
6294
+ clamp(0, h - 150, 30) - 0.004 *
6295
+ clamp(0, h - 180, 30) + 0.001 *
6296
+ clamp(0, h - 210, 30) + 0.328 *
6297
+ clamp(0, h - 240, 30) + 0.036 *
6298
+ clamp(0, h - 270, 30) - 0.081 *
6299
+ clamp(0, h - 300, 30) - 0.048 * clamp(0, h - 330, 30)
6300
+ ) /
6301
+ 30
6302
+ )
6303
+ )
6304
+ )
6305
+ h
6306
+ )
6307
+ )
6308
+ var(
6309
+ --_ttw-tint-legacy,
6310
+ color-mix(in oklab, var(--ttw-destructive) 12%, var(--ttw-background))
6311
+ )
6312
+ );
5971
6313
  }
5972
6314
  }
5973
- .ttw\:data-\[variant\=destructive\]\:focus\:text-destructive[data-variant="destructive"]:focus {
5974
- color: var(--ttw-destructive);
6315
+ .ttw\:data-\[variant\=destructive\]\:focus\:text-destructive-subtle-foreground[data-variant="destructive"]:focus {
6316
+ color: var(
6317
+ --ttw-destructive-subtle-foreground,
6318
+ var(
6319
+ --_ttw-tint-relative,
6320
+ oklch(from var(--ttw-destructive) 0.55 c h)
6321
+ )
6322
+ var(
6323
+ --_ttw-tint-legacy,
6324
+ var(--ttw-destructive)
6325
+ )
6326
+ );
6327
+ @supports (color: color-mix(in lab, red, red)) {
6328
+ color: var(
6329
+ --ttw-destructive-subtle-foreground,
6330
+ var(
6331
+ --_ttw-tint-relative,
6332
+ color-mix(
6333
+ in oklch,
6334
+ oklch(from var(--ttw-destructive) 0.55 c h) 60%,
6335
+ oklch(from var(--ttw-foreground) l 0 none)
6336
+ )
6337
+ )
6338
+ var(
6339
+ --_ttw-tint-legacy,
6340
+ color-mix(in oklab, var(--ttw-destructive) 60%, var(--ttw-foreground))
6341
+ )
6342
+ );
6343
+ }
5975
6344
  }
5976
6345
  .ttw\:data-\[variant\=label\]\:text-sm[data-variant="label"] {
5977
6346
  font-size: var(--ttw-text-sm);
@@ -6280,12 +6649,6 @@
6280
6649
  .ttw\:dark\:data-\[state\=checked\]\:bg-primary:is(.dark *):not(.tesouro-embedded-light, .tesouro-embedded-light *)[data-state="checked"] {
6281
6650
  background-color: var(--ttw-primary);
6282
6651
  }
6283
- .ttw\:dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *):not(.tesouro-embedded-light, .tesouro-embedded-light *)[data-variant="destructive"]:focus {
6284
- background-color: var(--ttw-destructive);
6285
- @supports (color: color-mix(in lab, red, red)) {
6286
- background-color: color-mix(in oklab, var(--ttw-destructive) 20%, transparent);
6287
- }
6288
- }
6289
6652
  .ttw\:\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading] {
6290
6653
  padding-inline: calc(var(--ttw-spacing) * 2);
6291
6654
  }
@@ -6703,7 +7066,7 @@
6703
7066
  --ttw-secondary: oklch(0.97 0 0);
6704
7067
  --ttw-secondary-foreground: oklch(0.205 0 0);
6705
7068
  --ttw-muted: oklch(0.97 0 0);
6706
- --ttw-muted-foreground: oklch(0.556 0 0);
7069
+ --ttw-muted-foreground: oklch(0.53 0 0);
6707
7070
  --ttw-accent: oklch(0.97 0 0);
6708
7071
  --ttw-accent-foreground: oklch(0.205 0 0);
6709
7072
  --ttw-destructive: #dc2626;