@tesouro/embedded-components-react 0.2.244 → 0.2.247

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/index.css CHANGED
@@ -1111,6 +1111,9 @@
1111
1111
  .ttw\:w-180 {
1112
1112
  width: calc(var(--ttw-spacing) * 180);
1113
1113
  }
1114
+ .ttw\:w-560 {
1115
+ width: calc(var(--ttw-spacing) * 560);
1116
+ }
1114
1117
  .ttw\:w-\[4\.5rem\] {
1115
1118
  width: 4.5rem;
1116
1119
  }
@@ -1474,6 +1477,9 @@
1474
1477
  .ttw\:origin-center {
1475
1478
  transform-origin: center;
1476
1479
  }
1480
+ .ttw\:origin-top {
1481
+ transform-origin: top;
1482
+ }
1477
1483
  .ttw\:-translate-1\/2 {
1478
1484
  --tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
1479
1485
  --tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
@@ -2924,6 +2930,9 @@
2924
2930
  .ttw\:align-top {
2925
2931
  vertical-align: top;
2926
2932
  }
2933
+ .ttw\:font-\[inherit\] {
2934
+ font-family: inherit;
2935
+ }
2927
2936
  .ttw\:font-mono {
2928
2937
  font-family: var(--ttw-font-mono);
2929
2938
  }
@@ -4228,6 +4237,9 @@
4228
4237
  .ttw\:hover\:bg-zinc-100:hover {
4229
4238
  background-color: var(--ttw-color-zinc-100);
4230
4239
  }
4240
+ .ttw\:hover\:bg-zinc-300:hover {
4241
+ background-color: var(--ttw-color-zinc-300);
4242
+ }
4231
4243
  .ttw\:hover\:\!text-sidebar-accent-foreground:hover {
4232
4244
  color: var(--ttw-sidebar-accent-foreground) !important;
4233
4245
  }
@@ -4268,6 +4280,9 @@
4268
4280
  .ttw\:hover\:text-white:hover {
4269
4281
  color: var(--ttw-color-white);
4270
4282
  }
4283
+ .ttw\:hover\:text-zinc-900:hover {
4284
+ color: var(--ttw-color-zinc-900);
4285
+ }
4271
4286
  .ttw\:hover\:no-underline:hover {
4272
4287
  text-decoration-line: none;
4273
4288
  }
@@ -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
- className: "ttw:bg-secondary ttw:text-secondary-foreground",
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
- previousPageLabel: H.paginationPrev,
171
- nextPageLabel: H.paginationNext,
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
- previousPageLabel: H.paginationPrev,
204
- nextPageLabel: H.paginationNext
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
- placeholder: n._("Added by"),
24
- emptyMessage: n._("No users found"),
25
- clearAriaLabel: n._("Clear selection"),
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
- minLabel: "No less than",
115
- maxLabel: "No more than"
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
- minLabel: "No less than",
112
- maxLabel: "No more than"
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",
@@ -2935,8 +2935,14 @@ var Go = e.object({
2935
2935
  }), Xo = e.enum([
2936
2936
  "id",
2937
2937
  "created_at",
2938
+ "updated_at",
2938
2939
  "issued_at",
2939
- "due_date"
2940
+ "due_date",
2941
+ "amount",
2942
+ "status",
2943
+ "document_id",
2944
+ "currency",
2945
+ "counterpart_name"
2940
2946
  ]), Zo = e.enum([
2941
2947
  "created_at",
2942
2948
  "status",
@@ -3981,7 +3987,16 @@ e.object({ data: e.array(fl) }), e.object({ file: e.string() }), e.object({
3981
3987
  total_amount: e.int().gte(0).optional(),
3982
3988
  transaction_id: e.uuid().optional()
3983
3989
  });
3984
- var pl = e.enum(["id", "created_at"]), ml = e.enum([
3990
+ var pl = e.enum([
3991
+ "id",
3992
+ "created_at",
3993
+ "updated_at",
3994
+ "issued_at",
3995
+ "total_amount",
3996
+ "merchant_name",
3997
+ "document_id",
3998
+ "currency"
3999
+ ]), ml = e.enum([
3985
4000
  "created_at",
3986
4001
  "currency",
3987
4002
  "issued_at"
@@ -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.244", n = "158b3cc4f007d24e9afc002efc06e4cab9fa524b", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.2.247", n = "e1f0d2840e1d252413df407dd44d2b9f786d24b0", 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
- placeholder: D.membersSearchPlaceholder,
49
- emptyMessage: D.membersEmptyMessage,
48
+ labels: {
49
+ placeholder: D.membersSearchPlaceholder,
50
+ emptyMessage: D.membersEmptyMessage
51
+ },
50
52
  onValueChange: b
51
53
  })]
52
54
  }),