@ledgerhq/lumen-ui-react 0.1.47 → 0.1.49
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/index.js +227 -219
- package/dist/lib/Components/AmountDisplay/AmountDisplay.js +10 -10
- package/dist/lib/Components/AmountInput/useAmountInputValue/useAmountInputValue.js +3 -3
- package/dist/lib/Components/Avatar/Avatar.d.ts +1 -1
- package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/lib/Components/Avatar/Avatar.js +97 -57
- package/dist/lib/Components/Avatar/index.d.ts +1 -0
- package/dist/lib/Components/Avatar/index.d.ts.map +1 -1
- package/dist/lib/Components/Avatar/resolveAvatarColor.d.ts +9 -0
- package/dist/lib/Components/Avatar/resolveAvatarColor.d.ts.map +1 -0
- package/dist/lib/Components/Avatar/resolveAvatarColor.js +18 -0
- package/dist/lib/Components/Avatar/types.d.ts +23 -8
- package/dist/lib/Components/Avatar/types.d.ts.map +1 -1
- package/dist/lib/Components/AvatarButton/AvatarButton.d.ts +6 -0
- package/dist/lib/Components/AvatarButton/AvatarButton.d.ts.map +1 -0
- package/dist/lib/Components/AvatarButton/AvatarButton.js +52 -0
- package/dist/lib/Components/AvatarButton/index.d.ts +3 -0
- package/dist/lib/Components/AvatarButton/index.d.ts.map +1 -0
- package/dist/lib/Components/AvatarButton/types.d.ts +4 -0
- package/dist/lib/Components/AvatarButton/types.d.ts.map +1 -0
- package/dist/lib/Components/BaseInput/BaseInput.js +6 -6
- package/dist/lib/Components/BaseTag/BaseTag.js +4 -4
- package/dist/lib/Components/Button/BaseButton.d.ts +2 -2
- package/dist/lib/Components/Button/Button.js +8 -8
- package/dist/lib/Components/Card/Card.js +14 -14
- package/dist/lib/Components/CardButton/CardButton.js +6 -6
- package/dist/lib/Components/DataTable/DataTable.js +10 -10
- package/dist/lib/Components/Divider/Divider.js +4 -4
- package/dist/lib/Components/DotIcon/DotIcon.js +5 -5
- package/dist/lib/Components/DotIndicator/getDotIndicatorProps.d.ts +32 -0
- package/dist/lib/Components/DotIndicator/getDotIndicatorProps.d.ts.map +1 -1
- package/dist/lib/Components/DotIndicator/getDotIndicatorProps.js +7 -4
- package/dist/lib/Components/Icon/createIcon.js +6 -6
- package/dist/lib/Components/Link/Link.js +6 -6
- package/dist/lib/Components/ListItem/ListItem.js +4 -4
- package/dist/lib/Components/MediaBanner/MediaBanner.d.ts +1 -1
- package/dist/lib/Components/MediaBanner/MediaBanner.d.ts.map +1 -1
- package/dist/lib/Components/MediaBanner/MediaBanner.js +94 -75
- package/dist/lib/Components/MediaCard/MediaCard.js +4 -4
- package/dist/lib/Components/MediaImage/MediaImage.js +6 -6
- package/dist/lib/Components/Menu/Menu.js +33 -33
- package/dist/lib/Components/NavBar/CoinCapsule.js +4 -4
- package/dist/lib/Components/NavBar/NavBar.js +9 -9
- package/dist/lib/Components/Popover/Popover.js +14 -14
- package/dist/lib/Components/SegmentedControl/SegmentedControl.js +11 -11
- package/dist/lib/Components/SideBar/SideBar.js +34 -34
- package/dist/lib/Components/Spot/Spot.js +4 -4
- package/dist/lib/Components/Stepper/Stepper.js +6 -6
- package/dist/lib/Components/Table/Table.d.ts +24 -3
- package/dist/lib/Components/Table/Table.d.ts.map +1 -1
- package/dist/lib/Components/Table/Table.js +270 -182
- package/dist/lib/Components/Table/types.d.ts +63 -28
- package/dist/lib/Components/Table/types.d.ts.map +1 -1
- package/dist/lib/Components/Tooltip/Tooltip.js +4 -4
- package/dist/lib/Components/index.d.ts +1 -0
- package/dist/lib/Components/index.d.ts.map +1 -1
- package/dist/lib/Symbols/Icons/Atm.d.ts +29 -0
- package/dist/lib/Symbols/Icons/Atm.d.ts.map +1 -0
- package/dist/lib/Symbols/Icons/Atm.js +28 -0
- package/dist/lib/Symbols/Icons/Cutlery.d.ts +29 -0
- package/dist/lib/Symbols/Icons/Cutlery.d.ts.map +1 -0
- package/dist/lib/Symbols/Icons/Cutlery.js +28 -0
- package/dist/lib/Symbols/Icons/GameControler.d.ts +29 -0
- package/dist/lib/Symbols/Icons/GameControler.d.ts.map +1 -0
- package/dist/lib/Symbols/Icons/GameControler.js +28 -0
- package/dist/lib/Symbols/index.d.ts +3 -0
- package/dist/lib/Symbols/index.d.ts.map +1 -1
- package/dist/lib/Symbols/index.js +512 -506
- package/dist/libs/design-core/dist/lib/cssVar/cssVar.js +4 -0
- package/dist/libs/utils-shared/dist/index.js +135 -112
- package/dist/package.json +3 -3
- package/package.json +3 -3
|
@@ -79,16 +79,16 @@ function me({ ...e }) {
|
|
|
79
79
|
}
|
|
80
80
|
const ue = ({
|
|
81
81
|
ref: e,
|
|
82
|
-
render:
|
|
83
|
-
className:
|
|
82
|
+
render: a,
|
|
83
|
+
className: o,
|
|
84
84
|
...r
|
|
85
85
|
}) => /* @__PURE__ */ t(
|
|
86
86
|
k,
|
|
87
87
|
{
|
|
88
88
|
ref: e,
|
|
89
89
|
"data-slot": "menu-trigger",
|
|
90
|
-
render:
|
|
91
|
-
className: n("data-popup-open:z-menu",
|
|
90
|
+
render: a,
|
|
91
|
+
className: n("data-popup-open:z-menu", o),
|
|
92
92
|
...r
|
|
93
93
|
}
|
|
94
94
|
);
|
|
@@ -100,46 +100,46 @@ function le({ ...e }) {
|
|
|
100
100
|
}
|
|
101
101
|
function O({
|
|
102
102
|
onValueChange: e,
|
|
103
|
-
...
|
|
103
|
+
...a
|
|
104
104
|
}) {
|
|
105
105
|
return /* @__PURE__ */ t(
|
|
106
106
|
V,
|
|
107
107
|
{
|
|
108
108
|
"data-slot": "menu-radio-group",
|
|
109
|
-
onValueChange: (
|
|
110
|
-
...
|
|
109
|
+
onValueChange: (o) => e?.(String(o)),
|
|
110
|
+
...a
|
|
111
111
|
}
|
|
112
112
|
);
|
|
113
113
|
}
|
|
114
114
|
const ce = ({
|
|
115
115
|
ref: e,
|
|
116
|
-
className:
|
|
117
|
-
children:
|
|
116
|
+
className: a,
|
|
117
|
+
children: o,
|
|
118
118
|
...r
|
|
119
119
|
}) => /* @__PURE__ */ p(
|
|
120
120
|
D,
|
|
121
121
|
{
|
|
122
122
|
ref: e,
|
|
123
123
|
"data-slot": "menu-sub-trigger",
|
|
124
|
-
className: n(L,
|
|
124
|
+
className: n(L, a),
|
|
125
125
|
...r,
|
|
126
126
|
children: [
|
|
127
|
-
|
|
127
|
+
o,
|
|
128
128
|
/* @__PURE__ */ t(R, { size: 20, className: "ml-auto text-muted" })
|
|
129
129
|
]
|
|
130
130
|
}
|
|
131
|
-
), pe = ({ className: e, children:
|
|
131
|
+
), pe = ({ className: e, children: a }) => /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(x, { className: "z-menu", side: "right", sideOffset: 4, children: /* @__PURE__ */ t(
|
|
132
132
|
N,
|
|
133
133
|
{
|
|
134
134
|
"data-slot": "menu-sub-content",
|
|
135
135
|
className: n(v({ side: "right" }), e),
|
|
136
|
-
onClick: (
|
|
137
|
-
children:
|
|
136
|
+
onClick: (o) => o.stopPropagation(),
|
|
137
|
+
children: a
|
|
138
138
|
}
|
|
139
139
|
) }) }), be = ({
|
|
140
140
|
side: e = "bottom",
|
|
141
|
-
sideOffset:
|
|
142
|
-
align:
|
|
141
|
+
sideOffset: a = 4,
|
|
142
|
+
align: o = "start",
|
|
143
143
|
alignOffset: r,
|
|
144
144
|
sticky: i = !0,
|
|
145
145
|
className: s,
|
|
@@ -149,8 +149,8 @@ const ce = ({
|
|
|
149
149
|
{
|
|
150
150
|
className: "z-menu",
|
|
151
151
|
side: e,
|
|
152
|
-
sideOffset:
|
|
153
|
-
align:
|
|
152
|
+
sideOffset: a,
|
|
153
|
+
align: o,
|
|
154
154
|
alignOffset: r,
|
|
155
155
|
sticky: i,
|
|
156
156
|
children: /* @__PURE__ */ t(
|
|
@@ -165,8 +165,8 @@ const ce = ({
|
|
|
165
165
|
}
|
|
166
166
|
) }), fe = ({
|
|
167
167
|
ref: e,
|
|
168
|
-
className:
|
|
169
|
-
appearance:
|
|
168
|
+
className: a,
|
|
169
|
+
appearance: o = "base",
|
|
170
170
|
disabled: r,
|
|
171
171
|
onClick: i,
|
|
172
172
|
label: s,
|
|
@@ -185,15 +185,15 @@ const ce = ({
|
|
|
185
185
|
label: s,
|
|
186
186
|
disabled: d,
|
|
187
187
|
closeOnClick: m,
|
|
188
|
-
className: n(l({ appearance:
|
|
188
|
+
className: n(l({ appearance: o }), a),
|
|
189
189
|
onClick: i,
|
|
190
190
|
...u
|
|
191
191
|
}
|
|
192
192
|
) });
|
|
193
193
|
}, he = ({
|
|
194
194
|
ref: e,
|
|
195
|
-
className:
|
|
196
|
-
children:
|
|
195
|
+
className: a,
|
|
196
|
+
children: o,
|
|
197
197
|
checked: r,
|
|
198
198
|
defaultChecked: i,
|
|
199
199
|
onCheckedChange: s,
|
|
@@ -216,19 +216,19 @@ const ce = ({
|
|
|
216
216
|
defaultChecked: i,
|
|
217
217
|
disabled: c,
|
|
218
218
|
closeOnClick: d ?? !1,
|
|
219
|
-
className: n(l(),
|
|
219
|
+
className: n(l(), a),
|
|
220
220
|
onCheckedChange: s,
|
|
221
221
|
...I,
|
|
222
222
|
children: [
|
|
223
|
-
|
|
223
|
+
o,
|
|
224
224
|
/* @__PURE__ */ t("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ t(G, { children: /* @__PURE__ */ t(g, { disabled: c, size: 24, className: "text-active" }) }) })
|
|
225
225
|
]
|
|
226
226
|
}
|
|
227
227
|
) });
|
|
228
228
|
}, q = ({
|
|
229
229
|
ref: e,
|
|
230
|
-
className:
|
|
231
|
-
children:
|
|
230
|
+
className: a,
|
|
231
|
+
children: o,
|
|
232
232
|
disabled: r,
|
|
233
233
|
...i
|
|
234
234
|
}) => {
|
|
@@ -242,23 +242,23 @@ const ce = ({
|
|
|
242
242
|
ref: e,
|
|
243
243
|
"data-slot": "menu-radio-item",
|
|
244
244
|
disabled: s,
|
|
245
|
-
className: n(l(),
|
|
245
|
+
className: n(l(), a),
|
|
246
246
|
...i,
|
|
247
247
|
children: [
|
|
248
|
-
|
|
248
|
+
o,
|
|
249
249
|
/* @__PURE__ */ t("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ t(T, { children: /* @__PURE__ */ t(g, { disabled: s, size: 24, className: "text-active" }) }) })
|
|
250
250
|
]
|
|
251
251
|
}
|
|
252
252
|
) });
|
|
253
|
-
}, ge = ({ ref: e, className:
|
|
253
|
+
}, ge = ({ ref: e, className: a, ...o }) => /* @__PURE__ */ t(
|
|
254
254
|
$,
|
|
255
255
|
{
|
|
256
256
|
ref: e,
|
|
257
257
|
"data-slot": "menu-label",
|
|
258
|
-
className: n(W,
|
|
259
|
-
...
|
|
258
|
+
className: n(W, a),
|
|
259
|
+
...o
|
|
260
260
|
}
|
|
261
|
-
), Me = ({ ref: e, className:
|
|
261
|
+
), Me = ({ ref: e, className: a, ...o }) => /* @__PURE__ */ t(C, { ref: e, className: n("mx-8 my-4 w-auto", a), ...o });
|
|
262
262
|
function xe() {
|
|
263
263
|
return { MenuRadioGroup: O, MenuRadioItem: q };
|
|
264
264
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { cn as c } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
const o = ({
|
|
4
4
|
ref: s,
|
|
5
5
|
ticker: t,
|
|
6
6
|
leadingContent: n,
|
|
7
|
-
className:
|
|
8
|
-
}) => /* @__PURE__ */
|
|
7
|
+
className: a
|
|
8
|
+
}) => /* @__PURE__ */ r(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
ref: s,
|
|
12
12
|
className: c(
|
|
13
13
|
"flex items-center gap-8 rounded-full bg-muted-transparent p-8 pr-12",
|
|
14
|
-
|
|
14
|
+
a
|
|
15
15
|
),
|
|
16
16
|
"data-slot": "coin-capsule",
|
|
17
17
|
children: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { cn as
|
|
2
|
+
import { cn as o } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { CoinCapsule as i } from "./CoinCapsule.js";
|
|
4
4
|
import { useCommonTranslation as l } from "../../../i18n/useCommonTranslation.js";
|
|
5
5
|
import { IconButton as c } from "../IconButton/IconButton.js";
|
|
@@ -23,7 +23,7 @@ const N = ({
|
|
|
23
23
|
"aria-label": e,
|
|
24
24
|
className: r
|
|
25
25
|
}) => {
|
|
26
|
-
const { t:
|
|
26
|
+
const { t: s } = l();
|
|
27
27
|
return /* @__PURE__ */ n(
|
|
28
28
|
c,
|
|
29
29
|
{
|
|
@@ -32,8 +32,8 @@ const N = ({
|
|
|
32
32
|
size: "sm",
|
|
33
33
|
icon: m,
|
|
34
34
|
onClick: t,
|
|
35
|
-
className:
|
|
36
|
-
"aria-label": e ??
|
|
35
|
+
className: o("shrink-0", r),
|
|
36
|
+
"aria-label": e ?? s("components.navBar.goBackAriaLabel"),
|
|
37
37
|
"data-slot": "navbar-back-button"
|
|
38
38
|
}
|
|
39
39
|
);
|
|
@@ -46,7 +46,7 @@ const N = ({
|
|
|
46
46
|
r,
|
|
47
47
|
{
|
|
48
48
|
ref: a,
|
|
49
|
-
className:
|
|
49
|
+
className: o(
|
|
50
50
|
"min-w-0 truncate heading-4-semi-bold text-base",
|
|
51
51
|
e
|
|
52
52
|
),
|
|
@@ -62,7 +62,7 @@ const N = ({
|
|
|
62
62
|
"div",
|
|
63
63
|
{
|
|
64
64
|
ref: a,
|
|
65
|
-
className:
|
|
65
|
+
className: o("min-w-0 flex-1 truncate body-1 text-muted", e),
|
|
66
66
|
...r,
|
|
67
67
|
children: t
|
|
68
68
|
}
|
|
@@ -75,7 +75,7 @@ const N = ({
|
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
77
|
ref: a,
|
|
78
|
-
className:
|
|
78
|
+
className: o("flex min-w-0 flex-1 items-center gap-16", e),
|
|
79
79
|
"data-slot": "navbar-leading",
|
|
80
80
|
...r,
|
|
81
81
|
children: t
|
|
@@ -89,7 +89,7 @@ const N = ({
|
|
|
89
89
|
"div",
|
|
90
90
|
{
|
|
91
91
|
ref: a,
|
|
92
|
-
className:
|
|
92
|
+
className: o("ml-auto flex shrink-0 items-center gap-4", e),
|
|
93
93
|
"data-slot": "navbar-trailing",
|
|
94
94
|
...r,
|
|
95
95
|
children: t
|
|
@@ -98,7 +98,7 @@ const N = ({
|
|
|
98
98
|
"nav",
|
|
99
99
|
{
|
|
100
100
|
ref: a,
|
|
101
|
-
className:
|
|
101
|
+
className: o("flex items-center gap-4", e),
|
|
102
102
|
"data-slot": "navbar",
|
|
103
103
|
...r,
|
|
104
104
|
children: t
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import { createSafeContext as l, cn as
|
|
2
|
+
import { createSafeContext as l, cn as p } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as v } from "class-variance-authority";
|
|
4
4
|
import { createPopoverHandle as c } from "../../../node_modules/@base-ui/react/esm/popover/store/PopoverHandle.js";
|
|
5
5
|
import { PopoverRoot as f } from "../../../node_modules/@base-ui/react/esm/popover/root/PopoverRoot.js";
|
|
@@ -39,11 +39,11 @@ const [b, y] = l("Popover"), C = v(
|
|
|
39
39
|
width: "fit"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
), w =
|
|
42
|
+
), w = p(
|
|
43
43
|
"fixed inset-0 z-dialog-overlay bg-canvas-overlay-subtle",
|
|
44
44
|
"data-open:animate-fade-in",
|
|
45
45
|
"data-closed:animate-fade-out"
|
|
46
|
-
),
|
|
46
|
+
), q = ({
|
|
47
47
|
open: o,
|
|
48
48
|
defaultOpen: a,
|
|
49
49
|
onOpenChange: r,
|
|
@@ -60,7 +60,7 @@ const [b, y] = l("Popover"), C = v(
|
|
|
60
60
|
handle: n,
|
|
61
61
|
children: i
|
|
62
62
|
}
|
|
63
|
-
) }),
|
|
63
|
+
) }), B = ({
|
|
64
64
|
handle: o,
|
|
65
65
|
payload: a,
|
|
66
66
|
render: r,
|
|
@@ -73,17 +73,17 @@ const [b, y] = l("Popover"), C = v(
|
|
|
73
73
|
handle: o,
|
|
74
74
|
payload: a,
|
|
75
75
|
render: r,
|
|
76
|
-
className:
|
|
76
|
+
className: p("data-popup-open:z-menu", e),
|
|
77
77
|
...n
|
|
78
78
|
}
|
|
79
|
-
),
|
|
79
|
+
), O = ({
|
|
80
80
|
side: o = "bottom",
|
|
81
81
|
sideOffset: a = 8,
|
|
82
82
|
align: r = "start",
|
|
83
83
|
width: e = "fit",
|
|
84
84
|
initialFocus: n = !1,
|
|
85
85
|
className: i,
|
|
86
|
-
children:
|
|
86
|
+
children: s
|
|
87
87
|
}) => {
|
|
88
88
|
const { overlay: d } = y({
|
|
89
89
|
consumerName: "PopoverContent",
|
|
@@ -110,17 +110,17 @@ const [b, y] = l("Popover"), C = v(
|
|
|
110
110
|
{
|
|
111
111
|
"data-slot": "popover-content",
|
|
112
112
|
initialFocus: n,
|
|
113
|
-
className:
|
|
114
|
-
children:
|
|
113
|
+
className: p(C({ width: e, side: o }), i),
|
|
114
|
+
children: s
|
|
115
115
|
}
|
|
116
116
|
)
|
|
117
117
|
}
|
|
118
118
|
)
|
|
119
119
|
] });
|
|
120
|
-
},
|
|
120
|
+
}, A = c;
|
|
121
121
|
export {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
q as Popover,
|
|
123
|
+
O as PopoverContent,
|
|
124
|
+
B as PopoverTrigger,
|
|
125
|
+
A as createPopoverHandle
|
|
126
126
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a, jsxs as x } from "react/jsx-runtime";
|
|
2
2
|
import { cn as g, useDisabledContext as v } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as b } from "class-variance-authority";
|
|
4
4
|
import { useRef as C } from "react";
|
|
@@ -60,10 +60,10 @@ function k({
|
|
|
60
60
|
trailingContent: l,
|
|
61
61
|
onClick: d,
|
|
62
62
|
className: c,
|
|
63
|
-
...
|
|
63
|
+
...r
|
|
64
64
|
}) {
|
|
65
65
|
const { selectedValue: u, onSelectedChange: o, disabled: e, tabLayout: m } = y(), n = u === s;
|
|
66
|
-
return /* @__PURE__ */
|
|
66
|
+
return /* @__PURE__ */ a(
|
|
67
67
|
"button",
|
|
68
68
|
{
|
|
69
69
|
type: "button",
|
|
@@ -79,10 +79,10 @@ function k({
|
|
|
79
79
|
m === "fixed" && "min-w-0 flex-1",
|
|
80
80
|
c
|
|
81
81
|
),
|
|
82
|
-
...
|
|
82
|
+
...r,
|
|
83
83
|
children: /* @__PURE__ */ x("span", { className: "inline-flex min-w-0 items-center justify-center gap-8", children: [
|
|
84
|
-
t && /* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
84
|
+
t && /* @__PURE__ */ a(t, { size: 16, className: "shrink-0" }),
|
|
85
|
+
/* @__PURE__ */ a("span", { className: "min-w-0 truncate", children: i }),
|
|
86
86
|
l
|
|
87
87
|
] })
|
|
88
88
|
}
|
|
@@ -95,7 +95,7 @@ function j({
|
|
|
95
95
|
className: l,
|
|
96
96
|
disabled: d,
|
|
97
97
|
appearance: c = "background",
|
|
98
|
-
tabLayout:
|
|
98
|
+
tabLayout: r = "fixed",
|
|
99
99
|
...u
|
|
100
100
|
}) {
|
|
101
101
|
const o = v({
|
|
@@ -109,14 +109,14 @@ function j({
|
|
|
109
109
|
selectedIndex: m,
|
|
110
110
|
children: t
|
|
111
111
|
});
|
|
112
|
-
return /* @__PURE__ */
|
|
112
|
+
return /* @__PURE__ */ a(
|
|
113
113
|
S,
|
|
114
114
|
{
|
|
115
115
|
value: {
|
|
116
116
|
selectedValue: s,
|
|
117
117
|
onSelectedChange: (h) => i(h),
|
|
118
118
|
disabled: o,
|
|
119
|
-
tabLayout:
|
|
119
|
+
tabLayout: r
|
|
120
120
|
},
|
|
121
121
|
children: /* @__PURE__ */ x(
|
|
122
122
|
"div",
|
|
@@ -128,13 +128,13 @@ function j({
|
|
|
128
128
|
className: g(
|
|
129
129
|
p.root({
|
|
130
130
|
appearance: c,
|
|
131
|
-
tabLayout:
|
|
131
|
+
tabLayout: r
|
|
132
132
|
}),
|
|
133
133
|
l
|
|
134
134
|
),
|
|
135
135
|
children: [
|
|
136
136
|
t,
|
|
137
|
-
/* @__PURE__ */
|
|
137
|
+
/* @__PURE__ */ a(
|
|
138
138
|
"div",
|
|
139
139
|
{
|
|
140
140
|
"aria-hidden": !0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as e, jsxs as x, Fragment as
|
|
2
|
-
import { createSafeContext as
|
|
1
|
+
import { jsx as e, jsxs as x, Fragment as P } from "react/jsx-runtime";
|
|
2
|
+
import { createSafeContext as R, cn as m, useDisabledContext as q } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as C } from "class-variance-authority";
|
|
4
4
|
import { useCallback as S } from "react";
|
|
5
5
|
import { Tooltip as N, TooltipTrigger as T, TooltipContent as w } from "../Tooltip/Tooltip.js";
|
|
@@ -7,7 +7,7 @@ import { useCommonTranslation as A } from "../../../i18n/useCommonTranslation.js
|
|
|
7
7
|
import { useControllableState as B } from "../../../utils/useControllableState/useControllableState.js";
|
|
8
8
|
import { ExpandRight as z } from "../../Symbols/Icons/ExpandRight.js";
|
|
9
9
|
import { ExpandLeft as E } from "../../Symbols/Icons/ExpandLeft.js";
|
|
10
|
-
const [O, y] =
|
|
10
|
+
const [O, y] = R("SideBar"), f = {
|
|
11
11
|
root: C(
|
|
12
12
|
[
|
|
13
13
|
"flex h-full flex-col justify-between gap-16 overflow-y-auto rounded-xl bg-surface-transparent p-16",
|
|
@@ -53,10 +53,10 @@ const [O, y] = V("SideBar"), f = {
|
|
|
53
53
|
}, D = ({
|
|
54
54
|
ref: n,
|
|
55
55
|
collapsed: t,
|
|
56
|
-
defaultCollapsed:
|
|
56
|
+
defaultCollapsed: r = !1,
|
|
57
57
|
onCollapsedChange: a,
|
|
58
58
|
active: o,
|
|
59
|
-
defaultActive:
|
|
59
|
+
defaultActive: s,
|
|
60
60
|
onActiveChange: i,
|
|
61
61
|
children: d,
|
|
62
62
|
className: l,
|
|
@@ -64,11 +64,11 @@ const [O, y] = V("SideBar"), f = {
|
|
|
64
64
|
}) => {
|
|
65
65
|
const { t: c } = A(), [b, g] = B({
|
|
66
66
|
prop: t,
|
|
67
|
-
defaultProp:
|
|
67
|
+
defaultProp: r,
|
|
68
68
|
onChange: a
|
|
69
69
|
}), [v, u] = B({
|
|
70
70
|
prop: o,
|
|
71
|
-
defaultProp:
|
|
71
|
+
defaultProp: s ?? "",
|
|
72
72
|
onChange: i ? (h) => i(h) : void 0
|
|
73
73
|
});
|
|
74
74
|
return /* @__PURE__ */ e(
|
|
@@ -90,36 +90,36 @@ const [O, y] = V("SideBar"), f = {
|
|
|
90
90
|
}, F = ({
|
|
91
91
|
ref: n,
|
|
92
92
|
children: t,
|
|
93
|
-
className:
|
|
93
|
+
className: r,
|
|
94
94
|
...a
|
|
95
95
|
}) => /* @__PURE__ */ e(
|
|
96
96
|
"div",
|
|
97
97
|
{
|
|
98
98
|
ref: n,
|
|
99
|
-
className: m(f.section(),
|
|
99
|
+
className: m(f.section(), r),
|
|
100
100
|
...a,
|
|
101
101
|
children: t
|
|
102
102
|
}
|
|
103
|
-
),
|
|
103
|
+
), W = ({
|
|
104
104
|
ref: n,
|
|
105
105
|
children: t,
|
|
106
|
-
className:
|
|
106
|
+
className: r,
|
|
107
107
|
...a
|
|
108
108
|
}) => /* @__PURE__ */ e(
|
|
109
109
|
"div",
|
|
110
110
|
{
|
|
111
111
|
ref: n,
|
|
112
|
-
className: m("mt-auto", f.section(),
|
|
112
|
+
className: m("mt-auto", f.section(), r),
|
|
113
113
|
...a,
|
|
114
114
|
children: t
|
|
115
115
|
}
|
|
116
|
-
),
|
|
116
|
+
), G = ({
|
|
117
117
|
ref: n,
|
|
118
118
|
value: t,
|
|
119
|
-
icon:
|
|
119
|
+
icon: r,
|
|
120
120
|
activeIcon: a,
|
|
121
121
|
label: o,
|
|
122
|
-
tooltipContent:
|
|
122
|
+
tooltipContent: s,
|
|
123
123
|
disabled: i = !1,
|
|
124
124
|
className: d,
|
|
125
125
|
onClick: l,
|
|
@@ -131,15 +131,15 @@ const [O, y] = V("SideBar"), f = {
|
|
|
131
131
|
}), { collapsed: b, active: g, onActiveChange: v } = y({
|
|
132
132
|
consumerName: "SideBarItem",
|
|
133
133
|
contextRequired: !0
|
|
134
|
-
}), u = g === t, h = u ? a :
|
|
135
|
-
(
|
|
136
|
-
c || (l?.(
|
|
134
|
+
}), u = g === t, h = u ? a : r, I = s ?? o, L = S(
|
|
135
|
+
(k) => {
|
|
136
|
+
c || (l?.(k), v?.(t));
|
|
137
137
|
},
|
|
138
138
|
[c, l, v, t]
|
|
139
|
-
),
|
|
139
|
+
), V = /* @__PURE__ */ x(P, { children: [
|
|
140
140
|
/* @__PURE__ */ e(h, { size: 20 }),
|
|
141
141
|
o != null && /* @__PURE__ */ e("span", { className: "translate-x-8 truncate", children: o })
|
|
142
|
-
] }),
|
|
142
|
+
] }), j = /* @__PURE__ */ e(
|
|
143
143
|
"button",
|
|
144
144
|
{
|
|
145
145
|
ref: n,
|
|
@@ -152,24 +152,24 @@ const [O, y] = V("SideBar"), f = {
|
|
|
152
152
|
),
|
|
153
153
|
"aria-current": u ? "page" : void 0,
|
|
154
154
|
...p,
|
|
155
|
-
children:
|
|
155
|
+
children: V
|
|
156
156
|
}
|
|
157
157
|
);
|
|
158
158
|
return /* @__PURE__ */ x(N, { open: b ? void 0 : !1, children: [
|
|
159
|
-
/* @__PURE__ */ e(T, { asChild: !0, children:
|
|
159
|
+
/* @__PURE__ */ e(T, { asChild: !0, children: j }),
|
|
160
160
|
/* @__PURE__ */ e(w, { side: "right", sideOffset: 8, children: I })
|
|
161
161
|
] });
|
|
162
|
-
},
|
|
162
|
+
}, H = ({
|
|
163
163
|
className: n,
|
|
164
164
|
tooltipContent: t,
|
|
165
|
-
...
|
|
165
|
+
...r
|
|
166
166
|
}) => {
|
|
167
|
-
const { t: a } = A(), { collapsed: o, setCollapsed:
|
|
167
|
+
const { t: a } = A(), { collapsed: o, setCollapsed: s } = y({
|
|
168
168
|
consumerName: "SideBarCollapseToggle",
|
|
169
169
|
contextRequired: !0
|
|
170
170
|
}), i = S(() => {
|
|
171
|
-
|
|
172
|
-
}, [o,
|
|
171
|
+
s(!o);
|
|
172
|
+
}, [o, s]), d = o ? z : E, l = /* @__PURE__ */ e(
|
|
173
173
|
"button",
|
|
174
174
|
{
|
|
175
175
|
type: "button",
|
|
@@ -179,7 +179,7 @@ const [O, y] = V("SideBar"), f = {
|
|
|
179
179
|
n
|
|
180
180
|
),
|
|
181
181
|
"aria-label": a(o ? "components.sideBar.expandAriaLabel" : "components.sideBar.collapseAriaLabel"),
|
|
182
|
-
...
|
|
182
|
+
...r,
|
|
183
183
|
children: /* @__PURE__ */ e(d, { size: 20 })
|
|
184
184
|
}
|
|
185
185
|
), p = t ?? a("components.sideBar.collapseAriaLabel");
|
|
@@ -192,16 +192,16 @@ function $() {
|
|
|
192
192
|
return {
|
|
193
193
|
SideBar: D,
|
|
194
194
|
SideBarLeading: F,
|
|
195
|
-
SideBarTrailing:
|
|
196
|
-
SideBarItem:
|
|
197
|
-
SideBarCollapseToggle:
|
|
195
|
+
SideBarTrailing: W,
|
|
196
|
+
SideBarItem: G,
|
|
197
|
+
SideBarCollapseToggle: H
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
200
|
export {
|
|
201
201
|
D as SideBar,
|
|
202
|
-
|
|
203
|
-
|
|
202
|
+
H as SideBarCollapseToggle,
|
|
203
|
+
G as SideBarItem,
|
|
204
204
|
F as SideBarLeading,
|
|
205
|
-
|
|
205
|
+
W as SideBarTrailing,
|
|
206
206
|
$ as createSideBar
|
|
207
207
|
};
|
|
@@ -36,8 +36,8 @@ const N = g(
|
|
|
36
36
|
}
|
|
37
37
|
), V = (r) => {
|
|
38
38
|
const {
|
|
39
|
-
appearance:
|
|
40
|
-
className:
|
|
39
|
+
appearance: a,
|
|
40
|
+
className: n,
|
|
41
41
|
disabled: i = !1,
|
|
42
42
|
size: o = 48,
|
|
43
43
|
ref: c,
|
|
@@ -86,10 +86,10 @@ const N = g(
|
|
|
86
86
|
className: f(
|
|
87
87
|
N({
|
|
88
88
|
disabled: m,
|
|
89
|
-
appearance:
|
|
89
|
+
appearance: a,
|
|
90
90
|
size: o
|
|
91
91
|
}),
|
|
92
|
-
|
|
92
|
+
n
|
|
93
93
|
),
|
|
94
94
|
...l,
|
|
95
95
|
children: u
|
|
@@ -14,8 +14,8 @@ const s = 48, i = 4, W = ({
|
|
|
14
14
|
mergeWith: { disabled: h }
|
|
15
15
|
}), {
|
|
16
16
|
displayLabel: p,
|
|
17
|
-
r:
|
|
18
|
-
cx:
|
|
17
|
+
r: l,
|
|
18
|
+
cx: n,
|
|
19
19
|
cy: c,
|
|
20
20
|
trackDashArray: b,
|
|
21
21
|
progressDashArray: x,
|
|
@@ -54,9 +54,9 @@ const s = 48, i = 4, W = ({
|
|
|
54
54
|
/* @__PURE__ */ e(
|
|
55
55
|
"circle",
|
|
56
56
|
{
|
|
57
|
-
cx:
|
|
57
|
+
cx: n,
|
|
58
58
|
cy: c,
|
|
59
|
-
r:
|
|
59
|
+
r: l,
|
|
60
60
|
fill: "none",
|
|
61
61
|
stroke: "currentColor",
|
|
62
62
|
strokeLinecap: "round",
|
|
@@ -71,9 +71,9 @@ const s = 48, i = 4, W = ({
|
|
|
71
71
|
/* @__PURE__ */ e(
|
|
72
72
|
"circle",
|
|
73
73
|
{
|
|
74
|
-
cx:
|
|
74
|
+
cx: n,
|
|
75
75
|
cy: c,
|
|
76
|
-
r:
|
|
76
|
+
r: l,
|
|
77
77
|
fill: "none",
|
|
78
78
|
stroke: "currentColor",
|
|
79
79
|
strokeLinecap: "round",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TableBodyProps, TableCellProps, TableColGroupProps, TableColProps, TableHeaderCellProps, TableHeaderRowProps, TableHeaderProps, TableProps, TableRowProps, TableActionBarLeadingProps, TableActionBarProps, TableActionBarTrailingProps, TableCellContentProps, TableLoadingRowProps, TableRootProps, TableInfoIconProps, TableSortButtonProps, TableGroupHeaderRowProps } from './types';
|
|
1
|
+
import { TableBodyProps, TableCellProps, TableColGroupProps, TableColProps, TableHeaderCellProps, TableHeaderRowProps, TableHeaderProps, TableProps, TableRowProps, TableActionBarLeadingProps, TableActionBarProps, TableActionBarTrailingProps, TableCellItemProps, TableCellContentProps, TableCellContentTitleProps, TableCellContentDescriptionProps, TableCellContentRowProps, TableLoadingRowProps, TableRootProps, TableInfoIconProps, TableSortButtonProps, TableGroupHeaderRowProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Root table container component. Wraps a scrollable HTML `<div>` around the `Table` element.
|
|
4
4
|
*
|
|
@@ -63,9 +63,30 @@ export declare const TableGroupHeaderRow: ({ children, className, colSpan, ref,
|
|
|
63
63
|
*/
|
|
64
64
|
export declare const TableCell: ({ children, className, hideBelow, align, ref, ...props }: TableCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
65
65
|
/**
|
|
66
|
-
* Cell
|
|
66
|
+
* Cell item component. Root of the cell content composition.
|
|
67
|
+
* To be used inside a TableCell or inside a tanstack column render.
|
|
68
|
+
* Typically wraps a leading element (spot, icon or crypto-icon) followed by a
|
|
69
|
+
* TableCellContent.
|
|
67
70
|
*/
|
|
68
|
-
export declare const
|
|
71
|
+
export declare const TableCellItem: ({ className, align, children, ref, ...props }: TableCellItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
/**
|
|
73
|
+
* Cell content column. Stacks a TableCellContentTitle, TableCellContentDescription
|
|
74
|
+
* and/or TableCellContentRow.
|
|
75
|
+
*/
|
|
76
|
+
export declare const TableCellContent: ({ className, children, ref, ...props }: TableCellContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
/**
|
|
78
|
+
* Cell content title.
|
|
79
|
+
*/
|
|
80
|
+
export declare const TableCellContentTitle: ({ className, children, ref, ...props }: TableCellContentTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
81
|
+
/**
|
|
82
|
+
* Cell content description.
|
|
83
|
+
*/
|
|
84
|
+
export declare const TableCellContentDescription: ({ className, children, ref, ...props }: TableCellContentDescriptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
85
|
+
/**
|
|
86
|
+
* Cell content row. Use for more complex composition, e.g. a description
|
|
87
|
+
* alongside a Tag.
|
|
88
|
+
*/
|
|
89
|
+
export declare const TableCellContentRow: ({ className, children, ref, ...props }: TableCellContentRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
69
90
|
/**
|
|
70
91
|
* Table header cell component. Wraps the HTML `<th>` element.
|
|
71
92
|
* Use TableSortButton for sortable columns; other children are trailing content.
|