@tesouro/embedded-components-react 0.11.101 → 0.11.102

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 (48) hide show
  1. package/dist/index.css +21 -17
  2. package/dist/index.d.ts +10 -6
  3. package/dist/lib/CardDetailsWidget.d.ts +6 -4
  4. package/dist/lib/CreditCardsWidget.d.ts +6 -4
  5. package/dist/lib/DebitCardsWidget.d.ts +6 -4
  6. package/dist/lib/SettingsWidget.d.ts +2 -1
  7. package/dist/lib/WidgetSuite.d.ts +8 -5
  8. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js +199 -168
  9. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/labels.js +1 -0
  10. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +44 -43
  11. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index.js +1 -1
  12. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index3.js +9 -9
  13. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index4.js +2 -2
  14. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index6.js +25 -284
  15. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index7.js +291 -0
  16. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index.js +3 -3
  17. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index3.js +28 -17
  18. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index5.js +21 -34
  19. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index6.js +71 -78
  20. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index7.js +71 -77
  21. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index8.js +43 -49
  22. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index.js +1 -1
  23. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index2.js +8 -1
  24. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index3.js +98 -91
  25. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/ExpenseSettingsTabs/ExpenseSettingsTabs.js +24 -21
  26. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/SettingsWidget.js +14 -8
  27. package/dist/libs/tesouro-embedded-components-react/settings-widget/help/ui/shadcn/dist/index3.js +2 -2
  28. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index10.js +87 -81
  29. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index3.js +63 -44
  30. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index6.js +9 -6
  31. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +302 -276
  32. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index.js +10 -10
  33. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index12.js +36 -36
  34. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index17.js +27 -13
  35. package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/SettingsSectionContent.js +22 -0
  36. package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js +6 -7
  37. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js +39 -37
  38. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index.js +9 -9
  39. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index11.js +39 -35
  40. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index16.js +59 -61
  41. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index4.js +2 -2
  42. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index6.js +2 -2
  43. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index7.js +3 -3
  44. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +114 -103
  45. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  46. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/index.js +12 -12
  47. package/dist/packages/shared-ui-shadcn/dist/index.js +18 -15
  48. package/package.json +1 -1
@@ -3,52 +3,71 @@ import { ErrorState as r } from "../../../../shared/ui/dist/lib/ErrorState/Error
3
3
  import { LoadingRegion as i } from "../../../../shared/ui/dist/lib/LoadingRegion/LoadingRegion.js";
4
4
  import "../../../../shared/ui/dist/index.js";
5
5
  import { INVOICE_SETTINGS_PANEL_LABELS_EN as a } from "./index2.js";
6
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
6
+ import { useId as o } from "react";
7
+ import { createPortal as s } from "react-dom";
8
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
7
9
  // ../../libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index3.js
