@ledgerhq/lumen-ui-react 0.0.62 → 0.0.64
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/ai-rules/README.md +1 -1
- package/ai-rules/RULES.md +3 -3
- package/dist/i18n/locales/de.json.d.ts +23 -2
- package/dist/i18n/locales/de.json.js +4 -4
- package/dist/i18n/locales/en.json.d.ts +5 -1
- package/dist/i18n/locales/en.json.js +1 -1
- package/dist/i18n/locales/es.json.d.ts +23 -2
- package/dist/i18n/locales/es.json.js +4 -4
- package/dist/i18n/locales/fr.json.d.ts +6 -2
- package/dist/i18n/locales/fr.json.js +1 -1
- package/dist/i18n/locales/ja.json.d.ts +23 -2
- package/dist/i18n/locales/ja.json.js +4 -4
- package/dist/i18n/locales/ko.json.d.ts +23 -2
- package/dist/i18n/locales/ko.json.js +4 -4
- package/dist/i18n/locales/pt.json.d.ts +23 -2
- package/dist/i18n/locales/pt.json.js +4 -4
- package/dist/i18n/locales/ru.json.d.ts +23 -2
- package/dist/i18n/locales/ru.json.js +4 -4
- package/dist/i18n/locales/th.json.d.ts +23 -2
- package/dist/i18n/locales/th.json.js +4 -4
- package/dist/i18n/locales/tr.json.d.ts +23 -2
- package/dist/i18n/locales/tr.json.js +4 -4
- package/dist/i18n/locales/zh.json.d.ts +23 -2
- package/dist/i18n/locales/zh.json.js +4 -4
- package/dist/lib/Components/AddressInput/AddressInput.js +2 -2
- package/dist/lib/Components/AmountInput/AmountInput.js +2 -2
- package/dist/lib/Components/BaseInput/BaseInput.js +31 -31
- package/dist/lib/Components/Button/BaseButton.d.ts.map +1 -1
- package/dist/lib/Components/Button/BaseButton.js +1 -1
- package/dist/lib/Components/CardButton/CardButton.js +1 -1
- package/dist/lib/Components/Checkbox/Checkbox.js +7 -7
- package/dist/lib/Components/Dialog/Dialog.d.ts +1 -1
- package/dist/lib/Components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/lib/Components/Dialog/Dialog.js +56 -48
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +4 -4
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +7 -7
- package/dist/lib/Components/ListItem/ListItem.js +1 -1
- package/dist/lib/Components/Menu/Menu.js +5 -5
- package/dist/lib/Components/SearchInput/SearchInput.js +1 -1
- package/dist/lib/Components/Select/Select.js +64 -64
- package/dist/lib/Components/Spot/Spot.js +5 -5
- package/dist/lib/Components/Subheader/Subheader.js +1 -1
- package/dist/lib/Components/Switch/Switch.js +3 -3
- package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
- package/dist/lib/Components/Tile/Tile.js +35 -38
- package/dist/lib/Components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/lib/Components/Tooltip/Tooltip.js +2 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Button/BaseButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAqDzC,eAAO,MAAM,UAAU;;;;;;;;;YAxCf,
|
|
1
|
+
{"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Button/BaseButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAqDzC,eAAO,MAAM,UAAU;;;;;;;;;YAxCf,CAAF;iBACI,CAAH;;;2FAkHN,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { cva as l } from "class-variance-authority";
|
|
|
5
5
|
import y, { useCallback as B } from "react";
|
|
6
6
|
import { Spinner as N } from "../Spinner/Spinner.js";
|
|
7
7
|
const j = l(
|
|
8
|
-
'inline-flex size-fit cursor-pointer items-center justify-center rounded-full transition-colors duration-200
|
|
8
|
+
'inline-flex size-fit cursor-pointer items-center justify-center rounded-full body-1-semi-bold transition-colors duration-200 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus data-[disabled="true"]:bg-disabled data-[disabled="true"]:text-disabled',
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
appearance: {
|
|
@@ -9,7 +9,7 @@ const p = c(
|
|
|
9
9
|
variants: {
|
|
10
10
|
appearance: {
|
|
11
11
|
base: "bg-muted text-base hover:bg-muted-hover active:bg-muted-pressed disabled:bg-disabled",
|
|
12
|
-
outline: "bg-base-transparent text-base outline-dashed outline-1 outline-muted-subtle hover:bg-base-transparent-hover hover:outline-muted-subtle-hover focus-visible:outline-
|
|
12
|
+
outline: "bg-base-transparent text-base outline-dashed outline-1 outline-muted-subtle hover:bg-base-transparent-hover hover:outline-muted-subtle-hover focus-visible:outline-hidden focus-visible:outline-offset-0 active:bg-base-transparent-pressed active:outline-muted-subtle-pressed disabled:bg-base-transparent disabled:outline-disabled"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
defaultVariants: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { cn as
|
|
2
|
+
import { cn as a } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import * as t from "@radix-ui/react-checkbox";
|
|
4
4
|
import i from "react";
|
|
5
5
|
import { Check as o } from "../../Symbols/Icons/Check.js";
|
|
6
|
-
const r =
|
|
7
|
-
"
|
|
8
|
-
"focus-visible:
|
|
6
|
+
const r = a(
|
|
7
|
+
"size-20 shrink-0 cursor-pointer rounded-xs transition-colors",
|
|
8
|
+
"focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 focus-visible:outline-hidden",
|
|
9
9
|
"data-[state=unchecked]:border data-[state=unchecked]:border-muted data-[state=unchecked]:bg-base",
|
|
10
10
|
"data-[state=unchecked]:hover:bg-base-hover",
|
|
11
11
|
"data-[state=unchecked]:active:bg-base-pressed",
|
|
@@ -14,12 +14,12 @@ const r = [
|
|
|
14
14
|
"data-[state=checked]:hover:bg-active-hover",
|
|
15
15
|
"data-[state=checked]:active:bg-active-pressed",
|
|
16
16
|
"data-[state=checked]:disabled:bg-disabled data-[state=checked]:disabled:text-disabled"
|
|
17
|
-
|
|
17
|
+
), b = i.forwardRef(({ className: s, ...d }, c) => /* @__PURE__ */ e(
|
|
18
18
|
t.Root,
|
|
19
19
|
{
|
|
20
20
|
ref: c,
|
|
21
|
-
className:
|
|
22
|
-
...
|
|
21
|
+
className: a(r, s),
|
|
22
|
+
...d,
|
|
23
23
|
children: /* @__PURE__ */ e(t.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e(o, { size: 16 }) })
|
|
24
24
|
}
|
|
25
25
|
));
|
|
@@ -73,7 +73,7 @@ export declare function DialogTrigger({ ...props }: DialogTriggerProps): import(
|
|
|
73
73
|
* // With custom styling for layout
|
|
74
74
|
* <DialogContent className="max-w-md">
|
|
75
75
|
* <div className="space-y-4">
|
|
76
|
-
* <h4 className="heading-
|
|
76
|
+
* <h4 className="heading-5-semi-bold">Dialog Title</h4>
|
|
77
77
|
* <p>Detailed content here.</p>
|
|
78
78
|
* </div>
|
|
79
79
|
* </DialogContent>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAEL,kBAAkB,EAIlB,WAAW,EACX,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAwBjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAc,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAM/D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAE7D;AAuDD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAEL,kBAAkB,EAIlB,WAAW,EACX,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAwBjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAc,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAM/D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAE7D;AAuDD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAkBpB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,UAAU;;;;+EAsBtB,CAAC;AAGF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,YAAY;;;+EAaxB,CAAC;AAGF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { cn as
|
|
1
|
+
import { jsx as o, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { createSafeContext as u, cn as l } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import * as r from "@radix-ui/react-dialog";
|
|
4
|
-
import { cva as
|
|
5
|
-
import * as
|
|
6
|
-
const
|
|
7
|
-
height: "hug"
|
|
8
|
-
}), u = m(
|
|
4
|
+
import { cva as h } from "class-variance-authority";
|
|
5
|
+
import * as n from "react";
|
|
6
|
+
const [p, s] = u("Dialog"), x = h(
|
|
9
7
|
[
|
|
10
|
-
"w-400
|
|
11
|
-
"
|
|
8
|
+
"flex w-400 max-w-[calc(100%-2rem)] flex-col overflow-hidden rounded-2xl bg-canvas-sheet pb-24",
|
|
9
|
+
"fixed top-[50%] left-[50%] z-dialog-content translate-[-50%]",
|
|
12
10
|
"data-[state=closed]:animate-content-hide data-[state=open]:animate-content-show"
|
|
13
11
|
],
|
|
14
12
|
{
|
|
@@ -23,85 +21,95 @@ const d = i.createContext({
|
|
|
23
21
|
}
|
|
24
22
|
}
|
|
25
23
|
);
|
|
26
|
-
function
|
|
27
|
-
return /* @__PURE__ */ o(
|
|
24
|
+
function C({ height: a = "hug", ...t }) {
|
|
25
|
+
return /* @__PURE__ */ o(p, { value: { height: a }, children: /* @__PURE__ */ o(r.Root, { "data-slot": "dialog", ...t }) });
|
|
28
26
|
}
|
|
29
|
-
function
|
|
27
|
+
function R({ ...a }) {
|
|
30
28
|
return /* @__PURE__ */ o(r.Trigger, { "data-slot": "dialog-trigger", ...a });
|
|
31
29
|
}
|
|
32
|
-
function
|
|
30
|
+
function v({
|
|
33
31
|
...a
|
|
34
32
|
}) {
|
|
35
33
|
return /* @__PURE__ */ o(r.Portal, { "data-slot": "dialog-portal", ...a });
|
|
36
34
|
}
|
|
37
|
-
const
|
|
35
|
+
const d = n.forwardRef(
|
|
38
36
|
({ className: a, ...t }, e) => /* @__PURE__ */ o(
|
|
39
37
|
r.Overlay,
|
|
40
38
|
{
|
|
41
39
|
ref: e,
|
|
42
40
|
"data-slot": "dialog-overlay",
|
|
43
|
-
className:
|
|
41
|
+
className: l(
|
|
44
42
|
a,
|
|
45
|
-
"z-dialog-overlay bg-canvas-overlay data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in
|
|
43
|
+
"fixed inset-0 z-dialog-overlay bg-canvas-overlay backdrop-blur-sm data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in"
|
|
46
44
|
),
|
|
47
45
|
...t
|
|
48
46
|
}
|
|
49
47
|
)
|
|
50
48
|
);
|
|
51
|
-
|
|
52
|
-
function
|
|
49
|
+
d.displayName = "DialogOverlay";
|
|
50
|
+
function O({
|
|
53
51
|
className: a,
|
|
54
52
|
children: t,
|
|
55
53
|
...e
|
|
56
54
|
}) {
|
|
57
|
-
const { height:
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
const { height: i } = s({
|
|
56
|
+
consumerName: "DialogContent",
|
|
57
|
+
contextRequired: !0
|
|
58
|
+
});
|
|
59
|
+
return /* @__PURE__ */ m(v, { "data-slot": "dialog-portal", children: [
|
|
60
|
+
/* @__PURE__ */ o(d, {}),
|
|
60
61
|
/* @__PURE__ */ o(
|
|
61
62
|
r.Content,
|
|
62
63
|
{
|
|
63
64
|
"data-slot": "dialog-content",
|
|
64
|
-
className:
|
|
65
|
+
className: l(x({ height: i }), a),
|
|
65
66
|
...e,
|
|
66
67
|
children: t
|
|
67
68
|
}
|
|
68
69
|
)
|
|
69
70
|
] });
|
|
70
71
|
}
|
|
71
|
-
const
|
|
72
|
-
({ className: a, children: t, scrollbarWidth: e = "none", style:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
72
|
+
const y = n.forwardRef(
|
|
73
|
+
({ className: a, children: t, scrollbarWidth: e = "none", style: i, ...g }, c) => {
|
|
74
|
+
const { height: f } = s({
|
|
75
|
+
consumerName: "DialogBody",
|
|
76
|
+
contextRequired: !0
|
|
77
|
+
});
|
|
78
|
+
return /* @__PURE__ */ o(
|
|
79
|
+
"div",
|
|
80
|
+
{
|
|
81
|
+
ref: c,
|
|
82
|
+
"data-slot": "dialog-body",
|
|
83
|
+
style: { scrollbarWidth: e, ...i },
|
|
84
|
+
className: l(
|
|
85
|
+
"-mb-24 flex min-h-0 grow flex-col overflow-y-auto px-24 pb-24",
|
|
86
|
+
f === "hug" ? "basis-auto" : "basis-0",
|
|
87
|
+
a
|
|
88
|
+
),
|
|
89
|
+
...g,
|
|
90
|
+
children: t
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
}
|
|
86
94
|
);
|
|
87
|
-
|
|
88
|
-
const
|
|
89
|
-
({ className: a, children: t, ...e },
|
|
95
|
+
y.displayName = "DialogBody";
|
|
96
|
+
const D = n.forwardRef(
|
|
97
|
+
({ className: a, children: t, ...e }, i) => /* @__PURE__ */ o(
|
|
90
98
|
"div",
|
|
91
99
|
{
|
|
92
|
-
ref:
|
|
100
|
+
ref: i,
|
|
93
101
|
"data-slot": "dialog-footer",
|
|
94
|
-
className:
|
|
102
|
+
className: l("flex shrink-0 justify-end gap-8 px-24 pt-24", a),
|
|
95
103
|
...e,
|
|
96
104
|
children: t
|
|
97
105
|
}
|
|
98
106
|
)
|
|
99
107
|
);
|
|
100
|
-
|
|
108
|
+
D.displayName = "DialogFooter";
|
|
101
109
|
export {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
110
|
+
C as Dialog,
|
|
111
|
+
y as DialogBody,
|
|
112
|
+
O as DialogContent,
|
|
113
|
+
D as DialogFooter,
|
|
114
|
+
R as DialogTrigger
|
|
107
115
|
};
|
|
@@ -79,8 +79,8 @@ const y = b("flex px-24 text-base", {
|
|
|
79
79
|
"pl-40": !i
|
|
80
80
|
}),
|
|
81
81
|
children: [
|
|
82
|
-
o && /* @__PURE__ */ e("div", { className: "truncate text-center heading-
|
|
83
|
-
l && /* @__PURE__ */ e("div", { className: "truncate text-center text-muted
|
|
82
|
+
o && /* @__PURE__ */ e("div", { className: "truncate text-center heading-5-semi-bold", children: o }),
|
|
83
|
+
l && /* @__PURE__ */ e("div", { className: "truncate text-center body-2 text-muted", children: l })
|
|
84
84
|
]
|
|
85
85
|
}
|
|
86
86
|
),
|
|
@@ -92,8 +92,8 @@ const y = b("flex px-24 text-base", {
|
|
|
92
92
|
/* @__PURE__ */ e("div", { className: "ml-auto", children: /* @__PURE__ */ e(d, { onClose: n }) })
|
|
93
93
|
] }),
|
|
94
94
|
(o || l) && /* @__PURE__ */ t("div", { className: "flex flex-col gap-4", children: [
|
|
95
|
-
o && /* @__PURE__ */ e("div", { className: "heading-
|
|
96
|
-
l && /* @__PURE__ */ e("div", { className: "text-muted
|
|
95
|
+
o && /* @__PURE__ */ e("div", { className: "heading-3-semi-bold", children: o }),
|
|
96
|
+
l && /* @__PURE__ */ e("div", { className: "body-2 text-muted", children: l })
|
|
97
97
|
] })
|
|
98
98
|
] })
|
|
99
99
|
]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { cn as i } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as a } from "class-variance-authority";
|
|
4
4
|
import n from "react";
|
|
5
5
|
const c = a(
|
|
6
|
-
"inline-flex size-fit items-center justify-center rounded-full text-muted transition-colors hover:text-muted-hover focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus active:text-muted-pressed disabled:text-disabled",
|
|
6
|
+
"inline-flex size-fit cursor-pointer items-center justify-center rounded-full text-muted transition-colors hover:text-muted-hover focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus active:text-muted-pressed disabled:text-disabled",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
iconType: {
|
|
@@ -12,12 +12,12 @@ const c = a(
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
), d = n.forwardRef(({ className: e, iconType: t, ...
|
|
15
|
+
), d = n.forwardRef(({ className: e, iconType: t, ...r }, s) => /* @__PURE__ */ o(
|
|
16
16
|
"button",
|
|
17
17
|
{
|
|
18
|
-
ref:
|
|
19
|
-
className:
|
|
20
|
-
...
|
|
18
|
+
ref: s,
|
|
19
|
+
className: i(e, c({ iconType: t })),
|
|
20
|
+
...r
|
|
21
21
|
}
|
|
22
22
|
));
|
|
23
23
|
d.displayName = "InteractiveIcon";
|
|
@@ -76,7 +76,7 @@ const N = n.forwardRef(({ children: e, className: t }, s) => {
|
|
|
76
76
|
{
|
|
77
77
|
ref: s,
|
|
78
78
|
className: a(
|
|
79
|
-
"w-full items-center truncate text-muted
|
|
79
|
+
"w-full items-center truncate body-3 text-muted",
|
|
80
80
|
o ? "justify-end text-end" : "justify-start text-start",
|
|
81
81
|
r && "text-disabled",
|
|
82
82
|
t
|
|
@@ -11,14 +11,14 @@ const c = o(
|
|
|
11
11
|
"data-[state=open]:animate-fade-in",
|
|
12
12
|
"data-[state=closed]:animate-fade-out"
|
|
13
13
|
), d = o(
|
|
14
|
-
"relative flex cursor-default
|
|
15
|
-
"h-44 rounded-sm px-8 outline-
|
|
16
|
-
"
|
|
14
|
+
"relative flex cursor-default items-center gap-12 select-none",
|
|
15
|
+
"h-44 rounded-sm px-8 outline-hidden",
|
|
16
|
+
"body-2-semi-bold text-base",
|
|
17
17
|
"transition-colors",
|
|
18
18
|
"focus:bg-base-transparent-hover",
|
|
19
19
|
"active:bg-base-transparent-pressed",
|
|
20
|
-
"data-
|
|
21
|
-
), b = o("px-8 py-4
|
|
20
|
+
"data-disabled:pointer-events-none data-disabled:text-disabled"
|
|
21
|
+
), b = o("px-8 py-4 body-3-semi-bold text-muted"), N = o(
|
|
22
22
|
d,
|
|
23
23
|
"data-[state=open]:bg-base-transparent-hover"
|
|
24
24
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { cn as
|
|
2
|
+
import { cn as l } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import * as a from "@radix-ui/react-select";
|
|
4
4
|
import { cva as c } from "class-variance-authority";
|
|
5
5
|
import * as s from "react";
|
|
@@ -13,34 +13,34 @@ function k({ ...t }) {
|
|
|
13
13
|
function G({ ...t }) {
|
|
14
14
|
return /* @__PURE__ */ e(a.Group, { "data-slot": "select-group", ...t });
|
|
15
15
|
}
|
|
16
|
-
const b =
|
|
17
|
-
"group relative flex h-48 w-full items-center justify-between gap-8",
|
|
16
|
+
const b = l(
|
|
17
|
+
"group relative flex h-48 w-full cursor-pointer items-center justify-between gap-8",
|
|
18
18
|
"rounded-sm bg-muted px-16",
|
|
19
|
-
"text-base
|
|
19
|
+
"body-2 text-base",
|
|
20
20
|
"hover:bg-muted-hover",
|
|
21
|
-
"transition-colors duration-200 focus:
|
|
21
|
+
"transition-colors duration-200 focus:ring-2 focus:ring-focus focus:outline-hidden",
|
|
22
22
|
"disabled:cursor-not-allowed disabled:text-disabled"
|
|
23
|
-
), g =
|
|
23
|
+
), g = l(
|
|
24
24
|
"pointer-events-none absolute left-16 origin-left text-muted transition-all duration-300",
|
|
25
25
|
"top-10 -translate-y-4 body-4",
|
|
26
|
-
"group-data-
|
|
27
|
-
"group-data-
|
|
26
|
+
"group-data-placeholder:top-14 group-data-placeholder:translate-y-0 group-data-placeholder:body-2",
|
|
27
|
+
"group-data-disabled:text-disabled disabled:text-disabled",
|
|
28
28
|
"max-w-[calc(100%-var(--size-56))] truncate"
|
|
29
|
-
),
|
|
29
|
+
), h = s.forwardRef(({ className: t, labelClassName: o, label: r, ...i }, d) => /* @__PURE__ */ n(
|
|
30
30
|
a.Trigger,
|
|
31
31
|
{
|
|
32
|
-
ref:
|
|
32
|
+
ref: d,
|
|
33
33
|
"data-slot": "select-trigger",
|
|
34
|
-
className:
|
|
35
|
-
...
|
|
34
|
+
className: l(b, t),
|
|
35
|
+
...i,
|
|
36
36
|
children: [
|
|
37
|
-
|
|
37
|
+
r && /* @__PURE__ */ e("label", { className: l(g, o), children: r }),
|
|
38
38
|
/* @__PURE__ */ e(
|
|
39
39
|
"span",
|
|
40
40
|
{
|
|
41
|
-
className:
|
|
42
|
-
"flex-1 truncate text-left
|
|
43
|
-
|
|
41
|
+
className: l(
|
|
42
|
+
"flex-1 truncate text-left",
|
|
43
|
+
r && "mt-16 opacity-100 transition-opacity delay-100 duration-300 group-data-placeholder:mt-0 group-data-placeholder:opacity-0",
|
|
44
44
|
t
|
|
45
45
|
),
|
|
46
46
|
children: /* @__PURE__ */ e(a.Value, { "data-slot": "select-value" })
|
|
@@ -50,22 +50,22 @@ const b = r(
|
|
|
50
50
|
m,
|
|
51
51
|
{
|
|
52
52
|
size: 20,
|
|
53
|
-
className: "shrink-0 text-muted group-data-
|
|
53
|
+
className: "shrink-0 text-muted group-data-disabled:text-disabled"
|
|
54
54
|
}
|
|
55
55
|
) })
|
|
56
56
|
]
|
|
57
57
|
}
|
|
58
58
|
));
|
|
59
|
-
|
|
60
|
-
const
|
|
59
|
+
h.displayName = a.Trigger.displayName;
|
|
60
|
+
const x = c(
|
|
61
61
|
[
|
|
62
|
-
"relative z-select max-h-
|
|
62
|
+
"relative z-select max-h-(--radix-select-content-available-height) overflow-x-hidden overflow-y-auto",
|
|
63
63
|
"rounded-sm bg-muted",
|
|
64
64
|
"shadow-md",
|
|
65
|
-
"data-[side=bottom]:animate-slide-in-from-top
|
|
66
|
-
"data-[side=top]:animate-slide-in-from-bottom
|
|
67
|
-
"data-[side=left]:animate-slide-in-from-right
|
|
68
|
-
"data-[side=right]:animate-slide-in-from-left
|
|
65
|
+
"data-[side=bottom]:animate-slide-in-from-top",
|
|
66
|
+
"data-[side=top]:animate-slide-in-from-bottom",
|
|
67
|
+
"data-[side=left]:animate-slide-in-from-right",
|
|
68
|
+
"data-[side=right]:animate-slide-in-from-left"
|
|
69
69
|
],
|
|
70
70
|
{
|
|
71
71
|
variants: {
|
|
@@ -81,112 +81,112 @@ const h = c(
|
|
|
81
81
|
), y = c("p-8", {
|
|
82
82
|
variants: {
|
|
83
83
|
position: {
|
|
84
|
-
popper: "h-
|
|
84
|
+
popper: "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)",
|
|
85
85
|
"item-aligned": ""
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
defaultVariants: {
|
|
89
89
|
position: "popper"
|
|
90
90
|
}
|
|
91
|
-
}), N = s.forwardRef(({ className: t, children:
|
|
91
|
+
}), N = s.forwardRef(({ className: t, children: o, position: r = "popper", ...i }, d) => /* @__PURE__ */ e(a.Portal, { "data-slot": "select-portal", children: /* @__PURE__ */ n(
|
|
92
92
|
a.Content,
|
|
93
93
|
{
|
|
94
|
-
ref:
|
|
94
|
+
ref: d,
|
|
95
95
|
"data-slot": "select-content",
|
|
96
|
-
className:
|
|
97
|
-
position:
|
|
98
|
-
...
|
|
96
|
+
className: l(x({ position: r }), t),
|
|
97
|
+
position: r,
|
|
98
|
+
...i,
|
|
99
99
|
children: [
|
|
100
100
|
/* @__PURE__ */ e(R, {}),
|
|
101
|
-
/* @__PURE__ */ e(a.Viewport, { className: y({ position:
|
|
101
|
+
/* @__PURE__ */ e(a.Viewport, { className: y({ position: r }), children: o }),
|
|
102
102
|
/* @__PURE__ */ e(C, {})
|
|
103
103
|
]
|
|
104
104
|
}
|
|
105
105
|
) }));
|
|
106
106
|
N.displayName = a.Content.displayName;
|
|
107
|
-
const
|
|
107
|
+
const w = s.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ e(
|
|
108
108
|
a.Label,
|
|
109
109
|
{
|
|
110
|
-
ref:
|
|
110
|
+
ref: r,
|
|
111
111
|
"data-slot": "select-label",
|
|
112
|
-
className:
|
|
113
|
-
...
|
|
112
|
+
className: l("mb-4 px-8 pt-8 pb-0 body-3-semi-bold text-muted", t),
|
|
113
|
+
...o
|
|
114
114
|
}
|
|
115
115
|
));
|
|
116
|
-
|
|
117
|
-
const
|
|
118
|
-
"relative flex w-full cursor-
|
|
116
|
+
w.displayName = a.Label.displayName;
|
|
117
|
+
const S = l(
|
|
118
|
+
"relative flex w-full cursor-pointer items-center bg-base-transparent select-none",
|
|
119
119
|
"rounded-sm p-8",
|
|
120
|
-
"text-base
|
|
121
|
-
"outline-
|
|
120
|
+
"body-2 text-base",
|
|
121
|
+
"outline-hidden",
|
|
122
122
|
"focus:bg-base-transparent-hover",
|
|
123
123
|
"active:bg-base-transparent-pressed",
|
|
124
|
-
"data-
|
|
125
|
-
),
|
|
124
|
+
"data-disabled:cursor-not-allowed data-disabled:text-disabled"
|
|
125
|
+
), v = s.forwardRef(({ className: t, children: o, ...r }, i) => /* @__PURE__ */ n(
|
|
126
126
|
a.Item,
|
|
127
127
|
{
|
|
128
|
-
ref:
|
|
128
|
+
ref: i,
|
|
129
129
|
"data-slot": "select-item",
|
|
130
|
-
className:
|
|
131
|
-
...
|
|
130
|
+
className: l(S, t),
|
|
131
|
+
...r,
|
|
132
132
|
children: [
|
|
133
|
-
|
|
133
|
+
o,
|
|
134
134
|
/* @__PURE__ */ e("span", { className: "absolute right-8 flex size-24 items-center justify-center", children: /* @__PURE__ */ e(a.ItemIndicator, { children: /* @__PURE__ */ e(p, { size: 24, className: "text-active" }) }) })
|
|
135
135
|
]
|
|
136
136
|
}
|
|
137
137
|
));
|
|
138
|
-
|
|
138
|
+
v.displayName = a.Item.displayName;
|
|
139
139
|
const I = s.forwardRef(
|
|
140
|
-
({ className: t, ...
|
|
140
|
+
({ className: t, ...o }, r) => /* @__PURE__ */ e(
|
|
141
141
|
u,
|
|
142
142
|
{
|
|
143
|
-
ref:
|
|
144
|
-
className:
|
|
145
|
-
...
|
|
143
|
+
ref: r,
|
|
144
|
+
className: l("mx-8 my-4 w-auto", t),
|
|
145
|
+
...o
|
|
146
146
|
}
|
|
147
147
|
)
|
|
148
148
|
);
|
|
149
149
|
I.displayName = "SelectSeparator";
|
|
150
|
-
const z = s.forwardRef(({ className: t, ...
|
|
150
|
+
const z = s.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ e(
|
|
151
151
|
a.ItemText,
|
|
152
152
|
{
|
|
153
|
-
ref:
|
|
153
|
+
ref: r,
|
|
154
154
|
"data-slot": "select-item-text",
|
|
155
|
-
className:
|
|
156
|
-
...
|
|
155
|
+
className: l("body-2 text-muted", t),
|
|
156
|
+
...o
|
|
157
157
|
}
|
|
158
158
|
));
|
|
159
159
|
z.displayName = a.ItemText.displayName;
|
|
160
160
|
function R({
|
|
161
161
|
className: t,
|
|
162
|
-
...
|
|
162
|
+
...o
|
|
163
163
|
}) {
|
|
164
164
|
return /* @__PURE__ */ e(
|
|
165
165
|
a.ScrollUpButton,
|
|
166
166
|
{
|
|
167
167
|
"data-slot": "select-scroll-up-button",
|
|
168
|
-
className:
|
|
168
|
+
className: l(
|
|
169
169
|
"flex cursor-default items-center justify-center py-1 text-muted",
|
|
170
170
|
t
|
|
171
171
|
),
|
|
172
|
-
...
|
|
172
|
+
...o,
|
|
173
173
|
children: /* @__PURE__ */ e(f, { className: "size-4" })
|
|
174
174
|
}
|
|
175
175
|
);
|
|
176
176
|
}
|
|
177
177
|
function C({
|
|
178
178
|
className: t,
|
|
179
|
-
...
|
|
179
|
+
...o
|
|
180
180
|
}) {
|
|
181
181
|
return /* @__PURE__ */ e(
|
|
182
182
|
a.ScrollDownButton,
|
|
183
183
|
{
|
|
184
184
|
"data-slot": "select-scroll-down-button",
|
|
185
|
-
className:
|
|
185
|
+
className: l(
|
|
186
186
|
"flex cursor-default items-center justify-center py-1 text-muted",
|
|
187
187
|
t
|
|
188
188
|
),
|
|
189
|
-
...
|
|
189
|
+
...o,
|
|
190
190
|
children: /* @__PURE__ */ e(m, { className: "size-4" })
|
|
191
191
|
}
|
|
192
192
|
);
|
|
@@ -195,9 +195,9 @@ export {
|
|
|
195
195
|
k as Select,
|
|
196
196
|
N as SelectContent,
|
|
197
197
|
G as SelectGroup,
|
|
198
|
-
|
|
198
|
+
v as SelectItem,
|
|
199
199
|
z as SelectItemText,
|
|
200
|
-
|
|
200
|
+
w as SelectLabel,
|
|
201
201
|
I as SelectSeparator,
|
|
202
|
-
|
|
202
|
+
h as SelectTrigger
|
|
203
203
|
};
|
|
@@ -20,7 +20,7 @@ const F = h(
|
|
|
20
20
|
warning: "text-warning",
|
|
21
21
|
info: "text-muted",
|
|
22
22
|
loader: "",
|
|
23
|
-
number: "text-base
|
|
23
|
+
number: "heading-5 text-base"
|
|
24
24
|
},
|
|
25
25
|
disabled: {
|
|
26
26
|
true: "text-disabled"
|
|
@@ -41,10 +41,10 @@ const F = h(
|
|
|
41
41
|
72: 40
|
|
42
42
|
}, m = {
|
|
43
43
|
32: "body-2-semi-bold",
|
|
44
|
-
48: "heading-
|
|
45
|
-
56: "heading-
|
|
46
|
-
72: "heading-
|
|
47
|
-
}, t = l[o] ?? 20, n = m[o] ?? "heading-
|
|
44
|
+
48: "heading-5",
|
|
45
|
+
56: "heading-4",
|
|
46
|
+
72: "heading-2"
|
|
47
|
+
}, t = l[o] ?? 20, n = m[o] ?? "heading-5", p = f(() => {
|
|
48
48
|
switch (r.appearance) {
|
|
49
49
|
case "icon": {
|
|
50
50
|
const { icon: u } = r;
|
|
@@ -24,7 +24,7 @@ const a = ({ children: e }) => /* @__PURE__ */ i("div", { className: "flex shrin
|
|
|
24
24
|
...d,
|
|
25
25
|
children: [
|
|
26
26
|
/* @__PURE__ */ s("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
27
|
-
/* @__PURE__ */ i("h2", { className: "min-w-0 truncate heading-
|
|
27
|
+
/* @__PURE__ */ i("h2", { className: "min-w-0 truncate heading-5-semi-bold", children: m }),
|
|
28
28
|
u
|
|
29
29
|
] }),
|
|
30
30
|
S
|
|
@@ -5,10 +5,10 @@ import { cva as d } from "class-variance-authority";
|
|
|
5
5
|
import m from "react";
|
|
6
6
|
const u = d(
|
|
7
7
|
s(
|
|
8
|
-
"group flex items-center rounded-full p-2 transition-colors duration-200 ease-in-out focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
|
|
8
|
+
"group flex cursor-pointer items-center rounded-full p-2 transition-colors duration-200 ease-in-out focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
|
|
9
9
|
"[&[data-state=unchecked]:not([data-disabled])]:bg-muted-strong [&[data-state=unchecked]:not([data-disabled])]:hover:bg-muted-strong-hover [&[data-state=unchecked]:not([data-disabled])]:active:bg-muted-strong-pressed",
|
|
10
10
|
"[&[data-state=checked]:not([data-disabled])]:bg-active [&[data-state=checked]:not([data-disabled])]:hover:bg-active-hover [&[data-state=checked]:not([data-disabled])]:active:bg-active-pressed",
|
|
11
|
-
"data-
|
|
11
|
+
"data-disabled:bg-disabled-strong"
|
|
12
12
|
),
|
|
13
13
|
{
|
|
14
14
|
variants: {
|
|
@@ -22,7 +22,7 @@ const u = d(
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
), h = d(
|
|
25
|
-
"translate-x-0 rounded-full bg-white transition-transform duration-200 ease-in-out group-data-
|
|
25
|
+
"translate-x-0 rounded-full bg-white transition-transform duration-200 ease-in-out group-data-disabled:bg-base",
|
|
26
26
|
{
|
|
27
27
|
variants: {
|
|
28
28
|
size: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tile/Tile.tsx"],"names":[],"mappings":"AASA,OAAO,EACL,gBAAgB,EAEhB,oBAAoB,EACpB,SAAS,EACT,wBAAwB,EACxB,aAAa,EACb,cAAc,EACf,MAAM,SAAS,CAAC;AAgEjB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,IAAI;sIAWd,SAAS;;CAqFX,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,QAAQ;YAAW,aAAa;;CAM5C,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,WAAW;wCAIrB,gBAAgB;;
|
|
1
|
+
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Tile/Tile.tsx"],"names":[],"mappings":"AASA,OAAO,EACL,gBAAgB,EAEhB,oBAAoB,EACpB,SAAS,EACT,wBAAwB,EACxB,aAAa,EACb,cAAc,EACf,MAAM,SAAS,CAAC;AAgEjB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,IAAI;sIAWd,SAAS;;CAqFX,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,QAAQ;YAAW,aAAa;;CAM5C,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,WAAW;wCAIrB,gBAAgB;;CASlB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,SAAS;wCAInB,cAAc;;CAiBhB,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,eAAe;wCAIzB,oBAAoB;;CAiBtB,CAAC;AAGF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB;sEAM7B,wBAAwB;;CAmC1B,CAAC"}
|