@tesouro/embedded-components-react 0.11.242 → 0.11.243
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadTray/UploadTray.js +38 -37
- package/package.json +2 -1
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js
CHANGED
|
@@ -32,9 +32,16 @@ function c({ emailAddress: c, onCopyEmail: l, onFilesSelected: u, accept: d, max
|
|
|
32
32
|
/* @__PURE__ */ o("button", {
|
|
33
33
|
type: "button",
|
|
34
34
|
onClick: l,
|
|
35
|
-
"aria-label": v.copyEmail,
|
|
36
35
|
className: "ttw:inline-flex ttw:items-center ttw:gap-1.5 ttw:rounded-md ttw:border ttw:border-input ttw:px-2 ttw:py-1 ttw:align-middle ttw:text-foreground ttw:hover:bg-accent",
|
|
37
|
-
children: [
|
|
36
|
+
children: [
|
|
37
|
+
c,
|
|
38
|
+
" ",
|
|
39
|
+
/* @__PURE__ */ a("span", {
|
|
40
|
+
className: "ttw:sr-only",
|
|
41
|
+
children: v.copyEmail
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ a(s, { className: "ttw:size-3.5 ttw:text-muted-foreground" })
|
|
44
|
+
]
|
|
38
45
|
}),
|
|
39
46
|
" ",
|
|
40
47
|
v.subcopySuffix
|
|
@@ -107,7 +107,7 @@ function C({ open: C, onOpenChange: w, step: T, values: E, errors: D, currencySy
|
|
|
107
107
|
id: `${x.amount}-error`,
|
|
108
108
|
message: D?.amount
|
|
109
109
|
}),
|
|
110
|
-
/* @__PURE__ */ y("p", {
|
|
110
|
+
k ? /* @__PURE__ */ y("p", {
|
|
111
111
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
112
112
|
children: [
|
|
113
113
|
z.fullAmountDuePrefix,
|
|
@@ -120,7 +120,7 @@ function C({ open: C, onOpenChange: w, step: T, values: E, errors: D, currencySy
|
|
|
120
120
|
children: k
|
|
121
121
|
})
|
|
122
122
|
]
|
|
123
|
-
})
|
|
123
|
+
}) : null
|
|
124
124
|
]
|
|
125
125
|
}),
|
|
126
126
|
/* @__PURE__ */ y("div", {
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.11.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.11.243", n = "0a4c3ac1f5aedefe01af4e648ac4e3b219488a98", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadTray/UploadTray.js
CHANGED
|
@@ -3,78 +3,79 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
5
|
import { Button as e, Tooltip as t, TooltipContent as n, TooltipProvider as r, TooltipTrigger as i, usePortalContainer as a } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
-
import {
|
|
7
|
-
import { createPortal as
|
|
8
|
-
import { jsx as
|
|
9
|
-
import { ChevronDown as
|
|
6
|
+
import { useId as o, useState as s } from "react";
|
|
7
|
+
import { createPortal as c } from "react-dom";
|
|
8
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
|
+
import { ChevronDown as d, ChevronUp as f, X as p } from "lucide-react";
|
|
10
10
|
// ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadTray/UploadTray.js
|
|
11
|
-
function
|
|
12
|
-
let [
|
|
13
|
-
return typeof document > "u" ? null :
|
|
14
|
-
"aria-label":
|
|
11
|
+
function m({ title: m, listLabel: h, items: g, summary: _, closeLabel: v, collapseLabel: y, expandLabel: b, retryLabel: x, onClose: S }) {
|
|
12
|
+
let [C, w] = s(!1), T = o(), E = a();
|
|
13
|
+
return typeof document > "u" ? null : c(/* @__PURE__ */ u("section", {
|
|
14
|
+
"aria-label": m,
|
|
15
15
|
className: "ttw:fixed ttw:bottom-4 ttw:right-4 ttw:z-50 ttw:flex ttw:max-h-[calc(100dvh-2rem)] ttw:w-80 ttw:max-w-[calc(100vw-2rem)] ttw:flex-col ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4 ttw:shadow-md",
|
|
16
16
|
children: [
|
|
17
|
-
/* @__PURE__ */
|
|
17
|
+
/* @__PURE__ */ u("div", {
|
|
18
18
|
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
19
|
-
children: [/* @__PURE__ */
|
|
19
|
+
children: [/* @__PURE__ */ l("span", {
|
|
20
|
+
id: T,
|
|
20
21
|
className: "ttw:flex-1 ttw:text-sm ttw:font-semibold",
|
|
21
|
-
children:
|
|
22
|
-
}), /* @__PURE__ */
|
|
22
|
+
children: m
|
|
23
|
+
}), /* @__PURE__ */ u(r, { children: [/* @__PURE__ */ u(t, { children: [/* @__PURE__ */ l(i, {
|
|
23
24
|
asChild: !0,
|
|
24
|
-
children: /* @__PURE__ */
|
|
25
|
+
children: /* @__PURE__ */ l(e, {
|
|
25
26
|
type: "button",
|
|
26
27
|
variant: "ghost",
|
|
27
28
|
size: "icon-sm",
|
|
28
|
-
"aria-expanded": !
|
|
29
|
-
"aria-label":
|
|
30
|
-
onClick: () =>
|
|
31
|
-
children:
|
|
29
|
+
"aria-expanded": !C,
|
|
30
|
+
"aria-label": C ? b : y,
|
|
31
|
+
onClick: () => w((e) => !e),
|
|
32
|
+
children: l(C ? f : d, { className: "ttw:size-4" })
|
|
32
33
|
})
|
|
33
|
-
}), /* @__PURE__ */
|
|
34
|
+
}), /* @__PURE__ */ l(n, { children: C ? b : y })] }), /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ l(i, {
|
|
34
35
|
asChild: !0,
|
|
35
|
-
children: /* @__PURE__ */
|
|
36
|
+
children: /* @__PURE__ */ l(e, {
|
|
36
37
|
type: "button",
|
|
37
38
|
variant: "ghost",
|
|
38
39
|
size: "icon-sm",
|
|
39
|
-
"aria-label":
|
|
40
|
-
onClick:
|
|
41
|
-
children: /* @__PURE__ */
|
|
40
|
+
"aria-label": v,
|
|
41
|
+
onClick: S,
|
|
42
|
+
children: /* @__PURE__ */ l(p, { className: "ttw:size-4" })
|
|
42
43
|
})
|
|
43
|
-
}), /* @__PURE__ */
|
|
44
|
+
}), /* @__PURE__ */ l(n, { children: v })] })] })]
|
|
44
45
|
}),
|
|
45
|
-
|
|
46
|
+
_ && /* @__PURE__ */ l("p", {
|
|
46
47
|
role: "status",
|
|
47
48
|
className: "ttw:mt-2 ttw:text-sm ttw:text-muted-foreground",
|
|
48
|
-
children:
|
|
49
|
+
children: _
|
|
49
50
|
}),
|
|
50
|
-
!
|
|
51
|
+
!C && /* @__PURE__ */ l("div", {
|
|
51
52
|
tabIndex: 0,
|
|
52
53
|
role: "region",
|
|
53
|
-
"aria-label":
|
|
54
|
+
"aria-label": h,
|
|
54
55
|
className: "ttw:mt-3 ttw:min-h-0 ttw:overflow-y-auto",
|
|
55
|
-
children: /* @__PURE__ */
|
|
56
|
+
children: /* @__PURE__ */ l("ul", {
|
|
56
57
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
57
|
-
children:
|
|
58
|
+
children: g.map((t) => /* @__PURE__ */ u("li", {
|
|
58
59
|
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
59
60
|
children: [
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ u("div", {
|
|
61
62
|
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
62
|
-
children: [/* @__PURE__ */
|
|
63
|
+
children: [/* @__PURE__ */ l("span", {
|
|
63
64
|
className: "ttw:min-w-0 ttw:flex-1 ttw:truncate ttw:text-sm",
|
|
64
65
|
title: t.name,
|
|
65
66
|
children: t.name
|
|
66
|
-
}), t.onRetry && /* @__PURE__ */
|
|
67
|
+
}), t.onRetry && /* @__PURE__ */ l(e, {
|
|
67
68
|
variant: "ghost",
|
|
68
69
|
size: "sm",
|
|
69
70
|
onClick: t.onRetry,
|
|
70
|
-
children:
|
|
71
|
+
children: x
|
|
71
72
|
})]
|
|
72
73
|
}),
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ l("span", {
|
|
74
75
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
75
76
|
children: t.status
|
|
76
77
|
}),
|
|
77
|
-
t.progress !== void 0 && /* @__PURE__ */
|
|
78
|
+
t.progress !== void 0 && /* @__PURE__ */ l("progress", {
|
|
78
79
|
"aria-label": t.name,
|
|
79
80
|
value: t.progress,
|
|
80
81
|
max: 100,
|
|
@@ -85,6 +86,6 @@ function p({ title: p, listLabel: m, items: h, summary: g, closeLabel: _, collap
|
|
|
85
86
|
})
|
|
86
87
|
})
|
|
87
88
|
]
|
|
88
|
-
}),
|
|
89
|
+
}), E ?? document.body);
|
|
89
90
|
}
|
|
90
|
-
export {
|
|
91
|
+
export { m as UploadTray };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tesouro/embedded-components-react",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.243",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -168,6 +168,7 @@
|
|
|
168
168
|
"externalDependencies": [
|
|
169
169
|
"@nx/vite",
|
|
170
170
|
"@playwright/test",
|
|
171
|
+
"@storybook/addon-a11y",
|
|
171
172
|
"@storybook/addon-vitest",
|
|
172
173
|
"@storybook/react-vite",
|
|
173
174
|
"@tailwindcss/vite",
|