@tesouro/embedded-components-react 0.11.55 → 0.11.58

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 (38) hide show
  1. package/README.md +2 -2
  2. package/dist/index.css +0 -21
  3. package/dist/index.d.ts +31 -6
  4. package/dist/lib/ProductsWidget.d.ts +30 -5
  5. package/dist/lib/ReceivablesWidget.d.ts +27 -5
  6. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/ProductsWidget.js +99 -92
  8. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/useProductDelete.js +24 -21
  9. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/useProductsWidget.js +79 -75
  10. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/mocks/labels.js +5 -5
  11. package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index2.js +9 -7
  12. package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index3.js +7 -9
  13. package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index4.js +103 -118
  14. package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index5.js +28 -50
  15. package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index6.js +118 -147
  16. package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index7.js +24 -27
  17. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  18. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/index.js +16 -14
  19. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/MeasureUnitCreateDialogContainer.js +38 -0
  20. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js +73 -123
  21. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/ProductSelector.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/helpers.js +6 -2
  23. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/labels.js +7 -7
  24. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/useMeasureUnitForm.js +83 -0
  25. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/useProductForm.js +17 -4
  26. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index.js +6 -4
  27. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index2.js +45 -17
  28. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index3.js +121 -123
  29. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index4.js +36 -61
  30. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index5.js +26 -194
  31. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index6.js +115 -49
  32. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index7.js +62 -113
  33. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index8.js +51 -0
  34. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index9.js +117 -0
  35. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +14 -14
  36. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/StatePanel/NoAccessState.js +10 -2
  37. package/dist/packages/shared-ui-shadcn/dist/index.js +1648 -1526
  38. package/package.json +1 -1
