@ledgerhq/lumen-ui-react 0.0.58 → 0.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai-rules/RULES.md +12 -1
- package/dist/index.js +74 -66
- package/dist/lib/Components/Dialog/Dialog.js +9 -9
- package/dist/lib/Components/ListItem/ListItem.d.ts +76 -36
- package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/lib/Components/ListItem/ListItem.js +139 -46
- package/dist/lib/Components/ListItem/index.d.ts +1 -1
- package/dist/lib/Components/ListItem/index.d.ts.map +1 -1
- package/dist/lib/Components/ListItem/types.d.ts +114 -15
- package/dist/lib/Components/ListItem/types.d.ts.map +1 -1
- package/dist/lib/Components/Spot/types.d.ts +17 -10
- package/dist/lib/Components/Spot/types.d.ts.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +2 -2
package/ai-rules/RULES.md
CHANGED
|
@@ -211,7 +211,18 @@ import { ChevronRight, Settings } from '@ledgerhq/lumen-ui-react/symbols';
|
|
|
211
211
|
const InteractiveList = () => (
|
|
212
212
|
<div className='flex flex-col gap-2'>
|
|
213
213
|
{items.map((item) => (
|
|
214
|
-
<ListItem
|
|
214
|
+
<ListItem>
|
|
215
|
+
<ListItemLeading>
|
|
216
|
+
<ListItemSpot appearance='icon' icon={Settings} />
|
|
217
|
+
<ListItemContent>
|
|
218
|
+
<ListItemTitle>Simple composition</ListItemTitle>
|
|
219
|
+
<ListItemDescription>With description</ListItemDescription>
|
|
220
|
+
</ListItemContent>
|
|
221
|
+
</ListItemLeading>
|
|
222
|
+
<ListItemTrailing>
|
|
223
|
+
<ChevronRight />
|
|
224
|
+
</ListItemTrailing>
|
|
225
|
+
</ListItem>
|
|
215
226
|
))}
|
|
216
227
|
</div>
|
|
217
228
|
);
|
package/dist/index.js
CHANGED
|
@@ -1,82 +1,90 @@
|
|
|
1
|
-
import { AddressInput as
|
|
1
|
+
import { AddressInput as o } from "./lib/Components/AddressInput/AddressInput.js";
|
|
2
2
|
import { AmountInput as n } from "./lib/Components/AmountInput/AmountInput.js";
|
|
3
|
-
import { Banner as
|
|
4
|
-
import { BaseInput as
|
|
3
|
+
import { Banner as p } from "./lib/Components/Banner/Banner.js";
|
|
4
|
+
import { BaseInput as u } from "./lib/Components/BaseInput/BaseInput.js";
|
|
5
5
|
import { Button as a } from "./lib/Components/Button/Button.js";
|
|
6
6
|
import { BaseButton as l } from "./lib/Components/Button/BaseButton.js";
|
|
7
7
|
import { CardButton as g } from "./lib/Components/CardButton/CardButton.js";
|
|
8
|
-
import { Checkbox as
|
|
9
|
-
import { Dialog as
|
|
10
|
-
import { DialogHeader as
|
|
11
|
-
import { IconButton as
|
|
8
|
+
import { Checkbox as c } from "./lib/Components/Checkbox/Checkbox.js";
|
|
9
|
+
import { Dialog as s, DialogBody as M, DialogContent as L, DialogFooter as d, DialogTrigger as C } from "./lib/Components/Dialog/Dialog.js";
|
|
10
|
+
import { DialogHeader as B } from "./lib/Components/Dialog/DialogHeader/DialogHeader.js";
|
|
11
|
+
import { IconButton as D } from "./lib/Components/IconButton/IconButton.js";
|
|
12
12
|
import { InteractiveIcon as v } from "./lib/Components/InteractiveIcon/InteractiveIcon.js";
|
|
13
13
|
import { Link as P } from "./lib/Components/Link/Link.js";
|
|
14
|
-
import { ListItem as R } from "./lib/Components/ListItem/ListItem.js";
|
|
15
|
-
import { Menu as
|
|
16
|
-
import { SearchInput as
|
|
17
|
-
import { Select as
|
|
18
|
-
import { Skeleton as
|
|
19
|
-
import { Spot as
|
|
20
|
-
import { Subheader as
|
|
21
|
-
import { Switch as
|
|
22
|
-
import { Tag as
|
|
23
|
-
import { TextInput as
|
|
24
|
-
import { Tile as
|
|
25
|
-
import { Tooltip as
|
|
26
|
-
import { ThemeProvider as
|
|
14
|
+
import { ListItem as R, ListItemContent as w, ListItemDescription as y, ListItemIcon as F, ListItemLeading as H, ListItemSpot as j, ListItemTitle as q, ListItemTrailing as z, ListItemTruncate as E } from "./lib/Components/ListItem/ListItem.js";
|
|
15
|
+
import { Menu as K, MenuCheckboxItem as N, MenuContent as O, MenuGroup as Q, MenuItem as U, MenuLabel as V, MenuPortal as W, MenuRadioGroup as X, MenuRadioItem as Y, MenuSeparator as Z, MenuSub as _, MenuSubContent as $, MenuSubTrigger as ee, MenuTrigger as te } from "./lib/Components/Menu/Menu.js";
|
|
16
|
+
import { SearchInput as re } from "./lib/Components/SearchInput/SearchInput.js";
|
|
17
|
+
import { Select as me, SelectContent as pe, SelectGroup as ie, SelectItem as ue, SelectItemText as xe, SelectLabel as ae, SelectSeparator as fe, SelectTrigger as le } from "./lib/Components/Select/Select.js";
|
|
18
|
+
import { Skeleton as ge } from "./lib/Components/Skeleton/Skeleton.js";
|
|
19
|
+
import { Spot as ce } from "./lib/Components/Spot/Spot.js";
|
|
20
|
+
import { Subheader as se } from "./lib/Components/Subheader/Subheader.js";
|
|
21
|
+
import { Switch as Le } from "./lib/Components/Switch/Switch.js";
|
|
22
|
+
import { Tag as Ce } from "./lib/Components/Tag/Tag.js";
|
|
23
|
+
import { TextInput as Be } from "./lib/Components/TextInput/TextInput.js";
|
|
24
|
+
import { Tile as De } from "./lib/Components/Tile/Tile.js";
|
|
25
|
+
import { Tooltip as ve, TooltipContent as Ge, TooltipProvider as Pe, TooltipTrigger as Ae } from "./lib/Components/Tooltip/Tooltip.js";
|
|
26
|
+
import { ThemeProvider as we, useTheme as ye } from "./lib/Components/ThemeProvider/ThemeProvider.js";
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
o as AddressInput,
|
|
29
29
|
n as AmountInput,
|
|
30
|
-
|
|
30
|
+
p as Banner,
|
|
31
31
|
l as BaseButton,
|
|
32
|
-
|
|
32
|
+
u as BaseInput,
|
|
33
33
|
a as Button,
|
|
34
34
|
g as CardButton,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
c as Checkbox,
|
|
36
|
+
s as Dialog,
|
|
37
|
+
M as DialogBody,
|
|
38
|
+
L as DialogContent,
|
|
39
|
+
d as DialogFooter,
|
|
40
|
+
B as DialogHeader,
|
|
41
41
|
C as DialogTrigger,
|
|
42
|
-
|
|
42
|
+
D as IconButton,
|
|
43
43
|
v as InteractiveIcon,
|
|
44
44
|
P as Link,
|
|
45
45
|
R as ListItem,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
K as
|
|
55
|
-
N as
|
|
56
|
-
O as
|
|
57
|
-
Q as
|
|
58
|
-
U as
|
|
59
|
-
V as
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
te as
|
|
68
|
-
|
|
69
|
-
me as
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
46
|
+
w as ListItemContent,
|
|
47
|
+
y as ListItemDescription,
|
|
48
|
+
F as ListItemIcon,
|
|
49
|
+
H as ListItemLeading,
|
|
50
|
+
j as ListItemSpot,
|
|
51
|
+
q as ListItemTitle,
|
|
52
|
+
z as ListItemTrailing,
|
|
53
|
+
E as ListItemTruncate,
|
|
54
|
+
K as Menu,
|
|
55
|
+
N as MenuCheckboxItem,
|
|
56
|
+
O as MenuContent,
|
|
57
|
+
Q as MenuGroup,
|
|
58
|
+
U as MenuItem,
|
|
59
|
+
V as MenuLabel,
|
|
60
|
+
W as MenuPortal,
|
|
61
|
+
X as MenuRadioGroup,
|
|
62
|
+
Y as MenuRadioItem,
|
|
63
|
+
Z as MenuSeparator,
|
|
64
|
+
_ as MenuSub,
|
|
65
|
+
$ as MenuSubContent,
|
|
66
|
+
ee as MenuSubTrigger,
|
|
67
|
+
te as MenuTrigger,
|
|
68
|
+
re as SearchInput,
|
|
69
|
+
me as Select,
|
|
70
|
+
pe as SelectContent,
|
|
71
|
+
ie as SelectGroup,
|
|
72
|
+
ue as SelectItem,
|
|
73
|
+
xe as SelectItemText,
|
|
74
|
+
ae as SelectLabel,
|
|
75
|
+
fe as SelectSeparator,
|
|
76
|
+
le as SelectTrigger,
|
|
77
|
+
ge as Skeleton,
|
|
78
|
+
ce as Spot,
|
|
79
|
+
se as Subheader,
|
|
80
|
+
Le as Switch,
|
|
81
|
+
Ce as Tag,
|
|
82
|
+
Be as TextInput,
|
|
83
|
+
we as ThemeProvider,
|
|
84
|
+
De as Tile,
|
|
85
|
+
ve as Tooltip,
|
|
86
|
+
Ge as TooltipContent,
|
|
87
|
+
Pe as TooltipProvider,
|
|
88
|
+
Ae as TooltipTrigger,
|
|
89
|
+
ye as useTheme
|
|
82
90
|
};
|
|
@@ -3,7 +3,7 @@ import { cn as n } from "../../../libs/utils-shared/dist/index.js";
|
|
|
3
3
|
import * as r from "@radix-ui/react-dialog";
|
|
4
4
|
import { cva as c } from "class-variance-authority";
|
|
5
5
|
import * as i from "react";
|
|
6
|
-
const
|
|
6
|
+
const s = i.createContext({
|
|
7
7
|
height: "hug"
|
|
8
8
|
}), f = c(
|
|
9
9
|
[
|
|
@@ -24,7 +24,7 @@ const d = i.createContext({
|
|
|
24
24
|
}
|
|
25
25
|
);
|
|
26
26
|
function y({ height: a = "hug", ...t }) {
|
|
27
|
-
return /* @__PURE__ */ o(
|
|
27
|
+
return /* @__PURE__ */ o(s.Provider, { value: { height: a }, children: /* @__PURE__ */ o(r.Root, { "data-slot": "dialog", ...t }) });
|
|
28
28
|
}
|
|
29
29
|
function D({ ...a }) {
|
|
30
30
|
return /* @__PURE__ */ o(r.Trigger, { "data-slot": "dialog-trigger", ...a });
|
|
@@ -34,7 +34,7 @@ function m({
|
|
|
34
34
|
}) {
|
|
35
35
|
return /* @__PURE__ */ o(r.Portal, { "data-slot": "dialog-portal", ...a });
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const d = i.forwardRef(
|
|
38
38
|
({ className: a, ...t }, e) => /* @__PURE__ */ o(
|
|
39
39
|
r.Overlay,
|
|
40
40
|
{
|
|
@@ -48,15 +48,15 @@ const s = i.forwardRef(
|
|
|
48
48
|
}
|
|
49
49
|
)
|
|
50
50
|
);
|
|
51
|
-
|
|
52
|
-
function
|
|
51
|
+
d.displayName = "DialogOverlay";
|
|
52
|
+
function b({
|
|
53
53
|
className: a,
|
|
54
54
|
children: t,
|
|
55
55
|
...e
|
|
56
56
|
}) {
|
|
57
|
-
const { height: l } = i.useContext(
|
|
57
|
+
const { height: l } = i.useContext(s);
|
|
58
58
|
return /* @__PURE__ */ g(m, { "data-slot": "dialog-portal", children: [
|
|
59
|
-
/* @__PURE__ */ o(
|
|
59
|
+
/* @__PURE__ */ o(d, {}),
|
|
60
60
|
/* @__PURE__ */ o(
|
|
61
61
|
r.Content,
|
|
62
62
|
{
|
|
@@ -75,7 +75,7 @@ const u = i.forwardRef(
|
|
|
75
75
|
ref: l,
|
|
76
76
|
"data-slot": "dialog-body",
|
|
77
77
|
className: n(
|
|
78
|
-
"-mb-24 flex min-h-0 grow flex-col overflow-y-auto px-24 pb-24",
|
|
78
|
+
"-mb-24 flex min-h-0 grow basis-0 flex-col overflow-y-auto px-24 pb-24",
|
|
79
79
|
a
|
|
80
80
|
),
|
|
81
81
|
...e,
|
|
@@ -100,7 +100,7 @@ h.displayName = "DialogFooter";
|
|
|
100
100
|
export {
|
|
101
101
|
y as Dialog,
|
|
102
102
|
u as DialogBody,
|
|
103
|
-
|
|
103
|
+
b as DialogContent,
|
|
104
104
|
h as DialogFooter,
|
|
105
105
|
D as DialogTrigger
|
|
106
106
|
};
|
|
@@ -1,48 +1,88 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { ListItemSpotProps, ListItemTruncateProps } from './types';
|
|
2
3
|
/**
|
|
3
|
-
* A flexible list item component that
|
|
4
|
-
*
|
|
4
|
+
* A flexible list item component that provides a composable structure for displaying
|
|
5
|
+
* interactive list items with leading content, title, description, and trailing content.
|
|
5
6
|
*
|
|
6
7
|
* @see {@link https://ldls.vercel.app/?path=/docs/containment-listitem--docs Storybook}
|
|
7
8
|
* @see {@link https://ldls.vercel.app/?path=/docs/containment-listitem--docs#dos-and-donts Guidelines}
|
|
8
9
|
*
|
|
9
|
-
* @warning The `className` prop should only be used for layout adjustments like margins or positioning.
|
|
10
|
-
* Do not use it to modify the list item's core appearance (colors, padding, etc).
|
|
11
|
-
*
|
|
12
10
|
* @example
|
|
13
|
-
* // Basic item
|
|
14
|
-
* import { ListItem } from '@ledgerhq/lumen-ui-react';
|
|
15
|
-
*
|
|
16
|
-
* <ListItem
|
|
17
|
-
* title="Basic Item"
|
|
18
|
-
* description="Optional description"
|
|
19
|
-
* onClick={() => console.log('Clicked!')}
|
|
20
|
-
* />
|
|
21
|
-
*
|
|
22
|
-
* // Icon trailing content with leading Spot
|
|
23
|
-
* import { ListItem, Spot } from '@ledgerhq/lumen-ui-react';
|
|
24
|
-
* import { Wallet, Settings } from '@ledgerhq/lumen-ui-react/symbols';
|
|
25
|
-
*
|
|
26
|
-
* <ListItem
|
|
27
|
-
* title="Balance"
|
|
28
|
-
* leadingContent={<Spot appearance="icon" icon={Wallet} />}
|
|
29
|
-
* trailingContent={<Settings />}
|
|
30
|
-
* />
|
|
31
|
-
*
|
|
32
|
-
* // Chevron trailing content
|
|
33
|
-
* import { ListItem } from '@ledgerhq/lumen-ui-react';
|
|
34
|
-
* import { ChevronRight } from '@ledgerhq/lumen-ui-react/symbols';
|
|
35
11
|
*
|
|
36
|
-
* <ListItem
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
12
|
+
* <ListItem onClick={() => console.log('Clicked!')}>
|
|
13
|
+
* <ListItemLeading>
|
|
14
|
+
* <ListItemSpot appearance="icon" icon={Wallet} />
|
|
15
|
+
* <ListItemContent>
|
|
16
|
+
* <ListItemTitle>Balance</ListItemTitle>
|
|
17
|
+
* <ListItemDescription>Optional description</ListItemDescription>
|
|
18
|
+
* </ListItemContent>
|
|
19
|
+
* </ListItemLeading>
|
|
20
|
+
* <ListItemTrailing>
|
|
21
|
+
* <ChevronRight size={24} />
|
|
22
|
+
* </ListItemTrailing>
|
|
23
|
+
* </ListItem>
|
|
40
24
|
*/
|
|
41
25
|
export declare const ListItem: React.ForwardRefExoticComponent<{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
trailingContent?: React.ReactNode;
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
className?: string;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
onClick?: React.ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
|
47
30
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children"> & React.RefAttributes<HTMLButtonElement>>;
|
|
31
|
+
/**
|
|
32
|
+
* Container for the leading (left) part of the list item.
|
|
33
|
+
* Contains the visual element (ListItemSpot, Avatar, Icon) and the content (title + description).
|
|
34
|
+
*/
|
|
35
|
+
export declare const ListItemLeading: React.ForwardRefExoticComponent<{
|
|
36
|
+
children: React.ReactNode;
|
|
37
|
+
className?: string;
|
|
38
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
/**
|
|
40
|
+
* Container for the text content (title and description) within the leading area.
|
|
41
|
+
*/
|
|
42
|
+
export declare const ListItemContent: React.ForwardRefExoticComponent<{
|
|
43
|
+
children: React.ReactNode;
|
|
44
|
+
className?: string;
|
|
45
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
+
/**
|
|
47
|
+
* The main title of the list item.
|
|
48
|
+
*/
|
|
49
|
+
export declare const ListItemTitle: React.ForwardRefExoticComponent<{
|
|
50
|
+
children: React.ReactNode;
|
|
51
|
+
className?: string;
|
|
52
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
/**
|
|
54
|
+
* Optional description text below the title. Can include inline elements like Tag.
|
|
55
|
+
* Automatically applies disabled styling when the parent ListItem is disabled.
|
|
56
|
+
*/
|
|
57
|
+
export declare const ListItemDescription: React.ForwardRefExoticComponent<{
|
|
58
|
+
children: React.ReactNode;
|
|
59
|
+
className?: string;
|
|
60
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
61
|
+
/**
|
|
62
|
+
* Container for the trailing (right) content of the list item.
|
|
63
|
+
* Used for icons, switches, values, tags, chevrons, etc.
|
|
64
|
+
*/
|
|
65
|
+
export declare const ListItemTrailing: React.ForwardRefExoticComponent<{
|
|
66
|
+
children: React.ReactNode;
|
|
67
|
+
className?: string;
|
|
68
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
69
|
+
/**
|
|
70
|
+
* Spot adapter for ListItem. Automatically inherits disabled state from parent ListItem.
|
|
71
|
+
*/
|
|
72
|
+
export declare const ListItemSpot: {
|
|
73
|
+
(props: ListItemSpotProps): import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
displayName: string;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Icon adapter for ListItem. Automatically applies disabled styling from parent ListItem.
|
|
78
|
+
* Fixed at size 24 for consistent list item appearance.
|
|
79
|
+
*/
|
|
80
|
+
export declare const ListItemIcon: React.ForwardRefExoticComponent<{
|
|
81
|
+
icon: React.ComponentType<any>;
|
|
82
|
+
className?: string;
|
|
83
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
84
|
+
export declare const ListItemTruncate: {
|
|
85
|
+
({ children, className, }: ListItemTruncateProps): import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
displayName: string;
|
|
87
|
+
};
|
|
48
88
|
//# sourceMappingURL=ListItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAOL,iBAAiB,EAGjB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAUjB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ;;;;;6GAuBpB,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,eAAe;;;+EAY1B,CAAC;AAIH;;GAEG;AACH,eAAO,MAAM,eAAe;;;+EAY1B,CAAC;AAIH;;GAEG;AACH,eAAO,MAAM,aAAa;;;+EAqBxB,CAAC;AAIH;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;+EA0B9B,CAAC;AAIH;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;+EAuB3B,CAAC;AAIH;;GAEG;AACH,eAAO,MAAM,YAAY;YAAW,iBAAiB;;CAOpD,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,YAAY;;;+EAiBxB,CAAC;AAIF,eAAO,MAAM,gBAAgB;+BAG1B,qBAAqB;;CAEvB,CAAC"}
|
|
@@ -1,56 +1,149 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cn as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
trailingContent: c,
|
|
12
|
-
className: o,
|
|
13
|
-
...m
|
|
14
|
-
} = s;
|
|
15
|
-
return /* @__PURE__ */ e(
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { createSafeContext as d, cn as a } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import n from "react";
|
|
4
|
+
import { Spot as u } from "../Spot/Spot.js";
|
|
5
|
+
const [f, m] = d("ListItem", {}), [I, l] = d("ListItemTrailing", {
|
|
6
|
+
isInTrailing: !1
|
|
7
|
+
}), p = n.forwardRef(
|
|
8
|
+
(e, t) => {
|
|
9
|
+
const { children: s, className: r, disabled: o, ...c } = e;
|
|
10
|
+
return /* @__PURE__ */ i(f, { value: { disabled: o }, children: /* @__PURE__ */ i(
|
|
16
11
|
"button",
|
|
17
12
|
{
|
|
18
|
-
ref:
|
|
13
|
+
ref: t,
|
|
19
14
|
type: "button",
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
15
|
+
disabled: o,
|
|
16
|
+
className: a(
|
|
17
|
+
"bg-base-transparent flex h-64 w-full cursor-pointer items-center gap-16 rounded-md px-8 py-12 text-base transition-colors",
|
|
18
|
+
"hover:bg-base-transparent-hover focus-visible:outline-focus active:bg-base-transparent-pressed focus-visible:outline-2",
|
|
19
|
+
"disabled:bg-base-transparent disabled:text-disabled disabled:cursor-default",
|
|
20
|
+
r
|
|
25
21
|
),
|
|
26
|
-
...
|
|
27
|
-
children:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
22
|
+
...c,
|
|
23
|
+
children: s
|
|
24
|
+
}
|
|
25
|
+
) });
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
p.displayName = "ListItem";
|
|
29
|
+
const L = n.forwardRef(({ children: e, className: t }, s) => /* @__PURE__ */ i(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
ref: s,
|
|
33
|
+
className: a("flex min-w-0 flex-1 items-center gap-12", t),
|
|
34
|
+
children: e
|
|
35
|
+
}
|
|
36
|
+
));
|
|
37
|
+
L.displayName = "ListItemLeading";
|
|
38
|
+
const b = n.forwardRef(({ children: e, className: t }, s) => /* @__PURE__ */ i(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
ref: s,
|
|
42
|
+
className: a("flex min-w-0 flex-1 flex-col gap-4", t),
|
|
43
|
+
children: e
|
|
44
|
+
}
|
|
45
|
+
));
|
|
46
|
+
b.displayName = "ListItemContent";
|
|
47
|
+
const x = n.forwardRef(({ children: e, className: t }, s) => {
|
|
48
|
+
const { isInTrailing: r } = l({
|
|
49
|
+
consumerName: "ListItemTitle",
|
|
50
|
+
contextRequired: !1
|
|
51
|
+
});
|
|
52
|
+
return /* @__PURE__ */ i(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
ref: s,
|
|
56
|
+
className: a(
|
|
57
|
+
"body-2-semi-bold w-full truncate",
|
|
58
|
+
r ? "justify-end text-end" : "justify-start text-start",
|
|
59
|
+
t
|
|
60
|
+
),
|
|
61
|
+
children: e
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
});
|
|
65
|
+
x.displayName = "ListItemTitle";
|
|
66
|
+
const N = n.forwardRef(({ children: e, className: t }, s) => {
|
|
67
|
+
const { disabled: r } = m({
|
|
68
|
+
consumerName: "ListItemDescription",
|
|
69
|
+
contextRequired: !0
|
|
70
|
+
}), { isInTrailing: o } = l({
|
|
71
|
+
consumerName: "ListItemDescription",
|
|
72
|
+
contextRequired: !1
|
|
73
|
+
});
|
|
74
|
+
return /* @__PURE__ */ i(
|
|
75
|
+
"div",
|
|
76
|
+
{
|
|
77
|
+
ref: s,
|
|
78
|
+
className: a(
|
|
79
|
+
"text-muted body-3 w-full items-center truncate",
|
|
80
|
+
o ? "justify-end text-end" : "justify-start text-start",
|
|
81
|
+
r && "text-disabled",
|
|
82
|
+
t
|
|
83
|
+
),
|
|
84
|
+
children: e
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
});
|
|
88
|
+
N.displayName = "ListItemDescription";
|
|
89
|
+
const g = n.forwardRef(({ children: e, className: t }, s) => {
|
|
90
|
+
const { disabled: r } = m({
|
|
91
|
+
consumerName: "ListItemTrailing",
|
|
92
|
+
contextRequired: !0
|
|
93
|
+
});
|
|
94
|
+
return /* @__PURE__ */ i(I, { value: { isInTrailing: !0 }, children: /* @__PURE__ */ i(
|
|
95
|
+
"div",
|
|
96
|
+
{
|
|
97
|
+
ref: s,
|
|
98
|
+
className: a(
|
|
99
|
+
"flex shrink-0 items-center",
|
|
100
|
+
r && "text-disabled",
|
|
101
|
+
t
|
|
102
|
+
),
|
|
103
|
+
children: e
|
|
104
|
+
}
|
|
105
|
+
) });
|
|
106
|
+
});
|
|
107
|
+
g.displayName = "ListItemTrailing";
|
|
108
|
+
const y = (e) => {
|
|
109
|
+
const { disabled: t } = m({
|
|
110
|
+
consumerName: "ListItemSpot",
|
|
111
|
+
contextRequired: !0
|
|
112
|
+
});
|
|
113
|
+
return /* @__PURE__ */ i(u, { ...e, size: 48, disabled: t });
|
|
114
|
+
};
|
|
115
|
+
y.displayName = "ListItemSpot";
|
|
116
|
+
const v = n.forwardRef(
|
|
117
|
+
({ icon: e, className: t, ...s }, r) => {
|
|
118
|
+
const { disabled: o } = m({
|
|
119
|
+
consumerName: "ListItemIcon",
|
|
120
|
+
contextRequired: !0
|
|
121
|
+
});
|
|
122
|
+
return /* @__PURE__ */ i(
|
|
123
|
+
"div",
|
|
124
|
+
{
|
|
125
|
+
ref: r,
|
|
126
|
+
className: a("shrink-0", o && "text-disabled", t),
|
|
127
|
+
...s,
|
|
128
|
+
children: /* @__PURE__ */ i(e, { size: 24 })
|
|
49
129
|
}
|
|
50
130
|
);
|
|
51
131
|
}
|
|
52
132
|
);
|
|
53
|
-
|
|
133
|
+
v.displayName = "ListItemIcon";
|
|
134
|
+
const T = ({
|
|
135
|
+
children: e,
|
|
136
|
+
className: t
|
|
137
|
+
}) => /* @__PURE__ */ i("div", { className: a("min-w-0 truncate", t), children: e });
|
|
138
|
+
T.displayName = "ListItemTruncate";
|
|
54
139
|
export {
|
|
55
|
-
|
|
140
|
+
p as ListItem,
|
|
141
|
+
b as ListItemContent,
|
|
142
|
+
N as ListItemDescription,
|
|
143
|
+
v as ListItemIcon,
|
|
144
|
+
L as ListItemLeading,
|
|
145
|
+
y as ListItemSpot,
|
|
146
|
+
x as ListItemTitle,
|
|
147
|
+
g as ListItemTrailing,
|
|
148
|
+
T as ListItemTruncate
|
|
56
149
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
|
|
@@ -1,27 +1,126 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { DiscriminatedSpotProps } from '../Spot';
|
|
3
|
+
/**
|
|
4
|
+
* Context value for passing state to sub-components
|
|
5
|
+
*/
|
|
6
|
+
export type ListItemContextValue = {
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Props for the ListItem root component
|
|
11
|
+
*/
|
|
2
12
|
export type ListItemProps = {
|
|
3
13
|
/**
|
|
4
|
-
* The
|
|
14
|
+
* The content of the list item (ListItemLeading, ListItemTrailing)
|
|
5
15
|
*/
|
|
6
|
-
|
|
16
|
+
children: React.ReactNode;
|
|
7
17
|
/**
|
|
8
|
-
*
|
|
18
|
+
* custom classname
|
|
9
19
|
*/
|
|
10
|
-
|
|
20
|
+
className?: string;
|
|
11
21
|
/**
|
|
12
|
-
*
|
|
13
|
-
* @example leadingContent={<Spot appearance="icon" icon={Settings} />}
|
|
22
|
+
* Whether the list item is disabled.
|
|
14
23
|
*/
|
|
15
|
-
|
|
24
|
+
disabled?: boolean;
|
|
16
25
|
/**
|
|
17
|
-
*
|
|
18
|
-
* @example descriptionTag={<Tag label="New" appearance="accent" size="sm" />}
|
|
26
|
+
* Callback function when the list item is pressed.
|
|
19
27
|
*/
|
|
20
|
-
|
|
28
|
+
onClick?: React.ButtonHTMLAttributes<HTMLButtonElement>['onClick'];
|
|
29
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>;
|
|
30
|
+
/**
|
|
31
|
+
* Props for the ListItemLeading component
|
|
32
|
+
*/
|
|
33
|
+
export type ListItemLeadingProps = {
|
|
21
34
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @example trailingContent={<Icon />}
|
|
35
|
+
* The content of the leading area (visual element + ListItemContent)
|
|
24
36
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
37
|
+
children: React.ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* custom classname
|
|
40
|
+
*/
|
|
41
|
+
className?: string;
|
|
42
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
43
|
+
/**
|
|
44
|
+
* Props for the ListItemContent component
|
|
45
|
+
*/
|
|
46
|
+
export type ListItemContentProps = {
|
|
47
|
+
/**
|
|
48
|
+
* The content (ListItemTitle, ListItemDescription)
|
|
49
|
+
*/
|
|
50
|
+
children: React.ReactNode;
|
|
51
|
+
/**
|
|
52
|
+
* custom classname
|
|
53
|
+
*/
|
|
54
|
+
className?: string;
|
|
55
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
56
|
+
/**
|
|
57
|
+
* Props for the ListItemTitle component
|
|
58
|
+
*/
|
|
59
|
+
export type ListItemTitleProps = {
|
|
60
|
+
/**
|
|
61
|
+
* The title text or custom content
|
|
62
|
+
*/
|
|
63
|
+
children: React.ReactNode;
|
|
64
|
+
/**
|
|
65
|
+
* custom classname
|
|
66
|
+
*/
|
|
67
|
+
className?: string;
|
|
68
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
69
|
+
/**
|
|
70
|
+
* Props for the ListItemDescription component
|
|
71
|
+
*/
|
|
72
|
+
export type ListItemDescriptionProps = {
|
|
73
|
+
/**
|
|
74
|
+
* The description text or custom content
|
|
75
|
+
*/
|
|
76
|
+
children: React.ReactNode;
|
|
77
|
+
/**
|
|
78
|
+
* custom classname
|
|
79
|
+
*/
|
|
80
|
+
className?: string;
|
|
81
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
82
|
+
/**
|
|
83
|
+
* Props for the ListItemTrailing component
|
|
84
|
+
*/
|
|
85
|
+
export type ListItemTrailingProps = {
|
|
86
|
+
/**
|
|
87
|
+
* The trailing content (icons, switches, values, etc.)
|
|
88
|
+
*/
|
|
89
|
+
children: React.ReactNode;
|
|
90
|
+
/**
|
|
91
|
+
* custom classname
|
|
92
|
+
*/
|
|
93
|
+
className?: string;
|
|
94
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
95
|
+
/**
|
|
96
|
+
* Props for ListItemSpot when appearance is 'icon'
|
|
97
|
+
*/
|
|
98
|
+
export type ListItemSpotProps = DiscriminatedSpotProps & HTMLAttributes<HTMLDivElement>;
|
|
99
|
+
/**
|
|
100
|
+
* Props for the ListItemTruncate component
|
|
101
|
+
* Used to truncate text that should when ListItemDescription or ListItemTitle contain custom content
|
|
102
|
+
*/
|
|
103
|
+
export type ListItemTruncateProps = {
|
|
104
|
+
/**
|
|
105
|
+
* The content to truncate
|
|
106
|
+
*/
|
|
107
|
+
children: React.ReactNode;
|
|
108
|
+
/**
|
|
109
|
+
* custom classname
|
|
110
|
+
*/
|
|
111
|
+
className?: string;
|
|
112
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
113
|
+
/**
|
|
114
|
+
* Props for the ListItemIcon component
|
|
115
|
+
*/
|
|
116
|
+
export type ListItemIconProps = {
|
|
117
|
+
/**
|
|
118
|
+
* The icon component to render
|
|
119
|
+
*/
|
|
120
|
+
icon: React.ComponentType<any>;
|
|
121
|
+
/**
|
|
122
|
+
* custom classname
|
|
123
|
+
*/
|
|
124
|
+
className?: string;
|
|
125
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
27
126
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/ListItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC;CACpE,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,sBAAsB,GACpD,cAAc,CAAC,cAAc,CAAC,CAAC;AAEjC;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -1,29 +1,32 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { IconSize } from '../Icon/types';
|
|
3
3
|
export type SpotAppearance = 'icon' | 'bluetooth' | 'check' | 'error' | 'warning' | 'info' | 'loader' | 'number';
|
|
4
|
-
|
|
5
|
-
* A discriminated union that enforces type-safe props based on the `appearance`.
|
|
6
|
-
*/
|
|
7
|
-
type DiscriminatedSpotProps = {
|
|
4
|
+
type SpotIconProps = {
|
|
8
5
|
/**
|
|
9
6
|
* Custom icon appearance with neutral base styling.
|
|
10
7
|
* @example <Spot appearance="icon" icon={SettingsIcon} />
|
|
11
8
|
*/
|
|
12
9
|
appearance: 'icon';
|
|
13
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Icon component to render. Required when appearance is 'icon'.
|
|
12
|
+
*/
|
|
14
13
|
icon: React.ComponentType<{
|
|
15
14
|
size?: IconSize;
|
|
16
15
|
className?: string;
|
|
17
16
|
}>;
|
|
18
|
-
}
|
|
17
|
+
};
|
|
18
|
+
type SpotNumberProps = {
|
|
19
19
|
/**
|
|
20
20
|
* Number appearance for displaying a single digit (0-9).
|
|
21
21
|
* @example <Spot appearance="number" number={5} />
|
|
22
22
|
*/
|
|
23
23
|
appearance: 'number';
|
|
24
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Digit (0-9) to display. Required when appearance is 'number'.
|
|
26
|
+
*/
|
|
25
27
|
number: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
26
|
-
}
|
|
28
|
+
};
|
|
29
|
+
type SpotStatusProps = {
|
|
27
30
|
/**
|
|
28
31
|
* Predefined status indicators with semantic styling.
|
|
29
32
|
* Options: 'bluetooth' | 'check' | 'error' | 'warning' | 'info' | 'loader'
|
|
@@ -31,8 +34,12 @@ type DiscriminatedSpotProps = {
|
|
|
31
34
|
*/
|
|
32
35
|
appearance: Exclude<SpotAppearance, 'icon' | 'number'>;
|
|
33
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* A discriminated union that enforces type-safe props based on the `appearance`.
|
|
39
|
+
*/
|
|
40
|
+
export type DiscriminatedSpotProps = SpotIconProps | SpotNumberProps | SpotStatusProps;
|
|
34
41
|
export type SpotSize = 32 | 48 | 56 | 72;
|
|
35
|
-
export type SpotProps = DiscriminatedSpotProps &
|
|
42
|
+
export type SpotProps = DiscriminatedSpotProps & {
|
|
36
43
|
/**
|
|
37
44
|
* Whether the spot is disabled.
|
|
38
45
|
* @default false
|
|
@@ -43,6 +50,6 @@ export type SpotProps = DiscriminatedSpotProps & HTMLAttributes<HTMLDivElement>
|
|
|
43
50
|
* @default 48
|
|
44
51
|
*/
|
|
45
52
|
size?: SpotSize;
|
|
46
|
-
}
|
|
53
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
47
54
|
export {};
|
|
48
55
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Spot/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,WAAW,GACX,OAAO,GACP,OAAO,GACP,SAAS,GACT,MAAM,GACN,QAAQ,GACR,QAAQ,CAAC;AAEb
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Spot/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,WAAW,GACX,OAAO,GACP,OAAO,GACP,SAAS,GACT,MAAM,GACN,QAAQ,GACR,QAAQ,CAAC;AAEb,KAAK,aAAa,GAAG;IACnB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpE,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB;;;OAGG;IACH,UAAU,EAAE,QAAQ,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CAC/C,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC;CACxD,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAC9B,aAAa,GACb,eAAe,GACf,eAAe,CAAC;AAEpB,MAAM,MAAM,QAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEzC,MAAM,MAAM,SAAS,GAAG,sBAAsB,GAAG;IAC/C;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC"}
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/lumen-ui-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.59",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"keywords": [
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@ledgerhq/lumen-utils-shared": "0.0.
|
|
44
|
+
"@ledgerhq/lumen-utils-shared": "0.0.13",
|
|
45
45
|
"i18next": "^23.7.0",
|
|
46
46
|
"react-i18next": "^14.0.0"
|
|
47
47
|
},
|