@tesouro/embedded-components-react 0.8.1 → 0.8.5

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.
Files changed (98) hide show
  1. package/dist/index.css +21 -120
  2. package/dist/index.d.ts +1 -3
  3. package/dist/lib/ProductsWidget.d.ts +1 -3
  4. package/dist/lib/ReceivablesWidget.d.ts +1 -3
  5. package/dist/lib/monite-sdk.d.ts +6 -59
  6. package/dist/lib/monite-sdk.js +9 -13
  7. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +10 -14
  8. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +2 -12
  9. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +19 -26
  10. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +4 -78
  11. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index17.js +4 -23
  12. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +24 -1
  13. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +73 -35
  14. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +19 -1
  15. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +19 -16
  16. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +5 -17
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +8 -4
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +11 -16
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +129 -20
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +5 -21
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +2 -2
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +5 -8
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +218 -13
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +31 -17
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +14 -9
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +33 -24
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +19 -12
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +73 -8
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +180 -23
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +13 -13
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +203 -80
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +100 -14
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +61 -97
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +53 -42
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +89 -25
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +43 -1
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +75 -102
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +82 -34
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +12 -171
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +24 -12
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +17 -4
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +4 -69
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +20 -23
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +1 -212
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +17 -92
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +30 -20
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +4 -1
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +21 -17
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +15 -157
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +28 -99
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +28 -43
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +2 -4
  53. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  54. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index2.js +1 -2
  55. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index6.js +1 -1
  56. package/dist/packages/shared-ui-shadcn/dist/index.js +19 -21
  57. package/package.json +1 -3
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +0 -24
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +0 -77
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +0 -19
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +0 -22
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +0 -8
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +0 -12
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +0 -13
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +0 -133
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +0 -8
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +0 -8
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +0 -5
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +0 -222
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +0 -34
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +0 -14
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +0 -36
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +0 -22
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +0 -76
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +0 -184
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +0 -16
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +0 -206
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +0 -102
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +0 -66
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +0 -57
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +0 -94
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +0 -43
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +0 -79
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +0 -87
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +0 -14
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +0 -26
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +0 -17
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +0 -5
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +0 -24
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +0 -1
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +0 -22
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +0 -32
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +0 -4
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +0 -23
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +0 -18
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +0 -33
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +0 -31
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +0 -2
@@ -1,160 +1,18 @@
1
- import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
2
- import "../../shared/data-access/dist/index.js";
3
- import { useMoniteContext as t } from "./index36.js";
4
- import { useCurrencies as n } from "./index62.js";
5
- import { Button as r } from "./index110.js";
6
- import { LoadingSpinner as i } from "./index52.js";
7
- import { Skeleton as a } from "./index57.js";
8
- import { MoniteScopedProviders as o } from "./index143.js";
9
- import { useUserPermissions as s } from "./index144.js";
10
- import { DropdownMenu as c, DropdownMenuContent as l, DropdownMenuItem as u, DropdownMenuTrigger as d } from "./index145.js";
11
- import { Typography as f } from "./index146.js";
12
- import { AccessRestriction as p } from "./index150.js";
13
- import { useGetProductById as m } from "./index197.js";
14
- import "./index187.js";
15
- import { ProductDeleteModal as h } from "./index201.js";
16
- import { Sheet as g, SheetClose as _, SheetContent as v, SheetDescription as y, SheetHeader as b, SheetTitle as x } from "./index206.js";
17
- import { ProductEditForm as S } from "./index220.js";
18
- import { NotFound as C } from "./index221.js";
19
- import "./index222.js";
20
- import { ProductDetailLine as w } from "./index223.js";
21
- import { useState as T } from "react";
22
- import { MoreVerticalIcon as E, Trash2 as D, X as O } from "lucide-react";
23
- import { Fragment as k, jsx as A, jsxs as j } from "@emotion/react/jsx-runtime";
24
- import { useLingui as M } from "@lingui/react";
1
+ import { useMoniteContext as e } from "./index36.js";
2
+ import { getTailwindTheme as t } from "./index223.js";
3
+ import { useLayoutEffect as n, useMemo as r } from "react";
4
+ import { Fragment as i, jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
5
+ import { Global as s } from "@emotion/react";
6
+ import { ThemeProvider as c } from "@mui/material/styles";
25
7
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js
26
- var N = (e) => /* @__PURE__ */ A(o, { children: /* @__PURE__ */ A(P, { ...e }) }), P = ({ id: o, open: N, onClose: P, onUpdated: F, onDeleted: I, showActionsMenu: L = !0 }) => {
27
- let { i18n: R } = M(), { locale: z } = t(), { formatCurrencyToDisplay: B } = n(), [V, H] = T(!1), [U, W] = T(!1), { data: G, isLoading: K, isFetching: q } = m(o), J = G?.type === "product", Y = s(), X = Y.has(e.InvoiceReadOrg), Z = Y.has(e.InvoiceWriteOrg), Q = Y.has(e.InvoiceWriteOrg);
28
- return X ? !K && !q && !G ? /* @__PURE__ */ A(g, {
29
- open: N,
30
- onOpenChange: P,
31
- children: /* @__PURE__ */ A(v, {
32
- showCloseButton: !0,
33
- className: "ttw:gap-0",
34
- children: /* @__PURE__ */ A("div", {
35
- className: "ttw:w-3/4 ttw:m-auto ttw:p-4",
36
- children: /* @__PURE__ */ A(C, {
37
- title: R._("Product not found"),
38
- description: R._("There is no product by provided id: {id}", { id: o })
39
- })
40
- })
41
- })
42
- }) : /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(g, {
43
- open: N,
44
- onOpenChange: P,
45
- children: /* @__PURE__ */ j(v, {
46
- showCloseButton: !1,
47
- className: "ttw:gap-0",
48
- children: [/* @__PURE__ */ j(b, {
49
- className: "ttw:pt-6 ttw:pl-6 ttw:pb-7 ttw:flex-row ttw:gap-3 ttw:border-b ttw:border-border",
50
- children: [/* @__PURE__ */ j("div", {
51
- className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:w-[85%]",
52
- children: [/* @__PURE__ */ A(x, {
53
- asChild: K,
54
- className: "ttw:text-2xl",
55
- children: K ? /* @__PURE__ */ A(a, { className: "ttw:w-40" }) : G?.name ?? ""
56
- }), /* @__PURE__ */ A(y, {
57
- asChild: K,
58
- children: K ? /* @__PURE__ */ A(a, { className: "ttw:w-60" }) : R._("{type} · Added {createdAt}", {
59
- createdAt: R.date(G?.created_at, z.dateFormat),
60
- type: G?.type === "product" ? "Product" : "Service"
61
- })
62
- })]
63
- }), /* @__PURE__ */ j("div", {
64
- className: "ttw:flex ttw:gap-2",
65
- children: [L && Q && /* @__PURE__ */ j(c, { children: [/* @__PURE__ */ A(d, {
66
- asChild: !0,
67
- children: /* @__PURE__ */ A(r, {
68
- type: "button",
69
- variant: "outline",
70
- className: "ttw:p-2 ttw:size-9 ttw:border-none ttw:bg-muted",
71
- children: /* @__PURE__ */ A(E, {})
72
- })
73
- }), /* @__PURE__ */ A(l, {
74
- align: "end",
75
- children: /* @__PURE__ */ j(u, {
76
- onClick: () => W(!0),
77
- variant: "destructive",
78
- children: [/* @__PURE__ */ A(D, {}), R._("Delete product")]
79
- })
80
- })] }), /* @__PURE__ */ A(_, {
81
- className: "ttw:size-9 ttw:bg-muted ttw:p-2 ttw:flex ttw:items-center ttw:justify-center ttw:rounded-md ttw:cursor-pointer",
82
- children: /* @__PURE__ */ A(O, { className: "ttw:size-4" })
83
- })]
84
- })]
85
- }), K ? /* @__PURE__ */ A("div", {
86
- className: "ttw:flex ttw:w-full ttw:h-full ttw:items-center ttw:justify-center",
87
- children: /* @__PURE__ */ A(i, {})
88
- }) : /* @__PURE__ */ A("main", {
89
- className: "ttw:p-6 ttw:overflow-auto ttw:flex ttw:flex-col ttw:gap-4",
90
- children: /* @__PURE__ */ j("div", {
91
- className: "ttw:flex ttw:flex-col ttw:gap-4",
92
- children: [/* @__PURE__ */ j("div", {
93
- className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border",
94
- children: [/* @__PURE__ */ j("div", {
95
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
96
- children: [/* @__PURE__ */ A(f, {
97
- variant: "body1",
98
- className: "ttw:font-medium",
99
- children: R._("{type} details", { type: J ? "Product" : "Service" })
100
- }), /* @__PURE__ */ A(f, {
101
- variant: "body2",
102
- color: "muted",
103
- children: J ? R._("A physical or digital item") : R._("Work or labor you provide")
104
- })]
105
- }), !V && Z && /* @__PURE__ */ A(r, {
106
- type: "button",
107
- variant: "ghost",
108
- className: "ttw:text-primary ttw:hover:text-primary",
109
- onClick: () => H(!0),
110
- children: R._("Edit")
111
- })]
112
- }), V && G ? /* @__PURE__ */ A(S, {
113
- product: G,
114
- handleClose: () => H(!1),
115
- onUpdate: (e) => {
116
- F?.(e), H(!1);
117
- }
118
- }) : /* @__PURE__ */ j("ul", {
119
- className: "ttw:list-none",
120
- children: [
121
- /* @__PURE__ */ A(w, {
122
- label: R._("{type} name", { type: J ? "Product" : "Service" }),
123
- value: G?.name ?? "-"
124
- }),
125
- /* @__PURE__ */ A(w, {
126
- label: R._("Price per unit"),
127
- value: G?.price ? B(G.price.value, G.price.currency) : "-"
128
- }),
129
- /* @__PURE__ */ A(w, {
130
- label: R._("Description"),
131
- value: G?.description || "-",
132
- isLast: !0
133
- })
134
- ]
135
- })]
136
- })
137
- })]
138
- })
139
- }), o && U && /* @__PURE__ */ A(h, {
140
- id: o,
141
- open: U,
142
- onClose: () => W(!1),
143
- onDeleted: (e) => {
144
- P?.(), I?.(e), W(!1);
145
- }
146
- })] }) : /* @__PURE__ */ A(g, {
147
- open: N,
148
- onOpenChange: P,
149
- children: /* @__PURE__ */ A(v, {
150
- showCloseButton: !0,
151
- className: "ttw:gap-0",
152
- children: /* @__PURE__ */ A("div", {
153
- className: "ttw:w-3/4 ttw:m-auto ttw:p-4",
154
- children: /* @__PURE__ */ A(p, {})
155
- })
156
- })
157
- });
8
+ var l = ({ children: l, onThemeMounted: u }) => {
9
+ let { theme: d } = e(), f = r(() => t(d), [d]);
10
+ return n(() => {
11
+ u?.();
12
+ }, [u]), /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a(s, { styles: f }), /* @__PURE__ */ a(c, {
13
+ theme: d,
14
+ children: l
15
+ })] });
158
16
  };
