@ledgerhq/lumen-ui-react 0.0.63 → 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/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.js +4 -4
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +3 -3
- 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/Subheader/Subheader.js +1 -1
- package/dist/lib/Components/Switch/Switch.js +3 -3
- package/dist/lib/Components/Tile/Tile.js +30 -30
- package/dist/lib/Components/Tooltip/Tooltip.js +2 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -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
|
));
|
|
@@ -3,10 +3,10 @@ import { createSafeContext as u, cn as l } from "../../../libs/utils-shared/dist
|
|
|
3
3
|
import * as r from "@radix-ui/react-dialog";
|
|
4
4
|
import { cva as h } from "class-variance-authority";
|
|
5
5
|
import * as n from "react";
|
|
6
|
-
const [
|
|
6
|
+
const [p, s] = u("Dialog"), x = h(
|
|
7
7
|
[
|
|
8
8
|
"flex w-400 max-w-[calc(100%-2rem)] flex-col overflow-hidden rounded-2xl bg-canvas-sheet pb-24",
|
|
9
|
-
"fixed
|
|
9
|
+
"fixed top-[50%] left-[50%] z-dialog-content translate-[-50%]",
|
|
10
10
|
"data-[state=closed]:animate-content-hide data-[state=open]:animate-content-show"
|
|
11
11
|
],
|
|
12
12
|
{
|
|
@@ -22,7 +22,7 @@ const [x, s] = u("Dialog"), p = h(
|
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
24
|
function C({ height: a = "hug", ...t }) {
|
|
25
|
-
return /* @__PURE__ */ o(
|
|
25
|
+
return /* @__PURE__ */ o(p, { value: { height: a }, children: /* @__PURE__ */ o(r.Root, { "data-slot": "dialog", ...t }) });
|
|
26
26
|
}
|
|
27
27
|
function R({ ...a }) {
|
|
28
28
|
return /* @__PURE__ */ o(r.Trigger, { "data-slot": "dialog-trigger", ...a });
|
|
@@ -62,7 +62,7 @@ function O({
|
|
|
62
62
|
r.Content,
|
|
63
63
|
{
|
|
64
64
|
"data-slot": "dialog-content",
|
|
65
|
-
className: l(
|
|
65
|
+
className: l(x({ height: i }), a),
|
|
66
66
|
...e,
|
|
67
67
|
children: t
|
|
68
68
|
}
|
|
@@ -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: "heading-5-semi-bold
|
|
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
|
),
|
|
@@ -93,7 +93,7 @@ const y = b("flex px-24 text-base", {
|
|
|
93
93
|
] }),
|
|
94
94
|
(o || l) && /* @__PURE__ */ t("div", { className: "flex flex-col gap-4", children: [
|
|
95
95
|
o && /* @__PURE__ */ e("div", { className: "heading-3-semi-bold", children: o }),
|
|
96
|
-
l && /* @__PURE__ */ e("div", { className: "text-muted
|
|
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
|
};
|
|
@@ -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: "heading-5-semi-bold
|
|
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: {
|
|
@@ -8,7 +8,7 @@ const [V, u] = C("Tile"), v = {
|
|
|
8
8
|
root: b(
|
|
9
9
|
[
|
|
10
10
|
"group relative flex flex-col items-center gap-8 text-base transition-colors",
|
|
11
|
-
"focus-visible:outline-
|
|
11
|
+
"rounded-md focus-visible:outline-2 focus-visible:outline-focus"
|
|
12
12
|
],
|
|
13
13
|
{
|
|
14
14
|
variants: {
|
|
@@ -59,18 +59,18 @@ const [V, u] = C("Tile"), v = {
|
|
|
59
59
|
}
|
|
60
60
|
),
|
|
61
61
|
button: b(
|
|
62
|
-
"
|
|
62
|
+
"flex w-full cursor-pointer flex-col items-center gap-8 rounded-md px-8 py-12 focus-visible:outline-2 focus-visible:outline-focus"
|
|
63
63
|
)
|
|
64
64
|
}, j = ({
|
|
65
65
|
className: e,
|
|
66
66
|
onClick: i,
|
|
67
|
-
appearance:
|
|
67
|
+
appearance: r = "no-background",
|
|
68
68
|
disabled: t = !1,
|
|
69
69
|
"aria-label": p,
|
|
70
70
|
children: m,
|
|
71
|
-
onMouseDown:
|
|
72
|
-
onMouseUp:
|
|
73
|
-
onMouseLeave:
|
|
71
|
+
onMouseDown: o,
|
|
72
|
+
onMouseUp: c,
|
|
73
|
+
onMouseLeave: s,
|
|
74
74
|
...x
|
|
75
75
|
}) => {
|
|
76
76
|
const [y, f] = I(!1), { slotElement: N, remainingChildren: g } = q(
|
|
@@ -80,26 +80,26 @@ const [V, u] = C("Tile"), v = {
|
|
|
80
80
|
(a) => {
|
|
81
81
|
a.target.closest(
|
|
82
82
|
"[data-secondary-button-container]"
|
|
83
|
-
) || (
|
|
83
|
+
) || (o == null || o(a), f(!0));
|
|
84
84
|
},
|
|
85
|
-
[
|
|
85
|
+
[o]
|
|
86
86
|
), A = n(
|
|
87
87
|
(a) => {
|
|
88
|
-
f(!1),
|
|
88
|
+
f(!1), c == null || c(a);
|
|
89
89
|
},
|
|
90
|
-
[
|
|
90
|
+
[c]
|
|
91
91
|
), S = n(
|
|
92
92
|
(a) => {
|
|
93
|
-
f(!1),
|
|
93
|
+
f(!1), s == null || s(a);
|
|
94
94
|
},
|
|
95
|
-
[
|
|
95
|
+
[s]
|
|
96
96
|
);
|
|
97
97
|
return /* @__PURE__ */ l(V, { value: { disabled: t }, children: /* @__PURE__ */ k(
|
|
98
98
|
"div",
|
|
99
99
|
{
|
|
100
100
|
...x,
|
|
101
101
|
className: v.root({
|
|
102
|
-
appearance:
|
|
102
|
+
appearance: r,
|
|
103
103
|
isActive: y,
|
|
104
104
|
disabled: t,
|
|
105
105
|
className: e
|
|
@@ -142,12 +142,12 @@ w.displayName = "TileSpot";
|
|
|
142
142
|
const P = ({
|
|
143
143
|
children: e,
|
|
144
144
|
className: i,
|
|
145
|
-
...
|
|
145
|
+
...r
|
|
146
146
|
}) => /* @__PURE__ */ l(
|
|
147
147
|
"div",
|
|
148
148
|
{
|
|
149
149
|
className: d("flex w-full flex-col items-center text-center", i),
|
|
150
|
-
...
|
|
150
|
+
...r,
|
|
151
151
|
children: e
|
|
152
152
|
}
|
|
153
153
|
);
|
|
@@ -155,7 +155,7 @@ P.displayName = "TileContent";
|
|
|
155
155
|
const D = ({
|
|
156
156
|
children: e,
|
|
157
157
|
className: i,
|
|
158
|
-
...
|
|
158
|
+
...r
|
|
159
159
|
}) => {
|
|
160
160
|
const { disabled: t } = u({
|
|
161
161
|
consumerName: "TileTitle",
|
|
@@ -165,11 +165,11 @@ const D = ({
|
|
|
165
165
|
"div",
|
|
166
166
|
{
|
|
167
167
|
className: d(
|
|
168
|
-
"body-2-semi-bold
|
|
168
|
+
"w-full truncate body-2-semi-bold",
|
|
169
169
|
t && "text-disabled",
|
|
170
170
|
i
|
|
171
171
|
),
|
|
172
|
-
...
|
|
172
|
+
...r,
|
|
173
173
|
children: e
|
|
174
174
|
}
|
|
175
175
|
);
|
|
@@ -178,7 +178,7 @@ D.displayName = "TileTitle";
|
|
|
178
178
|
const E = ({
|
|
179
179
|
children: e,
|
|
180
180
|
className: i,
|
|
181
|
-
...
|
|
181
|
+
...r
|
|
182
182
|
}) => {
|
|
183
183
|
const { disabled: t } = u({
|
|
184
184
|
consumerName: "TileDescription",
|
|
@@ -188,11 +188,11 @@ const E = ({
|
|
|
188
188
|
"div",
|
|
189
189
|
{
|
|
190
190
|
className: d(
|
|
191
|
-
"
|
|
191
|
+
"w-full truncate body-3",
|
|
192
192
|
t ? "text-disabled" : "text-muted",
|
|
193
193
|
i
|
|
194
194
|
),
|
|
195
|
-
...
|
|
195
|
+
...r,
|
|
196
196
|
children: e
|
|
197
197
|
}
|
|
198
198
|
);
|
|
@@ -201,35 +201,35 @@ E.displayName = "TileDescription";
|
|
|
201
201
|
const T = ({
|
|
202
202
|
onClick: e,
|
|
203
203
|
icon: i,
|
|
204
|
-
className:
|
|
204
|
+
className: r,
|
|
205
205
|
"aria-label": t,
|
|
206
206
|
...p
|
|
207
207
|
}) => {
|
|
208
208
|
const { disabled: m } = u({
|
|
209
209
|
consumerName: "TileSecondaryAction",
|
|
210
210
|
contextRequired: !0
|
|
211
|
-
}),
|
|
212
|
-
(
|
|
213
|
-
|
|
211
|
+
}), o = n(
|
|
212
|
+
(s) => {
|
|
213
|
+
s.stopPropagation(), s.preventDefault(), e == null || e(s);
|
|
214
214
|
},
|
|
215
215
|
[e]
|
|
216
216
|
);
|
|
217
217
|
if (m) return null;
|
|
218
|
-
const
|
|
218
|
+
const c = i;
|
|
219
219
|
return /* @__PURE__ */ l(
|
|
220
220
|
z,
|
|
221
221
|
{
|
|
222
222
|
"data-slot": "tile-secondary-action",
|
|
223
223
|
className: d(
|
|
224
|
-
"absolute right-4
|
|
225
|
-
|
|
224
|
+
"absolute top-8 right-4 opacity-0 transition-opacity duration-200 group-hover:opacity-100 focus-within:opacity-100",
|
|
225
|
+
r
|
|
226
226
|
),
|
|
227
227
|
"data-secondary-button-container": !0,
|
|
228
228
|
iconType: "stroked",
|
|
229
|
-
onClick:
|
|
229
|
+
onClick: o,
|
|
230
230
|
"aria-label": t,
|
|
231
231
|
...p,
|
|
232
|
-
children: /* @__PURE__ */ l(
|
|
232
|
+
children: /* @__PURE__ */ l(c, { size: 24 })
|
|
233
233
|
}
|
|
234
234
|
);
|
|
235
235
|
};
|
|
@@ -3,7 +3,7 @@ import { cn as s } from "../../../libs/utils-shared/dist/index.js";
|
|
|
3
3
|
import * as e from "@radix-ui/react-tooltip";
|
|
4
4
|
import { cva as d } from "class-variance-authority";
|
|
5
5
|
const m = d(
|
|
6
|
-
"z-tooltip w-fit
|
|
6
|
+
"z-tooltip w-fit rounded-xs bg-interactive px-8 py-4 body-3 text-balance text-on-interactive select-none",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
side: {
|
|
@@ -46,7 +46,7 @@ const m = d(
|
|
|
46
46
|
className: s(m({ side: a }), t),
|
|
47
47
|
...n,
|
|
48
48
|
children: [
|
|
49
|
-
/* @__PURE__ */ o(e.Arrow, { className: "size-10 translate-y-[calc(-50
|
|
49
|
+
/* @__PURE__ */ o(e.Arrow, { className: "size-10 translate-y-[calc(-50%-1px)] rotate-45 rounded-[1px] bg-interactive fill-interactive" }),
|
|
50
50
|
/* @__PURE__ */ o("div", { className: "relative", children: r })
|
|
51
51
|
]
|
|
52
52
|
}
|
package/dist/package.json
CHANGED