@@ -1,117 +1,66 @@
1
- import { cn as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { PRODUCT_SELECTOR_LABELS_EN as t } from "./index2.js";
3
- import { useCallback as n, useId as r, useRef as i, useState as a } from "react";
4
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
5
- import { CheckIcon as c, ChevronDownIcon as l, Loader2Icon as u } from "lucide-react";
1
+ import { FieldError as e, FieldRequirement as t, FormDialog as n, Input as r, Label as i, Textarea as a } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { mergeMeasureUnitsManagerLabels as o } from "./index2.js";
3
+ import { useId as s } from "react";
4
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
6
5
  // ../../libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index7.js
7
- function d({ inputValue: d, onInputValueChange: f, options: p, value: m, onOptionSelect: h, isLoading: g, disabled: _, invalid: v, inputId: y, focusOnMount: b, maxLength: x, labels: S }) {
8
- let C = {
9
- ...t,
10
- ...S
11
- }, w = r(), [T, E] = a(!1), [D, O] = a(), k = p.findIndex((e) => e.value === D), A = () => {
12
- E(!1), O(void 0);
13
- }, j = (e) => {
14
- h(e), A();
15
- }, M = (e) => `${w}-option-${e}`, N = (e) => {
16
- if (e.key === "ArrowDown" || e.key === "ArrowUp") {
17
- if (e.preventDefault(), E(!0), !p.length) return;
18
- let t = e.key === "ArrowDown" ? Math.min(k + 1, p.length - 1) : Math.max(k - 1, 0);
19
- O(p[t].value), document.getElementById(M(t))?.scrollIntoView?.({ block: "nearest" });
20
- } else if (e.key === "Enter") {
21
- e.preventDefault();
22
- let t = p[k];
23
- T && t ? j(t.value) : A();
24
- } else if (e.key === "Tab" && T) {
25
- let e = d.trim().toLowerCase();
26
- if (!e) return;
27
- let t = p.find((t) => t.label.toLowerCase() === e) ?? (p.length === 1 ? p[0] : void 0);
28
- t ? j(t.value) : A();
29
- } else e.key === "Escape" && T && (e.stopPropagation(), A());
30
- }, P = i(null), F = n((e) => {
31
- P.current = e, e && b && e.focus();
32
- }, [b]), I = () => {
33
- T ? A() : (P.current?.focus(), E(!0));
34
- }, L = T && k >= 0 ? M(k) : void 0;
35
- return /* @__PURE__ */ s("div", {
36
- className: "ttw:relative ttw:w-full",
37
- children: [/* @__PURE__ */ s("div", {
38
- className: e("ttw:flex ttw:h-9 ttw:w-full ttw:min-w-0 ttw:items-center ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:transition-[color,box-shadow] ttw:has-[input:focus-visible]:border-ring ttw:has-[input:focus-visible]:ring-[3px] ttw:has-[input:focus-visible]:ring-ring/50 ttw:has-[[aria-invalid=true]]:border-destructive", _ && "ttw:opacity-50"),
39
- children: [
40
- g ? /* @__PURE__ */ o(u, { className: "ttw:pointer-events-none ttw:ml-3 ttw:size-4 ttw:shrink-0 ttw:animate-spin ttw:text-muted-foreground" }) : null,
41
- /* @__PURE__ */ o("input", {
42
- id: y,
43
- role: "combobox",
44
- "aria-label": C.fieldLabel,
45
- "aria-autocomplete": "list",
46
- "aria-expanded": T,
47
- "aria-controls": w,
48
- "aria-activedescendant": L,
49
- "aria-invalid": v || void 0,
50
- autoComplete: "off",
51
- ref: F,
52
- maxLength: x,
53
- disabled: _,
54
- placeholder: C.placeholder,
55
- className: e("ttw:h-full ttw:min-w-0 ttw:flex-1 ttw:text-ellipsis ttw:bg-transparent ttw:pr-2 ttw:text-base ttw:outline-none ttw:placeholder:text-muted-foreground ttw:disabled:cursor-not-allowed ttw:md:text-sm", g ? "ttw:pl-2" : "ttw:pl-3"),
56
- value: d,
57
- title: d || void 0,
58
- onFocus: () => E(!0),
59
- onClick: () => E(!0),
60
- onBlur: A,
61
- onChange: (e) => {
62
- f(e.target.value), E(!0), O(void 0);
63
- },
64
- onKeyDown: N
65
- }),
66
- /* @__PURE__ */ o("button", {
67
- type: "button",
68
- tabIndex: -1,
69
- "aria-label": C.toggleListButton,
70
- "aria-controls": w,
71
- "aria-expanded": T,
72
- disabled: _,
73
- className: "ttw:mr-[0.3rem] ttw:flex ttw:size-6 ttw:shrink-0 ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:rounded-[calc(var(--radius)-5px)] ttw:text-muted-foreground ttw:transition-all ttw:hover:bg-accent ttw:hover:text-accent-foreground ttw:disabled:pointer-events-none",
74
- onMouseDown: (e) => e.preventDefault(),
75
- onClick: I,
76
- children: /* @__PURE__ */ o(l, { className: "ttw:pointer-events-none ttw:size-4" })
77
- })
78
- ]
79
- }), T && !_ ? /* @__PURE__ */ o("div", {
80
- role: "presentation",
81
- className: e("ttw:absolute ttw:left-0 ttw:top-full ttw:z-50 ttw:mt-1.5 ttw:w-full ttw:min-w-138 ttw:overflow-hidden ttw:rounded-md ttw:bg-popover ttw:text-popover-foreground ttw:shadow-md ttw:ring-1 ttw:ring-foreground/10", !p.length && "ttw:pointer-events-none"),
82
- onMouseDown: p.length ? (e) => e.preventDefault() : void 0,
83
- children: /* @__PURE__ */ s("ul", {
84
- id: w,
85
- role: "listbox",
86
- "aria-label": C.fieldLabel,
87
- className: "ttw:max-h-87 ttw:scroll-py-1 ttw:overflow-y-auto ttw:p-1",
88
- children: [p.map((t, n) => /* @__PURE__ */ s("li", {
89
- id: M(n),
90
- role: "option",
91
- "aria-selected": t.value === m,
92
- className: e("ttw:relative ttw:flex ttw:w-full ttw:cursor-default ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:py-1.5 ttw:pr-8 ttw:pl-2 ttw:text-sm ttw:select-none", n === k && "ttw:bg-accent ttw:text-accent-foreground"),
93
- onMouseEnter: () => O(t.value),
94
- onMouseDown: () => j(t.value),
95
- children: [
96
- /* @__PURE__ */ o("span", {
97
- className: "ttw:min-w-0 ttw:flex-1 ttw:truncate",
98
- children: t.label
99
- }),
100
- t.meta ? /* @__PURE__ */ o("span", {
101
- className: "ttw:shrink-0 ttw:text-right ttw:text-xs ttw:text-muted-foreground",
102
- children: t.meta
103
- }) : null,
104
- t.value === m ? /* @__PURE__ */ o("span", {
105
- className: "ttw:pointer-events-none ttw:absolute ttw:right-2 ttw:flex ttw:size-4 ttw:items-center ttw:justify-center",
106
- children: /* @__PURE__ */ o(c, { className: "ttw:size-4" })
107
- }) : null
108
- ]
109
- }, t.value)), p.length ? null : /* @__PURE__ */ o("li", {
110
- className: "ttw:py-2 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
111
- children: C.emptyText
6
+ var u = {
7
+ Create: "create",
8
+ Edit: "edit"
9
+ };
10
+ function d({ open: d, onOpenChange: f, mode: p, values: m, error: h, submitting: g, onChange: _, onSubmit: v, labels: y }) {
11
+ let b = o(y), x = s(), S = `${x}-name-error`;
12
+ return /* @__PURE__ */ c(n, {
13
+ open: d,
14
+ onOpenChange: f,
15
+ title: p === u.Edit ? b.editTitle : b.createTitle,
16
+ onSubmit: (e) => {
17
+ e.stopPropagation(), v();
18
+ },
19
+ submitting: g,
20
+ labels: {
21
+ submit: b.saveAction,
22
+ cancel: b.cancelAction,
23
+ close: b.close
24
+ },
25
+ children: /* @__PURE__ */ l("div", {
26
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
27
+ children: [/* @__PURE__ */ l("div", {
28
+ className: "ttw:flex ttw:flex-col ttw:gap-1.5",
29
+ children: [
30
+ /* @__PURE__ */ c(i, {
31
+ htmlFor: `${x}-name`,
32
+ requirement: t.Required,
33
+ labels: b.fieldMarkers,
34
+ children: b.nameLabel
35
+ }),
36
+ /* @__PURE__ */ c(r, {
37
+ id: `${x}-name`,
38
+ "aria-required": !0,
39
+ value: m.name,
40
+ "aria-invalid": !!h || void 0,
41
+ "aria-describedby": h ? S : void 0,
42
+ onChange: (e) => _({ name: e.target.value })
43
+ }),
44
+ h ? /* @__PURE__ */ c(e, {
45
+ id: S,
46
+ children: h
47
+ }) : null
48
+ ]
49
+ }), /* @__PURE__ */ l("div", {
50
+ className: "ttw:flex ttw:flex-col ttw:gap-1.5",
51
+ children: [/* @__PURE__ */ c(i, {
52
+ htmlFor: `${x}-description`,
53
+ requirement: t.Optional,
54
+ labels: b.fieldMarkers,
55
+ children: b.descriptionLabel
56
+ }), /* @__PURE__ */ c(a, {
57
+ id: `${x}-description`,
58
+ rows: 3,
59
+ value: m.description,
60
+ onChange: (e) => _({ description: e.target.value })
112
61
  })]
113
- })
114
- }) : null]
62
+ })]
63
+ })
115
64
  });
116
65
  }
117
- export { d as ProductSelector, d as default };
66
+ export { d as MeasureUnitFormDialog, d as default, u as MeasureUnitFormMode };
@@ -0,0 +1,51 @@
1
+ import { ConfirmDialog as e, Skeleton as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { LoadingRegion as n } from "../../../ui/dist/lib/LoadingRegion/LoadingRegion.js";
3
+ import "../../../ui/dist/index.js";
4
+ import { MEASURE_UNIT_DELETE_DIALOG_LABELS_EN as r } from "./index2.js";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ // ../../libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index8.js
7
+ function o({ open: o, onOpenChange: s, unitName: c, affectedProducts: l, isLoadingProducts: u, isDeleting: d, onConfirm: f, onCancel: p, labels: m }) {
8
+ let h = {
9
+ ...r,
10
+ ...m
11
+ }, g = l.length > 0;
12
+ return /* @__PURE__ */ a(e, {
13
+ open: o,
14
+ onOpenChange: (e) => {
15
+ e || p(), s(e);
16
+ },
17
+ title: h.title.replace("{name}", c),
18
+ description: g ? h.messageWithItems : h.messageNoItemsHint,
19
+ onConfirm: f,
20
+ destructive: !0,
21
+ confirmDisabled: d || u,
22
+ loading: d,
23
+ labels: {
24
+ confirm: h.confirmButton,
25
+ cancel: h.cancelButton,
26
+ close: h.close
27
+ },
28
+ children: [g ? /* @__PURE__ */ i("p", {
29
+ className: "ttw:text-sm ttw:text-muted-foreground",
30
+ children: h.messageWithItemsHint
31
+ }) : null, u ? /* @__PURE__ */ a(n, {
32
+ isLoading: !0,
33
+ loadingLabel: h.loadingProducts,
34
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
35
+ children: [/* @__PURE__ */ i(t, { className: "ttw:h-5 ttw:w-full" }), /* @__PURE__ */ i(t, { className: "ttw:h-5 ttw:w-full" })]
36
+ }) : g ? /* @__PURE__ */ i("ul", {
37
+ className: "ttw:max-h-60 ttw:divide-y ttw:divide-border ttw:overflow-auto",
38
+ children: l.map((e) => /* @__PURE__ */ a("li", {
39
+ className: "ttw:flex ttw:items-baseline ttw:justify-between ttw:gap-4 ttw:py-2 ttw:text-sm",
40
+ children: [/* @__PURE__ */ i("span", {
41
+ className: "ttw:min-w-0 ttw:break-words ttw:text-foreground",
42
+ children: e.name
43
+ }), /* @__PURE__ */ i("span", {
44
+ className: "ttw:shrink-0 ttw:text-muted-foreground ttw:tabular-nums",
45
+ children: e.priceLabel
46
+ })]
47
+ }, e.id))
48
+ }) : null]
49
+ });
50
+ }
51
+ export { o as MeasureUnitDeleteDialog, o as default };
@@ -0,0 +1,117 @@
1
+ import { cn as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { PRODUCT_SELECTOR_LABELS_EN as t } from "./index2.js";
3
+ import { useCallback as n, useId as r, useRef as i, useState as a } from "react";
4
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
5
+ import { CheckIcon as c, ChevronDownIcon as l, Loader2Icon as u } from "lucide-react";
6
+ // ../../libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index9.js
7
+ function d({ inputValue: d, onInputValueChange: f, options: p, value: m, onOptionSelect: h, isLoading: g, disabled: _, invalid: v, inputId: y, focusOnMount: b, maxLength: x, labels: S }) {
8
+ let C = {
9
+ ...t,
10
+ ...S
11
+ }, w = r(), [T, E] = a(!1), [D, O] = a(), k = p.findIndex((e) => e.value === D), A = () => {
12
+ E(!1), O(void 0);
13
+ }, j = (e) => {
14
+ h(e), A();
15
+ }, M = (e) => `${w}-option-${e}`, N = (e) => {
16
+ if (e.key === "ArrowDown" || e.key === "ArrowUp") {
17
+ if (e.preventDefault(), E(!0), !p.length) return;
18
+ let t = e.key === "ArrowDown" ? Math.min(k + 1, p.length - 1) : Math.max(k - 1, 0);
19
+ O(p[t].value), document.getElementById(M(t))?.scrollIntoView?.({ block: "nearest" });
20
+ } else if (e.key === "Enter") {
21
+ e.preventDefault();
22
+ let t = p[k];
23
+ T && t ? j(t.value) : A();
24
+ } else if (e.key === "Tab" && T) {
25
+ let e = d.trim().toLowerCase();
26
+ if (!e) return;
27
+ let t = p.find((t) => t.label.toLowerCase() === e) ?? (p.length === 1 ? p[0] : void 0);
28
+ t ? j(t.value) : A();
29
+ } else e.key === "Escape" && T && (e.stopPropagation(), A());
30
+ }, P = i(null), F = n((e) => {
31
+ P.current = e, e && b && e.focus();
32
+ }, [b]), I = () => {
33
+ T ? A() : (P.current?.focus(), E(!0));
34
+ }, L = T && k >= 0 ? M(k) : void 0;
35
+ return /* @__PURE__ */ s("div", {
36
+ className: "ttw:relative ttw:w-full",
37
+ children: [/* @__PURE__ */ s("div", {
38
+ className: e("ttw:flex ttw:h-9 ttw:w-full ttw:min-w-0 ttw:items-center ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:transition-[color,box-shadow] ttw:has-[input:focus-visible]:border-ring ttw:has-[input:focus-visible]:ring-[3px] ttw:has-[input:focus-visible]:ring-ring/50 ttw:has-[[aria-invalid=true]]:border-destructive", _ && "ttw:opacity-50"),
39
+ children: [
40
+ g ? /* @__PURE__ */ o(u, { className: "ttw:pointer-events-none ttw:ml-3 ttw:size-4 ttw:shrink-0 ttw:animate-spin ttw:text-muted-foreground" }) : null,
41
+ /* @__PURE__ */ o("input", {
42
+ id: y,
43
+ role: "combobox",
44
+ "aria-label": C.fieldLabel,
45
+ "aria-autocomplete": "list",
46
+ "aria-expanded": T,
47
+ "aria-controls": w,
48
+ "aria-activedescendant": L,
49
+ "aria-invalid": v || void 0,
50
+ autoComplete: "off",
51
+ ref: F,
52
+ maxLength: x,
53
+ disabled: _,
54
+ placeholder: C.placeholder,
55
+ className: e("ttw:h-full ttw:min-w-0 ttw:flex-1 ttw:text-ellipsis ttw:bg-transparent ttw:pr-2 ttw:text-base ttw:outline-none ttw:placeholder:text-muted-foreground ttw:disabled:cursor-not-allowed ttw:md:text-sm", g ? "ttw:pl-2" : "ttw:pl-3"),
56
+ value: d,
57
+ title: d || void 0,
58
+ onFocus: () => E(!0),
59
+ onClick: () => E(!0),
60
+ onBlur: A,
61
+ onChange: (e) => {
62
+ f(e.target.value), E(!0), O(void 0);
63
+ },
64
+ onKeyDown: N
65
+ }),
66
+ /* @__PURE__ */ o("button", {
67
+ type: "button",
68
+ tabIndex: -1,
69
+ "aria-label": C.toggleListButton,
70
+ "aria-controls": w,
71
+ "aria-expanded": T,
72
+ disabled: _,
73
+ className: "ttw:mr-1 ttw:flex ttw:size-6 ttw:shrink-0 ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:rounded-sm ttw:text-muted-foreground ttw:transition-all ttw:hover:bg-accent ttw:hover:text-accent-foreground ttw:disabled:pointer-events-none",
74
+ onMouseDown: (e) => e.preventDefault(),
75
+ onClick: I,
76
+ children: /* @__PURE__ */ o(l, { className: "ttw:pointer-events-none ttw:size-4" })
77
+ })
78
+ ]
79
+ }), T && !_ ? /* @__PURE__ */ o("div", {
80
+ role: "presentation",
81
+ className: e("ttw:absolute ttw:left-0 ttw:top-full ttw:z-50 ttw:mt-1.5 ttw:w-full ttw:min-w-138 ttw:overflow-hidden ttw:rounded-md ttw:bg-popover ttw:text-popover-foreground ttw:shadow-md ttw:ring-1 ttw:ring-foreground/10", !p.length && "ttw:pointer-events-none"),
82
+ onMouseDown: p.length ? (e) => e.preventDefault() : void 0,
83
+ children: /* @__PURE__ */ s("ul", {
84
+ id: w,
85
+ role: "listbox",
86
+ "aria-label": C.fieldLabel,
87
+ className: "ttw:max-h-87 ttw:scroll-py-1 ttw:overflow-y-auto ttw:p-1",
88
+ children: [p.map((t, n) => /* @__PURE__ */ s("li", {
89
+ id: M(n),
90
+ role: "option",
91
+ "aria-selected": t.value === m,
92
+ className: e("ttw:relative ttw:flex ttw:w-full ttw:cursor-default ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:py-1.5 ttw:pr-8 ttw:pl-2 ttw:text-sm ttw:select-none", n === k && "ttw:bg-accent ttw:text-accent-foreground"),
93
+ onMouseEnter: () => O(t.value),
94
+ onMouseDown: () => j(t.value),
95
+ children: [
96
+ /* @__PURE__ */ o("span", {
97
+ className: "ttw:min-w-0 ttw:flex-1 ttw:truncate",
98
+ children: t.label
99
+ }),
100
+ t.meta ? /* @__PURE__ */ o("span", {
101
+ className: "ttw:shrink-0 ttw:text-right ttw:text-xs ttw:text-muted-foreground",
102
+ children: t.meta
103
+ }) : null,
104
+ t.value === m ? /* @__PURE__ */ o("span", {
105
+ className: "ttw:pointer-events-none ttw:absolute ttw:right-2 ttw:flex ttw:size-4 ttw:items-center ttw:justify-center",
106
+ children: /* @__PURE__ */ o(c, { className: "ttw:size-4" })
107
+ }) : null
108
+ ]
109
+ }, t.value)), p.length ? null : /* @__PURE__ */ o("li", {
110
+ className: "ttw:py-2 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
111
+ children: C.emptyText
112
+ })]
113
+ })
114
+ }) : null]
115
+ });
116
+ }
117
+ export { d as ProductSelector, d as default };
@@ -14,21 +14,21 @@ import { Link as d } from "./lib/Link/Link.js";
14
14
  import { WidgetFrame as f } from "./lib/WidgetFrame/WidgetFrame.js";
15
15
  import { WidgetContainer as p } from "./lib/WidgetContainer/WidgetContainer.js";
16
16
  import "./lib/StatePanel/labels.js";
17
- import "./lib/StatePanel/StatePanel.js";
18
- import { EmptyState as m } from "./lib/EmptyState/EmptyState.js";
19
- import { ERROR_STATE_ID as h, ErrorState as g } from "./lib/ErrorState/ErrorState.js";
20
- import "./lib/StatePanel/NoAccessState.js";
21
- import { AmountInput as _ } from "./lib/AmountInput/AmountInput.js";
22
- import { LoadingRegion as v } from "./lib/LoadingRegion/LoadingRegion.js";
17
+ import { StatePanel as m } from "./lib/StatePanel/StatePanel.js";
18
+ import { EmptyState as h } from "./lib/EmptyState/EmptyState.js";
19
+ import { ERROR_STATE_ID as g, ErrorState as _ } from "./lib/ErrorState/ErrorState.js";
20
+ import { NoAccessState as v } from "./lib/StatePanel/NoAccessState.js";
21
+ import { AmountInput as y } from "./lib/AmountInput/AmountInput.js";
22
+ import { LoadingRegion as b } from "./lib/LoadingRegion/LoadingRegion.js";
23
23
  import "./lib/MaskedAccountNumber/labels.js";
24
- import { MaskedAccountNumber as y } from "./lib/MaskedAccountNumber/MaskedAccountNumber.js";
25
- import { InlineErrorAlert as b } from "./lib/InlineErrorAlert/InlineErrorAlert.js";
26
- import { PAGINATION_FOOTER_LABELS_EN as x } from "./lib/PaginationFooter/labels.js";
27
- import { PaginationFooter as S } from "./lib/PaginationFooter/PaginationFooter.js";
28
- import { WidgetTitleWithIconAndChildren as C } from "./lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js";
24
+ import { MaskedAccountNumber as x } from "./lib/MaskedAccountNumber/MaskedAccountNumber.js";
25
+ import { InlineErrorAlert as S } from "./lib/InlineErrorAlert/InlineErrorAlert.js";
26
+ import { PAGINATION_FOOTER_LABELS_EN as C } from "./lib/PaginationFooter/labels.js";
27
+ import { PaginationFooter as w } from "./lib/PaginationFooter/PaginationFooter.js";
28
+ import { WidgetTitleWithIconAndChildren as T } from "./lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js";
29
29
  import "./lib/OnboardingShell/labels.js";
30
30
  import "./lib/OnboardingShell/OnboardingShellStepper.js";
31
31
  import "./lib/OnboardingShell/OnboardingShellOverlayPortal.js";
32
- import { OnboardingShell as w } from "./lib/OnboardingShell/OnboardingShell.js";
33
- import { SectionHeading as T } from "./lib/SectionHeading/SectionHeading.js";
34
- export { _ as AmountInput, h as ERROR_STATE_ID, t as EmbeddedToaster, m as EmptyState, g as ErrorState, u as HostIsolationScope, b as InlineErrorAlert, d as Link, v as LoadingRegion, y as MaskedAccountNumber, w as OnboardingShell, x as PAGINATION_FOOTER_LABELS_EN, S as PaginationFooter, T as SectionHeading, n as ToastNameMessage, r as UIFramework, a as UIProvider, p as WidgetContainer, f as WidgetFrame, C as WidgetTitleWithIconAndChildren, e as avatarSwatchFor, o as registerDesignSystemEnsurer, s as registerUIRenderers, i as resolveUIFramework, c as useDesignSystemEnsurer, l as useFrameworkRenderer };
32
+ import { OnboardingShell as E } from "./lib/OnboardingShell/OnboardingShell.js";
33
+ import { SectionHeading as D } from "./lib/SectionHeading/SectionHeading.js";
34
+ export { y as AmountInput, g as ERROR_STATE_ID, t as EmbeddedToaster, h as EmptyState, _ as ErrorState, u as HostIsolationScope, S as InlineErrorAlert, d as Link, b as LoadingRegion, x as MaskedAccountNumber, v as NoAccessState, E as OnboardingShell, C as PAGINATION_FOOTER_LABELS_EN, w as PaginationFooter, D as SectionHeading, m as StatePanel, n as ToastNameMessage, r as UIFramework, a as UIProvider, p as WidgetContainer, f as WidgetFrame, T as WidgetTitleWithIconAndChildren, e as avatarSwatchFor, o as registerDesignSystemEnsurer, s as registerUIRenderers, i as resolveUIFramework, c as useDesignSystemEnsurer, l as useFrameworkRenderer };
@@ -1,2 +1,10 @@
1
- import "./StatePanel.js";
2
- import "react/jsx-runtime";
1
+ import { StatePanel as e } from "./StatePanel.js";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ // ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/StatePanel/NoAccessState.js
4
+ function n(n) {
5
+ return /* @__PURE__ */ t(e, {
6
+ kind: "noAccess",
7
+ ...n
8
+ });
9
+ }
10
+ export { n as NoAccessState, n as default };