159
17
  //#endregion
160
- export { N as ProductDetails };
18
+ export { l as MoniteThemeProvider };
@@ -1,104 +1,33 @@
1
- import { applyAPIValidationErrors as e, parseAPIValidationErrors as t } from "./index17.js";
2
- import { useCurrencies as n } from "./index62.js";
3
- import "./index73.js";
4
- import { Button as r } from "./index110.js";
5
- import { LoadingSpinner as i } from "./index52.js";
6
- import { MoniteScopedProviders as a } from "./index143.js";
7
- import { useCreateProduct as o } from "./index191.js";
8
- import "./index200.js";
9
- import "./index187.js";
10
- import { PRODUCT_API_FIELD_MAP as s } from "./index203.js";
11
- import { Sheet as c, SheetClose as l, SheetContent as u, SheetDescription as d, SheetFooter as f, SheetHeader as p, SheetTitle as m } from "./index206.js";
12
- import { getProductValidationSchema as h } from "./index207.js";
13
- import { ProductFormContent as g } from "./index219.js";
14
- import { useCallback as _, useId as v, useMemo as y } from "react";
15
- import { jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
16
- import { useLingui as S } from "@lingui/react";
17
- import { FormProvider as C, useForm as w } from "react-hook-form";
18
- import { zodResolver as T } from "@hookform/resolvers/zod";
1
+ import "./index16.js";
2
+ import { useMoniteContext as e } from "./index36.js";
3
+ import { useCallback as t, useMemo as n } from "react";
4
+ import { jsx as r } from "@emotion/react/jsx-runtime";
5
+ import { QraftSecureRequestFn as i } from "@openapi-qraft/react/Unstable_QraftSecureRequestFn";
19
6
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js
20
- var E = (e) => /* @__PURE__ */ b(a, { children: /* @__PURE__ */ b(D, { ...e }) }), D = ({ onClose: a, open: E, onCreated: D }) => {
21
- let { i18n: O } = S(), { formatToMinorUnits: k } = n(), A = `product-form-${v()}`, { mutate: j, isPending: M } = o(D), N = y(() => ({
22
- name: "",
23
- type: "product",
24
- measureUnitId: "",
25
- pricePerUnit: void 0,
26
- currency: "USD",
27
- description: void 0
28
- }), []), { watch: P, ...F } = w({
29
- resolver: T(h(O)),
30
- defaultValues: N
31
- }), I = P("type"), L = !!P("name")?.trim() && P("pricePerUnit") !== void 0, R = _((n) => {
32
- n.preventDefault(), n.stopPropagation(), F.handleSubmit((n) => {
33
- j({ body: {
34
- name: n.name,
35
- type: n.type,
36
- price: {
37
- value: k(n.pricePerUnit, n.currency) ?? 0,
38
- currency: n.currency
39
- },
40
- description: n.description,
41
- ...n.measureUnitId ? { measure_unit_id: n.measureUnitId } : {}
42
- } }, { onError: (n) => {
43
- e(F.setError, t(n), { fieldMap: s });
44
- } });
45
- })(n);
46
- }, [
47
- j,
48
- k,
49
- F.handleSubmit,
50
- F.setError
51
- ]);
52
- return /* @__PURE__ */ b(c, {
53
- open: E,
54
- onOpenChange: a,
55
- children: /* @__PURE__ */ x(u, {
56
- className: "ttw:gap-0",
57
- children: [
58
- /* @__PURE__ */ x(p, {
59
- className: "ttw:border-b ttw:border-border",
60
- children: [/* @__PURE__ */ b(m, {
61
- className: "ttw:text-2xl",
62
- children: O._("Add a product or service")
63
- }), /* @__PURE__ */ b(d, {
64
- className: "ttw:max-w-130",
65
- children: O._("Save the products and services you sell so you can quickly add them as line items on invoices.")
66
- })]
67
- }),
68
- /* @__PURE__ */ b("div", {
69
- className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:px-6 ttw:py-8 ttw:overflow-auto",
70
- children: /* @__PURE__ */ b(C, {
71
- ...F,
72
- watch: P,
73
- children: /* @__PURE__ */ b("form", {
74
- id: A,
75
- onSubmit: R,
76
- children: /* @__PURE__ */ b(g, { isLoading: M })
77
- })
78
- })
79
- }),
80
- /* @__PURE__ */ x(f, {
81
- className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end",
82
- children: [/* @__PURE__ */ b(l, {
83
- asChild: !0,
84
- children: /* @__PURE__ */ b(r, {
85
- variant: "outline",
86
- disabled: M,
87
- className: "ttw:flex-1 ttw:border-border",
88
- children: O._("Cancel")
89
- })
90
- }), /* @__PURE__ */ x(r, {
91
- type: "submit",
92
- form: A,
93
- className: "ttw:flex-1",
94
- title: O._("Complete the form to continue"),
95
- disabled: M || !L,
96
- children: [M && /* @__PURE__ */ b(i, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }), O._("Save {type}", { type: I })]
97
- })]
98
- })
99
- ]
7
+ var a = 6e4, o = 1e3, s = ({ children: s, APIContext: c }) => {
8
+ let { apiUrl: l, fetchToken: u, queryClient: d, requestFn: f } = e(), p = t(async () => {
9
+ let { access_token: e, expires_in: t } = await u();
10
+ return {
11
+ token: e,
12
+ refreshInterval: Math.max(o, t * 1e3 - a)
13
+ };
14
+ }, [u]), m = n(() => ({
15
+ HTTPBearer: p,
16
+ APPToken: p,
17
+ USERToken: p
18
+ }), [p]);
19
+ return /* @__PURE__ */ r(i, {
20
+ requestFn: f,
21
+ securitySchemes: m,
22
+ children: (e) => /* @__PURE__ */ r(c.Provider, {
23
+ value: {
24
+ queryClient: d,
25
+ baseUrl: l,
26
+ requestFn: e
27
+ },
28
+ children: s
100
29
  })
101
30
  });
102
31
  };
103
32
  //#endregion
104
- export { E as CreateProduct };
33
+ export { s as MoniteAPIProvider };
@@ -1,46 +1,31 @@
1
- import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
2
- import "../../shared/data-access/dist/index.js";
3
- import { MoniteScopedProviders as t } from "./index143.js";
4
- import { useUserPermissions as n } from "./index144.js";
5
- import { AccessRestriction as r } from "./index150.js";
6
- import "./index153.js";
7
- import { ProductsTable as i } from "./index214.js";
8
- import { ProductDetails as a } from "./index224.js";
9
- import { CreateProduct as o } from "./index225.js";
10
- import { useCallback as s, useState as c } from "react";
11
- import { Fragment as l, jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
1
+ import { MoniteQraftContext as e } from "./index16.js";
2
+ import { ContainerCssBaseline as t } from "./index21.js";
3
+ import { MoniteContextProvider as n } from "./index36.js";
4
+ import { EmotionCacheProvider as r } from "./index140.js";
5
+ import { MoniteAPIProvider as i } from "./index225.js";
6
+ import { GlobalToast as a } from "./index221.js";
7
+ import { MoniteThemeProvider as o } from "./index224.js";
8
+ import { jsx as s, jsxs as c } from "@emotion/react/jsx-runtime";
12
9
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js
13
- var f = (e) => /* @__PURE__ */ u(t, { children: /* @__PURE__ */ u(p, { ...e }) }), p = ({ pageTitleComponent: t }) => {
14
- let f = n().has(e.InvoiceReadOrg), [p, m] = c(void 0), [h, g] = c(!1), _ = s((e) => {
15
- m(e);
16
- }, []), v = s(() => {
17
- m(void 0);
18
- }, []), y = s(() => {
19
- g(!1);
20
- }, []), b = s(() => {
21
- g(!0);
22
- }, []), x = s((e) => {
23
- m(e);
24
- }, []);
25
- return /* @__PURE__ */ d(l, { children: [
26
- t(/* @__PURE__ */ u(l, {})),
27
- !f && /* @__PURE__ */ u(r, {}),
28
- f && /* @__PURE__ */ u(i, {
29
- onRowClick: _,
30
- onDeleted: x,
31
- openCreateModal: b
32
- }),
33
- h && /* @__PURE__ */ u(o, {
34
- open: !0,
35
- onClose: y,
36
- onCreated: y
37
- }),
38
- !!p && p && /* @__PURE__ */ u(a, {
39
- id: p,
40
- open: !0,
41
- onClose: v
10
+ var l = /* @__PURE__ */ new Set(), u = ({ monite: u, theme: d, componentSettings: f, children: p, locale: m, onThemeMounted: h, userPermissions: g = l }) => /* @__PURE__ */ c(n, {
11
+ monite: u,
12
+ locale: m,
13
+ theme: d,
14
+ componentSettings: f,
15
+ userPermissions: g,
16
+ children: [/* @__PURE__ */ s(r, {
17
+ cacheKey: "monite-css-baseline",
18
+ prebuiltStylesheet: !0,
19
+ children: /* @__PURE__ */ c(o, {
20
+ onThemeMounted: () => {
21
+ h?.();
22
+ },
23
+ children: [/* @__PURE__ */ s(t, { enableColorScheme: !0 }), /* @__PURE__ */ s(a, {})]
42
24
  })
43
- ] });
44
- };
25
+ }), /* @__PURE__ */ s(i, {
26
+ APIContext: e,
27
+ children: p
28
+ })]
29
+ });
45
30
  //#endregion
46
- export { f as Products };
31
+ export { u as MoniteProvider };
@@ -1,4 +1,2 @@
1
- import "./index214.js";
2
- import "./index224.js";
3
- import "./index225.js";
4
- import "./index226.js";
1
+ import { toast as e } from "react-hot-toast";
2
+ export { e as toast };
@@ -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.8.1", n = "302b389e6cc57ba3fedd823376be9d4d42f7fb52", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.8.5", n = "e16e2f9bbd85302962aef1167aea5c1bb4da7cc3", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -54,8 +54,7 @@ var a = {
54
54
  cancelAction: "Cancel edit",
55
55
  emptyText: "No measure units yet."
56
56
  }, o = {
57
- titleNoItems: "Delete \"{name}\"?",
58
- titleWithItems: "Delete \"{name}\"?",
57
+ title: "Delete \"{name}\"?",
59
58
  messageNoItems: "There are no items created with this measure unit.",
60
59
  messageNoItemsHint: "Deleting it won't affect your items.",
61
60
  messageWithItems: "Any products or services referencing this unit will update to use a blank unit of measure.",
@@ -11,7 +11,7 @@ function h({ open: h, onOpenChange: g, unitName: _, affectedProducts: v, isLoadi
11
11
  open: h,
12
12
  onOpenChange: g,
13
13
  children: /* @__PURE__ */ m(t, { children: [
14
- /* @__PURE__ */ m(i, { children: [/* @__PURE__ */ p(a, { children: (T ? w.titleWithItems : w.titleNoItems).replace("{name}", _) }), /* @__PURE__ */ p(n, { children: T ? w.messageWithItems : w.messageNoItems })] }),
14
+ /* @__PURE__ */ m(i, { children: [/* @__PURE__ */ p(a, { children: w.title.replace("{name}", _) }), /* @__PURE__ */ p(n, { children: T ? w.messageWithItems : w.messageNoItems })] }),
15
15
  /* @__PURE__ */ p("p", {
16
16
  className: "ttw:text-sm ttw:text-muted-foreground",
17
17
  children: T ? w.messageWithItemsHint : w.messageNoItemsHint
@@ -8620,13 +8620,11 @@ function qv({ className: t, width: n, height: r, variant: i = "default", style:
8620
8620
  ...a,
8621
8621
  width: typeof n == "number" ? `${n}px` : n,
8622
8622
  height: typeof r == "number" ? `${r}px` : r,
8623
- backgroundColor: "var(--ttw-muted, #f1f5f9)",
8624
- borderRadius: i === "circular" ? "9999px" : "0.375rem",
8625
8623
  animation: "skeleton-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"
8626
8624
  };
8627
8625
  return /* @__PURE__ */ _("div", {
8628
8626
  "data-slot": "skeleton",
8629
- className: J("ttw:animate-pulse ttw:rounded-md ttw:bg-muted", i === "circular" && "ttw:rounded-full", t),
8627
+ className: J("ttw:animate-pulse ttw:rounded-sm ttw:bg-muted", i === "circular" && "ttw:rounded-full", t),
8630
8628
  style: s,
8631
8629
  ...o
8632
8630
  });
@@ -8944,7 +8942,7 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
8944
8942
  }) : I.map((e, t) => {
8945
8943
  let n = uy(e), r = F.includes(n);
8946
8944
  return /* @__PURE__ */ v("li", {
8947
- className: J("ttw:flex ttw:w-full ttw:cursor-pointer ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:px-2 ttw:py-1.5 ttw:text-sm", ee === t ? "ttw:bg-zinc-300 ttw:text-zinc-900" : "ttw:hover:bg-zinc-300 ttw:hover:text-zinc-900"),
8945
+ className: J("ttw:flex ttw:w-full ttw:cursor-pointer ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:px-2 ttw:py-1.5 ttw:text-sm", ee === t ? "ttw:bg-accent ttw:text-accent-foreground" : "ttw:hover:bg-accent ttw:hover:text-accent-foreground"),
8948
8946
  onMouseEnter: () => k(t),
8949
8947
  onMouseDown: (e) => {
8950
8948
  e.preventDefault(), R(n);
@@ -9248,7 +9246,7 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
9248
9246
  });
9249
9247
  return /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ v("div", {
9250
9248
  "data-slot": "data-table",
9251
- className: J("ttw:flex ttw:flex-col ttw:overflow-hidden ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl ttw:bg-card", p && "ttw:pt-4", ee),
9249
+ className: J("ttw:flex ttw:flex-col ttw:overflow-hidden ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl ttw:bg-card ttw:text-card-foreground", p && "ttw:pt-4", ee),
9252
9250
  children: [
9253
9251
  p,
9254
9252
  m && /* @__PURE__ */ _("div", {
@@ -9280,7 +9278,7 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
9280
9278
  containerStyle: { height: `min(${Uy + a * Hy}px, ${Wy})` },
9281
9279
  children: [/* @__PURE__ */ _(Ly, { children: ce.getHeaderGroups().map((e) => /* @__PURE__ */ _(zy, { children: e.headers.map((e) => /* @__PURE__ */ _(By, {
9282
9280
  "aria-sort": e.column.getCanSort() ? qy(e.column.getIsSorted()) : void 0,
9283
- className: "ttw:sticky ttw:top-0 ttw:z-10 ttw:bg-card ttw:p-3 ttw:text-xs ttw:text-zinc-950 ttw:border-b ttw:border-zinc-100",
9281
+ className: "ttw:sticky ttw:top-0 ttw:z-10 ttw:bg-card ttw:p-3 ttw:text-xs ttw:text-card-foreground ttw:border-b ttw:border-border",
9284
9282
  style: {
9285
9283
  ...e.column.columnDef.size !== void 0 && {
9286
9284
  width: e.column.columnDef.size,
@@ -9290,7 +9288,7 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
9290
9288
  },
9291
9289
  children: e.isPlaceholder ? null : y(e.column.columnDef.header, e.getContext())
9292
9290
  }, e.id)) }, e.id)) }), /* @__PURE__ */ _(Ry, { children: j ? Array.from({ length: a }).map((e, n) => /* @__PURE__ */ _(zy, { children: t.map((e, t) => /* @__PURE__ */ _(Vy, {
9293
- className: "ttw:px-3 ttw:h-13 ttw:border-zinc-100 ttw:border-b",
9291
+ className: "ttw:px-3 ttw:h-13 ttw:border-border ttw:border-b",
9294
9292
  children: /* @__PURE__ */ _(qv, { className: "ttw:h-4 ttw:w-full" })
9295
9293
  }, t)) }, `skeleton-${n}`)) : ce.getRowModel().rows?.length ? ce.getRowModel().rows.map((n, r, i) => {
9296
9294
  let a = E?.(n.original), o = r > 0 ? E?.(i[r - 1].original) : void 0, s = a !== void 0 && a.key !== o?.key, c = a?.nested !== void 0, l = a?.nested === void 0 ? !0 : oe[a.key] ?? a.nested.defaultExpanded ?? !0;
@@ -9298,7 +9296,7 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
9298
9296
  className: J("ttw:hover:bg-transparent", a.className),
9299
9297
  children: /* @__PURE__ */ _(Vy, {
9300
9298
  colSpan: t.length,
9301
- className: "ttw:h-13 ttw:border-b ttw:border-zinc-100 ttw:px-3 ttw:font-medium",
9299
+ className: "ttw:h-13 ttw:border-b ttw:border-border ttw:px-3 ttw:font-medium",
9302
9300
  children: a.nested ? /* @__PURE__ */ v("button", {
9303
9301
  type: "button",
9304
9302
  className: "ttw:flex ttw:w-full ttw:items-center ttw:gap-2 ttw:text-left ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring ttw:focus-visible:outline-hidden",
@@ -9336,7 +9334,7 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
9336
9334
  C && e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), C(n.original));
9337
9335
  },
9338
9336
  children: n.getVisibleCells().map((e) => /* @__PURE__ */ _(Vy, {
9339
- className: "ttw:px-3 ttw:h-13 ttw:font-medium ttw:border-zinc-100 ttw:border-b",
9337
+ className: "ttw:px-3 ttw:h-13 ttw:font-medium ttw:border-border ttw:border-b",
9340
9338
  style: {
9341
9339
  ...e.column.columnDef.size !== void 0 && {
9342
9340
  width: e.column.columnDef.size,
@@ -9366,14 +9364,14 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
9366
9364
  className: "ttw:flex ttw:items-center ttw:justify-end ttw:space-x-6.5 ttw:py-3 ttw:bg-transparent",
9367
9365
  children: [
9368
9366
  h && /* @__PURE__ */ _("div", {
9369
- className: "ttw:text-sm ttw:leading-5 ttw:font-medium ttw:text-zinc-950",
9367
+ className: "ttw:text-sm ttw:leading-5 ttw:font-medium ttw:text-foreground",
9370
9368
  children: sy(P.selectedRows, {
9371
9369
  selected: ce.getFilteredSelectedRowModel().rows.length,
9372
9370
  total: ce.getFilteredRowModel().rows.length
9373
9371
  })
9374
9372
  }),
9375
9373
  /* @__PURE__ */ v("span", {
9376
- className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-sm ttw:leading-5 ttw:font-medium ttw:text-zinc-950",
9374
+ className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-sm ttw:leading-5 ttw:font-medium ttw:text-foreground",
9377
9375
  children: [P.rowsPerPage, /* @__PURE__ */ v(Ey, {
9378
9376
  value: String(a),
9379
9377
  onValueChange: (e) => {
@@ -9390,7 +9388,7 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
9390
9388
  })]
9391
9389
  }),
9392
9390
  f && /* @__PURE__ */ _("span", {
9393
- className: "ttw:text-sm ttw:leading-5 ttw:font-medium ttw:text-zinc-950",
9391
+ className: "ttw:text-sm ttw:leading-5 ttw:font-medium ttw:text-foreground",
9394
9392
  children: f
9395
9393
  }),
9396
9394
  /* @__PURE__ */ v("div", {
@@ -9398,14 +9396,14 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
9398
9396
  children: [/* @__PURE__ */ _(Tv, {
9399
9397
  variant: "ghost",
9400
9398
  "aria-label": P.previousPage,
9401
- className: "ttw:px-2 ttw:py-2 ttw:border ttw:border-zinc-200 ttw:rounded-lg",
9399
+ className: "ttw:px-2 ttw:py-2 ttw:border ttw:border-border ttw:rounded-lg",
9402
9400
  onClick: u,
9403
9401
  disabled: !c,
9404
9402
  children: /* @__PURE__ */ _(ie, {})
9405
9403
  }), /* @__PURE__ */ _(Tv, {
9406
9404
  variant: "ghost",
9407
9405
  "aria-label": P.nextPage,
9408
- className: "ttw:px-2 ttw:py-2 ttw:border ttw:border-zinc-200 ttw:rounded-lg",
9406
+ className: "ttw:px-2 ttw:py-2 ttw:border ttw:border-border ttw:rounded-lg",
9409
9407
  onClick: l,
9410
9408
  disabled: !s,
9411
9409
  children: /* @__PURE__ */ _(ae, {})
@@ -9434,7 +9432,7 @@ function Jy({ column: e, title: t, labels: n }) {
9434
9432
  return /* @__PURE__ */ v(Tv, {
9435
9433
  type: "button",
9436
9434
  variant: "ghost",
9437
- className: J("ttw:text-xs ttw:cursor-pointer ttw:hover:bg-transparent", "ttw:px-0!", "ttw:hover:text-foreground", i && "ttw:text-foreground"),
9435
+ className: J("ttw:text-xs ttw:cursor-pointer ttw:hover:bg-transparent", "ttw:px-0!", "ttw:hover:text-card-foreground", i && "ttw:text-card-foreground"),
9438
9436
  style: { cursor: "pointer" },
9439
9437
  onClick: () => e.toggleSorting(i === "asc"),
9440
9438
  children: [
@@ -16553,7 +16551,7 @@ function kj({ activeCount: e, size: t = "sm", labels: n, className: r, ...i }) {
16553
16551
  };
16554
16552
  return /* @__PURE__ */ v("button", {
16555
16553
  type: "button",
16556
- className: J("ttw:inline-flex ttw:items-center ttw:gap-1", t === "md" ? "ttw:h-9" : "ttw:h-8", "ttw:px-3 ttw:py-2 ttw:rounded-[8px]", "ttw:bg-white ttw:border ttw:border-zinc-200", "ttw:shadow-[0px_1px_2px_0px_rgba(26,26,26,0.05)]", "ttw:text-xs ttw:font-medium ttw:text-foreground", "ttw:transition-colors ttw:cursor-pointer", "ttw:hover:bg-zinc-100", "ttw:focus-visible:outline-none ttw:focus-visible:border-zinc-400", "ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-zinc-400/50", "ttw:disabled:pointer-events-none ttw:disabled:opacity-50", r),
16554
+ className: J("ttw:inline-flex ttw:items-center ttw:gap-1", t === "md" ? "ttw:h-9" : "ttw:h-8", "ttw:px-3 ttw:py-2 ttw:rounded-md", "ttw:bg-background ttw:border ttw:border-input ttw:shadow-xs", "ttw:text-xs ttw:font-medium ttw:text-foreground", "ttw:transition-[color,background-color,box-shadow] ttw:cursor-pointer", "ttw:hover:bg-accent ttw:hover:text-accent-foreground", "ttw:focus-visible:outline-none ttw:focus-visible:border-ring", "ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50", "ttw:disabled:pointer-events-none ttw:disabled:opacity-50", r),
16557
16555
  ...i,
16558
16556
  children: [/* @__PURE__ */ _(le, { className: "ttw:size-4 ttw:shrink-0" }), /* @__PURE__ */ v("span", { children: [a.filters, e !== void 0 && e > 0 ? ` (${e})` : null] })]
16559
16557
  });
@@ -16569,16 +16567,16 @@ function jj({ label: e, count: t, variant: n = "default", onLabelClick: r, onDis
16569
16567
  }, u = t === void 0 ? e : `${e} (${t})`;
16570
16568
  return n === "preset" ? /* @__PURE__ */ v("button", {
16571
16569
  type: "button",
16572
- className: J("ttw:inline-flex ttw:items-center ttw:gap-1", "ttw:h-8 ttw:px-3 ttw:rounded-[8px]", "ttw:border ttw:text-xs ttw:font-medium", "ttw:transition-colors ttw:cursor-pointer", "ttw:focus-visible:outline-none ttw:focus-visible:border-zinc-400", "ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-zinc-400/50", a ? "ttw:border-indigo-600 ttw:bg-indigo-50 ttw:text-indigo-600" : "ttw:border-zinc-200 ttw:bg-white ttw:text-foreground ttw:hover:bg-zinc-100", s),
16570
+ className: J("ttw:inline-flex ttw:items-center ttw:gap-1", "ttw:h-8 ttw:px-3 ttw:rounded-md", "ttw:border ttw:text-xs ttw:font-medium", "ttw:transition-colors ttw:cursor-pointer", "ttw:focus-visible:outline-none ttw:focus-visible:border-ring", "ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50", "ttw:disabled:pointer-events-none ttw:disabled:opacity-50", a ? "ttw:border-primary ttw:bg-primary/10 ttw:text-primary ttw:hover:bg-primary/15" : "ttw:border-input ttw:bg-background ttw:text-foreground ttw:hover:bg-accent ttw:hover:text-accent-foreground", s),
16573
16571
  ...c,
16574
16572
  children: [/* @__PURE__ */ _("span", { children: u }), /* @__PURE__ */ _(R, { className: "ttw:size-4 ttw:shrink-0" })]
16575
16573
  }) : /* @__PURE__ */ v("div", {
16576
- className: J("ttw:inline-flex ttw:items-center ttw:gap-0.5", "ttw:h-8 ttw:pl-3 ttw:pr-1 ttw:py-1 ttw:rounded-[8px]", "ttw:bg-indigo-50 ttw:text-xs ttw:font-medium ttw:text-zinc-900", s),
16574
+ className: J("ttw:inline-flex ttw:items-center ttw:gap-0.5", "ttw:h-8 ttw:pl-3 ttw:pr-1 ttw:py-1 ttw:rounded-md", "ttw:bg-primary/10 ttw:text-xs ttw:font-medium", s),
16577
16575
  children: [r ? /* @__PURE__ */ _("button", {
16578
16576
  type: "button",
16579
16577
  onClick: r,
16580
16578
  "aria-label": sy(l.edit, { label: e }),
16581
- className: J("ttw:min-w-0 ttw:flex-1 ttw:text-left ttw:truncate", "ttw:rounded-md ttw:border-0 ttw:bg-transparent ttw:p-0 ttw:m-0", "ttw:cursor-pointer ttw:font-[inherit] ttw:text-inherit", "ttw:hover:bg-indigo-100/60 ttw:transition-colors", "ttw:focus-visible:outline-none ttw:focus-visible:ring-2 ttw:focus-visible:ring-indigo-600/40"),
16579
+ className: J("ttw:min-w-0 ttw:flex-1 ttw:text-left ttw:truncate", "ttw:rounded-md ttw:border-0 ttw:bg-transparent ttw:p-0 ttw:m-0", "ttw:cursor-pointer ttw:font-[inherit] ttw:text-inherit", "ttw:hover:bg-primary/15 ttw:transition-colors", "ttw:focus-visible:outline-none ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring"),
16582
16580
  children: u
16583
16581
  }) : /* @__PURE__ */ _("span", {
16584
16582
  className: "ttw:shrink-0",
@@ -16587,7 +16585,7 @@ function jj({ label: e, count: t, variant: n = "default", onLabelClick: r, onDis
16587
16585
  type: "button",
16588
16586
  onClick: i,
16589
16587
  "aria-label": sy(l.remove, { label: e }),
16590
- className: J("ttw:inline-flex ttw:items-center ttw:justify-center", "ttw:size-6 ttw:rounded-[6px] ttw:cursor-pointer", "ttw:transition-colors", "ttw:hover:bg-indigo-700 ttw:hover:text-white", "ttw:focus-visible:outline-none ttw:focus-visible:ring-2", "ttw:focus-visible:ring-indigo-700"),
16588
+ className: J("ttw:inline-flex ttw:items-center ttw:justify-center", "ttw:size-6 ttw:rounded-sm ttw:cursor-pointer", "ttw:transition-colors", "ttw:hover:bg-primary ttw:hover:text-primary-foreground", "ttw:focus-visible:outline-none ttw:focus-visible:ring-2", "ttw:focus-visible:ring-ring"),
16591
16589
  children: /* @__PURE__ */ _(fe, { className: "ttw:size-4" })
16592
16590
  })]
16593
16591
  });
@@ -16943,7 +16941,7 @@ function $j({ className: e, ...t }) {
16943
16941
  className: "ttw:relative",
16944
16942
  children: [/* @__PURE__ */ _(de, { className: "ttw:absolute ttw:left-2.5 ttw:top-1/2 ttw:-translate-y-1/2 ttw:size-4 ttw:text-muted-foreground ttw:pointer-events-none" }), /* @__PURE__ */ _("input", {
16945
16943
  type: "search",
16946
- className: J("ttw:h-8 ttw:pl-8 ttw:pr-3 ttw:py-2", "ttw:rounded-[8px] ttw:border ttw:border-zinc-200 ttw:bg-white", "ttw:text-xs ttw:font-medium ttw:placeholder:text-muted-foreground", "ttw:shadow-[0px_1px_2px_0px_rgba(26,26,26,0.05)]", "ttw:focus-visible:outline-none ttw:focus-visible:border-zinc-400", "ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-zinc-400/50", e),
16944
+ className: J("ttw:h-8 ttw:pl-8 ttw:pr-3 ttw:py-2", "ttw:rounded-md ttw:border ttw:border-input ttw:bg-background ttw:shadow-xs", "ttw:text-xs ttw:font-medium ttw:text-foreground ttw:placeholder:text-muted-foreground", "ttw:transition-[color,box-shadow]", "ttw:focus-visible:outline-none ttw:focus-visible:border-ring", "ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50", "ttw:disabled:pointer-events-none ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50", e),
16947
16945
  ...t
16948
16946
  })]
16949
16947
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.8.1",
3
+ "version": "0.8.5",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -247,8 +247,6 @@
247
247
  "@radix-ui/react-context-menu": "^2.3.7",
248
248
  "@radix-ui/react-dialog": "^1.1.23",
249
249
  "@radix-ui/react-dropdown-menu": "^2.1.24",
250
- "@radix-ui/react-label": "^2.1.15",
251
- "@radix-ui/react-radio-group": "^1.4.7",
252
250
  "@radix-ui/react-select": "^2.3.7",
253
251
  "@radix-ui/react-slot": "^1.3.3",
254
252
  "@radix-ui/react-switch": "^1.3.7",
@@ -1,24 +0,0 @@
1
- import { jsx as e } from "@emotion/react/jsx-runtime";
2
- import { Box as t, useTheme as n } from "@mui/material";
3
- //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js
4
- var r = ({ children: r, shouldApplyFinanceStyles: i = !1 }) => {
5
- let a = n();
6
- return /* @__PURE__ */ e(t, {
7
- sx: {
8
- background: `linear-gradient(180deg, ${a.palette.primary.light} 0%, ${a.palette.background.paper} 100%)`,
9
- display: "flex",
10
- flexDirection: "column",
11
- gap: 1,
12
- px: 3,
13
- py: i ? 3 : 2.5,
14
- width: "100%",
15
- minHeight: "auto",
16
- borderRadius: "16px",
17
- boxShadow: "0 16px 24px 0 rgba(0, 0, 0, 0.02)",
18
- border: i ? "none" : `1px solid ${a.palette.divider}`
19
- },
20
- children: r
21
- });
22
- };
23
- //#endregion
24
- export { r as FinanceBannerWrapper };