@tesouro/embedded-components-react 0.2.245 → 0.2.248
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/experimental/WidgetSuite.d.ts +36 -0
- package/dist/experimental/WidgetSuite.js +3 -0
- package/dist/experimental/index.d.ts +31 -17
- package/dist/experimental/index.js +3 -2
- package/dist/index.css +18 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/ui/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index3.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index12.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/ui/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/ui/dist/index2.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/ui/dist/index3.js +25 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +3203 -3143
- package/package.json +1 -1
- package/dist/experimental/EntryPointProbe.d.ts +0 -22
- package/dist/experimental/EntryPointProbe.js +0 -9
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
interface WidgetSuiteStyleProbeLabels {
|
|
4
|
+
title: string;
|
|
5
|
+
body: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface WidgetSuiteStyleProbeProps {
|
|
9
|
+
labels?: Partial<WidgetSuiteStyleProbeLabels>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Scaffold-only smoke component (EMBD-4854).
|
|
13
|
+
*
|
|
14
|
+
* A newly generated UI library is absent from the package's Nx dependency graph
|
|
15
|
+
* until something imports it, and the Tailwind `@source` block is derived from
|
|
16
|
+
* that graph — so its `ttw:` utilities have no backing rules and every story
|
|
17
|
+
* renders unstyled. The package reaches both widget-suite libs through
|
|
18
|
+
* `src/experimental/WidgetSuite.ts`, which points at the feature lib, which
|
|
19
|
+
* re-exports this component; this component is the visible proof it works.
|
|
20
|
+
*
|
|
21
|
+
* It is also what the experimental subpath currently resolves to, so a host can
|
|
22
|
+
* mount the real specifier and see backed styles before the shell exists.
|
|
23
|
+
*
|
|
24
|
+
* `ttw:min-h-[364px]` is deliberately an arbitrary value no other surface emits:
|
|
25
|
+
* a generic utility like `ttw:flex` would still resolve from another widget's
|
|
26
|
+
* source even if this library were dropped from `@source`, which is the exact
|
|
27
|
+
* gap the probe exists to catch. The package's `styles.gate.spec.ts` sentinels
|
|
28
|
+
* that class, so dropping the anchor reds CI rather than silently unstyling.
|
|
29
|
+
*
|
|
30
|
+
* Delete this component (and its story) once the real suite shell supplies the
|
|
31
|
+
* styling proof — and repoint the sentinel at it.
|
|
32
|
+
*/
|
|
33
|
+
declare const WidgetSuiteStyleProbe: ({ labels: labelOverrides, }: WidgetSuiteStyleProbeProps) => react.JSX.Element;
|
|
34
|
+
|
|
35
|
+
export { WidgetSuiteStyleProbe };
|
|
36
|
+
export type { WidgetSuiteStyleProbeProps };
|
|
@@ -1,22 +1,36 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
interface WidgetSuiteStyleProbeLabels {
|
|
4
|
+
title: string;
|
|
5
|
+
body: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface WidgetSuiteStyleProbeProps {
|
|
9
|
+
labels?: Partial<WidgetSuiteStyleProbeLabels>;
|
|
10
|
+
}
|
|
1
11
|
/**
|
|
2
|
-
*
|
|
12
|
+
* Scaffold-only smoke component (EMBD-4854).
|
|
3
13
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
14
|
+
* A newly generated UI library is absent from the package's Nx dependency graph
|
|
15
|
+
* until something imports it, and the Tailwind `@source` block is derived from
|
|
16
|
+
* that graph — so its `ttw:` utilities have no backing rules and every story
|
|
17
|
+
* renders unstyled. The package reaches both widget-suite libs through
|
|
18
|
+
* `src/experimental/WidgetSuite.ts`, which points at the feature lib, which
|
|
19
|
+
* re-exports this component; this component is the visible proof it works.
|
|
10
20
|
*
|
|
11
|
-
*
|
|
21
|
+
* It is also what the experimental subpath currently resolves to, so a host can
|
|
22
|
+
* mount the real specifier and see backed styles before the shell exists.
|
|
23
|
+
*
|
|
24
|
+
* `ttw:min-h-[364px]` is deliberately an arbitrary value no other surface emits:
|
|
25
|
+
* a generic utility like `ttw:flex` would still resolve from another widget's
|
|
26
|
+
* source even if this library were dropped from `@source`, which is the exact
|
|
27
|
+
* gap the probe exists to catch. The package's `styles.gate.spec.ts` sentinels
|
|
28
|
+
* that class, so dropping the anchor reds CI rather than silently unstyling.
|
|
29
|
+
*
|
|
30
|
+
* Delete this component (and its story) once the real suite shell supplies the
|
|
31
|
+
* styling proof — and repoint the sentinel at it.
|
|
12
32
|
*/
|
|
13
|
-
|
|
14
|
-
/** The published subpath this module is reachable at. */
|
|
15
|
-
readonly entryPoint: '@tesouro/embedded-components-react/experimental';
|
|
16
|
-
/** Always `false` — nothing on this path carries a compatibility promise. */
|
|
17
|
-
readonly stable: false;
|
|
18
|
-
}
|
|
19
|
-
declare function experimentalEntryPointInfo(): ExperimentalEntryPointInfo;
|
|
33
|
+
declare const WidgetSuiteStyleProbe: ({ labels: labelOverrides, }: WidgetSuiteStyleProbeProps) => react.JSX.Element;
|
|
20
34
|
|
|
21
|
-
export {
|
|
22
|
-
export type {
|
|
35
|
+
export { WidgetSuiteStyleProbe };
|
|
36
|
+
export type { WidgetSuiteStyleProbeProps };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { WidgetSuiteStyleProbe as e } from "../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index3.js";
|
|
2
|
+
import "./WidgetSuite.js";
|
|
3
|
+
export { e as WidgetSuiteStyleProbe };
|
package/dist/index.css
CHANGED
|
@@ -916,6 +916,9 @@
|
|
|
916
916
|
.ttw\:min-h-\[300px\] {
|
|
917
917
|
min-height: 300px;
|
|
918
918
|
}
|
|
919
|
+
.ttw\:min-h-\[364px\] {
|
|
920
|
+
min-height: 364px;
|
|
921
|
+
}
|
|
919
922
|
.ttw\:min-h-\[1123px\] {
|
|
920
923
|
min-height: 1123px;
|
|
921
924
|
}
|
|
@@ -1111,6 +1114,9 @@
|
|
|
1111
1114
|
.ttw\:w-180 {
|
|
1112
1115
|
width: calc(var(--ttw-spacing) * 180);
|
|
1113
1116
|
}
|
|
1117
|
+
.ttw\:w-560 {
|
|
1118
|
+
width: calc(var(--ttw-spacing) * 560);
|
|
1119
|
+
}
|
|
1114
1120
|
.ttw\:w-\[4\.5rem\] {
|
|
1115
1121
|
width: 4.5rem;
|
|
1116
1122
|
}
|
|
@@ -1474,6 +1480,9 @@
|
|
|
1474
1480
|
.ttw\:origin-center {
|
|
1475
1481
|
transform-origin: center;
|
|
1476
1482
|
}
|
|
1483
|
+
.ttw\:origin-top {
|
|
1484
|
+
transform-origin: top;
|
|
1485
|
+
}
|
|
1477
1486
|
.ttw\:-translate-1\/2 {
|
|
1478
1487
|
--tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
|
|
1479
1488
|
--tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
|
|
@@ -2924,6 +2933,9 @@
|
|
|
2924
2933
|
.ttw\:align-top {
|
|
2925
2934
|
vertical-align: top;
|
|
2926
2935
|
}
|
|
2936
|
+
.ttw\:font-\[inherit\] {
|
|
2937
|
+
font-family: inherit;
|
|
2938
|
+
}
|
|
2927
2939
|
.ttw\:font-mono {
|
|
2928
2940
|
font-family: var(--ttw-font-mono);
|
|
2929
2941
|
}
|
|
@@ -4228,6 +4240,9 @@
|
|
|
4228
4240
|
.ttw\:hover\:bg-zinc-100:hover {
|
|
4229
4241
|
background-color: var(--ttw-color-zinc-100);
|
|
4230
4242
|
}
|
|
4243
|
+
.ttw\:hover\:bg-zinc-300:hover {
|
|
4244
|
+
background-color: var(--ttw-color-zinc-300);
|
|
4245
|
+
}
|
|
4231
4246
|
.ttw\:hover\:\!text-sidebar-accent-foreground:hover {
|
|
4232
4247
|
color: var(--ttw-sidebar-accent-foreground) !important;
|
|
4233
4248
|
}
|
|
@@ -4268,6 +4283,9 @@
|
|
|
4268
4283
|
.ttw\:hover\:text-white:hover {
|
|
4269
4284
|
color: var(--ttw-color-white);
|
|
4270
4285
|
}
|
|
4286
|
+
.ttw\:hover\:text-zinc-900:hover {
|
|
4287
|
+
color: var(--ttw-color-zinc-900);
|
|
4288
|
+
}
|
|
4271
4289
|
.ttw\:hover\:no-underline:hover {
|
|
4272
4290
|
text-decoration-line: none;
|
|
4273
4291
|
}
|
|
@@ -165,7 +165,7 @@ function f({ fields: n, labels: f, isDisabled: p, websiteInvalid: m = !1 }) {
|
|
|
165
165
|
onValueChange: (e) => {
|
|
166
166
|
n.naicsCode.onValueChange(Array.isArray(e) ? e[0] ?? "" : e);
|
|
167
167
|
},
|
|
168
|
-
placeholder: f.naicsCodePlaceholder,
|
|
168
|
+
labels: { placeholder: f.naicsCodePlaceholder },
|
|
169
169
|
disabled: p
|
|
170
170
|
})] })
|
|
171
171
|
]
|
|
@@ -86,7 +86,7 @@ function m({ labels: m, state: h, nickname: g, statusLabel: _, statusTone: v, fo
|
|
|
86
86
|
children: /* @__PURE__ */ d("div", {
|
|
87
87
|
className: "ttw:flex ttw:flex-wrap ttw:gap-2",
|
|
88
88
|
children: O?.map((t) => /* @__PURE__ */ d(e, {
|
|
89
|
-
|
|
89
|
+
variant: "secondary",
|
|
90
90
|
children: t
|
|
91
91
|
}, t))
|
|
92
92
|
})
|
|
@@ -163,7 +163,7 @@ var y = ({ values: n, approverOptions: r, validationErrors: i, isEditing: o, dis
|
|
|
163
163
|
},
|
|
164
164
|
multiple: !0,
|
|
165
165
|
multipleSeparator: l.ApproverSeparator,
|
|
166
|
-
placeholder: l.ChooseApprovers,
|
|
166
|
+
labels: { placeholder: l.ChooseApprovers },
|
|
167
167
|
disabled: m,
|
|
168
168
|
chipBackgroundColor: "#4f46e5",
|
|
169
169
|
chipTextColor: "#ffffff"
|
|
@@ -167,8 +167,10 @@ function A({ data: s, isLoading: c, isError: u, sorting: d, onSortingChange: v,
|
|
|
167
167
|
hasPrevPage: N,
|
|
168
168
|
onNextPage: P,
|
|
169
169
|
onPrevPage: F,
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
labels: {
|
|
171
|
+
previousPage: H.paginationPrev,
|
|
172
|
+
nextPage: H.paginationNext
|
|
173
|
+
},
|
|
172
174
|
children: /* @__PURE__ */ g(O, {
|
|
173
175
|
title: H.emptyPageTitle,
|
|
174
176
|
description: H.emptyPageDescription,
|
|
@@ -200,8 +202,10 @@ function A({ data: s, isLoading: c, isError: u, sorting: d, onSortingChange: v,
|
|
|
200
202
|
hasPrevPage: N,
|
|
201
203
|
onNextPage: P,
|
|
202
204
|
onPrevPage: F,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
+
labels: {
|
|
206
|
+
previousPage: H.paginationPrev,
|
|
207
|
+
nextPage: H.paginationNext
|
|
208
|
+
}
|
|
205
209
|
})] });
|
|
206
210
|
}
|
|
207
211
|
//#endregion
|
|
@@ -20,9 +20,11 @@ var g = 500, _ = (e) => {
|
|
|
20
20
|
return /* @__PURE__ */ p(e, {
|
|
21
21
|
items: b,
|
|
22
22
|
value: o?.value ?? "",
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
labels: {
|
|
24
|
+
placeholder: n._("Added by"),
|
|
25
|
+
emptyMessage: n._("No users found"),
|
|
26
|
+
clearAriaLabel: n._("Clear selection")
|
|
27
|
+
},
|
|
26
28
|
onQueryChange: l,
|
|
27
29
|
onValueChange: (e) => {
|
|
28
30
|
let n = Array.isArray(e) ? e[0] ?? "" : e ?? "";
|
|
@@ -96,7 +96,7 @@ function S(S) {
|
|
|
96
96
|
selectedPreset: S.selectedDatePreset,
|
|
97
97
|
onPresetChange: S.onDatePresetChange,
|
|
98
98
|
presets: D,
|
|
99
|
-
fieldLabel: b[S.activeDateField]
|
|
99
|
+
labels: { fieldLabel: b[S.activeDateField] }
|
|
100
100
|
}),
|
|
101
101
|
w.activePanelId === "status" && /* @__PURE__ */ g(o, {
|
|
102
102
|
options: S.statusOptions,
|
|
@@ -111,8 +111,10 @@ function S(S) {
|
|
|
111
111
|
onMinChange: S.onAmountMinChange,
|
|
112
112
|
onMaxChange: S.onAmountMaxChange,
|
|
113
113
|
showFlowDirection: !1,
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
labels: {
|
|
115
|
+
min: "No less than",
|
|
116
|
+
max: "No more than"
|
|
117
|
+
}
|
|
116
118
|
}),
|
|
117
119
|
w.activePanelId === "vendor" && /* @__PURE__ */ _("div", {
|
|
118
120
|
className: "ttw:p-3 ttw:flex ttw:flex-col ttw:gap-2",
|
|
@@ -93,7 +93,7 @@ function b(b) {
|
|
|
93
93
|
selectedPreset: b.activeDateFields[e.field]?.preset,
|
|
94
94
|
onPresetChange: (t) => b.onDateFieldPresetChange(e.field, t),
|
|
95
95
|
presets: T,
|
|
96
|
-
fieldLabel: _[e.field]
|
|
96
|
+
labels: { fieldLabel: _[e.field] }
|
|
97
97
|
}, e.id)),
|
|
98
98
|
S.activePanelId === "status" && /* @__PURE__ */ m(o, {
|
|
99
99
|
options: b.statusOptions,
|
|
@@ -108,8 +108,10 @@ function b(b) {
|
|
|
108
108
|
onMinChange: b.onAmountMinChange,
|
|
109
109
|
onMaxChange: b.onAmountMaxChange,
|
|
110
110
|
showFlowDirection: !1,
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
labels: {
|
|
112
|
+
min: "No less than",
|
|
113
|
+
max: "No more than"
|
|
114
|
+
}
|
|
113
115
|
}),
|
|
114
116
|
S.activePanelId === "customer" && /* @__PURE__ */ h("div", {
|
|
115
117
|
className: "ttw:p-3 ttw:flex ttw:flex-col ttw:gap-2",
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.2.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.2.248", n = "5bc80b8f15e9061c4e1e1b3aa9ae08f264031f70", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -45,8 +45,10 @@ function m({ open: m, isEditMode: h, name: g, onNameChange: _, options: v, selec
|
|
|
45
45
|
multiple: !0,
|
|
46
46
|
items: v,
|
|
47
47
|
value: y,
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
labels: {
|
|
49
|
+
placeholder: D.membersSearchPlaceholder,
|
|
50
|
+
emptyMessage: D.membersEmptyMessage
|
|
51
|
+
},
|
|
50
52
|
onValueChange: b
|
|
51
53
|
})]
|
|
52
54
|
}),
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index2.js
|
|
2
|
+
var e = {
|
|
3
|
+
title: "Widget suite styling is wired",
|
|
4
|
+
body: "This box is 364px tall and uses theme tokens. If it is unstyled, this library is missing from the generated Tailwind @source block."
|
|
5
|
+
};
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as WIDGET_SUITE_STYLE_PROBE_LABELS_EN };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { WIDGET_SUITE_STYLE_PROBE_LABELS_EN as t } from "./index2.js";
|
|
3
|
+
import { useMemo as n } from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index3.js
|
|
6
|
+
var a = ({ labels: a }) => {
|
|
7
|
+
let o = n(() => ({
|
|
8
|
+
...t,
|
|
9
|
+
...a
|
|
10
|
+
}), [a]);
|
|
11
|
+
return /* @__PURE__ */ i("div", {
|
|
12
|
+
"data-testid": "widget-suite-style-probe",
|
|
13
|
+
className: "ttw:flex ttw:min-h-[364px] ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-2 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-muted ttw:p-6 ttw:text-center",
|
|
14
|
+
children: [/* @__PURE__ */ r(e, {
|
|
15
|
+
variant: "h5",
|
|
16
|
+
children: o.title
|
|
17
|
+
}), /* @__PURE__ */ r(e, {
|
|
18
|
+
variant: "body2",
|
|
19
|
+
color: "muted",
|
|
20
|
+
children: o.body
|
|
21
|
+
})]
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { a as WidgetSuiteStyleProbe };
|