@ledgerhq/lumen-ui-react 0.1.61 → 0.1.62
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 +79 -62
- package/dist/lib/Components/core/AmountInput/AmountInput.js +16 -16
- package/dist/lib/Components/core/AmountInput/useAmountInputValue/useAmountInputValue.js +3 -3
- package/dist/lib/Components/core/Avatar/resolveAvatarColor.js +2 -2
- package/dist/lib/Components/core/AvatarButton/AvatarButton.js +6 -6
- package/dist/lib/Components/core/Banner/Banner.js +8 -8
- package/dist/lib/Components/core/Button/Button.js +10 -10
- package/dist/lib/Components/core/Card/Card.js +6 -6
- package/dist/lib/Components/core/CardButton/CardButton.d.ts +2 -0
- package/dist/lib/Components/core/CardButton/CardButton.d.ts.map +1 -1
- package/dist/lib/Components/core/CardButton/CardButton.js +4 -4
- package/dist/lib/Components/core/DataTable/DataTable.js +7 -7
- package/dist/lib/Components/core/Divider/Divider.js +8 -8
- package/dist/lib/Components/core/DotCount/DotCount.js +3 -3
- package/dist/lib/Components/core/DotIcon/DotIcon.js +9 -9
- package/dist/lib/Components/core/DotSymbol/DotSymbol.js +16 -16
- package/dist/lib/Components/core/Link/Link.d.ts +1 -1
- package/dist/lib/Components/core/Link/Link.d.ts.map +1 -1
- package/dist/lib/Components/core/Link/Link.js +21 -20
- package/dist/lib/Components/core/Link/types.d.ts +1 -1
- package/dist/lib/Components/core/Link/types.d.ts.map +1 -1
- package/dist/lib/Components/core/ListItem/ListItem.js +4 -4
- package/dist/lib/Components/core/MediaBanner/MediaBanner.js +19 -19
- package/dist/lib/Components/core/MediaButton/MediaButton.js +2 -2
- package/dist/lib/Components/core/Menu/Menu.js +30 -30
- package/dist/lib/Components/core/NavBar/CoinCapsule.js +8 -8
- package/dist/lib/Components/core/Pagination/Pagination.js +14 -14
- package/dist/lib/Components/core/Popover/Popover.js +6 -6
- package/dist/lib/Components/core/SearchInput/SearchInput.js +5 -5
- package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +19 -19
- package/dist/lib/Components/core/Select/Select.js +8 -8
- package/dist/lib/Components/core/SideBar/SideBar.js +14 -14
- package/dist/lib/Components/core/Spinner/Spinner.js +4 -4
- package/dist/lib/Components/core/Spot/Spot.js +9 -9
- package/dist/lib/Components/core/Stepper/Stepper.d.ts +4 -3
- package/dist/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
- package/dist/lib/Components/core/Stepper/Stepper.js +137 -65
- package/dist/lib/Components/core/Stepper/types.d.ts +12 -2
- package/dist/lib/Components/core/Stepper/types.d.ts.map +1 -1
- package/dist/lib/Components/core/Switch/Switch.js +5 -5
- package/dist/lib/Components/core/Table/Table.js +9 -9
- package/dist/lib/Components/core/TileButton/TileButton.js +8 -8
- package/dist/lib/Components/core/Timeline/Timeline.d.ts +54 -0
- package/dist/lib/Components/core/Timeline/Timeline.d.ts.map +1 -0
- package/dist/lib/Components/core/Timeline/Timeline.js +228 -0
- package/dist/lib/Components/core/Timeline/index.d.ts +3 -0
- package/dist/lib/Components/core/Timeline/index.d.ts.map +1 -0
- package/dist/lib/Components/core/Timeline/types.d.ts +148 -0
- package/dist/lib/Components/core/Timeline/types.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/Toast.d.ts +25 -0
- package/dist/lib/Components/core/Toast/Toast.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/Toast.js +68 -0
- package/dist/lib/Components/core/Toast/Toaster.d.ts +27 -0
- package/dist/lib/Components/core/Toast/Toaster.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/Toaster.js +92 -0
- package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts +15 -0
- package/dist/lib/Components/core/Toast/hooks/useToastCollapse.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/hooks/useToastCollapse.js +15 -0
- package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts +24 -0
- package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/hooks/useToastViewportPause.js +27 -0
- package/dist/lib/Components/core/Toast/index.d.ts +5 -0
- package/dist/lib/Components/core/Toast/index.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/styles.d.ts +20 -0
- package/dist/lib/Components/core/Toast/styles.d.ts.map +1 -0
- package/dist/lib/Components/core/Toast/styles.js +77 -0
- package/dist/lib/Components/core/Toast/types.d.ts +81 -0
- package/dist/lib/Components/core/Toast/types.d.ts.map +1 -0
- package/dist/lib/Components/core/Trend/Trend.js +2 -2
- package/dist/lib/Components/core/index.d.ts +2 -0
- package/dist/lib/Components/core/index.d.ts.map +1 -1
- package/dist/lib/Components/internal/BaseButton/BaseButton.js +2 -2
- package/dist/lib/Components/internal/BaseInput/BaseInput.js +9 -9
- package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.js +12 -12
- package/dist/lib/Components/internal/BaseTag/BaseTag.js +8 -8
- package/dist/lib/Components/symbols/Icon/Icon.js +4 -4
- package/dist/lib/Components/symbols/Icon/createIcon.js +8 -8
- package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +6 -6
- package/dist/lib/Components/visualization/DonutChart/donutSizeContext.js +2 -2
- package/dist/lib/Components/visualization/Legend/Legend.js +8 -8
- package/dist/libs/utils-shared/dist/index.js +306 -141
- package/dist/package.json +1 -1
- package/package.json +3 -3
|
@@ -8,8 +8,8 @@ import { Divider as w } from "../Divider/Divider.js";
|
|
|
8
8
|
import { ChevronRight as z } from "../../symbols/icons/ChevronRight.js";
|
|
9
9
|
import { MenuRoot as G } from "../../../../node_modules/@base-ui/react/esm/menu/root/MenuRoot.js";
|
|
10
10
|
import { MenuTrigger as P } from "../../../../node_modules/@base-ui/react/esm/menu/trigger/MenuTrigger.js";
|
|
11
|
-
import { MenuPortal as
|
|
12
|
-
import { MenuPositioner as
|
|
11
|
+
import { MenuPortal as C } from "../../../../node_modules/@base-ui/react/esm/menu/portal/MenuPortal.js";
|
|
12
|
+
import { MenuPositioner as N } from "../../../../node_modules/@base-ui/react/esm/menu/positioner/MenuPositioner.js";
|
|
13
13
|
import { MenuPopup as v } from "../../../../node_modules/@base-ui/react/esm/menu/popup/MenuPopup.js";
|
|
14
14
|
import { MenuItem as T } from "../../../../node_modules/@base-ui/react/esm/menu/item/MenuItem.js";
|
|
15
15
|
import { MenuCheckboxItem as I } from "../../../../node_modules/@base-ui/react/esm/menu/checkbox-item/MenuCheckboxItem.js";
|
|
@@ -17,9 +17,9 @@ import { MenuCheckboxItemIndicator as $ } from "../../../../node_modules/@base-u
|
|
|
17
17
|
import { MenuRadioItem as j } from "../../../../node_modules/@base-ui/react/esm/menu/radio-item/MenuRadioItem.js";
|
|
18
18
|
import { MenuRadioItemIndicator as W } from "../../../../node_modules/@base-ui/react/esm/menu/radio-item-indicator/MenuRadioItemIndicator.js";
|
|
19
19
|
import { MenuGroupLabel as D } from "../../../../node_modules/@base-ui/react/esm/menu/group-label/MenuGroupLabel.js";
|
|
20
|
-
import { MenuGroup as
|
|
21
|
-
import { MenuSubmenuRoot as
|
|
22
|
-
import { MenuSubmenuTrigger as
|
|
20
|
+
import { MenuGroup as L } from "../../../../node_modules/@base-ui/react/esm/menu/group/MenuGroup.js";
|
|
21
|
+
import { MenuSubmenuRoot as O } from "../../../../node_modules/@base-ui/react/esm/menu/submenu-root/MenuSubmenuRoot.js";
|
|
22
|
+
import { MenuSubmenuTrigger as V } from "../../../../node_modules/@base-ui/react/esm/menu/submenu-trigger/MenuSubmenuTrigger.js";
|
|
23
23
|
import { MenuRadioGroup as q } from "../../../../node_modules/@base-ui/react/esm/menu/radio-group/MenuRadioGroup.js";
|
|
24
24
|
const k = M(
|
|
25
25
|
[
|
|
@@ -95,10 +95,10 @@ const he = ({
|
|
|
95
95
|
}
|
|
96
96
|
);
|
|
97
97
|
function fe({ ...e }) {
|
|
98
|
-
return /* @__PURE__ */ t(
|
|
98
|
+
return /* @__PURE__ */ t(L, { "data-slot": "menu-group", ...e });
|
|
99
99
|
}
|
|
100
100
|
function ge({ ...e }) {
|
|
101
|
-
return /* @__PURE__ */ t(
|
|
101
|
+
return /* @__PURE__ */ t(O, { ...e });
|
|
102
102
|
}
|
|
103
103
|
function E({
|
|
104
104
|
onValueChange: e,
|
|
@@ -119,7 +119,7 @@ const Me = ({
|
|
|
119
119
|
children: o,
|
|
120
120
|
...n
|
|
121
121
|
}) => /* @__PURE__ */ p(
|
|
122
|
-
|
|
122
|
+
V,
|
|
123
123
|
{
|
|
124
124
|
ref: e,
|
|
125
125
|
"data-slot": "menu-sub-trigger",
|
|
@@ -130,7 +130,7 @@ const Me = ({
|
|
|
130
130
|
/* @__PURE__ */ t(z, { size: 20, className: "ml-auto text-muted" })
|
|
131
131
|
]
|
|
132
132
|
}
|
|
133
|
-
), xe = ({ className: e, children: a }) => /* @__PURE__ */ t(
|
|
133
|
+
), xe = ({ className: e, children: a }) => /* @__PURE__ */ t(C, { children: /* @__PURE__ */ t(N, { className: "z-menu", side: "right", sideOffset: 4, children: /* @__PURE__ */ t(
|
|
134
134
|
v,
|
|
135
135
|
{
|
|
136
136
|
"data-slot": "menu-sub-content",
|
|
@@ -138,7 +138,7 @@ const Me = ({
|
|
|
138
138
|
onClick: (o) => o.stopPropagation(),
|
|
139
139
|
children: a
|
|
140
140
|
}
|
|
141
|
-
) }) }),
|
|
141
|
+
) }) }), Ce = ({
|
|
142
142
|
side: e = "bottom",
|
|
143
143
|
sideOffset: a = 4,
|
|
144
144
|
align: o = "start",
|
|
@@ -146,8 +146,8 @@ const Me = ({
|
|
|
146
146
|
sticky: i = !0,
|
|
147
147
|
className: s,
|
|
148
148
|
children: m
|
|
149
|
-
}) => /* @__PURE__ */ t(
|
|
150
|
-
|
|
149
|
+
}) => /* @__PURE__ */ t(C, { children: /* @__PURE__ */ t(
|
|
150
|
+
N,
|
|
151
151
|
{
|
|
152
152
|
className: "z-menu",
|
|
153
153
|
side: e,
|
|
@@ -165,7 +165,7 @@ const Me = ({
|
|
|
165
165
|
}
|
|
166
166
|
)
|
|
167
167
|
}
|
|
168
|
-
) }),
|
|
168
|
+
) }), Ne = ({
|
|
169
169
|
ref: e,
|
|
170
170
|
className: a,
|
|
171
171
|
appearance: o = "base",
|
|
@@ -175,17 +175,17 @@ const Me = ({
|
|
|
175
175
|
closeOnClick: m = !0,
|
|
176
176
|
...d
|
|
177
177
|
}) => {
|
|
178
|
-
const
|
|
178
|
+
const l = b({
|
|
179
179
|
consumerName: "MenuItem",
|
|
180
180
|
mergeWith: { disabled: n }
|
|
181
181
|
});
|
|
182
|
-
return /* @__PURE__ */ t(h, { value: { disabled:
|
|
182
|
+
return /* @__PURE__ */ t(h, { value: { disabled: l }, children: /* @__PURE__ */ t(
|
|
183
183
|
T,
|
|
184
184
|
{
|
|
185
185
|
ref: e,
|
|
186
186
|
"data-slot": "menu-item",
|
|
187
187
|
label: s,
|
|
188
|
-
disabled:
|
|
188
|
+
disabled: l,
|
|
189
189
|
closeOnClick: m,
|
|
190
190
|
className: r(c({ appearance: o }), a),
|
|
191
191
|
onClick: i,
|
|
@@ -201,14 +201,14 @@ const Me = ({
|
|
|
201
201
|
onCheckedChange: s,
|
|
202
202
|
disabled: m,
|
|
203
203
|
label: d,
|
|
204
|
-
closeOnClick:
|
|
204
|
+
closeOnClick: l,
|
|
205
205
|
...f
|
|
206
206
|
}) => {
|
|
207
|
-
const
|
|
207
|
+
const u = b({
|
|
208
208
|
consumerName: "MenuCheckboxItem",
|
|
209
209
|
mergeWith: { disabled: m }
|
|
210
210
|
});
|
|
211
|
-
return /* @__PURE__ */ t(h, { value: { disabled:
|
|
211
|
+
return /* @__PURE__ */ t(h, { value: { disabled: u }, children: /* @__PURE__ */ p(
|
|
212
212
|
I,
|
|
213
213
|
{
|
|
214
214
|
ref: e,
|
|
@@ -216,14 +216,14 @@ const Me = ({
|
|
|
216
216
|
label: d,
|
|
217
217
|
checked: n,
|
|
218
218
|
defaultChecked: i,
|
|
219
|
-
disabled:
|
|
220
|
-
closeOnClick:
|
|
219
|
+
disabled: u,
|
|
220
|
+
closeOnClick: l ?? !1,
|
|
221
221
|
className: r(c(), a),
|
|
222
222
|
onCheckedChange: s,
|
|
223
223
|
...f,
|
|
224
224
|
children: [
|
|
225
225
|
o,
|
|
226
|
-
/* @__PURE__ */ t("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ t($, { children: /* @__PURE__ */ t(x, { disabled:
|
|
226
|
+
/* @__PURE__ */ t("span", { className: "ml-auto flex size-24 items-center justify-center", children: /* @__PURE__ */ t($, { children: /* @__PURE__ */ t(x, { disabled: u, size: 24, className: "text-active" }) }) })
|
|
227
227
|
]
|
|
228
228
|
}
|
|
229
229
|
) });
|
|
@@ -236,10 +236,10 @@ const Me = ({
|
|
|
236
236
|
onCheckedChange: s,
|
|
237
237
|
disabled: m,
|
|
238
238
|
label: d,
|
|
239
|
-
closeOnClick:
|
|
239
|
+
closeOnClick: l,
|
|
240
240
|
...f
|
|
241
241
|
}) => {
|
|
242
|
-
const
|
|
242
|
+
const u = b({
|
|
243
243
|
consumerName: "MenuSwitchItem",
|
|
244
244
|
mergeWith: { disabled: m }
|
|
245
245
|
}), [g, S] = R({
|
|
@@ -247,15 +247,15 @@ const Me = ({
|
|
|
247
247
|
onChange: s,
|
|
248
248
|
defaultProp: i ?? !1
|
|
249
249
|
});
|
|
250
|
-
return /* @__PURE__ */ t(h, { value: { disabled:
|
|
250
|
+
return /* @__PURE__ */ t(h, { value: { disabled: u }, children: /* @__PURE__ */ p(
|
|
251
251
|
I,
|
|
252
252
|
{
|
|
253
253
|
ref: e,
|
|
254
254
|
"data-slot": "menu-switch-item",
|
|
255
255
|
label: d,
|
|
256
256
|
checked: g,
|
|
257
|
-
disabled:
|
|
258
|
-
closeOnClick:
|
|
257
|
+
disabled: u,
|
|
258
|
+
closeOnClick: l ?? !1,
|
|
259
259
|
className: r(c(), a),
|
|
260
260
|
onCheckedChange: S,
|
|
261
261
|
...f,
|
|
@@ -265,7 +265,7 @@ const Me = ({
|
|
|
265
265
|
y,
|
|
266
266
|
{
|
|
267
267
|
selected: g,
|
|
268
|
-
disabled:
|
|
268
|
+
disabled: u,
|
|
269
269
|
"aria-hidden": !0,
|
|
270
270
|
tabIndex: -1
|
|
271
271
|
}
|
|
@@ -313,9 +313,9 @@ function Re() {
|
|
|
313
313
|
export {
|
|
314
314
|
be as Menu,
|
|
315
315
|
ve as MenuCheckboxItem,
|
|
316
|
-
|
|
316
|
+
Ce as MenuContent,
|
|
317
317
|
fe as MenuGroup,
|
|
318
|
-
|
|
318
|
+
Ne as MenuItem,
|
|
319
319
|
ke as MenuLabel,
|
|
320
320
|
E as MenuRadioGroup,
|
|
321
321
|
F as MenuRadioItem,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as a, 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
|
-
ticker:
|
|
6
|
-
leadingContent:
|
|
7
|
-
className:
|
|
8
|
-
}) => /* @__PURE__ */
|
|
5
|
+
ticker: n,
|
|
6
|
+
leadingContent: t,
|
|
7
|
+
className: r
|
|
8
|
+
}) => /* @__PURE__ */ a(
|
|
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
|
+
r
|
|
15
15
|
),
|
|
16
16
|
"data-slot": "coin-capsule",
|
|
17
17
|
children: [
|
|
18
|
-
/* @__PURE__ */ e("span", { className: "flex size-24 shrink-0 items-center justify-center", children:
|
|
19
|
-
/* @__PURE__ */ e("span", { className: "body-1 text-base select-none", children:
|
|
18
|
+
/* @__PURE__ */ e("span", { className: "flex size-24 shrink-0 items-center justify-center", children: t }),
|
|
19
|
+
/* @__PURE__ */ e("span", { className: "body-1 text-base select-none", children: n })
|
|
20
20
|
]
|
|
21
21
|
}
|
|
22
22
|
);
|
|
@@ -4,30 +4,30 @@ import { getPaginationRange as h } from "./getPaginationRange.js";
|
|
|
4
4
|
import { useCommonTranslation as v } from "../../../../i18n/useCommonTranslation.js";
|
|
5
5
|
import { IconButton as s } from "../IconButton/IconButton.js";
|
|
6
6
|
import { ChevronLeft as y } from "../../symbols/icons/ChevronLeft.js";
|
|
7
|
-
import { Button as
|
|
8
|
-
import { ChevronRight as
|
|
7
|
+
import { Button as L } from "../Button/Button.js";
|
|
8
|
+
import { ChevronRight as k } from "../../symbols/icons/ChevronRight.js";
|
|
9
9
|
const R = ({
|
|
10
10
|
page: p,
|
|
11
|
-
totalPages:
|
|
11
|
+
totalPages: e,
|
|
12
12
|
onPageChange: r,
|
|
13
13
|
siblingCount: c = 1,
|
|
14
14
|
className: l,
|
|
15
15
|
ref: m,
|
|
16
16
|
...u
|
|
17
17
|
}) => {
|
|
18
|
-
const { t:
|
|
19
|
-
if (
|
|
18
|
+
const { t: i } = v();
|
|
19
|
+
if (e <= 0)
|
|
20
20
|
return null;
|
|
21
|
-
const a = Math.min(Math.max(p, 1),
|
|
21
|
+
const a = Math.min(Math.max(p, 1), e), b = Math.max(c, 0), d = h(
|
|
22
22
|
a,
|
|
23
|
-
|
|
23
|
+
e,
|
|
24
24
|
b
|
|
25
25
|
);
|
|
26
26
|
return /* @__PURE__ */ g(
|
|
27
27
|
"nav",
|
|
28
28
|
{
|
|
29
29
|
ref: m,
|
|
30
|
-
"aria-label":
|
|
30
|
+
"aria-label": i("components.pagination.navigationAriaLabel"),
|
|
31
31
|
className: x("flex items-center gap-8 overflow-x-auto p-4", l),
|
|
32
32
|
...u,
|
|
33
33
|
children: [
|
|
@@ -39,7 +39,7 @@ const R = ({
|
|
|
39
39
|
size: "sm",
|
|
40
40
|
appearance: "gray",
|
|
41
41
|
disabled: a <= 1,
|
|
42
|
-
"aria-label":
|
|
42
|
+
"aria-label": i("components.pagination.previousPageAriaLabel"),
|
|
43
43
|
onClick: () => r(a - 1)
|
|
44
44
|
}
|
|
45
45
|
),
|
|
@@ -56,13 +56,13 @@ const R = ({
|
|
|
56
56
|
);
|
|
57
57
|
const t = n === a;
|
|
58
58
|
return /* @__PURE__ */ o(
|
|
59
|
-
|
|
59
|
+
L,
|
|
60
60
|
{
|
|
61
61
|
type: "button",
|
|
62
62
|
size: "sm",
|
|
63
63
|
appearance: t ? "gray" : "no-background",
|
|
64
64
|
className: "shrink-0",
|
|
65
|
-
"aria-label":
|
|
65
|
+
"aria-label": i("components.pagination.pageAriaLabel", {
|
|
66
66
|
page: n
|
|
67
67
|
}),
|
|
68
68
|
"aria-current": t ? "page" : void 0,
|
|
@@ -76,11 +76,11 @@ const R = ({
|
|
|
76
76
|
s,
|
|
77
77
|
{
|
|
78
78
|
type: "button",
|
|
79
|
-
icon:
|
|
79
|
+
icon: k,
|
|
80
80
|
size: "sm",
|
|
81
81
|
appearance: "gray",
|
|
82
|
-
disabled: a >=
|
|
83
|
-
"aria-label":
|
|
82
|
+
disabled: a >= e,
|
|
83
|
+
"aria-label": i("components.pagination.nextPageAriaLabel"),
|
|
84
84
|
onClick: () => r(a + 1)
|
|
85
85
|
}
|
|
86
86
|
)
|
|
@@ -43,7 +43,7 @@ const [b, y] = l("Popover"), C = v(
|
|
|
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
|
+
), B = ({
|
|
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
|
+
) }), L = ({
|
|
64
64
|
handle: o,
|
|
65
65
|
payload: a,
|
|
66
66
|
render: r,
|
|
@@ -117,10 +117,10 @@ const [b, y] = l("Popover"), C = v(
|
|
|
117
117
|
}
|
|
118
118
|
)
|
|
119
119
|
] });
|
|
120
|
-
},
|
|
120
|
+
}, V = c;
|
|
121
121
|
export {
|
|
122
|
-
|
|
122
|
+
B as Popover,
|
|
123
123
|
O as PopoverContent,
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
L as PopoverTrigger,
|
|
125
|
+
V as createPopoverHandle
|
|
126
126
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { cn as t } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
-
import { cva as
|
|
3
|
+
import { cva as e } from "class-variance-authority";
|
|
4
4
|
import { BaseInput as c } from "../../internal/BaseInput/BaseInput.js";
|
|
5
5
|
import { Search as d } from "../../symbols/icons/Search.js";
|
|
6
|
-
const m =
|
|
6
|
+
const m = e("", {
|
|
7
7
|
variants: {
|
|
8
8
|
appearance: {
|
|
9
9
|
plain: "",
|
|
@@ -13,7 +13,7 @@ const m = n("", {
|
|
|
13
13
|
defaultVariants: {
|
|
14
14
|
appearance: "plain"
|
|
15
15
|
}
|
|
16
|
-
}), l =
|
|
16
|
+
}), l = e("", {
|
|
17
17
|
variants: {
|
|
18
18
|
appearance: {
|
|
19
19
|
plain: "",
|
|
@@ -24,7 +24,7 @@ const m = n("", {
|
|
|
24
24
|
appearance: "plain"
|
|
25
25
|
}
|
|
26
26
|
}), x = ({
|
|
27
|
-
ref:
|
|
27
|
+
ref: n,
|
|
28
28
|
appearance: a = "plain",
|
|
29
29
|
className: s,
|
|
30
30
|
inputClassName: p,
|
|
@@ -33,7 +33,7 @@ const m = n("", {
|
|
|
33
33
|
}) => /* @__PURE__ */ r(
|
|
34
34
|
c,
|
|
35
35
|
{
|
|
36
|
-
ref:
|
|
36
|
+
ref: n,
|
|
37
37
|
prefix: /* @__PURE__ */ r(
|
|
38
38
|
d,
|
|
39
39
|
{
|
|
@@ -89,7 +89,7 @@ function x({
|
|
|
89
89
|
icon: t,
|
|
90
90
|
label: r,
|
|
91
91
|
visible: n,
|
|
92
|
-
onClick:
|
|
92
|
+
onClick: s
|
|
93
93
|
}) {
|
|
94
94
|
return /* @__PURE__ */ o(
|
|
95
95
|
"button",
|
|
@@ -99,7 +99,7 @@ function x({
|
|
|
99
99
|
"aria-hidden": !n,
|
|
100
100
|
tabIndex: -1,
|
|
101
101
|
disabled: !n,
|
|
102
|
-
onClick:
|
|
102
|
+
onClick: s,
|
|
103
103
|
className: f.arrow({ visible: n, side: e }),
|
|
104
104
|
children: /* @__PURE__ */ o(t, { size: 20 })
|
|
105
105
|
}
|
|
@@ -110,12 +110,12 @@ function D({
|
|
|
110
110
|
tabLayout: t,
|
|
111
111
|
className: r,
|
|
112
112
|
selectedIndex: n,
|
|
113
|
-
children:
|
|
113
|
+
children: s,
|
|
114
114
|
...d
|
|
115
115
|
}) {
|
|
116
|
-
const l = v(null), { canScrollLeft: c, canScrollRight:
|
|
116
|
+
const l = v(null), { canScrollLeft: c, canScrollRight: a, scrollBy: u } = j(l);
|
|
117
117
|
z(l, n);
|
|
118
|
-
const i = c ||
|
|
118
|
+
const i = c || a ? B(c, a) : void 0;
|
|
119
119
|
return /* @__PURE__ */ b(
|
|
120
120
|
"div",
|
|
121
121
|
{
|
|
@@ -131,7 +131,7 @@ function D({
|
|
|
131
131
|
ref: l,
|
|
132
132
|
className: "scrollbar-none overflow-x-auto",
|
|
133
133
|
style: i ? { maskImage: i, WebkitMaskImage: i } : void 0,
|
|
134
|
-
children:
|
|
134
|
+
children: s
|
|
135
135
|
}
|
|
136
136
|
),
|
|
137
137
|
/* @__PURE__ */ o(
|
|
@@ -150,7 +150,7 @@ function D({
|
|
|
150
150
|
side: "right",
|
|
151
151
|
icon: L,
|
|
152
152
|
label: "Scroll right",
|
|
153
|
-
visible:
|
|
153
|
+
visible: a,
|
|
154
154
|
onClick: () => u("right")
|
|
155
155
|
}
|
|
156
156
|
)
|
|
@@ -182,15 +182,15 @@ function P({
|
|
|
182
182
|
selectedIndex: r,
|
|
183
183
|
children: n
|
|
184
184
|
}) {
|
|
185
|
-
const
|
|
186
|
-
ref:
|
|
185
|
+
const s = v(null), { pill: d, isReady: l } = I({
|
|
186
|
+
ref: s,
|
|
187
187
|
selectedIndex: r,
|
|
188
188
|
children: n
|
|
189
189
|
});
|
|
190
190
|
return /* @__PURE__ */ b(
|
|
191
191
|
"div",
|
|
192
192
|
{
|
|
193
|
-
ref:
|
|
193
|
+
ref: s,
|
|
194
194
|
role: "radiogroup",
|
|
195
195
|
"aria-disabled": t,
|
|
196
196
|
className: f.root({ tabLayout: e }),
|
|
@@ -213,17 +213,17 @@ function $({
|
|
|
213
213
|
children: t,
|
|
214
214
|
icon: r,
|
|
215
215
|
trailingContent: n,
|
|
216
|
-
onClick:
|
|
216
|
+
onClick: s,
|
|
217
217
|
className: d,
|
|
218
218
|
disabled: l,
|
|
219
219
|
...c
|
|
220
220
|
}) {
|
|
221
221
|
const {
|
|
222
|
-
selectedValue:
|
|
222
|
+
selectedValue: a,
|
|
223
223
|
onSelectedChange: u,
|
|
224
224
|
disabled: i,
|
|
225
225
|
tabLayout: S
|
|
226
|
-
} = k(), g =
|
|
226
|
+
} = k(), g = a === e, p = w(() => !!(l || i), [l, i]);
|
|
227
227
|
return /* @__PURE__ */ o(
|
|
228
228
|
"button",
|
|
229
229
|
{
|
|
@@ -233,7 +233,7 @@ function $({
|
|
|
233
233
|
"aria-disabled": p,
|
|
234
234
|
disabled: p,
|
|
235
235
|
onClick: (C) => {
|
|
236
|
-
p || (u(e),
|
|
236
|
+
p || (u(e), s?.(C));
|
|
237
237
|
},
|
|
238
238
|
className: h(
|
|
239
239
|
f.item({ selected: g, disabled: p }),
|
|
@@ -254,14 +254,14 @@ function E({
|
|
|
254
254
|
onSelectedChange: t,
|
|
255
255
|
children: r,
|
|
256
256
|
className: n,
|
|
257
|
-
disabled:
|
|
257
|
+
disabled: s,
|
|
258
258
|
appearance: d = "background",
|
|
259
259
|
tabLayout: l = "fixed",
|
|
260
260
|
...c
|
|
261
261
|
}) {
|
|
262
|
-
const
|
|
262
|
+
const a = y({
|
|
263
263
|
consumerName: "SegmentedControl",
|
|
264
|
-
mergeWith: { disabled:
|
|
264
|
+
mergeWith: { disabled: s }
|
|
265
265
|
}), u = R(
|
|
266
266
|
e,
|
|
267
267
|
r
|
|
@@ -272,7 +272,7 @@ function E({
|
|
|
272
272
|
value: {
|
|
273
273
|
selectedValue: e,
|
|
274
274
|
onSelectedChange: (i) => t(i),
|
|
275
|
-
disabled:
|
|
275
|
+
disabled: a,
|
|
276
276
|
tabLayout: l
|
|
277
277
|
},
|
|
278
278
|
children: /* @__PURE__ */ o(
|
|
@@ -287,7 +287,7 @@ function E({
|
|
|
287
287
|
P,
|
|
288
288
|
{
|
|
289
289
|
tabLayout: l,
|
|
290
|
-
disabled:
|
|
290
|
+
disabled: a,
|
|
291
291
|
selectedIndex: u,
|
|
292
292
|
children: r
|
|
293
293
|
}
|
|
@@ -36,8 +36,8 @@ function re({
|
|
|
36
36
|
defaultSearchValue: m,
|
|
37
37
|
onSearchValueChange: b,
|
|
38
38
|
open: y,
|
|
39
|
-
defaultOpen:
|
|
40
|
-
onOpenChange:
|
|
39
|
+
defaultOpen: C,
|
|
40
|
+
onOpenChange: v,
|
|
41
41
|
name: N,
|
|
42
42
|
required: w,
|
|
43
43
|
children: I
|
|
@@ -45,7 +45,7 @@ function re({
|
|
|
45
45
|
const V = G({
|
|
46
46
|
consumerName: "Select",
|
|
47
47
|
mergeWith: { disabled: r }
|
|
48
|
-
}), [h,
|
|
48
|
+
}), [h, L] = W(
|
|
49
49
|
{
|
|
50
50
|
prop: o,
|
|
51
51
|
defaultProp: a ?? null,
|
|
@@ -54,7 +54,7 @@ function re({
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
), {
|
|
57
|
-
isGrouped:
|
|
57
|
+
isGrouped: T,
|
|
58
58
|
groupedItems: R,
|
|
59
59
|
filteredItemsForRoot: q,
|
|
60
60
|
resolvedSearchValue: P,
|
|
@@ -79,18 +79,18 @@ function re({
|
|
|
79
79
|
inputValue: P,
|
|
80
80
|
onInputValueChange: D,
|
|
81
81
|
value: h,
|
|
82
|
-
onValueChange: (d) =>
|
|
82
|
+
onValueChange: (d) => L(f(d)),
|
|
83
83
|
isItemEqualToValue: (d, E) => f(d) === f(E),
|
|
84
84
|
open: y,
|
|
85
|
-
defaultOpen:
|
|
86
|
-
onOpenChange:
|
|
85
|
+
defaultOpen: C,
|
|
86
|
+
onOpenChange: v,
|
|
87
87
|
name: N,
|
|
88
88
|
required: w,
|
|
89
89
|
disabled: V,
|
|
90
90
|
children: /* @__PURE__ */ t(
|
|
91
91
|
M,
|
|
92
92
|
{
|
|
93
|
-
value: { selectedValue: h, registerSearch: z, isGrouped:
|
|
93
|
+
value: { selectedValue: h, registerSearch: z, isGrouped: T, searchMounted: j },
|
|
94
94
|
children: I
|
|
95
95
|
}
|
|
96
96
|
)
|
|
@@ -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 R } from "react/jsx-runtime";
|
|
2
|
+
import { createSafeContext as V, 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
|
|
|
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,
|
|
10
|
+
const [O, L] = V("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",
|
|
@@ -128,43 +128,43 @@ const [O, y] = R("SideBar"), f = {
|
|
|
128
128
|
const c = q({
|
|
129
129
|
consumerName: "SideBarItem",
|
|
130
130
|
mergeWith: { disabled: i }
|
|
131
|
-
}), { collapsed: b, active: g, onActiveChange: v } =
|
|
131
|
+
}), { collapsed: b, active: g, onActiveChange: v } = L({
|
|
132
132
|
consumerName: "SideBarItem",
|
|
133
133
|
contextRequired: !0
|
|
134
|
-
}), u = g === t, h = u ? a : r,
|
|
135
|
-
(
|
|
136
|
-
c || (l?.(
|
|
134
|
+
}), u = g === t, h = u ? a : r, y = s ?? o, I = S(
|
|
135
|
+
(P) => {
|
|
136
|
+
c || (l?.(P), v?.(t));
|
|
137
137
|
},
|
|
138
138
|
[c, l, v, t]
|
|
139
|
-
),
|
|
139
|
+
), j = /* @__PURE__ */ x(R, { children: [
|
|
140
140
|
/* @__PURE__ */ e(h, { size: 20 }),
|
|
141
141
|
o != null && /* @__PURE__ */ e("span", { className: "translate-x-8 truncate", children: o })
|
|
142
|
-
] }),
|
|
142
|
+
] }), k = /* @__PURE__ */ e(
|
|
143
143
|
"button",
|
|
144
144
|
{
|
|
145
145
|
ref: n,
|
|
146
146
|
type: "button",
|
|
147
147
|
disabled: c,
|
|
148
|
-
onClick:
|
|
148
|
+
onClick: I,
|
|
149
149
|
className: m(
|
|
150
150
|
f.item({ active: u, disabled: c }),
|
|
151
151
|
d
|
|
152
152
|
),
|
|
153
153
|
"aria-current": u ? "page" : void 0,
|
|
154
154
|
...p,
|
|
155
|
-
children:
|
|
155
|
+
children: j
|
|
156
156
|
}
|
|
157
157
|
);
|
|
158
158
|
return /* @__PURE__ */ x(N, { open: b ? void 0 : !1, children: [
|
|
159
|
-
/* @__PURE__ */ e(T, { asChild: !0, children:
|
|
160
|
-
/* @__PURE__ */ e(w, { side: "right", sideOffset: 8, children:
|
|
159
|
+
/* @__PURE__ */ e(T, { asChild: !0, children: k }),
|
|
160
|
+
/* @__PURE__ */ e(w, { side: "right", sideOffset: 8, children: y })
|
|
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: s } =
|
|
167
|
+
const { t: a } = A(), { collapsed: o, setCollapsed: s } = L({
|
|
168
168
|
consumerName: "SideBarCollapseToggle",
|
|
169
169
|
contextRequired: !0
|
|
170
170
|
}), i = S(() => {
|
|
@@ -3,15 +3,15 @@ import { cn as s } from "../../../../libs/utils-shared/dist/index.js";
|
|
|
3
3
|
import { useCommonTranslation as a } from "../../../../i18n/useCommonTranslation.js";
|
|
4
4
|
const c = ({
|
|
5
5
|
ref: r,
|
|
6
|
-
className:
|
|
6
|
+
className: e,
|
|
7
7
|
size: n = 16,
|
|
8
|
-
...
|
|
8
|
+
...t
|
|
9
9
|
}) => {
|
|
10
10
|
const { t: i } = a();
|
|
11
11
|
return /* @__PURE__ */ o(
|
|
12
12
|
"svg",
|
|
13
13
|
{
|
|
14
|
-
className: s("shrink-0 animate-spin text-base",
|
|
14
|
+
className: s("shrink-0 animate-spin text-base", e),
|
|
15
15
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16
16
|
width: n,
|
|
17
17
|
height: n,
|
|
@@ -20,7 +20,7 @@ const c = ({
|
|
|
20
20
|
"aria-label": i("components.spinner.loadingAriaLabel"),
|
|
21
21
|
role: "img",
|
|
22
22
|
ref: r,
|
|
23
|
-
...
|
|
23
|
+
...t,
|
|
24
24
|
children: /* @__PURE__ */ o(
|
|
25
25
|
"path",
|
|
26
26
|
{
|