@tesouro/embedded-components-react 0.7.50 → 0.7.51
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/lib/monite-sdk.d.ts +42 -42
- package/dist/lib/monite-sdk.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +56 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +1 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +150 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +55 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +7 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +51 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +38 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +72 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +36 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +6 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +57 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +172 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +6 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +2 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +76 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +0 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +78 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +1 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +35 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +56 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +44 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +0 -568
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +568 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +1 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +19 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +1 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +87 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +44 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +48 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +83 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +7 -305
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +307 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +0 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +1 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +34 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +33 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +3 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +88 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +171 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +114 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +209 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +11 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +14 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +0 -241
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +241 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +1 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +31 -137
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +142 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +0 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +166 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +26 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +17 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +12 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +21 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +11 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +20 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +8 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +23 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +25 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +14 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +81 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +14 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +98 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +43 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +30 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +102 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +32 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +171 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +4 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +62 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +24 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +207 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +90 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +17 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +144 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +100 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +46 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +4 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +20 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +74 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +19 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +11 -131
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +129 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +4 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +219 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +31 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +12 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +34 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +18 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +73 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +182 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +14 -204
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +192 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +97 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +63 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +46 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +91 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +39 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +63 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +85 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +4 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +0 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +46 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +33 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +29 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +2 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +97 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +17 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +1 -57
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -1,41 +1,74 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
1
|
+
import { filterOptions as e, getCurrenciesArray as t, getGroupTitleForOption as n, sortCurrencyOptionsByGroup as r } from "./index14.js";
|
|
2
|
+
import "./index18.js";
|
|
3
|
+
import { RHFAutocomplete as i } from "./index113.js";
|
|
4
|
+
import "./index117.js";
|
|
5
|
+
import { CurrencyInput as a } from "./index119.js";
|
|
6
|
+
import { CurrencyOption as o } from "./index120.js";
|
|
7
|
+
import { Fragment as s, useMemo as c } from "react";
|
|
8
|
+
import { jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
|
|
9
|
+
import { Divider as d, ListSubheader as f } from "@mui/material";
|
|
10
|
+
import { useLingui as p } from "@lingui/react";
|
|
6
11
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
12
|
+
var m = ({ required: m, actualCurrency: h, groups: g, fullWidth: _, showCodeOnly: v, hideLabel: y = !1, showCurrencyCode: b = !1, showCurrencySymbol: x = !0, showClearButton: S = !0, allowedCurrencies: C, ...w }) => {
|
|
13
|
+
let { i18n: T } = p(), E = T._("Currency"), D = c(() => {
|
|
14
|
+
let e = t(T);
|
|
15
|
+
return C ? e.filter((e) => C.includes(e.code)) : e;
|
|
16
|
+
}, [C, T]), O = r(D, g);
|
|
17
|
+
return /* @__PURE__ */ l(i, {
|
|
18
|
+
...w,
|
|
19
|
+
required: m,
|
|
20
|
+
disabled: D?.length === 1 || w.disabled,
|
|
21
|
+
className: `Monite-Currency ${y && "Monite-Label-Hidden"}`,
|
|
22
|
+
disableClearable: !S,
|
|
23
|
+
label: E,
|
|
24
|
+
options: O,
|
|
25
|
+
optionKey: "code",
|
|
26
|
+
labelKey: v ? "code" : "label",
|
|
27
|
+
fullWidth: _,
|
|
28
|
+
slotProps: { paper: { sx: { "& .MuiAutocomplete-listbox hr:last-of-type": { display: "none" } } } },
|
|
29
|
+
renderInput: (e, t) => /* @__PURE__ */ l(a, {
|
|
30
|
+
error: t?.error,
|
|
31
|
+
defaultValue: h,
|
|
32
|
+
required: t?.required ?? m,
|
|
33
|
+
label: t?.label ?? E,
|
|
34
|
+
showCodeOnly: v,
|
|
35
|
+
showCurrencySymbol: x,
|
|
36
|
+
showCurrencyCode: b,
|
|
37
|
+
...e
|
|
38
|
+
}),
|
|
39
|
+
renderOption: (e, t) => /* @__PURE__ */ l(o, {
|
|
40
|
+
props: e,
|
|
41
|
+
option: t,
|
|
42
|
+
showCodeOnly: v,
|
|
43
|
+
showCurrencyCode: b,
|
|
44
|
+
showCurrencySymbol: x
|
|
45
|
+
}, t.code),
|
|
46
|
+
filterOptions: e,
|
|
47
|
+
groupBy: g ? (e) => n(e, g)?.title : void 0,
|
|
48
|
+
renderGroup: (e) => e.group.trim() === "" ? e.children : /* @__PURE__ */ u(s, { children: [
|
|
49
|
+
/* @__PURE__ */ l(f, {
|
|
50
|
+
component: "div",
|
|
51
|
+
title: e.group,
|
|
52
|
+
sx: {
|
|
53
|
+
bgcolor: "background.paper",
|
|
54
|
+
typography: "body2",
|
|
55
|
+
fontWeight: (e) => e.typography.fontWeightBold,
|
|
56
|
+
textOverflow: "ellipsis",
|
|
57
|
+
overflow: "hidden",
|
|
58
|
+
whiteSpace: "nowrap",
|
|
59
|
+
py: 1.25,
|
|
60
|
+
px: 2,
|
|
61
|
+
top: -12
|
|
62
|
+
},
|
|
63
|
+
children: e.group
|
|
64
|
+
}),
|
|
65
|
+
e.children,
|
|
66
|
+
/* @__PURE__ */ l(d, { sx: {
|
|
67
|
+
mx: 1,
|
|
68
|
+
mt: 1
|
|
69
|
+
} })
|
|
70
|
+
] }, e.key)
|
|
71
|
+
});
|
|
72
|
+
};
|
|
40
73
|
//#endregion
|
|
41
|
-
export {
|
|
74
|
+
export { m as MoniteCurrency };
|
|
@@ -1,14 +1,41 @@
|
|
|
1
1
|
import { cn as e } from "./index64.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
|
+
import { Slot as n } from "@radix-ui/react-slot";
|
|
5
|
+
import { cva as r } from "class-variance-authority";
|
|
4
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
var i = r("ttw:inline-flex ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:gap-2 ttw:whitespace-nowrap ttw:rounded-md ttw:text-sm ttw:font-medium ttw:transition-all ttw:disabled:pointer-events-none ttw:disabled:opacity-50 ttw:[&_svg]:pointer-events-none ttw:[&_svg:not([class*=size-])]:size-4 ttw:shrink-0 ttw:[&_svg]:shrink-0 ttw:outline-none ttw:focus-visible:border-ring ttw:focus-visible:ring-ring/50 ttw:focus-visible:ring-[3px] ttw:aria-invalid:ring-destructive/20 ttw:dark:aria-invalid:ring-destructive/40 ttw:aria-invalid:border-destructive", {
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "ttw:bg-primary ttw:text-primary-foreground ttw:shadow-xs ttw:hover:brightness-110 ttw:active:brightness-95",
|
|
11
|
+
destructive: "ttw:bg-destructive ttw:text-white ttw:shadow-xs ttw:hover:brightness-110 ttw:active:brightness-95 ttw:focus-visible:ring-destructive/20 ttw:dark:focus-visible:ring-destructive/40 ttw:dark:bg-destructive/60",
|
|
12
|
+
outline: "ttw:border ttw:border-border ttw:bg-background ttw:shadow-xs ttw:hover:bg-accent ttw:hover:text-accent-foreground ttw:dark:bg-input/30 ttw:dark:border-input ttw:dark:hover:bg-input/50",
|
|
13
|
+
secondary: "ttw:bg-secondary ttw:text-neutral ttw:shadow-xs ttw:hover:brightness-105 ttw:active:brightness-95",
|
|
14
|
+
ghost: "ttw:hover:bg-accent ttw:hover:text-accent-foreground ttw:dark:hover:bg-accent/50",
|
|
15
|
+
link: "ttw:text-primary ttw:underline-offset-4 ttw:hover:underline"
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
default: "ttw:h-9 ttw:px-4 ttw:py-2 ttw:has-[>svg]:px-3",
|
|
19
|
+
sm: "ttw:h-8 ttw:rounded-md ttw:gap-1.5 ttw:px-3 ttw:has-[>svg]:px-2.5",
|
|
20
|
+
lg: "ttw:h-10 ttw:rounded-md ttw:px-6 ttw:has-[>svg]:px-4",
|
|
21
|
+
icon: "ttw:size-9"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
variant: "default",
|
|
26
|
+
size: "default"
|
|
27
|
+
}
|
|
28
|
+
}), a = ({ className: r, variant: a, size: o, asChild: s = !1, ref: c, ...l }) => /* @__PURE__ */ t(s ? n : "button", {
|
|
29
|
+
"data-slot": "button",
|
|
30
|
+
"data-variant": a || "default",
|
|
31
|
+
className: e(i({
|
|
32
|
+
variant: a,
|
|
33
|
+
size: o,
|
|
34
|
+
className: r
|
|
35
|
+
})),
|
|
36
|
+
ref: c,
|
|
37
|
+
...l
|
|
38
|
+
});
|
|
39
|
+
a.displayName = "Button";
|
|
13
40
|
//#endregion
|
|
14
|
-
export {
|
|
41
|
+
export { a as Button, i as buttonVariants };
|
|
@@ -2,12 +2,13 @@ import { cn as e } from "./index64.js";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
4
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js
|
|
5
|
-
function n({ className: n,
|
|
6
|
-
return /* @__PURE__ */ t("
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
function n({ className: n, type: r, ...i }) {
|
|
6
|
+
return /* @__PURE__ */ t("input", {
|
|
7
|
+
type: r,
|
|
8
|
+
"data-slot": "input",
|
|
9
|
+
className: e("ttw:file:text-foreground ttw:placeholder:text-muted-foreground ttw:selection:bg-primary ttw:selection:text-primary-foreground ttw:dark:bg-input/30 ttw:border-input ttw:flex ttw:h-9 ttw:w-full ttw:min-w-0 ttw:rounded-md ttw:border ttw:bg-transparent ttw:px-3 ttw:py-1 ttw:text-base ttw:shadow-xs ttw:transition-[color,box-shadow] ttw:outline-none ttw:file:inline-flex ttw:file:h-7 ttw:file:border-0 ttw:file:bg-transparent ttw:file:text-sm ttw:file:font-medium ttw:disabled:pointer-events-none ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50 ttw:md:text-sm", "ttw:focus-visible:border-ring ttw:focus-visible:ring-ring/50 ttw:focus-visible:ring-[3px]", "ttw:aria-invalid:ring-destructive/20 ttw:dark:aria-invalid:ring-destructive/40 ttw:aria-invalid:border-destructive", n),
|
|
10
|
+
...i
|
|
10
11
|
});
|
|
11
12
|
}
|
|
12
13
|
//#endregion
|
|
13
|
-
export { n as
|
|
14
|
+
export { n as Input };
|
|
@@ -1,71 +1,13 @@
|
|
|
1
1
|
import { cn as e } from "./index64.js";
|
|
2
|
-
import { Button as t } from "./index121.js";
|
|
3
|
-
import { Input as n } from "./index122.js";
|
|
4
|
-
import { Textarea as r } from "./index123.js";
|
|
5
2
|
import "react";
|
|
6
|
-
import { jsx as
|
|
7
|
-
import { cva as a } from "class-variance-authority";
|
|
3
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
8
4
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js
|
|
9
|
-
function
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
"data-slot": "
|
|
12
|
-
|
|
13
|
-
className: e("ttw:group/input-group ttw:relative ttw:flex ttw:w-full ttw:items-center ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:transition-[color,box-shadow] ttw:outline-none ttw:dark:bg-input/30", "ttw:h-9 ttw:min-w-0 ttw:has-[>textarea]:h-auto", "ttw:has-[>[data-align=inline-start]]:[&>input]:pl-2", "ttw:has-[>[data-align=inline-end]]:[&>input]:pr-2", "ttw:has-[>[data-align=block-start]]:h-auto ttw:has-[>[data-align=block-start]]:flex-col ttw:has-[>[data-align=block-start]]:[&>input]:pb-3", "ttw:has-[>[data-align=block-end]]:h-auto ttw:has-[>[data-align=block-end]]:flex-col ttw:has-[>[data-align=block-end]]:[&>input]:pt-3", "ttw:has-[[data-slot=input-group-control]:focus-visible]:border-ring ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50", "ttw:has-[[data-slot][aria-invalid=true]]:border-destructive ttw:has-[[data-slot][aria-invalid=true]]:ring-destructive/20 ttw:dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40", t),
|
|
14
|
-
...n
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
var s = a("ttw:flex ttw:h-auto ttw:cursor-text ttw:items-center ttw:justify-center ttw:gap-2 ttw:py-1.5 ttw:text-sm ttw:font-medium ttw:text-muted-foreground ttw:select-none ttw:group-data-[disabled=true]/input-group:opacity-50 ttw:[&>kbd]:rounded-[calc(var(--radius)-5px)] ttw:[&>svg:not([class*=size-])]:size-4", {
|
|
18
|
-
variants: { align: {
|
|
19
|
-
"inline-start": "ttw:order-first ttw:pl-3 ttw:has-[>button]:ml-[-0.45rem] ttw:has-[>kbd]:ml-[-0.35rem]",
|
|
20
|
-
"inline-end": "ttw:order-last ttw:pr-3 ttw:has-[>button]:mr-[-0.45rem] ttw:has-[>kbd]:mr-[-0.35rem]",
|
|
21
|
-
"block-start": "ttw:order-first ttw:w-full ttw:justify-start ttw:px-3 ttw:pt-3 ttw:group-has-[>input]/input-group:pt-2.5 ttw:[.border-b]:pb-3",
|
|
22
|
-
"block-end": "ttw:order-last ttw:w-full ttw:justify-start ttw:px-3 ttw:pb-3 ttw:group-has-[>input]/input-group:pb-2.5 ttw:[.border-t]:pt-3"
|
|
23
|
-
} },
|
|
24
|
-
defaultVariants: { align: "inline-start" }
|
|
25
|
-
});
|
|
26
|
-
function c({ className: t, align: n = "inline-start", ...r }) {
|
|
27
|
-
return /* @__PURE__ */ i("div", {
|
|
28
|
-
role: "group",
|
|
29
|
-
"data-slot": "input-group-addon",
|
|
30
|
-
"data-align": n,
|
|
31
|
-
className: e(s({ align: n }), t),
|
|
32
|
-
onClick: (e) => {
|
|
33
|
-
e.target.closest("button") || e.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
34
|
-
},
|
|
5
|
+
function n({ className: n, ...r }) {
|
|
6
|
+
return /* @__PURE__ */ t("textarea", {
|
|
7
|
+
"data-slot": "textarea",
|
|
8
|
+
className: e("ttw:border-input ttw:placeholder: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:flex ttw:field-sizing-content ttw:min-h-16 ttw:w-full ttw:rounded-md ttw:border ttw:bg-transparent ttw:px-3 ttw:py-2 ttw:text-base 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:md:text-sm", n),
|
|
35
9
|
...r
|
|
36
10
|
});
|
|
37
11
|
}
|
|
38
|
-
var l = a("ttw:flex ttw:items-center ttw:gap-2 ttw:text-sm ttw:shadow-none", {
|
|
39
|
-
variants: { size: {
|
|
40
|
-
xs: "ttw:h-6 ttw:gap-1 ttw:rounded-[calc(var(--radius)-5px)] ttw:px-2 ttw:has-[>svg]:px-2 ttw:[&>svg:not([class*=size-])]:size-3.5",
|
|
41
|
-
sm: "ttw:h-8 ttw:gap-1.5 ttw:rounded-md ttw:px-2.5 ttw:has-[>svg]:px-2.5",
|
|
42
|
-
"icon-xs": "ttw:size-6 ttw:rounded-[calc(var(--radius)-5px)] ttw:p-0 ttw:has-[>svg]:p-0",
|
|
43
|
-
"icon-sm": "ttw:size-8 ttw:p-0 ttw:has-[>svg]:p-0"
|
|
44
|
-
} },
|
|
45
|
-
defaultVariants: { size: "xs" }
|
|
46
|
-
});
|
|
47
|
-
function u({ className: n, type: r = "button", variant: a = "ghost", size: o = "xs", ...s }) {
|
|
48
|
-
return /* @__PURE__ */ i(t, {
|
|
49
|
-
type: r,
|
|
50
|
-
"data-size": o,
|
|
51
|
-
variant: a,
|
|
52
|
-
className: e(l({ size: o }), n),
|
|
53
|
-
...s
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
function d({ className: t, ...r }) {
|
|
57
|
-
return /* @__PURE__ */ i(n, {
|
|
58
|
-
"data-slot": "input-group-control",
|
|
59
|
-
className: e("ttw:flex-1 ttw:rounded-none ttw:border-0 ttw:bg-transparent ttw:shadow-none ttw:focus-visible:ring-0 ttw:dark:bg-transparent", t),
|
|
60
|
-
...r
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
function f({ className: t, ...n }) {
|
|
64
|
-
return /* @__PURE__ */ i(r, {
|
|
65
|
-
"data-slot": "input-group-control",
|
|
66
|
-
className: e("ttw:flex-1 ttw:resize-none ttw:rounded-none ttw:border-0 ttw:bg-transparent ttw:py-3 ttw:shadow-none ttw:focus-visible:ring-0 ttw:dark:bg-transparent", t),
|
|
67
|
-
...n
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
12
|
//#endregion
|
|
71
|
-
export {
|
|
13
|
+
export { n as Textarea };
|
|
@@ -1,172 +1,71 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { jsx as d, jsxs as f } from "@emotion/react/jsx-runtime";
|
|
9
|
-
import { Combobox as p } from "@base-ui/react";
|
|
1
|
+
import { cn as e } from "./index64.js";
|
|
2
|
+
import { Button as t } from "./index122.js";
|
|
3
|
+
import { Input as n } from "./index123.js";
|
|
4
|
+
import { Textarea as r } from "./index124.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
7
|
+
import { cva as a } from "class-variance-authority";
|
|
10
8
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
function g({ className: e, children: n, ...r }) {
|
|
19
|
-
return /* @__PURE__ */ f(p.Trigger, {
|
|
20
|
-
"data-slot": "combobox-trigger",
|
|
21
|
-
className: t("ttw:[&_svg:not([class*=size-])]:size-4", e),
|
|
22
|
-
...r,
|
|
23
|
-
children: [n, /* @__PURE__ */ d(l, {
|
|
24
|
-
"data-slot": "combobox-trigger-icon",
|
|
25
|
-
className: "ttw:pointer-events-none ttw:size-4 ttw:text-muted-foreground"
|
|
26
|
-
})]
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function _({ className: e, ...n }) {
|
|
30
|
-
return /* @__PURE__ */ d(p.Clear, {
|
|
31
|
-
"data-slot": "combobox-clear",
|
|
32
|
-
render: /* @__PURE__ */ d(a, {
|
|
33
|
-
variant: "ghost",
|
|
34
|
-
size: "icon-xs"
|
|
35
|
-
}),
|
|
36
|
-
className: t(e),
|
|
37
|
-
...n,
|
|
38
|
-
children: /* @__PURE__ */ d(u, { className: "ttw:pointer-events-none" })
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
function v({ className: e, children: n, disabled: s = !1, showTrigger: c = !0, showClear: l = !1, ...u }) {
|
|
42
|
-
return /* @__PURE__ */ f(r, {
|
|
43
|
-
className: t("ttw:w-auto", e),
|
|
44
|
-
children: [
|
|
45
|
-
/* @__PURE__ */ d(p.Input, {
|
|
46
|
-
render: /* @__PURE__ */ d(o, { disabled: s }),
|
|
47
|
-
...u
|
|
48
|
-
}),
|
|
49
|
-
/* @__PURE__ */ f(i, {
|
|
50
|
-
align: "inline-end",
|
|
51
|
-
children: [c && /* @__PURE__ */ d(a, {
|
|
52
|
-
size: "icon-xs",
|
|
53
|
-
variant: "ghost",
|
|
54
|
-
asChild: !0,
|
|
55
|
-
"data-slot": "input-group-button",
|
|
56
|
-
className: "ttw:group-has-data-[slot=combobox-clear]/input-group:hidden ttw:data-pressed:bg-transparent",
|
|
57
|
-
disabled: s,
|
|
58
|
-
children: /* @__PURE__ */ d(g, {})
|
|
59
|
-
}), l && /* @__PURE__ */ d(_, { disabled: s })]
|
|
60
|
-
}),
|
|
61
|
-
n
|
|
62
|
-
]
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function y({ className: n, side: r = "bottom", sideOffset: i = 6, align: a = "start", alignOffset: o = 0, anchor: s, container: c, ...l }) {
|
|
66
|
-
let { root: u } = e();
|
|
67
|
-
return /* @__PURE__ */ d(p.Portal, {
|
|
68
|
-
container: c ?? u,
|
|
69
|
-
children: /* @__PURE__ */ d(p.Positioner, {
|
|
70
|
-
side: r,
|
|
71
|
-
sideOffset: i,
|
|
72
|
-
align: a,
|
|
73
|
-
alignOffset: o,
|
|
74
|
-
anchor: s,
|
|
75
|
-
className: "ttw:isolate ttw:z-1300",
|
|
76
|
-
children: /* @__PURE__ */ d(p.Popup, {
|
|
77
|
-
"data-slot": "combobox-content",
|
|
78
|
-
"data-chips": !!s,
|
|
79
|
-
className: t("ttw:group/combobox-content ttw:relative ttw:max-h-96 ttw:w-(--anchor-width) ttw:max-w-(--available-width) ttw:min-w-[calc(var(--anchor-width)+--spacing(7))] ttw:origin-(--transform-origin) ttw:overflow-hidden ttw:rounded-md ttw:bg-popover ttw:text-popover-foreground ttw:shadow-md ttw:ring-1 ttw:ring-foreground/10 ttw:duration-100 ttw:data-[chips=true]:min-w-(--anchor-width) 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:*:data-[slot=input-group]:m-1 ttw:*:data-[slot=input-group]:mb-0 ttw:*:data-[slot=input-group]:h-8 ttw:*:data-[slot=input-group]:border-input/30 ttw:*:data-[slot=input-group]:bg-input/30 ttw:*:data-[slot=input-group]:shadow-none ttw:data-open:animate-in ttw:data-open:fade-in-0 ttw:data-open:zoom-in-95 ttw:data-closed:animate-out ttw:data-closed:fade-out-0 ttw:data-closed:zoom-out-95", n),
|
|
80
|
-
...l
|
|
81
|
-
})
|
|
82
|
-
})
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
function b({ className: e, ...n }) {
|
|
86
|
-
return /* @__PURE__ */ d(p.List, {
|
|
87
|
-
"data-slot": "combobox-list",
|
|
88
|
-
className: t("ttw:max-h-[min(calc(--spacing(96)---spacing(9)),calc(var(--available-height)---spacing(9)))] ttw:scroll-py-1 ttw:overflow-y-auto ttw:p-1 ttw:data-empty:p-0", e),
|
|
89
|
-
...n
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
function x({ className: e, children: n, ...r }) {
|
|
93
|
-
return /* @__PURE__ */ f(p.Item, {
|
|
94
|
-
"data-slot": "combobox-item",
|
|
95
|
-
className: t("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-highlighted:bg-accent ttw:data-highlighted:text-accent-foreground 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", e),
|
|
96
|
-
...r,
|
|
97
|
-
children: [n, /* @__PURE__ */ d(p.ItemIndicator, {
|
|
98
|
-
"data-slot": "combobox-item-indicator",
|
|
99
|
-
render: /* @__PURE__ */ d("span", { className: "ttw:pointer-events-none ttw:absolute ttw:right-2 ttw:flex ttw:size-4 ttw:items-center ttw:justify-center" }),
|
|
100
|
-
children: /* @__PURE__ */ d(c, { className: "ttw:pointer-events-none ttw:size-4 ttw:pointer-coarse:size-5" })
|
|
101
|
-
})]
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
function S({ className: e, ...n }) {
|
|
105
|
-
return /* @__PURE__ */ d(p.Group, {
|
|
106
|
-
"data-slot": "combobox-group",
|
|
107
|
-
className: t(e),
|
|
108
|
-
...n
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
function C({ className: e, ...n }) {
|
|
112
|
-
return /* @__PURE__ */ d(p.GroupLabel, {
|
|
113
|
-
"data-slot": "combobox-label",
|
|
114
|
-
className: t("ttw:px-2 ttw:py-1.5 ttw:text-xs ttw:text-muted-foreground ttw:pointer-coarse:px-3 ttw:pointer-coarse:py-2 ttw:pointer-coarse:text-sm", e),
|
|
9
|
+
function o({ className: t, ...n }) {
|
|
10
|
+
return /* @__PURE__ */ i("div", {
|
|
11
|
+
"data-slot": "input-group",
|
|
12
|
+
role: "group",
|
|
13
|
+
className: e("ttw:group/input-group ttw:relative ttw:flex ttw:w-full ttw:items-center ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:transition-[color,box-shadow] ttw:outline-none ttw:dark:bg-input/30", "ttw:h-9 ttw:min-w-0 ttw:has-[>textarea]:h-auto", "ttw:has-[>[data-align=inline-start]]:[&>input]:pl-2", "ttw:has-[>[data-align=inline-end]]:[&>input]:pr-2", "ttw:has-[>[data-align=block-start]]:h-auto ttw:has-[>[data-align=block-start]]:flex-col ttw:has-[>[data-align=block-start]]:[&>input]:pb-3", "ttw:has-[>[data-align=block-end]]:h-auto ttw:has-[>[data-align=block-end]]:flex-col ttw:has-[>[data-align=block-end]]:[&>input]:pt-3", "ttw:has-[[data-slot=input-group-control]:focus-visible]:border-ring ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50", "ttw:has-[[data-slot][aria-invalid=true]]:border-destructive ttw:has-[[data-slot][aria-invalid=true]]:ring-destructive/20 ttw:dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40", t),
|
|
115
14
|
...n
|
|
116
15
|
});
|
|
117
16
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"
|
|
121
|
-
|
|
17
|
+
var s = a("ttw:flex ttw:h-auto ttw:cursor-text ttw:items-center ttw:justify-center ttw:gap-2 ttw:py-1.5 ttw:text-sm ttw:font-medium ttw:text-muted-foreground ttw:select-none ttw:group-data-[disabled=true]/input-group:opacity-50 ttw:[&>kbd]:rounded-[calc(var(--radius)-5px)] ttw:[&>svg:not([class*=size-])]:size-4", {
|
|
18
|
+
variants: { align: {
|
|
19
|
+
"inline-start": "ttw:order-first ttw:pl-3 ttw:has-[>button]:ml-[-0.45rem] ttw:has-[>kbd]:ml-[-0.35rem]",
|
|
20
|
+
"inline-end": "ttw:order-last ttw:pr-3 ttw:has-[>button]:mr-[-0.45rem] ttw:has-[>kbd]:mr-[-0.35rem]",
|
|
21
|
+
"block-start": "ttw:order-first ttw:w-full ttw:justify-start ttw:px-3 ttw:pt-3 ttw:group-has-[>input]/input-group:pt-2.5 ttw:[.border-b]:pb-3",
|
|
22
|
+
"block-end": "ttw:order-last ttw:w-full ttw:justify-start ttw:px-3 ttw:pb-3 ttw:group-has-[>input]/input-group:pb-2.5 ttw:[.border-t]:pt-3"
|
|
23
|
+
} },
|
|
24
|
+
defaultVariants: { align: "inline-start" }
|
|
25
|
+
});
|
|
26
|
+
function c({ className: t, align: n = "inline-start", ...r }) {
|
|
27
|
+
return /* @__PURE__ */ i("div", {
|
|
28
|
+
role: "group",
|
|
29
|
+
"data-slot": "input-group-addon",
|
|
30
|
+
"data-align": n,
|
|
31
|
+
className: e(s({ align: n }), t),
|
|
32
|
+
onClick: (e) => {
|
|
33
|
+
e.target.closest("button") || e.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
34
|
+
},
|
|
35
|
+
...r
|
|
122
36
|
});
|
|
123
37
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
|
|
38
|
+
var l = a("ttw:flex ttw:items-center ttw:gap-2 ttw:text-sm ttw:shadow-none", {
|
|
39
|
+
variants: { size: {
|
|
40
|
+
xs: "ttw:h-6 ttw:gap-1 ttw:rounded-[calc(var(--radius)-5px)] ttw:px-2 ttw:has-[>svg]:px-2 ttw:[&>svg:not([class*=size-])]:size-3.5",
|
|
41
|
+
sm: "ttw:h-8 ttw:gap-1.5 ttw:rounded-md ttw:px-2.5 ttw:has-[>svg]:px-2.5",
|
|
42
|
+
"icon-xs": "ttw:size-6 ttw:rounded-[calc(var(--radius)-5px)] ttw:p-0 ttw:has-[>svg]:p-0",
|
|
43
|
+
"icon-sm": "ttw:size-8 ttw:p-0 ttw:has-[>svg]:p-0"
|
|
44
|
+
} },
|
|
45
|
+
defaultVariants: { size: "xs" }
|
|
46
|
+
});
|
|
47
|
+
function u({ className: n, type: r = "button", variant: a = "ghost", size: o = "xs", ...s }) {
|
|
48
|
+
return /* @__PURE__ */ i(t, {
|
|
49
|
+
type: r,
|
|
50
|
+
"data-size": o,
|
|
51
|
+
variant: a,
|
|
52
|
+
className: e(l({ size: o }), n),
|
|
53
|
+
...s
|
|
129
54
|
});
|
|
130
55
|
}
|
|
131
|
-
function
|
|
132
|
-
return /* @__PURE__ */
|
|
133
|
-
"data-slot": "
|
|
134
|
-
className:
|
|
135
|
-
...
|
|
56
|
+
function d({ className: t, ...r }) {
|
|
57
|
+
return /* @__PURE__ */ i(n, {
|
|
58
|
+
"data-slot": "input-group-control",
|
|
59
|
+
className: e("ttw:flex-1 ttw:rounded-none ttw:border-0 ttw:bg-transparent ttw:shadow-none ttw:focus-visible:ring-0 ttw:dark:bg-transparent", t),
|
|
60
|
+
...r
|
|
136
61
|
});
|
|
137
62
|
}
|
|
138
|
-
function
|
|
139
|
-
return /* @__PURE__ */
|
|
140
|
-
"data-slot": "
|
|
141
|
-
className:
|
|
63
|
+
function f({ className: t, ...n }) {
|
|
64
|
+
return /* @__PURE__ */ i(r, {
|
|
65
|
+
"data-slot": "input-group-control",
|
|
66
|
+
className: e("ttw:flex-1 ttw:resize-none ttw:rounded-none ttw:border-0 ttw:bg-transparent ttw:py-3 ttw:shadow-none ttw:focus-visible:ring-0 ttw:dark:bg-transparent", t),
|
|
142
67
|
...n
|
|
143
68
|
});
|
|
144
69
|
}
|
|
145
|
-
function O({ className: e, children: r, showRemove: i = !0, ...a }) {
|
|
146
|
-
return /* @__PURE__ */ f(p.Chip, {
|
|
147
|
-
"data-slot": "combobox-chip",
|
|
148
|
-
className: t("ttw:flex ttw:h-[calc(--spacing(5.5))] ttw:w-fit ttw:items-center ttw:justify-center ttw:gap-1 ttw:rounded-sm ttw:bg-muted ttw:px-1.5 ttw:text-xs ttw:font-medium ttw:whitespace-nowrap ttw:text-foreground ttw:has-disabled:pointer-events-none ttw:has-disabled:cursor-not-allowed ttw:has-disabled:opacity-50 ttw:has-data-[slot=combobox-chip-remove]:pr-0", e),
|
|
149
|
-
...a,
|
|
150
|
-
children: [r, i && /* @__PURE__ */ d(p.ChipRemove, {
|
|
151
|
-
render: /* @__PURE__ */ d(n, {
|
|
152
|
-
variant: "ghost",
|
|
153
|
-
className: "ttw:size-6"
|
|
154
|
-
}),
|
|
155
|
-
className: "ttw:-ml-1 ttw:opacity-50 ttw:hover:opacity-100",
|
|
156
|
-
"data-slot": "combobox-chip-remove",
|
|
157
|
-
children: /* @__PURE__ */ d(u, { className: "ttw:pointer-events-none" })
|
|
158
|
-
})]
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
function k({ className: e, children: n, ...r }) {
|
|
162
|
-
return /* @__PURE__ */ d(p.Input, {
|
|
163
|
-
"data-slot": "combobox-chip-input",
|
|
164
|
-
className: t("ttw:min-w-16 ttw:flex-1 ttw:outline-none", e),
|
|
165
|
-
...r
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
function A() {
|
|
169
|
-
return s.useRef(null);
|
|
170
|
-
}
|
|
171
70
|
//#endregion
|
|
172
|
-
export {
|
|
71
|
+
export { o as InputGroup, c as InputGroupAddon, u as InputGroupButton, d as InputGroupInput, f as InputGroupTextarea };
|