@tesouro/embedded-components-react 0.11.48 → 0.11.50
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/balances-widget/ui/dist/lib/BalancesWidget/BalancesWidget.js +0 -1
- 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/WidgetContainer/WidgetContainer.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetFrame/WidgetFrame.js +19 -19
- package/package.json +1 -1
|
@@ -16,7 +16,6 @@ var _ = ({ accountRows: _, children: v, isLoading: y, isError: b, onRetry: x, to
|
|
|
16
16
|
return /* @__PURE__ */ f(s, {
|
|
17
17
|
icon: /* @__PURE__ */ f(g, {}),
|
|
18
18
|
title: k.widgetTitle,
|
|
19
|
-
showHeaderDivider: !1,
|
|
20
19
|
children: y ? /* @__PURE__ */ f(u, {
|
|
21
20
|
isLoading: !0,
|
|
22
21
|
loadingLabel: k.loadingLabel,
|
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.50", n = "7dc9437b7b3ef50908abc2038cb701eeddecf176", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { WidgetFrame as e } from "../WidgetFrame/WidgetFrame.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
// ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetContainer/WidgetContainer.js
|
|
4
|
-
function n({ icon: n, title: r, children: i
|
|
4
|
+
function n({ icon: n, title: r, children: i }) {
|
|
5
5
|
return /* @__PURE__ */ t(e, {
|
|
6
6
|
icon: n,
|
|
7
7
|
title: r,
|
|
8
|
-
showHeaderDivider: a,
|
|
9
8
|
children: i
|
|
10
9
|
});
|
|
11
10
|
}
|
package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetFrame/WidgetFrame.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Typography as e, cn as t } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
3
|
// ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetFrame/WidgetFrame.js
|
|
4
|
-
function
|
|
5
|
-
let
|
|
6
|
-
return /* @__PURE__ */
|
|
4
|
+
function i({ title: i, icon: a, action: o, bodyClassName: s, className: c, children: l, ...u }) {
|
|
5
|
+
let d = i !== void 0 || o != null;
|
|
6
|
+
return /* @__PURE__ */ r("div", {
|
|
7
7
|
"data-slot": "widget-frame",
|
|
8
|
-
className:
|
|
9
|
-
...
|
|
10
|
-
children: [
|
|
8
|
+
className: t("ttw:@container/widget ttw:flex ttw:w-full ttw:flex-col ttw:overflow-hidden ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:text-card-foreground", c),
|
|
9
|
+
...u,
|
|
10
|
+
children: [d ? /* @__PURE__ */ r("div", {
|
|
11
11
|
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:px-4 ttw:py-3",
|
|
12
|
-
children: [
|
|
12
|
+
children: [i === void 0 ? null : /* @__PURE__ */ r("div", {
|
|
13
13
|
className: "ttw:flex ttw:min-w-0 ttw:items-center ttw:gap-2",
|
|
14
|
-
children: [
|
|
14
|
+
children: [a ? /* @__PURE__ */ n("span", {
|
|
15
15
|
"aria-hidden": !0,
|
|
16
16
|
className: "ttw:flex ttw:shrink-0 ttw:items-center ttw:text-primary ttw:[&>svg]:size-5 ttw:[&>svg]:text-primary",
|
|
17
|
-
children:
|
|
18
|
-
}) : null, /* @__PURE__ */
|
|
17
|
+
children: a
|
|
18
|
+
}) : null, /* @__PURE__ */ n(e, {
|
|
19
19
|
component: "h2",
|
|
20
20
|
variant: "h6",
|
|
21
21
|
className: "ttw:min-w-0 ttw:font-semibold ttw:text-foreground",
|
|
22
|
-
children:
|
|
22
|
+
children: i
|
|
23
23
|
})]
|
|
24
|
-
}),
|
|
24
|
+
}), o == null ? null : /* @__PURE__ */ n("div", {
|
|
25
25
|
className: "ttw:ml-auto ttw:flex ttw:shrink-0 ttw:items-center ttw:justify-end ttw:gap-2",
|
|
26
|
-
children:
|
|
26
|
+
children: o
|
|
27
27
|
})]
|
|
28
|
-
})
|
|
29
|
-
className:
|
|
30
|
-
children:
|
|
28
|
+
}) : null, /* @__PURE__ */ n("div", {
|
|
29
|
+
className: t("ttw:flex ttw:flex-col ttw:p-4", s),
|
|
30
|
+
children: l
|
|
31
31
|
})]
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
export {
|
|
34
|
+
export { i as WidgetFrame };
|