@tesouro/embedded-components-react 0.9.4 → 0.9.6

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
@@ -718,6 +718,9 @@
718
718
  .ttw\:h-40 {
719
719
  height: calc(var(--ttw-spacing) * 40);
720
720
  }
721
+ .ttw\:h-60 {
722
+ height: calc(var(--ttw-spacing) * 60);
723
+ }
721
724
  .ttw\:h-64 {
722
725
  height: calc(var(--ttw-spacing) * 64);
723
726
  }
@@ -736,9 +739,6 @@
736
739
  .ttw\:h-\[214px\] {
737
740
  height: 214px;
738
741
  }
739
- .ttw\:h-\[240px\] {
740
- height: 240px;
741
- }
742
742
  .ttw\:h-\[480px\] {
743
743
  height: 480px;
744
744
  }
@@ -132,7 +132,10 @@ function F(e, { list: r, detailMissing: i = !1 } = {}) {
132
132
  };
133
133
  return e.units = e.units.map((e) => e.id === n ? i : e), c(i);
134
134
  }),
135
- o("DELETE", `${N}/:id`, (t, { id: n }) => (e.units = e.units.filter((e) => e.id !== n), e.products = e.products.filter((e) => e.measure_unit_id !== n), l())),
135
+ o("DELETE", `${N}/:id`, (t, { id: n }) => (e.units = e.units.filter((e) => e.id !== n), e.products = e.products.map((e) => e.measure_unit_id === n ? {
136
+ ...e,
137
+ measure_unit_id: null
138
+ } : e), l())),
136
139
  o("GET", M, ({ query: t }) => c(f(P(e.products, t), t))),
137
140
  o("POST", M, (t) => {
138
141
  let r = a(t), i = (/* @__PURE__ */ new Date()).toISOString(), o = {
@@ -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.9.4", n = "cb96ee18c5b340770c19e9afd68439b4ec2dcfb4", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.9.6", n = "0d7cd31423f5cc2bcb093e5048703b34821a1891", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -51,6 +51,7 @@ function k({ open: k, onOpenChange: A, units: j, isLoading: M, searchValue: N, o
51
51
  className: "ttw:align-top",
52
52
  children: [/* @__PURE__ */ x(a, {
53
53
  placeholder: Z.namePlaceholder,
54
+ "aria-label": Z.columnLabel,
54
55
  value: F.name,
55
56
  "aria-invalid": !!I,
56
57
  disabled: z,
@@ -65,6 +66,7 @@ function k({ open: k, onOpenChange: A, units: j, isLoading: M, searchValue: N, o
65
66
  className: "ttw:align-top",
66
67
  children: /* @__PURE__ */ x(a, {
67
68
  placeholder: Z.descriptionPlaceholder,
69
+ "aria-label": Z.columnDescription,
68
70
  value: F.description,
69
71
  disabled: z,
70
72
  className: "ttw:h-8",
@@ -89,6 +91,7 @@ function k({ open: k, onOpenChange: A, units: j, isLoading: M, searchValue: N, o
89
91
  /* @__PURE__ */ S(g, {
90
92
  className: "ttw:align-top",
91
93
  children: [/* @__PURE__ */ x(a, {
94
+ "aria-label": Z.columnLabel,
92
95
  value: V.name,
93
96
  "aria-invalid": !!H,
94
97
  disabled: q,
@@ -102,6 +105,7 @@ function k({ open: k, onOpenChange: A, units: j, isLoading: M, searchValue: N, o
102
105
  /* @__PURE__ */ x(g, {
103
106
  className: "ttw:align-top",
104
107
  children: /* @__PURE__ */ x(a, {
108
+ "aria-label": Z.columnDescription,
105
109
  value: V.description,
106
110
  disabled: q,
107
111
  className: "ttw:h-8",