@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.
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +55 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +24 -18
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +3 -3
|
@@ -1,82 +1,88 @@
|
|
|
1
|
-
import {
|
|
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
|
|
4
|
-
import { jsx as
|
|
5
|
-
import * as
|
|
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
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
+
function c({ ...e }) {
|
|
10
|
+
return /* @__PURE__ */ a(s.Root, {
|
|
9
11
|
"data-slot": "select",
|
|
10
12
|
...e
|
|
11
13
|
});
|
|
12
14
|
}
|
|
13
|
-
function
|
|
14
|
-
return /* @__PURE__ */
|
|
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
|
|
20
|
-
return /* @__PURE__ */
|
|
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":
|
|
23
|
-
className:
|
|
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: [
|
|
27
|
+
children: [i, /* @__PURE__ */ a(s.Icon, {
|
|
26
28
|
asChild: !0,
|
|
27
|
-
children: /* @__PURE__ */
|
|
29
|
+
children: /* @__PURE__ */ a(r, { className: "ttw:size-4 ttw:opacity-50" })
|
|
28
30
|
})]
|
|
29
31
|
});
|
|
30
32
|
}
|
|
31
|
-
function
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
|
48
|
-
return /* @__PURE__ */
|
|
53
|
+
function f({ className: e, children: r, ...i }) {
|
|
54
|
+
return /* @__PURE__ */ o(s.Item, {
|
|
49
55
|
"data-slot": "select-item",
|
|
50
|
-
className:
|
|
51
|
-
...
|
|
52
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
55
|
-
}), /* @__PURE__ */
|
|
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
|
|
59
|
-
return /* @__PURE__ */
|
|
64
|
+
function p({ className: e, ...n }) {
|
|
65
|
+
return /* @__PURE__ */ a(s.Separator, {
|
|
60
66
|
"data-slot": "select-separator",
|
|
61
|
-
className:
|
|
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
|
|
66
|
-
return /* @__PURE__ */
|
|
71
|
+
function m({ className: e, ...n }) {
|
|
72
|
+
return /* @__PURE__ */ a(s.ScrollUpButton, {
|
|
67
73
|
"data-slot": "select-scroll-up-button",
|
|
68
|
-
className:
|
|
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
|
|
76
|
+
children: /* @__PURE__ */ a(i, { className: "ttw:size-4" })
|
|
71
77
|
});
|
|
72
78
|
}
|
|
73
|
-
function
|
|
74
|
-
return /* @__PURE__ */
|
|
79
|
+
function h({ className: e, ...n }) {
|
|
80
|
+
return /* @__PURE__ */ a(s.ScrollDownButton, {
|
|
75
81
|
"data-slot": "select-scroll-down-button",
|
|
76
|
-
className:
|
|
77
|
-
...
|
|
78
|
-
children: /* @__PURE__ */
|
|
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 {
|
|
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 {
|
|
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
|
|
5
|
-
import * as
|
|
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
|
|
8
|
-
return /* @__PURE__ */
|
|
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
|
|
14
|
-
return /* @__PURE__ */
|
|
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
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
|
28
|
-
return /* @__PURE__ */
|
|
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:
|
|
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 {
|
|
43
|
+
export { i as DropdownMenu, o as DropdownMenuContent, s as DropdownMenuItem, a as DropdownMenuTrigger };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
257
|
+
"react-error-boundary": "^6.1.6",
|
|
258
258
|
"react-hook-form": "^7.88.0",
|
|
259
|
-
"react-hot-toast": "^2.6.
|
|
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",
|