@tesouro/embedded-components-react 0.11.71 → 0.11.72

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 (88) hide show
  1. package/README.md +1 -0
  2. package/dist/index.css +35 -192
  3. package/dist/index.d.ts +75 -71
  4. package/dist/lib/SettingsWidget.d.ts +5 -1
  5. package/dist/lib/WidgetSuite.d.ts +4 -0
  6. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index3.js +8 -7
  7. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index4.js +4 -1
  8. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index6.js +196 -131
  9. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index.js +4 -4
  10. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index3.js +11 -1
  11. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index4.js +5 -3
  12. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index5.js +38 -32
  13. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index6.js +103 -75
  14. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index7.js +140 -168
  15. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index8.js +97 -87
  16. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index7.js +11 -7
  17. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index8.js +0 -1
  18. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index2.js +3 -1
  19. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index3.js +134 -177
  20. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index4.js +110 -176
  21. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index5.js +28 -38
  22. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/ExpenseSettingsTabs/ExpenseSettingsTabs.js +13 -10
  23. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/SettingsWidget.js +28 -24
  24. package/dist/libs/tesouro-embedded-components-react/settings-widget/help/ui/shadcn/dist/index3.js +35 -31
  25. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index10.js +2 -0
  26. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index7.js +1 -5
  27. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index8.js +3 -0
  28. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index11.js +2 -1
  29. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index12.js +22 -36
  30. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index16.js +1 -1
  31. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index17.js +54 -60
  32. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index20.js +75 -60
  33. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index3.js +42 -27
  34. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index6.js +89 -82
  35. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index9.js +39 -38
  36. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index4.js +32 -32
  37. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/ui/dist/index2.js +1 -1
  38. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/ui/dist/index3.js +56 -71
  39. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js +3 -0
  40. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index12.js +86 -66
  41. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index13.js +51 -51
  42. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index15.js +146 -132
  43. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +95 -99
  44. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index3.js +1 -0
  45. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index4.js +8 -27
  46. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js +69 -72
  47. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index6.js +51 -51
  48. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index.js +9 -11
  49. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index10.js +83 -298
  50. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index11.js +13 -13
  51. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index12.js +122 -75
  52. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index13.js +41 -15
  53. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index14.js +7 -131
  54. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index15.js +147 -48
  55. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index16.js +240 -11
  56. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index17.js +15 -173
  57. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index2.js +38 -10
  58. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index3.js +5 -46
  59. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index4.js +52 -45
  60. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index5.js +101 -25
  61. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index6.js +40 -98
  62. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index7.js +415 -40
  63. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index8.js +261 -332
  64. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index9.js +15 -8
  65. package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js +2 -2
  66. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js +9 -8
  67. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +136 -122
  68. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index.js +9 -8
  69. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index11.js +16 -17
  70. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index12.js +99 -100
  71. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index16.js +1 -1
  72. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index17.js +8 -8
  73. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index18.js +10 -55
  74. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index19.js +34 -8
  75. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index20.js +8 -84
  76. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index21.js +86 -0
  77. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index3.js +13 -13
  78. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index5.js +17 -18
  79. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index7.js +33 -42
  80. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  81. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +24 -24
  82. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/FileDropZone/FileDropZone.js +62 -0
  83. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/LoadingRegion/LoadingRegion.js +1 -0
  84. package/dist/packages/shared-ui-shadcn/dist/index.js +2301 -2283
  85. package/package.json +1 -1
  86. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index18.js +0 -291
  87. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index19.js +0 -22
  88. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/avatarSwatch.js +0 -26
@@ -2,67 +2,74 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { Checkbox as e, Table as t, TableBody as n, TableCell as r, TableHead as i, TableHeader as a, TableRow as o } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { AccountSourceIcon as s } from "./index2.js";
7
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
8
- import { InfoIcon as u } from "lucide-react";
5
+ import { Badge as e, Checkbox as t, Table as n, TableBody as r, TableCell as i, TableHead as a, TableHeader as o, TableRow as s } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { DEFAULT_SOURCE_LABELS as c } from "./index3.js";
7
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
8
+ import { InfoIcon as d } from "lucide-react";
9
9
  // ../../libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index4.js