8
- function c({ isLoading: c, isError: l, onRetry: u, logo: d, children: f, submitDisabled: p, onSubmit: m, labels: h }) {
9
- let g = {
10
+ function u({ headerStart: u, headerActionContainer: d, isLoading: f, isError: p, onRetry: m, logo: h, children: g, submitDisabled: _, onSubmit: v, labels: y }) {
11
+ let b = o(), x = {
10
12
  ...a,
11
- ...h
12
- };
13
- return /* @__PURE__ */ o("div", {
14
- className: "ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card ttw:p-6",
15
- children: /* @__PURE__ */ s("div", {
16
- className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:w-full ttw:max-w-163",
17
- children: [d, l ? /* @__PURE__ */ o(r, {
18
- title: g.errorTitle,
19
- description: g.errorDescription,
20
- retryLabel: g.errorRetry,
21
- onRetry: u
22
- }) : c ? /* @__PURE__ */ o(i, {
23
- isLoading: !0,
24
- loadingLabel: g.loading,
25
- children: /* @__PURE__ */ s("div", {
26
- "aria-hidden": !0,
27
- className: "ttw:flex ttw:flex-col ttw:gap-4",
28
- children: [
29
- /* @__PURE__ */ o(n, { className: "ttw:h-6 ttw:w-40" }),
30
- /* @__PURE__ */ o(n, { className: "ttw:h-20 ttw:w-full" }),
31
- /* @__PURE__ */ o(n, { className: "ttw:h-9 ttw:w-full" })
32
- ]
13
+ ...y
14
+ }, S = !p && !f ? /* @__PURE__ */ c(e, {
15
+ type: "submit",
16
+ form: b,
17
+ size: "sm",
18
+ disabled: _,
19
+ children: x.submitButton
20
+ }) : null;
21
+ return /* @__PURE__ */ l("div", {
22
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
23
+ children: [
24
+ d ? s(S, d) : null,
25
+ u ? /* @__PURE__ */ l("header", {
26
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-4",
27
+ children: [u, d === void 0 ? S : null]
28
+ }) : null,
29
+ /* @__PURE__ */ c("div", {
30
+ className: "ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card ttw:p-6",
31
+ children: /* @__PURE__ */ l("div", {
32
+ className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:w-full ttw:max-w-163",
33
+ children: [h, p ? /* @__PURE__ */ c(r, {
34
+ title: x.errorTitle,
35
+ description: x.errorDescription,
36
+ retryLabel: x.errorRetry,
37
+ onRetry: m
38
+ }) : f ? /* @__PURE__ */ c(i, {
39
+ isLoading: !0,
40
+ loadingLabel: x.loading,
41
+ children: /* @__PURE__ */ l("div", {
42
+ "aria-hidden": !0,
43
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
44
+ children: [
45
+ /* @__PURE__ */ c(n, { className: "ttw:h-6 ttw:w-40" }),
46
+ /* @__PURE__ */ c(n, { className: "ttw:h-20 ttw:w-full" }),
47
+ /* @__PURE__ */ c(n, { className: "ttw:h-9 ttw:w-full" })
48
+ ]
49
+ })
50
+ }) : /* @__PURE__ */ l("form", {
51
+ id: b,
52
+ noValidate: !0,
53
+ className: "ttw:flex ttw:flex-col ttw:gap-6",
54
+ onSubmit: (e) => {
55
+ e.preventDefault(), v();
56
+ },
57
+ children: [
58
+ /* @__PURE__ */ c(t, {}),
59
+ g,
60
+ !u && d === void 0 && /* @__PURE__ */ c(e, {
61
+ type: "submit",
62
+ className: "ttw:w-fit ttw:self-end",
63
+ disabled: _,
64
+ children: x.submitButton
65
+ })
66
+ ]
67
+ })]
33
68
  })
34
- }) : /* @__PURE__ */ s("form", {
35
- noValidate: !0,
36
- className: "ttw:flex ttw:flex-col ttw:gap-6",
37
- onSubmit: (e) => {
38
- e.preventDefault(), m();
39
- },
40
- children: [
41
- /* @__PURE__ */ o(t, {}),
42
- f,
43
- /* @__PURE__ */ o(e, {
44
- type: "submit",
45
- className: "ttw:w-fit",
46
- disabled: p,
47
- children: g.submitButton
48
- })
49
- ]
50
- })]
51
- })
69
+ })
70
+ ]
52
71
  });
53
72
  }
54
- export { c as InvoiceSettingsPanel, c as default };
73
+ export { u as InvoiceSettingsPanel, u as default };
@@ -9,7 +9,7 @@ function p({ previewValue: p, invoicePrefix: m, startingNumber: h, digitCount: g
9
9
  ...C
10
10
  }, T = u(), E = (e) => `${T}-${e}`, D = (e) => `${T}-${e}-error`, O = (e, t) => t ? D(e) : void 0;
11
11
  return /* @__PURE__ */ f("div", {
12
- className: "ttw:flex ttw:flex-col ttw:gap-2.5",
12
+ className: "ttw:@container/invoice-numbering ttw:flex ttw:flex-col ttw:gap-4",
13
13
  children: [
14
14
  /* @__PURE__ */ f("div", {
15
15
  className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:pt-5 ttw:pb-2.5",
@@ -24,7 +24,7 @@ function p({ previewValue: p, invoicePrefix: m, startingNumber: h, digitCount: g
24
24
  })]
25
25
  }),
26
26
  /* @__PURE__ */ f("div", {
27
- className: "ttw:flex ttw:flex-col ttw:w-full ttw:max-w-96 ttw:gap-1 ttw:p-4 ttw:bg-muted ttw:rounded-xl",
27
+ className: "ttw:flex ttw:flex-col ttw:w-full ttw:max-w-lg ttw:gap-1 ttw:p-4 ttw:bg-muted ttw:rounded-xl",
28
28
  children: [/* @__PURE__ */ d(c, {
29
29
  variant: "body2",
30
30
  color: "muted",
@@ -37,14 +37,15 @@ function p({ previewValue: p, invoicePrefix: m, startingNumber: h, digitCount: g
37
37
  })]
38
38
  }),
39
39
  /* @__PURE__ */ f("div", {
40
- className: "ttw:flex ttw:flex-wrap ttw:gap-4",
40
+ className: "ttw:grid ttw:w-full ttw:max-w-lg ttw:grid-cols-1 ttw:gap-4 ttw:@md/invoice-numbering:grid-cols-3",
41
41
  children: [
42
42
  /* @__PURE__ */ d(t, { children: /* @__PURE__ */ f(n, {
43
- className: "ttw:min-w-32 ttw:flex-1",
43
+ className: "ttw:min-w-0",
44
44
  children: [
45
45
  /* @__PURE__ */ d(i, {
46
46
  htmlFor: E("invoice-prefix"),
47
47
  requirement: a.Required,
48
+ className: "ttw:whitespace-nowrap",
48
49
  children: w.invoicePrefixLabel
49
50
  }),
50
51
  /* @__PURE__ */ d(s, {
@@ -63,11 +64,12 @@ function p({ previewValue: p, invoicePrefix: m, startingNumber: h, digitCount: g
63
64
  ]
64
65
  }) }),
65
66
  /* @__PURE__ */ d(t, { children: /* @__PURE__ */ f(n, {
66
- className: "ttw:min-w-32 ttw:flex-1",
67
+ className: "ttw:min-w-0",
67
68
  children: [
68
69
  /* @__PURE__ */ d(i, {
69
70
  htmlFor: E("starting-number"),
70
71
  requirement: a.Required,
72
+ className: "ttw:whitespace-nowrap",
71
73
  children: w.startingNumberLabel
72
74
  }),
73
75
  /* @__PURE__ */ d(s, {
@@ -87,11 +89,12 @@ function p({ previewValue: p, invoicePrefix: m, startingNumber: h, digitCount: g
87
89
  ]
88
90
  }) }),
89
91
  /* @__PURE__ */ d(t, { children: /* @__PURE__ */ f(n, {
90
- className: "ttw:min-w-32 ttw:flex-1",
92
+ className: "ttw:min-w-0",
91
93
  children: [
92
94
  /* @__PURE__ */ d(i, {
93
95
  htmlFor: E("digit-count"),
94
96
  requirement: a.Required,
97
+ className: "ttw:whitespace-nowrap",
95
98
  children: w.digitCountLabel
96
99
  }),
97
100
  /* @__PURE__ */ d(s, {