@ledgerhq/lumen-ui-react 0.1.61 → 0.1.63
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.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +80 -63
- package/dist/lib/Components/core/AddressInput/AddressInput.js +1 -1
- package/dist/lib/Components/core/AmountDisplay/AmountDisplay.js +1 -1
- package/dist/lib/Components/core/AmountInput/AmountInput.js +17 -17
- package/dist/lib/Components/core/AmountInput/useAmountInputValue/useAmountInputValue.js +3 -3
- package/dist/lib/Components/core/Avatar/Avatar.js +7 -7
- package/dist/lib/Components/core/Avatar/resolveAvatarColor.js +2 -2
- package/dist/lib/Components/core/AvatarButton/AvatarButton.js +2 -2
- package/dist/lib/Components/core/Banner/Banner.js +9 -9
- package/dist/lib/Components/core/Button/Button.js +4 -4
- package/dist/lib/Components/core/Card/Card.js +15 -15
- 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/ContentBanner/ContentBanner.js +1 -1
- package/dist/lib/Components/core/DataTable/DataTable.js +42 -42
- package/dist/lib/Components/core/Dialog/DialogHeader/DialogHeader.js +1 -1
- package/dist/lib/Components/core/Divider/Divider.js +4 -4
- package/dist/lib/Components/core/DotCount/DotCount.js +3 -3
- package/dist/lib/Components/core/DotIcon/DotIcon.js +11 -11
- package/dist/lib/Components/core/DotSymbol/DotSymbol.js +7 -7
- 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 +25 -23
- 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 +8 -8
- package/dist/lib/Components/core/MediaBanner/MediaBanner.js +4 -4
- package/dist/lib/Components/core/MediaCard/MediaCard.js +1 -1
- package/dist/lib/Components/core/MediaImage/MediaImage.js +5 -5
- package/dist/lib/Components/core/Menu/Menu.js +25 -25
- package/dist/lib/Components/core/NavBar/CoinCapsule.js +4 -4
- package/dist/lib/Components/core/NavBar/NavBar.js +3 -3
- package/dist/lib/Components/core/PageIndicator/PageIndicator.js +5 -5
- package/dist/lib/Components/core/Pagination/Pagination.js +1 -1
- package/dist/lib/Components/core/Popover/Popover.js +13 -13
- package/dist/lib/Components/core/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/lib/Components/core/SegmentedControl/SegmentedControl.js +80 -84
- package/dist/lib/Components/core/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/core/Select/Select.js +108 -107
- package/dist/lib/Components/core/SideBar/SideBar.js +33 -33
- package/dist/lib/Components/core/Spinner/Spinner.js +1 -1
- package/dist/lib/Components/core/Spot/Spot.js +13 -13
- 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 -62
- 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/Subheader/Subheader.d.ts.map +1 -1
- package/dist/lib/Components/core/Subheader/Subheader.js +33 -29
- package/dist/lib/Components/core/Table/Table.js +10 -10
- package/dist/lib/Components/core/ThemeProvider/ThemeProvider.js +6 -6
- package/dist/lib/Components/core/ThemeProvider/ThemeProvider.types.d.ts +1 -1
- package/dist/lib/Components/core/ThemeProvider/ThemeProvider.types.d.ts.map +1 -1
- 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 +3 -3
- 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 +7 -7
- package/dist/lib/Components/internal/BaseInput/BaseInput.js +22 -22
- package/dist/lib/Components/internal/BaseInput/BaseInputMultiline.js +12 -12
- package/dist/lib/Components/internal/BaseInput/useAutosizeTextarea/useAutosizeTextarea.js +4 -4
- package/dist/lib/Components/internal/BaseTag/BaseTag.js +4 -4
- package/dist/lib/Components/symbols/Icon/createIcon.js +3 -3
- package/dist/lib/Components/visualization/CartesianChart/CartesianChart.d.ts.map +1 -1
- package/dist/lib/Components/visualization/CartesianChart/CartesianChart.js +36 -35
- package/dist/lib/Components/visualization/CartesianChart/types.d.ts +1 -1
- package/dist/lib/Components/visualization/DonutChart/DonutChart.d.ts.map +1 -1
- package/dist/lib/Components/visualization/DonutChart/DonutChart.js +31 -31
- package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +2 -2
- package/dist/lib/Components/visualization/DonutChart/DonutRing.d.ts.map +1 -1
- package/dist/lib/Components/visualization/DonutChart/DonutRing.js +13 -12
- package/dist/lib/Components/visualization/DonutChart/types.d.ts +1 -1
- package/dist/lib/Components/visualization/Legend/Legend.d.ts +1 -1
- package/dist/lib/Components/visualization/Legend/Legend.d.ts.map +1 -1
- package/dist/lib/Components/visualization/Legend/Legend.js +6 -10
- package/dist/lib/Components/visualization/Legend/types.d.ts +2 -2
- package/dist/lib/Components/visualization/LineChart/LineChart.d.ts +1 -1
- package/dist/lib/Components/visualization/LineChart/LineChart.d.ts.map +1 -1
- package/dist/lib/Components/visualization/LineChart/LineChart.js +90 -84
- package/dist/lib/Components/visualization/LineChart/types.d.ts +1 -1
- package/dist/lib/Components/visualization/LineChart/utils.d.ts +2 -1
- package/dist/lib/Components/visualization/LineChart/utils.d.ts.map +1 -1
- package/dist/lib/Components/visualization/LineChart/utils.js +23 -22
- package/dist/lib/Components/visualization/config.d.ts +0 -3
- package/dist/lib/Components/visualization/config.d.ts.map +1 -1
- package/dist/lib/Components/visualization/config.js +3 -6
- package/dist/libs/utils-shared/dist/index.js +353 -140
- package/dist/package.json +4 -6
- package/dist/translations/index.d.ts +3 -0
- package/dist/translations/index.d.ts.map +1 -0
- package/dist/{i18n → translations}/languages.d.ts +0 -5
- package/dist/translations/languages.d.ts.map +1 -0
- package/dist/{i18n → translations}/languages.js +1 -2
- package/dist/{i18n → translations}/locales/en.json.d.ts +11 -0
- package/dist/{i18n → translations}/locales/en.json.js +2 -2
- package/dist/translations/translations.d.ts +727 -0
- package/dist/translations/translations.d.ts.map +1 -0
- package/dist/translations/translations.js +22 -0
- package/package.json +4 -6
- package/dist/_virtual/dynamic-import-helper.js +0 -9
- package/dist/i18n/I18nProvider.d.ts +0 -8
- package/dist/i18n/I18nProvider.d.ts.map +0 -1
- package/dist/i18n/I18nProvider.js +0 -14
- package/dist/i18n/i18n.d.ts +0 -12
- package/dist/i18n/i18n.d.ts.map +0 -1
- package/dist/i18n/i18n.js +0 -42
- package/dist/i18n/index.d.ts +0 -4
- package/dist/i18n/index.d.ts.map +0 -1
- package/dist/i18n/languages.d.ts.map +0 -1
- package/dist/i18n/useCommonTranslation.d.ts +0 -2
- package/dist/i18n/useCommonTranslation.d.ts.map +0 -1
- package/dist/i18n/useCommonTranslation.js +0 -6
- package/dist/node_modules/i18next/dist/esm/i18next.js +0 -1479
- package/dist/node_modules/react-i18next/dist/es/I18nextProvider.js +0 -19
- package/dist/node_modules/react-i18next/dist/es/context.js +0 -17
- package/dist/node_modules/react-i18next/dist/es/defaults.js +0 -22
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +0 -8
- package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +0 -11
- package/dist/node_modules/react-i18next/dist/es/unescape.js +0 -25
- package/dist/node_modules/react-i18next/dist/es/useTranslation.js +0 -65
- package/dist/node_modules/react-i18next/dist/es/utils.js +0 -57
- /package/dist/{i18n → translations}/locales/de.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/de.json.js +0 -0
- /package/dist/{i18n → translations}/locales/es.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/es.json.js +0 -0
- /package/dist/{i18n → translations}/locales/fr.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/fr.json.js +0 -0
- /package/dist/{i18n → translations}/locales/ja.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/ja.json.js +0 -0
- /package/dist/{i18n → translations}/locales/ko.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/ko.json.js +0 -0
- /package/dist/{i18n → translations}/locales/pt.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/pt.json.js +0 -0
- /package/dist/{i18n → translations}/locales/ru.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/ru.json.js +0 -0
- /package/dist/{i18n → translations}/locales/th.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/th.json.js +0 -0
- /package/dist/{i18n → translations}/locales/tr.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/tr.json.js +0 -0
- /package/dist/{i18n → translations}/locales/zh.json.d.ts +0 -0
- /package/dist/{i18n → translations}/locales/zh.json.js +0 -0
|
@@ -3,8 +3,8 @@ import { createSafeContext as m, DisabledProvider as g, cn as o, getButtonA11yPr
|
|
|
3
3
|
import { cva as v } from "class-variance-authority";
|
|
4
4
|
import { useMemo as h } from "react";
|
|
5
5
|
import { ChevronUp as N } from "../../symbols/icons/ChevronUp.js";
|
|
6
|
-
import { ChevronDown as
|
|
7
|
-
const
|
|
6
|
+
import { ChevronDown as k } from "../../symbols/icons/ChevronDown.js";
|
|
7
|
+
const w = ({
|
|
8
8
|
type: r,
|
|
9
9
|
expanded: t,
|
|
10
10
|
onClick: a,
|
|
@@ -83,7 +83,7 @@ const k = ({
|
|
|
83
83
|
...p
|
|
84
84
|
}) => {
|
|
85
85
|
const u = h(
|
|
86
|
-
() =>
|
|
86
|
+
() => w({
|
|
87
87
|
type: a,
|
|
88
88
|
expanded: e,
|
|
89
89
|
onClick: d,
|
|
@@ -143,7 +143,7 @@ const k = ({
|
|
|
143
143
|
t,
|
|
144
144
|
l && /* @__PURE__ */ f(b, { children: [
|
|
145
145
|
d && /* @__PURE__ */ n(N, { className: "text-muted", size: 20 }),
|
|
146
|
-
!d && /* @__PURE__ */ n(
|
|
146
|
+
!d && /* @__PURE__ */ n(k, { className: "text-muted", size: 20 })
|
|
147
147
|
] })
|
|
148
148
|
]
|
|
149
149
|
}
|
|
@@ -207,7 +207,7 @@ const k = ({
|
|
|
207
207
|
children: t
|
|
208
208
|
}
|
|
209
209
|
);
|
|
210
|
-
},
|
|
210
|
+
}, J = ({
|
|
211
211
|
ref: r,
|
|
212
212
|
children: t,
|
|
213
213
|
className: a,
|
|
@@ -230,7 +230,7 @@ const k = ({
|
|
|
230
230
|
children: t
|
|
231
231
|
}
|
|
232
232
|
);
|
|
233
|
-
},
|
|
233
|
+
}, L = ({
|
|
234
234
|
ref: r,
|
|
235
235
|
children: t,
|
|
236
236
|
className: a,
|
|
@@ -253,7 +253,7 @@ const k = ({
|
|
|
253
253
|
children: t
|
|
254
254
|
}
|
|
255
255
|
);
|
|
256
|
-
},
|
|
256
|
+
}, M = ({
|
|
257
257
|
ref: r,
|
|
258
258
|
children: t,
|
|
259
259
|
className: a,
|
|
@@ -289,7 +289,7 @@ const k = ({
|
|
|
289
289
|
appearance: "plain"
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
),
|
|
292
|
+
), S = ({
|
|
293
293
|
ref: r,
|
|
294
294
|
children: t,
|
|
295
295
|
className: a,
|
|
@@ -322,7 +322,7 @@ const k = ({
|
|
|
322
322
|
) })
|
|
323
323
|
}
|
|
324
324
|
);
|
|
325
|
-
},
|
|
325
|
+
}, U = ({
|
|
326
326
|
ref: r,
|
|
327
327
|
children: t,
|
|
328
328
|
className: a,
|
|
@@ -339,13 +339,13 @@ const k = ({
|
|
|
339
339
|
export {
|
|
340
340
|
P as Card,
|
|
341
341
|
B as CardContent,
|
|
342
|
-
|
|
342
|
+
L as CardContentDescription,
|
|
343
343
|
I as CardContentRow,
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
344
|
+
J as CardContentTitle,
|
|
345
|
+
S as CardFooter,
|
|
346
|
+
U as CardFooterActions,
|
|
347
347
|
T as CardHeader,
|
|
348
348
|
z as CardLeading,
|
|
349
|
-
|
|
350
|
-
|
|
349
|
+
M as CardTrailing,
|
|
350
|
+
w as resolveCardInnerContext
|
|
351
351
|
};
|
|
@@ -4,6 +4,8 @@ import { CardButtonProps } from './types';
|
|
|
4
4
|
*
|
|
5
5
|
* It supports different appearances. takes full width by default. The chevron can be hidden if needed.
|
|
6
6
|
*
|
|
7
|
+
* @deprecated Use Card instead.
|
|
8
|
+
*
|
|
7
9
|
* @see {@link https://ldls.vercel.app/?path=/docs/react-cardbutton--docs Guidelines}
|
|
8
10
|
*
|
|
9
11
|
* @warning The `className` prop should only be used for layout adjustments like margins or positioning.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardButton.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/CardButton/CardButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAkB/C
|
|
1
|
+
{"version":3,"file":"CardButton.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/CardButton/CardButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAkB/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,UAAU,GAAI,yGAUxB,eAAe,4CAqCjB,CAAC"}
|
|
@@ -18,8 +18,8 @@ const h = f(
|
|
|
18
18
|
), w = ({
|
|
19
19
|
ref: i,
|
|
20
20
|
className: o,
|
|
21
|
-
appearance:
|
|
22
|
-
icon:
|
|
21
|
+
appearance: d,
|
|
22
|
+
icon: l,
|
|
23
23
|
title: n,
|
|
24
24
|
description: t,
|
|
25
25
|
hideChevron: r,
|
|
@@ -29,14 +29,14 @@ const h = f(
|
|
|
29
29
|
const c = m({
|
|
30
30
|
consumerName: "CardButton",
|
|
31
31
|
mergeWith: { disabled: b }
|
|
32
|
-
}), s =
|
|
32
|
+
}), s = l;
|
|
33
33
|
return /* @__PURE__ */ a(
|
|
34
34
|
"button",
|
|
35
35
|
{
|
|
36
36
|
ref: i,
|
|
37
37
|
className: p(
|
|
38
38
|
h({
|
|
39
|
-
appearance:
|
|
39
|
+
appearance: d
|
|
40
40
|
}),
|
|
41
41
|
o
|
|
42
42
|
),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import { cn as a } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
-
import { useCommonTranslation as m } from "../../../../
|
|
3
|
+
import { useCommonTranslation as m } from "../../../../translations/translations.js";
|
|
4
4
|
import { Close as p } from "../../symbols/icons/Close.js";
|
|
5
5
|
import { InteractiveIcon as d } from "../InteractiveIcon/InteractiveIcon.js";
|
|
6
6
|
const C = ({
|
|
@@ -2,14 +2,14 @@ import { jsx as a, jsxs as d } from "react/jsx-runtime";
|
|
|
2
2
|
import { createSafeContext as w, cn as R } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { flexRender as m } from "@tanstack/react-table";
|
|
4
4
|
import { useCallback as x, Fragment as B } from "react";
|
|
5
|
-
import { TableRoot as N, Table as k, TableLoadingRow as y, TableColGroup as H, TableCol as S, TableHeader as G, TableHeaderRow as v, TableHeaderCell as q, TableSortButton as I, TableBody as b, TableGroupHeaderRow as
|
|
6
|
-
import { SearchInput as
|
|
5
|
+
import { TableRoot as N, Table as k, TableLoadingRow as y, TableColGroup as H, TableCol as S, TableHeader as G, TableHeaderRow as v, TableHeaderCell as q, TableSortButton as I, TableBody as b, TableGroupHeaderRow as F, TableRow as M, TableCell as P } from "../Table/Table.js";
|
|
6
|
+
import { SearchInput as V } from "../SearchInput/SearchInput.js";
|
|
7
7
|
const [j, i] = w("DataTableContext"), Y = ({
|
|
8
8
|
table: l,
|
|
9
9
|
appearance: n = "no-background",
|
|
10
|
-
paginationMode:
|
|
10
|
+
paginationMode: t = "none",
|
|
11
11
|
loading: e = !1,
|
|
12
|
-
onScrollBottom:
|
|
12
|
+
onScrollBottom: o,
|
|
13
13
|
onRowClick: r,
|
|
14
14
|
getRowProps: c,
|
|
15
15
|
groupBy: s,
|
|
@@ -26,11 +26,11 @@ const [j, i] = w("DataTableContext"), Y = ({
|
|
|
26
26
|
value: {
|
|
27
27
|
hideHeader: T,
|
|
28
28
|
stickyHeader: p,
|
|
29
|
-
paginationMode:
|
|
29
|
+
paginationMode: t,
|
|
30
30
|
table: l,
|
|
31
31
|
appearance: n,
|
|
32
32
|
loading: e,
|
|
33
|
-
onScrollBottom:
|
|
33
|
+
onScrollBottom: o,
|
|
34
34
|
onRowClick: r,
|
|
35
35
|
getRowProps: c,
|
|
36
36
|
groupBy: s,
|
|
@@ -44,12 +44,12 @@ const [j, i] = w("DataTableContext"), Y = ({
|
|
|
44
44
|
contextRequired: !0
|
|
45
45
|
});
|
|
46
46
|
return /* @__PURE__ */ a(H, { children: l.getVisibleLeafColumns().map((n) => {
|
|
47
|
-
const
|
|
47
|
+
const t = n.columnDef.meta;
|
|
48
48
|
return /* @__PURE__ */ a(
|
|
49
49
|
S,
|
|
50
50
|
{
|
|
51
|
-
hideBelow:
|
|
52
|
-
className:
|
|
51
|
+
hideBelow: t?.hideBelow,
|
|
52
|
+
className: t?.className
|
|
53
53
|
},
|
|
54
54
|
n.id
|
|
55
55
|
);
|
|
@@ -57,13 +57,13 @@ const [j, i] = w("DataTableContext"), Y = ({
|
|
|
57
57
|
}, z = ({
|
|
58
58
|
className: l,
|
|
59
59
|
ref: n,
|
|
60
|
-
...
|
|
60
|
+
...t
|
|
61
61
|
}) => {
|
|
62
|
-
const { table: e, stickyHeader:
|
|
62
|
+
const { table: e, stickyHeader: o } = i({
|
|
63
63
|
consumerName: "DataTableHeader",
|
|
64
64
|
contextRequired: !0
|
|
65
65
|
});
|
|
66
|
-
return /* @__PURE__ */ a(G, { ref: n, className: l, ...
|
|
66
|
+
return /* @__PURE__ */ a(G, { ref: n, className: l, ...t, children: e.getHeaderGroups().map((r) => /* @__PURE__ */ a(v, { stickyHeader: o, children: r.headers.map((c) => {
|
|
67
67
|
const s = c.column.columnDef.meta;
|
|
68
68
|
return /* @__PURE__ */ a(
|
|
69
69
|
q,
|
|
@@ -91,10 +91,10 @@ const [j, i] = w("DataTableContext"), Y = ({
|
|
|
91
91
|
c.id
|
|
92
92
|
);
|
|
93
93
|
}) }, r.id)) });
|
|
94
|
-
}, Z = ({ className: l, ref: n, ...
|
|
94
|
+
}, Z = ({ className: l, ref: n, ...t }) => {
|
|
95
95
|
const {
|
|
96
96
|
appearance: e,
|
|
97
|
-
paginationMode:
|
|
97
|
+
paginationMode: o,
|
|
98
98
|
hideHeader: r,
|
|
99
99
|
loading: c,
|
|
100
100
|
onScrollBottom: s,
|
|
@@ -111,70 +111,70 @@ const [j, i] = w("DataTableContext"), Y = ({
|
|
|
111
111
|
loading: c,
|
|
112
112
|
onScrollBottom: s,
|
|
113
113
|
className: l,
|
|
114
|
-
...
|
|
114
|
+
...t,
|
|
115
115
|
children: [
|
|
116
116
|
/* @__PURE__ */ d(k, { children: [
|
|
117
117
|
/* @__PURE__ */ a(L, {}),
|
|
118
118
|
!r && /* @__PURE__ */ a(z, {}),
|
|
119
119
|
u ? /* @__PURE__ */ a(J, {}) : /* @__PURE__ */ a(A, {})
|
|
120
120
|
] }),
|
|
121
|
-
|
|
121
|
+
o === "infinite-scroll" && /* @__PURE__ */ a(y, {})
|
|
122
122
|
]
|
|
123
123
|
}
|
|
124
124
|
);
|
|
125
|
-
}, A = ({ className: l, ref: n, ...
|
|
125
|
+
}, A = ({ className: l, ref: n, ...t }) => {
|
|
126
126
|
const { table: e } = i({
|
|
127
127
|
consumerName: "DataTableBody",
|
|
128
128
|
contextRequired: !0
|
|
129
129
|
});
|
|
130
|
-
return /* @__PURE__ */ a(b, { ref: n, className: l, ...
|
|
130
|
+
return /* @__PURE__ */ a(b, { ref: n, className: l, ...t, children: e.getRowModel().rows.map((o) => /* @__PURE__ */ a(g, { row: o }, o.id)) });
|
|
131
131
|
}, E = (l, n) => {
|
|
132
|
-
const
|
|
132
|
+
const t = [];
|
|
133
133
|
let e = null;
|
|
134
|
-
for (const
|
|
135
|
-
const r = n(
|
|
136
|
-
(!e || e.key !== r) && (e = { key: r, rows: [], count: 0 },
|
|
134
|
+
for (const o of l) {
|
|
135
|
+
const r = n(o);
|
|
136
|
+
(!e || e.key !== r) && (e = { key: r, rows: [], count: 0 }, t.push(e)), e.rows.push(o), e.count++;
|
|
137
137
|
}
|
|
138
|
-
return
|
|
138
|
+
return t;
|
|
139
139
|
}, J = ({
|
|
140
140
|
className: l,
|
|
141
141
|
ref: n,
|
|
142
|
-
...
|
|
142
|
+
...t
|
|
143
143
|
}) => {
|
|
144
|
-
const { table: e, groupBy:
|
|
144
|
+
const { table: e, groupBy: o, renderGroupHeader: r } = i({
|
|
145
145
|
consumerName: "DataTableGroupedBody",
|
|
146
146
|
contextRequired: !0
|
|
147
147
|
}), c = E(
|
|
148
148
|
e.getRowModel().rows,
|
|
149
|
-
|
|
149
|
+
o
|
|
150
150
|
);
|
|
151
|
-
return /* @__PURE__ */ a(b, { ref: n, className: l, ...
|
|
152
|
-
/* @__PURE__ */ a(
|
|
151
|
+
return /* @__PURE__ */ a(b, { ref: n, className: l, ...t, children: c.map((s) => /* @__PURE__ */ d(B, { children: [
|
|
152
|
+
/* @__PURE__ */ a(F, { colSpan: s.rows[0].getVisibleCells().length, children: r ? r({ row: s.rows[0], count: s.count }) : s.key }),
|
|
153
153
|
s.rows.map((u) => /* @__PURE__ */ a(g, { row: u }, u.id))
|
|
154
154
|
] }, s.key)) });
|
|
155
155
|
}, g = ({ row: l }) => {
|
|
156
|
-
const { onRowClick: n, getRowProps:
|
|
156
|
+
const { onRowClick: n, getRowProps: t } = i({
|
|
157
157
|
consumerName: "DataTableRow",
|
|
158
158
|
contextRequired: !0
|
|
159
159
|
}), e = !!n;
|
|
160
160
|
return /* @__PURE__ */ a(
|
|
161
|
-
|
|
161
|
+
M,
|
|
162
162
|
{
|
|
163
|
-
...
|
|
163
|
+
...t?.(l),
|
|
164
164
|
clickable: e,
|
|
165
165
|
onClick: e ? () => n?.(l) : void 0,
|
|
166
166
|
role: e ? "button" : void 0,
|
|
167
|
-
children: l.getVisibleCells().map((
|
|
168
|
-
const r =
|
|
167
|
+
children: l.getVisibleCells().map((o) => {
|
|
168
|
+
const r = o.column.columnDef.meta;
|
|
169
169
|
return /* @__PURE__ */ a(
|
|
170
|
-
|
|
170
|
+
P,
|
|
171
171
|
{
|
|
172
172
|
align: r?.align,
|
|
173
173
|
hideBelow: r?.hideBelow,
|
|
174
174
|
className: r?.className,
|
|
175
|
-
children: m(
|
|
175
|
+
children: m(o.column.columnDef.cell, o.getContext())
|
|
176
176
|
},
|
|
177
|
-
|
|
177
|
+
o.id
|
|
178
178
|
);
|
|
179
179
|
})
|
|
180
180
|
}
|
|
@@ -183,19 +183,19 @@ const [j, i] = w("DataTableContext"), Y = ({
|
|
|
183
183
|
onChange: l,
|
|
184
184
|
...n
|
|
185
185
|
}) => {
|
|
186
|
-
const { table:
|
|
186
|
+
const { table: t } = i({
|
|
187
187
|
consumerName: "DataTableGlobalSearchInput",
|
|
188
188
|
contextRequired: !0
|
|
189
189
|
}), e = x(
|
|
190
|
-
(
|
|
191
|
-
|
|
190
|
+
(o) => {
|
|
191
|
+
t.setGlobalFilter(o.target.value), l?.(o);
|
|
192
192
|
},
|
|
193
|
-
[
|
|
193
|
+
[t, l]
|
|
194
194
|
);
|
|
195
195
|
return /* @__PURE__ */ a(
|
|
196
|
-
|
|
196
|
+
V,
|
|
197
197
|
{
|
|
198
|
-
value:
|
|
198
|
+
value: t.getState().globalFilter ?? "",
|
|
199
199
|
onChange: e,
|
|
200
200
|
...n
|
|
201
201
|
}
|
|
@@ -3,7 +3,7 @@ import { cn as s } from "../../../../../libs/utils-shared/dist/index.js";
|
|
|
3
3
|
import * as h from "@radix-ui/react-dialog";
|
|
4
4
|
import { cva as u } from "class-variance-authority";
|
|
5
5
|
import { DialogClose as N } from "../DialogClose/DialogClose.js";
|
|
6
|
-
import { useCommonTranslation as x } from "../../../../../
|
|
6
|
+
import { useCommonTranslation as x } from "../../../../../translations/translations.js";
|
|
7
7
|
import { IconButton as f } from "../../IconButton/IconButton.js";
|
|
8
8
|
import { ArrowLeft as b } from "../../../symbols/icons/ArrowLeft.js";
|
|
9
9
|
import { Close as v } from "../../../symbols/icons/Close.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { cn as a } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
const d = ({
|
|
4
4
|
ref: o,
|
|
5
5
|
className: t,
|
|
6
6
|
orientation: r = "horizontal",
|
|
7
7
|
...e
|
|
8
|
-
}) => /* @__PURE__ */
|
|
8
|
+
}) => /* @__PURE__ */ l(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
ref: o,
|
|
12
12
|
role: "separator",
|
|
13
13
|
"aria-orientation": r,
|
|
14
|
-
className:
|
|
14
|
+
className: a(
|
|
15
15
|
"border-muted-subtle",
|
|
16
16
|
r === "horizontal" ? "w-full border-t" : "h-full border-l",
|
|
17
17
|
t
|
|
@@ -45,7 +45,7 @@ const h = m(
|
|
|
45
45
|
disabled: !1
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
function
|
|
48
|
+
function N({
|
|
49
49
|
value: e,
|
|
50
50
|
size: t = "md",
|
|
51
51
|
max: b = 99,
|
|
@@ -86,7 +86,7 @@ function y({
|
|
|
86
86
|
}
|
|
87
87
|
);
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
N.displayName = "DotCount";
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
N as DotCount
|
|
92
92
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import { useDisabledContext as x, DisabledProvider as v, cn as i } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
-
import { cva as
|
|
4
|
-
import { useMemo as
|
|
5
|
-
const
|
|
3
|
+
import { cva as d } from "class-variance-authority";
|
|
4
|
+
import { useMemo as N } from "react";
|
|
5
|
+
const z = d("relative inline-flex w-fit", {
|
|
6
6
|
variants: {
|
|
7
7
|
disabled: {
|
|
8
8
|
true: "opacity-30",
|
|
9
9
|
false: ""
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
}), g =
|
|
12
|
+
}), g = d(
|
|
13
13
|
"absolute z-10 box-content flex items-center justify-center overflow-hidden border-base-inverted",
|
|
14
14
|
{
|
|
15
15
|
variants: {
|
|
@@ -60,15 +60,15 @@ const N = c("relative inline-flex w-fit", {
|
|
|
60
60
|
children: s,
|
|
61
61
|
icon: t,
|
|
62
62
|
appearance: o,
|
|
63
|
-
pin:
|
|
64
|
-
size:
|
|
65
|
-
shape:
|
|
63
|
+
pin: r = "bottom-end",
|
|
64
|
+
size: a = 20,
|
|
65
|
+
shape: c = "circle",
|
|
66
66
|
className: l,
|
|
67
67
|
disabled: m = !1,
|
|
68
68
|
ref: p,
|
|
69
69
|
...b
|
|
70
70
|
}) => {
|
|
71
|
-
const u =
|
|
71
|
+
const u = N(() => y(r), [r]), f = x({
|
|
72
72
|
consumerName: "DotIcon",
|
|
73
73
|
mergeWith: { disabled: m }
|
|
74
74
|
});
|
|
@@ -76,16 +76,16 @@ const N = c("relative inline-flex w-fit", {
|
|
|
76
76
|
"div",
|
|
77
77
|
{
|
|
78
78
|
ref: p,
|
|
79
|
-
className: i(
|
|
79
|
+
className: i(z({ disabled: f, className: l })),
|
|
80
80
|
...b,
|
|
81
81
|
children: [
|
|
82
82
|
/* @__PURE__ */ e("div", { className: "inline-flex", children: s }),
|
|
83
83
|
/* @__PURE__ */ e(
|
|
84
84
|
"div",
|
|
85
85
|
{
|
|
86
|
-
className: i(g({ size:
|
|
86
|
+
className: i(g({ size: a, shape: c, pin: r, appearance: o })),
|
|
87
87
|
style: u,
|
|
88
|
-
children: /* @__PURE__ */ e(t, { size: D[
|
|
88
|
+
children: /* @__PURE__ */ e(t, { size: D[a], className: "text-on-interactive" })
|
|
89
89
|
}
|
|
90
90
|
)
|
|
91
91
|
]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o, jsxs as x } from "react/jsx-runtime";
|
|
2
2
|
import { useDisabledContext as z, DisabledProvider as N, cn as v } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { cva as d } from "class-variance-authority";
|
|
4
4
|
import { useMemo as g, useState as q, useEffect as y } from "react";
|
|
@@ -60,11 +60,11 @@ const D = d("relative inline-flex w-fit", {
|
|
|
60
60
|
"top-end": ["top", "right"],
|
|
61
61
|
"bottom-start": ["bottom", "left"],
|
|
62
62
|
"bottom-end": ["bottom", "right"]
|
|
63
|
-
}, j = (
|
|
64
|
-
const [r, s] = V[
|
|
63
|
+
}, j = (a, t) => {
|
|
64
|
+
const [r, s] = V[a], e = E[t];
|
|
65
65
|
return { [r]: e, [s]: e };
|
|
66
66
|
}, w = ({
|
|
67
|
-
children:
|
|
67
|
+
children: a,
|
|
68
68
|
src: t,
|
|
69
69
|
alt: r,
|
|
70
70
|
pin: s = "bottom-end",
|
|
@@ -82,15 +82,15 @@ const D = d("relative inline-flex w-fit", {
|
|
|
82
82
|
});
|
|
83
83
|
return y(() => {
|
|
84
84
|
i(!1);
|
|
85
|
-
}, [t]), /* @__PURE__ */
|
|
85
|
+
}, [t]), /* @__PURE__ */ o(N, { value: { disabled: !1 }, children: /* @__PURE__ */ x(
|
|
86
86
|
"div",
|
|
87
87
|
{
|
|
88
88
|
ref: p,
|
|
89
89
|
className: v(D({ disabled: h, className: c })),
|
|
90
90
|
...u,
|
|
91
91
|
children: [
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ o("div", { className: "inline-flex", children: a }),
|
|
93
|
+
/* @__PURE__ */ o("div", { className: S({ size: e, shape: n, pin: s }), style: b, children: !f && /* @__PURE__ */ o(
|
|
94
94
|
"img",
|
|
95
95
|
{
|
|
96
96
|
alt: r,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LinkProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
* A customizable link component that supports
|
|
3
|
+
* A customizable link component that supports multiple color appearances, optional underline, sizes, icons, and external link handling.
|
|
4
4
|
*
|
|
5
5
|
* @see {@link https://ldls.vercel.app/?path=/docs/react-link--docs Guidelines}
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Link/Link.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Link/Link.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAoCzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,IAAI,GAAI,wHAYlB,SAAS,4CAmDX,CAAC"}
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l, Fragment as c } from "react/jsx-runtime";
|
|
2
|
-
import { useDisabledContext as
|
|
3
|
-
import { Slot as
|
|
4
|
-
import { cva as
|
|
2
|
+
import { useDisabledContext as h, cn as g } from "../../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { Slot as k } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva as N } from "class-variance-authority";
|
|
5
|
+
import { useCommonTranslation as y } from "../../../../translations/translations.js";
|
|
5
6
|
import { ExternalLink as z } from "../../symbols/icons/ExternalLink.js";
|
|
6
|
-
const w =
|
|
7
|
+
const w = N(
|
|
7
8
|
"inline-flex w-fit max-w-full items-center justify-center transition-colors focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-focus",
|
|
8
9
|
{
|
|
9
10
|
variants: {
|
|
10
11
|
appearance: {
|
|
11
12
|
base: "text-base hover:text-base-hover active:text-base-pressed",
|
|
12
13
|
accent: "text-interactive hover:text-interactive-hover active:text-interactive-pressed",
|
|
14
|
+
gray: "text-muted hover:text-muted-hover active:text-muted-pressed",
|
|
13
15
|
inherit: ""
|
|
14
16
|
},
|
|
15
17
|
size: {
|
|
16
18
|
sm: "gap-4 body-2-semi-bold",
|
|
17
19
|
md: "gap-8 body-1-semi-bold",
|
|
18
|
-
inherit: ""
|
|
20
|
+
inherit: "gap-4"
|
|
19
21
|
},
|
|
20
22
|
underline: {
|
|
21
23
|
true: "underline underline-offset-2",
|
|
@@ -36,46 +38,46 @@ const w = k(
|
|
|
36
38
|
), V = ({
|
|
37
39
|
ref: d,
|
|
38
40
|
className: m,
|
|
39
|
-
children:
|
|
40
|
-
appearance:
|
|
41
|
+
children: r,
|
|
42
|
+
appearance: p,
|
|
41
43
|
size: i = "inherit",
|
|
42
|
-
underline:
|
|
43
|
-
icon:
|
|
44
|
+
underline: u = !0,
|
|
45
|
+
icon: f,
|
|
44
46
|
isExternal: n = !1,
|
|
45
47
|
asChild: t = !1,
|
|
46
48
|
disabled: b,
|
|
47
49
|
...v
|
|
48
50
|
}) => {
|
|
49
|
-
const
|
|
51
|
+
const { t: x } = y(), a = h({
|
|
50
52
|
consumerName: "Link",
|
|
51
53
|
mergeWith: { disabled: b }
|
|
52
|
-
}),
|
|
54
|
+
}), o = i ? {
|
|
53
55
|
sm: 16,
|
|
54
56
|
md: 20
|
|
55
|
-
}[i] : 20,
|
|
57
|
+
}[i] : 20, s = f;
|
|
56
58
|
return /* @__PURE__ */ e(
|
|
57
|
-
t ?
|
|
59
|
+
t ? k : "a",
|
|
58
60
|
{
|
|
59
61
|
ref: d,
|
|
60
|
-
className:
|
|
62
|
+
className: g(
|
|
61
63
|
w({
|
|
62
|
-
appearance:
|
|
64
|
+
appearance: p,
|
|
63
65
|
size: i,
|
|
64
|
-
underline:
|
|
65
|
-
disabled:
|
|
66
|
+
underline: u,
|
|
67
|
+
disabled: a
|
|
66
68
|
}),
|
|
67
69
|
m
|
|
68
70
|
),
|
|
69
|
-
"aria-disabled":
|
|
71
|
+
"aria-disabled": a || void 0,
|
|
70
72
|
target: n && !t ? "_blank" : void 0,
|
|
71
73
|
rel: n && !t ? "noopener noreferrer" : void 0,
|
|
72
74
|
...v,
|
|
73
|
-
children: t ?
|
|
74
|
-
|
|
75
|
-
/* @__PURE__ */ e("span", { className: "min-w-0 truncate", children:
|
|
75
|
+
children: t ? r : /* @__PURE__ */ l(c, { children: [
|
|
76
|
+
s && /* @__PURE__ */ e(s, { size: o }),
|
|
77
|
+
/* @__PURE__ */ e("span", { className: "min-w-0 truncate", children: r }),
|
|
76
78
|
n && /* @__PURE__ */ l(c, { children: [
|
|
77
|
-
/* @__PURE__ */ e(z, { size:
|
|
78
|
-
/* @__PURE__ */ e("span", { className: "sr-only", children: "
|
|
79
|
+
/* @__PURE__ */ e(z, { size: o, "aria-hidden": "true" }),
|
|
80
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: x("components.link.opensInNewTabAriaLabel") })
|
|
79
81
|
] })
|
|
80
82
|
] })
|
|
81
83
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Link/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,SAAS,GAAG;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/core/Link/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,SAAS,GAAG;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;IACpD;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9D;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC"}
|