10
- function d({ rows: d, onToggle: f, labels: p, disabled: m = !1, note: h, emptyMessage: g }) {
11
- return /* @__PURE__ */ l("div", {
10
+ function f({ rows: f, onToggle: p, labels: m, disabled: h = !1, note: g, emptyMessage: _ }) {
11
+ return /* @__PURE__ */ u("div", {
12
12
  className: "ttw:space-y-3",
13
- children: [h ? /* @__PURE__ */ l("div", {
13
+ children: [g ? /* @__PURE__ */ u("div", {
14
14
  className: "ttw:flex ttw:items-center ttw:gap-2 ttw:rounded-md ttw:border ttw:border-border ttw:bg-muted ttw:p-3 ttw:text-sm ttw:text-muted-foreground",
15
- children: [/* @__PURE__ */ c(u, {
15
+ children: [/* @__PURE__ */ l(d, {
16
16
  "aria-hidden": !0,
17
17
  className: "ttw:size-4 ttw:shrink-0"
18
- }), /* @__PURE__ */ c("span", { children: h })]
19
- }) : null, d.length === 0 ? g ? /* @__PURE__ */ c("p", {
18
+ }), /* @__PURE__ */ l("span", { children: g })]
19
+ }) : null, f.length === 0 ? _ ? /* @__PURE__ */ l("p", {
20
20
  className: "ttw:text-sm ttw:text-muted-foreground",
21
- children: g
22
- }) : null : /* @__PURE__ */ c("div", {
21
+ children: _
22
+ }) : null : /* @__PURE__ */ l("div", {
23
23
  className: "ttw:overflow-hidden ttw:rounded-md ttw:border ttw:border-border",
24
- children: /* @__PURE__ */ l(t, { children: [/* @__PURE__ */ c(a, { children: /* @__PURE__ */ l(o, {
24
+ children: /* @__PURE__ */ u(n, { children: [/* @__PURE__ */ l(o, { children: /* @__PURE__ */ u(s, {
25
25
  className: "ttw:bg-muted/50 ttw:hover:bg-muted/50",
26
- children: [/* @__PURE__ */ c(i, { children: p.accountNameColumn }), /* @__PURE__ */ c(i, {
26
+ children: [/* @__PURE__ */ l(a, { children: m.accountNameColumn }), /* @__PURE__ */ l(a, {
27
27
  className: "ttw:w-28 ttw:text-center",
28
- children: p.accessColumn
28
+ children: m.accessColumn
29
29
  })]
30
- }) }), /* @__PURE__ */ c(n, { children: d.map((t) => {
31
- let n = `account-access-${t.value}`;
32
- return /* @__PURE__ */ l(o, {
33
- className: m ? "ttw:hover:bg-transparent" : void 0,
34
- children: [/* @__PURE__ */ c(r, { children: /* @__PURE__ */ l("div", {
30
+ }) }), /* @__PURE__ */ l(r, { children: f.map((n) => {
31
+ let r = `account-access-${n.value}`;
32
+ return /* @__PURE__ */ u(s, {
33
+ className: h ? "ttw:hover:bg-transparent" : void 0,
34
+ children: [/* @__PURE__ */ l(i, { children: /* @__PURE__ */ l("div", {
35
35
  className: "ttw:flex ttw:items-center ttw:gap-3",
36
- children: [/* @__PURE__ */ c(s, { source: t.source }), /* @__PURE__ */ l("span", {
36
+ children: /* @__PURE__ */ u("span", {
37
37
  className: "ttw:flex ttw:min-w-0 ttw:flex-col",
38
- children: [/* @__PURE__ */ c("span", {
39
- className: "ttw:truncate ttw:text-base ttw:font-medium ttw:text-foreground",
40
- children: t.name
41
- }), /* @__PURE__ */ l("span", {
42
- className: "ttw:text-sm ttw:text-muted-foreground",
43
- children: [
44
- t.typeLabel,
45
- " ",
46
- /* @__PURE__ */ c("span", {
47
- className: "ttw:font-mono ttw:tracking-[0.125rem]",
48
- children: t.maskedNumber
49
- })
50
- ]
51
- })]
52
- })]
53
- }) }), /* @__PURE__ */ c(r, {
38
+ children: [
39
+ /* @__PURE__ */ l("span", {
40
+ className: "ttw:truncate ttw:text-base ttw:font-medium ttw:text-foreground",
41
+ children: n.name
42
+ }),
43
+ /* @__PURE__ */ u("span", {
44
+ className: "ttw:text-sm ttw:text-muted-foreground",
45
+ children: [
46
+ n.typeLabel,
47
+ " ",
48
+ /* @__PURE__ */ l("span", {
49
+ className: "ttw:font-mono ttw:tracking-[0.125rem]",
50
+ children: n.maskedNumber
51
+ })
52
+ ]
53
+ }),
54
+ /* @__PURE__ */ l(e, {
55
+ variant: "secondary",
56
+ children: n.sourceLabel ?? (n.source === "internal" ? m.internalSource ?? c.internal : m.externalSource ?? c.external)
57
+ })
58
+ ]
59
+ })
60
+ }) }), /* @__PURE__ */ l(i, {
54
61
  className: "ttw:text-center",
55
- children: /* @__PURE__ */ c(e, {
56
- id: n,
57
- checked: t.checked,
58
- disabled: m,
59
- "aria-label": `${p.toggleAriaLabel} ${t.name}`,
60
- onCheckedChange: (e) => f(t.value, e === !0)
62
+ children: /* @__PURE__ */ l(t, {
63
+ id: r,
64
+ checked: n.checked,
65
+ disabled: h,
66
+ "aria-label": `${m.toggleAriaLabel} ${n.name}`,
67
+ onCheckedChange: (e) => p(n.value, e === !0)
61
68
  })
62
69
  })]
63
- }, t.value);
70
+ }, n.value);
64
71
  }) })] })
65
72
  })]
66
73
  });
67
74
  }
68
- export { d as AccountAccessTable, d as default };
75
+ export { f as AccountAccessTable, f as default };
@@ -1,26 +1,102 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { avatarSwatchFor as e } from "../../../../shared/ui/dist/lib/avatarSwatch.js";
6
- import "../../../../shared/ui/dist/index.js";
7
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
8
1
  // ../../libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index5.js
9
- var r = "ttw:flex ttw:size-7 ttw:items-center ttw:justify-center ttw:rounded-full ttw:text-xs ttw:font-semibold ttw:ring-2 ttw:ring-background ttw:-ml-2 ttw:first:ml-0";
10
- function i({ items: i, overflowLabel: a, label: o }) {
11
- return /* @__PURE__ */ n("div", {
12
- className: "ttw:flex ttw:items-center",
13
- "aria-label": o,
14
- role: "group",
15
- children: [i.map((n) => /* @__PURE__ */ t("span", {
16
- "aria-hidden": !0,
17
- className: `${r} ${e(n.key || n.initials)}`,
18
- children: n.initials
19
- }, n.key)), a ? /* @__PURE__ */ t("span", {
20
- "aria-hidden": !0,
21
- className: `${r} ttw:bg-muted ttw:text-muted-foreground`,
22
- children: a
23
- }) : null]
24
- });
25
- }
26
- export { i as AvatarStack, i as default };
2
+ var e = {
3
+ title: "Team",
4
+ nameColumn: "Name",
5
+ viewMember: "View team member",
6
+ roleColumn: "Role",
7
+ inactiveRolePlaceholder: "—",
8
+ departmentColumn: "Department",
9
+ statusColumn: "Status",
10
+ loadingLabel: "Loading team members",
11
+ emptyTitle: "No team members yet",
12
+ emptyDescription: "Team members will appear here once they join your organization.",
13
+ errorTitle: "Couldn't load team members",
14
+ errorDescription: "Something went wrong while fetching your team. Please try again.",
15
+ rowsPerPageLabel: "Rows per page",
16
+ previousPageButton: "Previous",
17
+ nextPageButton: "Next",
18
+ detailsBackButton: "Back to team",
19
+ detailsMemberDetailsHeading: "Member details",
20
+ detailsNameLabel: "Name",
21
+ detailsEmailLabel: "Work email address",
22
+ detailsRoleLabel: "Role",
23
+ detailsStatusLabel: "Status",
24
+ detailsLastSignInLabel: "Last sign in on",
25
+ authorizedSignerBadge: "Authorized signer",
26
+ detailsDepartmentLabel: "Department",
27
+ detailsLocationLabel: "Location",
28
+ detailsReportingManagerLabel: "Reporting manager",
29
+ detailsReportingManagerNone: "None",
30
+ detailsApprovesExpensesHeading: "Approves expenses for",
31
+ detailsAccountAccessLabel: "Account access",
32
+ rolesSectionHeading: "Roles and permissions",
33
+ rolesSectionDescription: "Specifies what the team member can do, including access to money movement, account data, and administrative actions.",
34
+ roleLoadingLabel: "Loading role…",
35
+ detailsEditButton: "Edit",
36
+ detailsMoreActions: "More actions",
37
+ detailsDeactivateButton: "Deactivate",
38
+ detailsResendButton: "Resend invite",
39
+ inviteButton: "Add user",
40
+ inviteTitle: "Invite team member",
41
+ inviteBackToTeamButton: "Back to team management",
42
+ inviteDetailsSectionHeading: "Team member details",
43
+ inviteNameLabel: "Full name",
44
+ inviteWorkEmailLabel: "Work email address",
45
+ inviteDepartmentLabel: "Department",
46
+ inviteDepartmentPlaceholder: "Select department",
47
+ inviteDepartmentEmpty: "No departments available",
48
+ inviteDepartmentLoadError: "Could not load departments",
49
+ inviteDepartmentLoadErrorHelper: "Departments could not be loaded. Try refreshing the page.",
50
+ inviteDepartmentEmptyHelper: "No departments yet. You can add them under Team management → Departments.",
51
+ inviteLocationLabel: "Location",
52
+ inviteLocationPlaceholder: "Select location",
53
+ inviteLocationEmpty: "No locations available",
54
+ inviteLocationLoadError: "Could not load locations",
55
+ inviteLocationLoadErrorHelper: "Locations could not be loaded. Try refreshing the page.",
56
+ inviteLocationEmptyHelper: "No locations yet. You can add them under Team management → Locations.",
57
+ inviteReportingManagerLabel: "Reporting manager",
58
+ inviteReportingManagerPlaceholder: "Select reporting manager",
59
+ inviteReportingManagerEmpty: "No reporting managers available",
60
+ inviteReportingManagerLoadError: "Could not load reporting managers",
61
+ inviteReportingManagerLoadErrorHelper: "Reporting managers could not be loaded. Try refreshing the page.",
62
+ inviteReportingManagerEmptyHelper: "No active team members are available to assign as a reporting manager yet.",
63
+ inviteReportingManagerHelper: "The reporting manager can view this user’s expenses and approve them if the approval rules allow.",
64
+ inviteReportingManagerSearchPlaceholder: "Search by name, role, or email",
65
+ inviteReportingManagerNoResults: "No matching team members",
66
+ inviteOptionsLoading: "Loading…",
67
+ inviteOptionNone: "None",
68
+ inviteRoleSectionHeading: "Assign role",
69
+ inviteRoleSectionDescription: "Choose what this team member can do. Roles set access to money movement, account data, and administrative actions.",
70
+ inviteAccountAccessSectionHeading: "Account access",
71
+ inviteAccountAccessSectionDescription: "Select which accounts this member can view and interact with based on their assigned role.",
72
+ inviteAccountAccessPlaceholder: "Select accounts",
73
+ inviteAccountAccessEmpty: "No accounts available",
74
+ accountAccessNameColumn: "Account Name",
75
+ accountAccessAccessColumn: "Access",
76
+ accountAccessToggleLabel: "Toggle access for",
77
+ accountAccessNumberColumn: "Account Number",
78
+ accountAccessTypeColumn: "Account Type",
79
+ accountAccessSourceColumn: "Source",
80
+ inviteAccountAccessAdminNote: "Admins have full access to accounts.",
81
+ manageAccessEmployeeNote: "Team members assigned the role of \"Employee\" cannot access any accounts.",
82
+ inviteAccountAccessLoadError: "We couldn’t load accounts, so access can’t be set. Please try again.",
83
+ inviteCancelButton: "Cancel",
84
+ inviteSubmitButton: "Send invite",
85
+ manageAccessAccountsEmpty: "No accounts available",
86
+ accountAccessRetry: "Try again",
87
+ manageAccessLoadingLabel: "Loading accounts…",
88
+ manageAccessAdminNote: "Admins have full access to accounts.",
89
+ editTitle: "Edit team member",
90
+ editDescription: "Update the member's profile and role.",
91
+ editBackButton: "Back",
92
+ editNameLabel: "Full name",
93
+ editEmailLabel: "Work email address",
94
+ editRoleLabel: "Role",
95
+ editRolePlaceholder: "Select a role",
96
+ editAccountAccessLabel: "Account access",
97
+ editCancelButton: "Cancel",
98
+ editSaveButton: "Save changes",
99
+ actionDialogCancelButton: "Cancel",
100
+ actionDialogCloseButton: "Close"
101
+ };
102
+ export { e as DEFAULT_LABELS };
@@ -1,99 +1,41 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { Label as e, RadioGroup as t, RadioGroupItem as n, cn as r } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
1
7
  // ../../libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index6.js
2
- var e = {
3
- title: "Team",
4
- nameColumn: "Name",
5
- roleColumn: "Role",
6
- inactiveRolePlaceholder: "—",
7
- departmentColumn: "Department",
8
- statusColumn: "Status",
9
- loadingLabel: "Loading team members",
10
- emptyTitle: "No team members yet",
11
- emptyDescription: "Team members will appear here once they join your organization.",
12
- errorTitle: "Unable to load team members",
13
- errorDescription: "Something went wrong while fetching your team. Please try again.",
14
- rowsPerPageLabel: "Rows per page",
15
- previousPageButton: "Previous",
16
- nextPageButton: "Next",
17
- detailsBackButton: "Back to team",
18
- detailsMemberDetailsHeading: "Member details",
19
- detailsNameLabel: "Name",
20
- detailsEmailLabel: "Work email address",
21
- detailsRoleLabel: "Role",
22
- detailsStatusLabel: "Status",
23
- detailsLastSignInLabel: "Last sign in on",
24
- authorizedSignerBadge: "Authorized signer",
25
- detailsDepartmentLabel: "Department",
26
- detailsLocationLabel: "Location",
27
- detailsReportingManagerLabel: "Reporting manager",
28
- detailsReportingManagerNone: "None",
29
- detailsApprovesExpensesHeading: "Approves expenses for",
30
- detailsAccountAccessLabel: "Account access",
31
- rolesSectionHeading: "Roles and permissions",
32
- rolesSectionDescription: "Specifies what the team member can do, including access to money movement, account data, and administrative actions.",
33
- roleLoadingLabel: "Loading role…",
34
- detailsEditButton: "Edit",
35
- detailsDeactivateButton: "Deactivate",
36
- detailsResendButton: "Resend invite",
37
- inviteButton: "Add user",
38
- inviteTitle: "Invite team member",
39
- inviteBackToTeamButton: "Back to team management",
40
- inviteDetailsSectionHeading: "Team member details",
41
- inviteNameLabel: "Full name *",
42
- inviteWorkEmailLabel: "Work email address *",
43
- inviteDepartmentLabel: "Department",
44
- inviteDepartmentPlaceholder: "Select department",
45
- inviteDepartmentEmpty: "No departments available",
46
- inviteDepartmentLoadError: "Could not load departments",
47
- inviteDepartmentLoadErrorHelper: "Departments could not be loaded. Try refreshing the page.",
48
- inviteDepartmentEmptyHelper: "No departments yet. You can add them under Team management → Departments.",
49
- inviteLocationLabel: "Location",
50
- inviteLocationPlaceholder: "Select location",
51
- inviteLocationEmpty: "No locations available",
52
- inviteLocationLoadError: "Could not load locations",
53
- inviteLocationLoadErrorHelper: "Locations could not be loaded. Try refreshing the page.",
54
- inviteLocationEmptyHelper: "No locations yet. You can add them under Team management → Locations.",
55
- inviteReportingManagerLabel: "Reporting manager",
56
- inviteReportingManagerPlaceholder: "Select reporting manager",
57
- inviteReportingManagerEmpty: "No reporting managers available",
58
- inviteReportingManagerLoadError: "Could not load reporting managers",
59
- inviteReportingManagerLoadErrorHelper: "Reporting managers could not be loaded. Try refreshing the page.",
60
- inviteReportingManagerEmptyHelper: "No active team members are available to assign as a reporting manager yet.",
61
- inviteReportingManagerHelper: "The reporting manager can view this user’s expenses and approve them if the approval rules allow.",
62
- inviteReportingManagerSearchPlaceholder: "Search by name, role, or email",
63
- inviteReportingManagerNoResults: "No matching team members",
64
- inviteOptionsLoading: "Loading…",
65
- inviteOptionNone: "None",
66
- inviteRoleSectionHeading: "Assign role",
67
- inviteRoleSectionDescription: "Choose what this team member can do. Roles set access to money movement, account data, and administrative actions.",
68
- inviteAccountAccessSectionHeading: "Account access",
69
- inviteAccountAccessSectionDescription: "Select which accounts this member can view and interact with based on their assigned role.",
70
- inviteAccountAccessPlaceholder: "Select accounts",
71
- inviteAccountAccessEmpty: "No accounts available",
72
- accountAccessNameColumn: "Account Name",
73
- accountAccessAccessColumn: "Access",
74
- accountAccessToggleLabel: "Toggle access for",
75
- accountAccessNumberColumn: "Account Number",
76
- accountAccessTypeColumn: "Account Type",
77
- accountAccessSourceColumn: "Source",
78
- inviteAccountAccessAdminNote: "Admins have full access to accounts.",
79
- manageAccessEmployeeNote: "Team members assigned the role of \"Employee\" cannot access any accounts.",
80
- inviteAccountAccessLoadError: "We couldn’t load accounts, so access can’t be set. Please try again.",
81
- inviteCancelButton: "Cancel",
82
- inviteSubmitButton: "Send invite",
83
- manageAccessAccountsEmpty: "No accounts available",
84
- manageAccessLoadingLabel: "Loading accounts…",
85
- manageAccessAdminNote: "Admins have full access to accounts.",
86
- editTitle: "Edit team member",
87
- editDescription: "Update the member's profile and role.",
88
- editBackButton: "Back",
89
- editNameLabel: "Full name",
90
- editEmailLabel: "Work email address",
91
- editRoleLabel: "Role",
92
- editRolePlaceholder: "Select a role",
93
- editAccountAccessLabel: "Account access",
94
- editCancelButton: "Cancel",
95
- editSaveButton: "Save changes",
96
- actionDialogCancelButton: "Cancel",
97
- actionDialogCloseButton: "Close"
98
- };
99
- export { e as DEFAULT_LABELS };
8
+ function o({ options: o, value: s, onValueChange: c, idPrefix: l, disabled: u, required: d, ariaLabelledBy: f, ariaInvalid: p, ariaDescribedBy: m }) {
9
+ return /* @__PURE__ */ i(t, {
10
+ className: "ttw:gap-3",
11
+ value: s || void 0,
12
+ disabled: u,
13
+ "aria-required": d || void 0,
14
+ "aria-labelledby": f,
15
+ "aria-invalid": p ? !0 : void 0,
16
+ "aria-describedby": m,
17
+ onValueChange: c,
18
+ children: o.map((t) => {
19
+ let c = s === t.value, u = `${l}-${t.value}`;
20
+ return /* @__PURE__ */ a(e, {
21
+ htmlFor: u,
22
+ className: r("ttw:flex ttw:w-full ttw:cursor-pointer ttw:items-start ttw:gap-3", o.length <= 4 && "ttw:rounded-lg ttw:border ttw:p-4", o.length <= 4 && (c ? "ttw:border-foreground ttw:bg-muted" : "ttw:border-border"), o.length > 4 && "ttw:py-2"),
23
+ children: [/* @__PURE__ */ i(n, {
24
+ id: u,
25
+ value: t.value,
26
+ className: "ttw:mt-0.5"
27
+ }), /* @__PURE__ */ a("span", {
28
+ className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:gap-1",
29
+ children: [/* @__PURE__ */ i("span", {
30
+ className: "ttw:text-sm ttw:font-semibold ttw:text-foreground",
31
+ children: t.label
32
+ }), t.description ? /* @__PURE__ */ i("span", {
33
+ className: "ttw:text-sm ttw:font-normal ttw:leading-normal ttw:text-muted-foreground",
34
+ children: t.description
35
+ }) : null]
36
+ })]
37
+ }, t.value);
38
+ })
39
+ });
40
+ }
41
+ export { o as RoleCardGroup, o as default };