@tesouro/embedded-components-react 0.5.188 → 0.5.189

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.
@@ -1,82 +1,88 @@
1
- import { cn as e } from "./index50.js";
1
+ import { useRootElements as e } from "./index48.js";
2
+ import "./index49.js";
3
+ import { cn as t } from "./index50.js";
2
4
  import "react";
3
- import { CheckIcon as t, ChevronDownIcon as n, ChevronUpIcon as r } from "lucide-react";
4
- import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
5
- import * as o from "@radix-ui/react-select";
5
+ import { CheckIcon as n, ChevronDownIcon as r, ChevronUpIcon as i } from "lucide-react";
6
+ import { jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
7
+ import * as s from "@radix-ui/react-select";
6
8
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js
7
- function s({ ...e }) {
8
- return /* @__PURE__ */ i(o.Root, {
9
+ function c({ ...e }) {
10
+ return /* @__PURE__ */ a(s.Root, {
9
11
  "data-slot": "select",
10
12
  ...e
11
13
  });
12
14
  }
13
- function c({ ...e }) {
14
- return /* @__PURE__ */ i(o.Value, {
15
+ function l({ ...e }) {
16
+ return /* @__PURE__ */ a(s.Value, {
15
17
  "data-slot": "select-value",
16
18
  ...e
17
19
  });
18
20
  }
19
- function l({ className: t, size: r = "default", children: s, ...c }) {
20
- return /* @__PURE__ */ a(o.Trigger, {
21
+ function u({ className: e, size: n = "default", children: i, ...c }) {
22
+ return /* @__PURE__ */ o(s.Trigger, {
21
23
  "data-slot": "select-trigger",
22
- "data-size": r,
23
- className: e("ttw:border-input ttw:data-[placeholder]:text-muted-foreground ttw:[&_svg:not([class*=text-])]:text-muted-foreground ttw:focus-visible:border-ring ttw:focus-visible:ring-ring/50 ttw:aria-invalid:ring-destructive/20 ttw:dark:aria-invalid:ring-destructive/40 ttw:aria-invalid:border-destructive ttw:dark:bg-input/30 ttw:dark:hover:bg-input/50 ttw:flex ttw:w-fit ttw:items-center ttw:justify-between ttw:gap-2 ttw:rounded-md ttw:border ttw:bg-transparent ttw:px-3 ttw:py-2 ttw:text-sm ttw:whitespace-nowrap ttw:shadow-xs ttw:transition-[color,box-shadow] ttw:outline-none ttw:focus-visible:ring-[3px] ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50 ttw:data-[size=default]:h-9 ttw:data-[size=sm]:h-8 ttw:*:data-[slot=select-value]:line-clamp-1 ttw:*:data-[slot=select-value]:flex ttw:*:data-[slot=select-value]:min-w-0 ttw:*:data-[slot=select-value]:flex-1 ttw:*:data-[slot=select-value]:items-center ttw:*:data-[slot=select-value]:gap-2 ttw:[&_svg]:pointer-events-none ttw:[&_svg]:shrink-0 ttw:[&_svg:not([class*=size-])]:size-4", t),
24
+ "data-size": n,
25
+ className: t("ttw:border-input ttw:data-[placeholder]:text-muted-foreground ttw:[&_svg:not([class*=text-])]:text-muted-foreground ttw:focus-visible:border-ring ttw:focus-visible:ring-ring/50 ttw:aria-invalid:ring-destructive/20 ttw:dark:aria-invalid:ring-destructive/40 ttw:aria-invalid:border-destructive ttw:dark:bg-input/30 ttw:dark:hover:bg-input/50 ttw:flex ttw:w-fit ttw:items-center ttw:justify-between ttw:gap-2 ttw:rounded-md ttw:border ttw:bg-transparent ttw:px-3 ttw:py-2 ttw:text-sm ttw:whitespace-nowrap ttw:shadow-xs ttw:transition-[color,box-shadow] ttw:outline-none ttw:focus-visible:ring-[3px] ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50 ttw:data-[size=default]:h-9 ttw:data-[size=sm]:h-8 ttw:*:data-[slot=select-value]:line-clamp-1 ttw:*:data-[slot=select-value]:flex ttw:*:data-[slot=select-value]:min-w-0 ttw:*:data-[slot=select-value]:flex-1 ttw:*:data-[slot=select-value]:items-center ttw:*:data-[slot=select-value]:gap-2 ttw:[&_svg]:pointer-events-none ttw:[&_svg]:shrink-0 ttw:[&_svg:not([class*=size-])]:size-4", e),
24
26
  ...c,
25
- children: [s, /* @__PURE__ */ i(o.Icon, {
27
+ children: [i, /* @__PURE__ */ a(s.Icon, {
26
28
  asChild: !0,
27
- children: /* @__PURE__ */ i(n, { className: "ttw:size-4 ttw:opacity-50" })
29
+ children: /* @__PURE__ */ a(r, { className: "ttw:size-4 ttw:opacity-50" })
28
30
  })]
29
31
  });
30
32
  }
31
- function u({ className: t, children: n, position: r = "popper", ...s }) {
32
- return /* @__PURE__ */ i(o.Portal, { children: /* @__PURE__ */ a(o.Content, {
33
- "data-slot": "select-content",
34
- className: e("ttw:bg-popover ttw:text-popover-foreground ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-95 ttw:data-[side=bottom]:slide-in-from-top-2 ttw:data-[side=left]:slide-in-from-right-2 ttw:data-[side=right]:slide-in-from-left-2 ttw:data-[side=top]:slide-in-from-bottom-2 ttw:relative ttw:z-1300 ttw:max-h-(--radix-select-content-available-height) ttw:min-w-[8rem] ttw:origin-(--radix-select-content-transform-origin) ttw:overflow-x-hidden ttw:overflow-y-auto ttw:rounded-md ttw:border-none ttw:shadow-md", r === "popper" && "ttw:data-[side=bottom]:translate-y-1 ttw:data-[side=left]:-translate-x-1 ttw:data-[side=right]:translate-x-1 ttw:data-[side=top]:-translate-y-1", t),
35
- position: r,
36
- ...s,
37
- children: [
38
- /* @__PURE__ */ i(p, {}),
39
- /* @__PURE__ */ i(o.Viewport, {
40
- className: e("ttw:p-1", r === "popper" && "ttw:h-[var(--radix-select-trigger-height)] ttw:w-full ttw:min-w-[var(--radix-select-trigger-width)] ttw:scroll-my-1"),
41
- children: n
42
- }),
43
- /* @__PURE__ */ i(m, {})
44
- ]
45
- }) });
33
+ function d({ className: n, children: r, position: i = "popper", ...c }) {
34
+ let { root: l } = e();
35
+ return /* @__PURE__ */ a(s.Portal, {
36
+ container: l,
37
+ children: /* @__PURE__ */ o(s.Content, {
38
+ "data-slot": "select-content",
39
+ className: t("ttw:bg-popover ttw:text-popover-foreground ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-95 ttw:data-[side=bottom]:slide-in-from-top-2 ttw:data-[side=left]:slide-in-from-right-2 ttw:data-[side=right]:slide-in-from-left-2 ttw:data-[side=top]:slide-in-from-bottom-2 ttw:relative ttw:z-1300 ttw:max-h-(--radix-select-content-available-height) ttw:min-w-[8rem] ttw:origin-(--radix-select-content-transform-origin) ttw:overflow-x-hidden ttw:overflow-y-auto ttw:rounded-md ttw:border-none ttw:shadow-md", i === "popper" && "ttw:data-[side=bottom]:translate-y-1 ttw:data-[side=left]:-translate-x-1 ttw:data-[side=right]:translate-x-1 ttw:data-[side=top]:-translate-y-1", n),
40
+ position: i,
41
+ ...c,
42
+ children: [
43
+ /* @__PURE__ */ a(m, {}),
44
+ /* @__PURE__ */ a(s.Viewport, {
45
+ className: t("ttw:p-1", i === "popper" && "ttw:h-[var(--radix-select-trigger-height)] ttw:w-full ttw:min-w-[var(--radix-select-trigger-width)] ttw:scroll-my-1"),
46
+ children: r
47
+ }),
48
+ /* @__PURE__ */ a(h, {})
49
+ ]
50
+ })
51
+ });
46
52
  }
47
- function d({ className: n, children: r, ...s }) {
48
- return /* @__PURE__ */ a(o.Item, {
53
+ function f({ className: e, children: r, ...i }) {
54
+ return /* @__PURE__ */ o(s.Item, {
49
55
  "data-slot": "select-item",
50
- className: e("ttw:focus:bg-accent ttw:focus:text-accent-foreground ttw:[&_svg:not([class*=text-])]:text-muted-foreground 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:outline-hidden ttw:select-none ttw:data-[disabled]:pointer-events-none ttw:data-[disabled]:opacity-50 ttw:[&_svg]:pointer-events-none ttw:[&_svg]:shrink-0 ttw:[&_svg:not([class*=size-])]:size-4 ttw:*:[span]:last:flex ttw:*:[span]:last:min-w-0 ttw:*:[span]:last:flex-1 ttw:*:[span]:last:items-center ttw:*:[span]:last:gap-2", n),
51
- ...s,
52
- children: [/* @__PURE__ */ i("span", {
56
+ className: t("ttw:focus:bg-accent ttw:focus:text-accent-foreground ttw:[&_svg:not([class*=text-])]:text-muted-foreground 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:outline-hidden ttw:select-none ttw:data-[disabled]:pointer-events-none ttw:data-[disabled]:opacity-50 ttw:[&_svg]:pointer-events-none ttw:[&_svg]:shrink-0 ttw:[&_svg:not([class*=size-])]:size-4 ttw:*:[span]:last:flex ttw:*:[span]:last:min-w-0 ttw:*:[span]:last:flex-1 ttw:*:[span]:last:items-center ttw:*:[span]:last:gap-2", e),
57
+ ...i,
58
+ children: [/* @__PURE__ */ a("span", {
53
59
  className: "ttw:absolute ttw:right-2 ttw:flex ttw:size-3.5 ttw:items-center ttw:justify-center",
54
- children: /* @__PURE__ */ i(o.ItemIndicator, { children: /* @__PURE__ */ i(t, { className: "ttw:size-4" }) })
55
- }), /* @__PURE__ */ i(o.ItemText, { children: r })]
60
+ children: /* @__PURE__ */ a(s.ItemIndicator, { children: /* @__PURE__ */ a(n, { className: "ttw:size-4" }) })
61
+ }), /* @__PURE__ */ a(s.ItemText, { children: r })]
56
62
  });
57
63
  }
58
- function f({ className: t, ...n }) {
59
- return /* @__PURE__ */ i(o.Separator, {
64
+ function p({ className: e, ...n }) {
65
+ return /* @__PURE__ */ a(s.Separator, {
60
66
  "data-slot": "select-separator",
61
- className: e("ttw:bg-border ttw:pointer-events-none ttw:-mx-1 ttw:my-1 ttw:h-px", t),
67
+ className: t("ttw:bg-border ttw:pointer-events-none ttw:-mx-1 ttw:my-1 ttw:h-px", e),
62
68
  ...n
63
69
  });
64
70
  }
65
- function p({ className: t, ...n }) {
66
- return /* @__PURE__ */ i(o.ScrollUpButton, {
71
+ function m({ className: e, ...n }) {
72
+ return /* @__PURE__ */ a(s.ScrollUpButton, {
67
73
  "data-slot": "select-scroll-up-button",
68
- className: e("ttw:flex ttw:cursor-default ttw:items-center ttw:justify-center ttw:py-1", t),
74
+ className: t("ttw:flex ttw:cursor-default ttw:items-center ttw:justify-center ttw:py-1", e),
69
75
  ...n,
70
- children: /* @__PURE__ */ i(r, { className: "ttw:size-4" })
76
+ children: /* @__PURE__ */ a(i, { className: "ttw:size-4" })
71
77
  });
72
78
  }
73
- function m({ className: t, ...r }) {
74
- return /* @__PURE__ */ i(o.ScrollDownButton, {
79
+ function h({ className: e, ...n }) {
80
+ return /* @__PURE__ */ a(s.ScrollDownButton, {
75
81
  "data-slot": "select-scroll-down-button",
76
- className: e("ttw:flex ttw:cursor-default ttw:items-center ttw:justify-center ttw:py-1", t),
77
- ...r,
78
- children: /* @__PURE__ */ i(n, { className: "ttw:size-4" })
82
+ className: t("ttw:flex ttw:cursor-default ttw:items-center ttw:justify-center ttw:py-1", e),
83
+ ...n,
84
+ children: /* @__PURE__ */ a(r, { className: "ttw:size-4" })
79
85
  });
80
86
  }
81
87
  //#endregion
82
- export { s as Select, u as SelectContent, d as SelectItem, m as SelectScrollDownButton, p as SelectScrollUpButton, f as SelectSeparator, l as SelectTrigger, c as SelectValue };
88
+ export { c as Select, d as SelectContent, f as SelectItem, h as SelectScrollDownButton, m as SelectScrollUpButton, p as SelectSeparator, u as SelectTrigger, l as SelectValue };
@@ -1,37 +1,43 @@
1
- import { cn as e } from "./index50.js";
1
+ import { useRootElements as e } from "./index48.js";
2
+ import "./index49.js";
3
+ import { cn as t } from "./index50.js";
2
4
  import "react";
3
5
  import "lucide-react";
4
- import { jsx as t } from "@emotion/react/jsx-runtime";
5
- import * as n from "@radix-ui/react-dropdown-menu";
6
+ import { jsx as n } from "@emotion/react/jsx-runtime";
7
+ import * as r from "@radix-ui/react-dropdown-menu";
6
8
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js
7
- function r({ ...e }) {
8
- return /* @__PURE__ */ t(n.Root, {
9
+ function i({ ...e }) {
10
+ return /* @__PURE__ */ n(r.Root, {
9
11
  "data-slot": "dropdown-menu",
10
12
  ...e
11
13
  });
12
14
  }
13
- function i({ ...e }) {
14
- return /* @__PURE__ */ t(n.Trigger, {
15
+ function a({ ...e }) {
16
+ return /* @__PURE__ */ n(r.Trigger, {
15
17
  "data-slot": "dropdown-menu-trigger",
16
18
  ...e
17
19
  });
18
20
  }
19
- function a({ className: r, sideOffset: i = 4, ...a }) {
20
- return /* @__PURE__ */ t(n.Portal, { children: /* @__PURE__ */ t(n.Content, {
21
- "data-slot": "dropdown-menu-content",
22
- sideOffset: i,
23
- className: e("ttw:bg-popover ttw:text-popover-foreground ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-95 ttw:data-[side=bottom]:slide-in-from-top-2 ttw:data-[side=left]:slide-in-from-right-2 ttw:data-[side=right]:slide-in-from-left-2 ttw:data-[side=top]:slide-in-from-bottom-2 ttw:z-1300 ttw:max-h-(--radix-dropdown-menu-content-available-height) ttw:min-w-[8rem] ttw:origin-(--radix-dropdown-menu-content-transform-origin) ttw:overflow-x-hidden ttw:overflow-y-auto ttw:rounded-md ttw:border-none ttw:p-1 ttw:shadow-md", r),
24
- ...a
25
- }) });
21
+ function o({ className: i, sideOffset: a = 4, ...o }) {
22
+ let { root: s } = e();
23
+ return /* @__PURE__ */ n(r.Portal, {
24
+ container: s,
25
+ children: /* @__PURE__ */ n(r.Content, {
26
+ "data-slot": "dropdown-menu-content",
27
+ sideOffset: a,
28
+ className: t("ttw:bg-popover ttw:text-popover-foreground ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-95 ttw:data-[side=bottom]:slide-in-from-top-2 ttw:data-[side=left]:slide-in-from-right-2 ttw:data-[side=right]:slide-in-from-left-2 ttw:data-[side=top]:slide-in-from-bottom-2 ttw:z-1300 ttw:max-h-(--radix-dropdown-menu-content-available-height) ttw:min-w-[8rem] ttw:origin-(--radix-dropdown-menu-content-transform-origin) ttw:overflow-x-hidden ttw:overflow-y-auto ttw:rounded-md ttw:border-none ttw:p-1 ttw:shadow-md", i),
29
+ ...o
30
+ })
31
+ });
26
32
  }
27
- function o({ className: r, inset: i, variant: a = "default", ...o }) {
28
- return /* @__PURE__ */ t(n.Item, {
33
+ function s({ className: e, inset: i, variant: a = "default", ...o }) {
34
+ return /* @__PURE__ */ n(r.Item, {
29
35
  "data-slot": "dropdown-menu-item",
30
36
  "data-inset": i,
31
37
  "data-variant": a,
32
- className: e("ttw:focus:bg-accent ttw:focus:text-accent-foreground ttw:data-[variant=destructive]:text-destructive ttw:data-[variant=destructive]:focus:bg-destructive/10 ttw:dark:data-[variant=destructive]:focus:bg-destructive/20 ttw:data-[variant=destructive]:focus:text-destructive ttw:data-[variant=destructive]:*:[svg]:!text-destructive ttw:[&_svg:not([class*=text-])]:text-muted-foreground ttw:relative ttw:flex ttw:cursor-pointer ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:px-2 ttw:py-1.5 ttw:text-sm ttw:outline-hidden ttw:select-none ttw:data-[disabled]:pointer-events-none ttw:data-[disabled]:opacity-50 ttw:data-[inset]:pl-8 ttw:[&_svg]:pointer-events-none ttw:[&_svg]:shrink-0 ttw:[&_svg:not([class*=size-])]:size-4", r),
38
+ className: t("ttw:focus:bg-accent ttw:focus:text-accent-foreground ttw:data-[variant=destructive]:text-destructive ttw:data-[variant=destructive]:focus:bg-destructive/10 ttw:dark:data-[variant=destructive]:focus:bg-destructive/20 ttw:data-[variant=destructive]:focus:text-destructive ttw:data-[variant=destructive]:*:[svg]:!text-destructive ttw:[&_svg:not([class*=text-])]:text-muted-foreground ttw:relative ttw:flex ttw:cursor-pointer ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:px-2 ttw:py-1.5 ttw:text-sm ttw:outline-hidden ttw:select-none ttw:data-[disabled]:pointer-events-none ttw:data-[disabled]:opacity-50 ttw:data-[inset]:pl-8 ttw:[&_svg]:pointer-events-none ttw:[&_svg]:shrink-0 ttw:[&_svg:not([class*=size-])]:size-4", e),
33
39
  ...o
34
40
  });
35
41
  }
36
42
  //#endregion
37
- export { r as DropdownMenu, a as DropdownMenuContent, o as DropdownMenuItem, i as DropdownMenuTrigger };
43
+ export { i as DropdownMenu, o as DropdownMenuContent, s as DropdownMenuItem, a as DropdownMenuTrigger };
@@ -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.5.188", n = "f5c657cde8ec35168fef21190f2bb74ab1ac01dd", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.5.189", n = "519ae4eaf1b71fb52e9184a856296933e5569b8c", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.5.188",
3
+ "version": "0.5.189",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {
@@ -254,9 +254,9 @@
254
254
  "radix-ui": "^1.6.7",
255
255
  "react-confetti": "^6.4.0",
256
256
  "react-day-picker": "^9.14.0",
257
- "react-error-boundary": "^6.1.5",
257
+ "react-error-boundary": "^6.1.6",
258
258
  "react-hook-form": "^7.88.0",
259
- "react-hot-toast": "^2.6.0",
259
+ "react-hot-toast": "^2.6.1",
260
260
  "react-pdf": "^10.5.0",
261
261
  "react-script-hook": "^1.7.2",
262
262
  "react-use": "^17.6.1",