@ledgerhq/lumen-ui-rnative 0.1.21 → 0.1.23
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/module/lib/Components/ListItem/ListItem.js +57 -27
- package/dist/module/lib/Components/ListItem/ListItem.js.map +1 -1
- package/dist/module/lib/Components/ListItem/ListItem.mdx +15 -7
- package/dist/module/lib/Components/ListItem/ListItem.stories.js +497 -283
- package/dist/module/lib/Components/ListItem/ListItem.stories.js.map +1 -1
- package/dist/module/lib/Components/ListItem/ListItem.test.js +153 -0
- package/dist/module/lib/Components/ListItem/ListItem.test.js.map +1 -0
- package/dist/module/lib/Components/{TriggerButton/TriggerButton.js → MediaButton/MediaButton.js} +13 -10
- package/dist/module/lib/Components/MediaButton/MediaButton.js.map +1 -0
- package/{src/lib/Components/TriggerButton/TriggerButton.mdx → dist/module/lib/Components/MediaButton/MediaButton.mdx} +10 -10
- package/dist/module/lib/Components/{TriggerButton/TriggerButton.stories.js → MediaButton/MediaButton.stories.js} +18 -18
- package/dist/module/lib/Components/MediaButton/MediaButton.stories.js.map +1 -0
- package/dist/module/lib/Components/{TriggerButton/TriggerButton.test.js → MediaButton/MediaButton.test.js} +14 -14
- package/dist/module/lib/Components/MediaButton/MediaButton.test.js.map +1 -0
- package/dist/module/lib/Components/MediaButton/index.js +5 -0
- package/dist/module/lib/Components/MediaButton/index.js.map +1 -0
- package/dist/module/lib/Components/MediaButton/types.js.map +1 -0
- package/dist/module/lib/Components/NavBar/NavBar.js +0 -2
- package/dist/module/lib/Components/NavBar/NavBar.js.map +1 -1
- package/dist/module/lib/Components/OptionList/OptionList.figma.js +28 -0
- package/dist/module/lib/Components/OptionList/OptionList.figma.js.map +1 -0
- package/dist/module/lib/Components/OptionList/OptionList.js +452 -0
- package/dist/module/lib/Components/OptionList/OptionList.js.map +1 -0
- package/dist/module/lib/Components/OptionList/OptionList.mdx +304 -0
- package/dist/module/lib/Components/OptionList/OptionList.stories.js +735 -0
- package/dist/module/lib/Components/OptionList/OptionList.stories.js.map +1 -0
- package/dist/module/lib/Components/OptionList/OptionList.test.js +443 -0
- package/dist/module/lib/Components/OptionList/OptionList.test.js.map +1 -0
- package/dist/module/lib/Components/OptionList/index.js +5 -0
- package/dist/module/lib/Components/OptionList/index.js.map +1 -0
- package/dist/module/lib/Components/OptionList/types.js +4 -0
- package/dist/module/lib/Components/OptionList/types.js.map +1 -0
- package/dist/module/lib/Components/OptionList/useOptionList/useOptionListItems.js +36 -0
- package/dist/module/lib/Components/OptionList/useOptionList/useOptionListItems.js.map +1 -0
- package/dist/module/lib/Components/OptionList/useOptionList/useOptionListItems.test.js +84 -0
- package/dist/module/lib/Components/OptionList/useOptionList/useOptionListItems.test.js.map +1 -0
- package/dist/module/lib/Components/index.js +2 -1
- package/dist/module/lib/Components/index.js.map +1 -1
- package/dist/typescript/src/lib/Components/ListItem/ListItem.d.ts +8 -8
- package/dist/typescript/src/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/ListItem/types.d.ts +11 -7
- package/dist/typescript/src/lib/Components/ListItem/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/MediaButton/MediaButton.d.ts +23 -0
- package/dist/typescript/src/lib/Components/MediaButton/MediaButton.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/MediaButton/index.d.ts +3 -0
- package/dist/typescript/src/lib/Components/MediaButton/index.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/{TriggerButton → MediaButton}/types.d.ts +10 -5
- package/dist/typescript/src/lib/Components/MediaButton/types.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/OptionList/OptionList.d.ts +12 -0
- package/dist/typescript/src/lib/Components/OptionList/OptionList.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/OptionList/OptionList.figma.d.ts +2 -0
- package/dist/typescript/src/lib/Components/OptionList/OptionList.figma.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/OptionList/index.d.ts +3 -0
- package/dist/typescript/src/lib/Components/OptionList/index.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/OptionList/types.d.ts +97 -0
- package/dist/typescript/src/lib/Components/OptionList/types.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/OptionList/useOptionList/useOptionListItems.d.ts +12 -0
- package/dist/typescript/src/lib/Components/OptionList/useOptionList/useOptionListItems.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/index.d.ts +2 -1
- package/dist/typescript/src/lib/Components/index.d.ts.map +1 -1
- package/dist/typescript/src/styles/types/theme.types.d.ts +7 -6
- package/dist/typescript/src/styles/types/theme.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/lib/Components/ListItem/ListItem.mdx +15 -7
- package/src/lib/Components/ListItem/ListItem.stories.tsx +354 -220
- package/src/lib/Components/ListItem/ListItem.test.tsx +152 -0
- package/src/lib/Components/ListItem/ListItem.tsx +63 -28
- package/src/lib/Components/ListItem/types.ts +11 -8
- package/{dist/module/lib/Components/TriggerButton/TriggerButton.mdx → src/lib/Components/MediaButton/MediaButton.mdx} +10 -10
- package/src/lib/Components/{TriggerButton/TriggerButton.stories.tsx → MediaButton/MediaButton.stories.tsx} +28 -28
- package/src/lib/Components/{TriggerButton/TriggerButton.test.tsx → MediaButton/MediaButton.test.tsx} +22 -22
- package/src/lib/Components/{TriggerButton/TriggerButton.tsx → MediaButton/MediaButton.tsx} +27 -21
- package/src/lib/Components/MediaButton/index.ts +2 -0
- package/src/lib/Components/{TriggerButton → MediaButton}/types.ts +10 -5
- package/src/lib/Components/NavBar/NavBar.tsx +0 -3
- package/src/lib/Components/OptionList/OptionList.figma.tsx +37 -0
- package/src/lib/Components/OptionList/OptionList.mdx +304 -0
- package/src/lib/Components/OptionList/OptionList.stories.tsx +755 -0
- package/src/lib/Components/OptionList/OptionList.test.tsx +412 -0
- package/src/lib/Components/OptionList/OptionList.tsx +532 -0
- package/src/lib/Components/OptionList/index.ts +2 -0
- package/src/lib/Components/OptionList/types.ts +115 -0
- package/src/lib/Components/OptionList/useOptionList/useOptionListItems.test.ts +73 -0
- package/src/lib/Components/OptionList/useOptionList/useOptionListItems.ts +49 -0
- package/src/lib/Components/index.ts +2 -1
- package/src/styles/types/theme.types.ts +8 -6
- package/dist/module/lib/Components/TriggerButton/TriggerButton.js.map +0 -1
- package/dist/module/lib/Components/TriggerButton/TriggerButton.stories.js.map +0 -1
- package/dist/module/lib/Components/TriggerButton/TriggerButton.test.js.map +0 -1
- package/dist/module/lib/Components/TriggerButton/index.js +0 -5
- package/dist/module/lib/Components/TriggerButton/index.js.map +0 -1
- package/dist/module/lib/Components/TriggerButton/types.js.map +0 -1
- package/dist/typescript/src/lib/Components/TriggerButton/TriggerButton.d.ts +0 -23
- package/dist/typescript/src/lib/Components/TriggerButton/TriggerButton.d.ts.map +0 -1
- package/dist/typescript/src/lib/Components/TriggerButton/index.d.ts +0 -3
- package/dist/typescript/src/lib/Components/TriggerButton/index.d.ts.map +0 -1
- package/dist/typescript/src/lib/Components/TriggerButton/types.d.ts.map +0 -1
- package/src/lib/Components/TriggerButton/index.ts +0 -2
- /package/dist/module/lib/Components/{TriggerButton → MediaButton}/types.js +0 -0
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { CryptoIcon } from '@ledgerhq/crypto-icons';
|
|
3
4
|
import { useState } from 'react';
|
|
4
5
|
import { Settings, ChevronRight, Wallet } from "../../Symbols/index.js";
|
|
6
|
+
import { MediaImage } from "../MediaImage/index.js";
|
|
5
7
|
import { Spot } from "../Spot/index.js";
|
|
6
8
|
import { Switch } from "../Switch/Switch.js";
|
|
7
9
|
import { Tag } from "../Tag/Tag.js";
|
|
8
|
-
import { Box } from "../Utility/index.js";
|
|
10
|
+
import { Box, Text } from "../Utility/index.js";
|
|
9
11
|
import { ListItem, ListItemLeading, ListItemContent, ListItemTitle, ListItemDescription, ListItemTrailing, ListItemContentRow } from "./ListItem.js";
|
|
10
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
13
|
const meta = {
|
|
@@ -46,6 +48,7 @@ const meta = {
|
|
|
46
48
|
export default meta;
|
|
47
49
|
export const Base = {
|
|
48
50
|
args: {
|
|
51
|
+
density: 'expanded',
|
|
49
52
|
lx: {
|
|
50
53
|
maxWidth: 's320'
|
|
51
54
|
}
|
|
@@ -55,11 +58,12 @@ export const Base = {
|
|
|
55
58
|
children: /*#__PURE__*/_jsxs(ListItemLeading, {
|
|
56
59
|
children: [/*#__PURE__*/_jsx(Spot, {
|
|
57
60
|
appearance: "icon",
|
|
58
|
-
icon: Settings
|
|
61
|
+
icon: Settings,
|
|
62
|
+
size: args.density === 'compact' ? 32 : 48
|
|
59
63
|
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
60
64
|
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
61
65
|
children: "Item with Icon and Description"
|
|
62
|
-
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
66
|
+
}), args.density === 'expanded' && /*#__PURE__*/_jsx(ListItemDescription, {
|
|
63
67
|
children: "Additional information"
|
|
64
68
|
})]
|
|
65
69
|
})]
|
|
@@ -71,10 +75,12 @@ export const Base = {
|
|
|
71
75
|
code: `
|
|
72
76
|
<ListItem>
|
|
73
77
|
<ListItemLeading>
|
|
74
|
-
<Spot appearance="icon" icon={Settings} />
|
|
78
|
+
<Spot appearance="icon" icon={Settings} size={density === 'compact' ? 32 : 48} />
|
|
75
79
|
<ListItemContent>
|
|
76
80
|
<ListItemTitle>Item with Icon and Description</ListItemTitle>
|
|
77
|
-
|
|
81
|
+
{density === 'expanded' && (
|
|
82
|
+
<ListItemDescription>Additional information</ListItemDescription>
|
|
83
|
+
)}
|
|
78
84
|
</ListItemContent>
|
|
79
85
|
</ListItemLeading>
|
|
80
86
|
</ListItem>
|
|
@@ -83,240 +89,220 @@ export const Base = {
|
|
|
83
89
|
}
|
|
84
90
|
}
|
|
85
91
|
};
|
|
86
|
-
export const
|
|
87
|
-
render: () => {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
105
|
-
children: "With description"
|
|
106
|
-
})]
|
|
107
|
-
})]
|
|
108
|
-
})
|
|
109
|
-
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
110
|
-
onPress: () => setSelected(!selected),
|
|
111
|
-
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
112
|
-
children: [/*#__PURE__*/_jsx(Spot, {
|
|
113
|
-
size: 48,
|
|
114
|
-
appearance: "icon",
|
|
115
|
-
icon: Wallet
|
|
116
|
-
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
117
|
-
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
118
|
-
children: "Switch Variant"
|
|
119
|
-
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
120
|
-
children: "With description"
|
|
121
|
-
})]
|
|
122
|
-
})]
|
|
123
|
-
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
124
|
-
children: /*#__PURE__*/_jsx(Switch, {
|
|
125
|
-
checked: selected,
|
|
126
|
-
onCheckedChange: setSelected
|
|
127
|
-
})
|
|
128
|
-
})]
|
|
129
|
-
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
130
|
-
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
131
|
-
children: [/*#__PURE__*/_jsx(Spot, {
|
|
132
|
-
size: 48,
|
|
133
|
-
appearance: "icon",
|
|
134
|
-
icon: Wallet
|
|
135
|
-
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
136
|
-
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
137
|
-
children: "Content Variant"
|
|
138
|
-
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
139
|
-
children: "With description"
|
|
140
|
-
})]
|
|
141
|
-
})]
|
|
142
|
-
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
143
|
-
children: /*#__PURE__*/_jsxs(ListItemContent, {
|
|
144
|
-
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
145
|
-
children: "42.10"
|
|
146
|
-
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
147
|
-
children: "USD"
|
|
148
|
-
})]
|
|
92
|
+
export const DensityShowcase = {
|
|
93
|
+
render: () => /*#__PURE__*/_jsxs(Box, {
|
|
94
|
+
lx: {
|
|
95
|
+
flexDirection: 'column',
|
|
96
|
+
maxWidth: 's320',
|
|
97
|
+
gap: 's8'
|
|
98
|
+
},
|
|
99
|
+
children: [/*#__PURE__*/_jsxs(ListItem, {
|
|
100
|
+
density: "compact",
|
|
101
|
+
onPress: () => {},
|
|
102
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
103
|
+
children: [/*#__PURE__*/_jsx(CryptoIcon, {
|
|
104
|
+
ledgerId: "bitcoin",
|
|
105
|
+
ticker: "BTC",
|
|
106
|
+
size: "24px"
|
|
107
|
+
}), /*#__PURE__*/_jsx(ListItemContent, {
|
|
108
|
+
children: /*#__PURE__*/_jsx(ListItemTitle, {
|
|
109
|
+
children: "Compact with icon"
|
|
149
110
|
})
|
|
150
111
|
})]
|
|
151
|
-
}), /*#__PURE__*/
|
|
152
|
-
children:
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
167
|
-
children: "USD"
|
|
168
|
-
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
169
|
-
lx: {
|
|
170
|
-
color: 'error'
|
|
171
|
-
},
|
|
172
|
-
children: "-7.53%"
|
|
173
|
-
})]
|
|
112
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
113
|
+
children: /*#__PURE__*/_jsx(ChevronRight, {
|
|
114
|
+
size: 24
|
|
115
|
+
})
|
|
116
|
+
})]
|
|
117
|
+
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
118
|
+
density: "compact",
|
|
119
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
120
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
121
|
+
size: 32,
|
|
122
|
+
appearance: "icon",
|
|
123
|
+
icon: Wallet
|
|
124
|
+
}), /*#__PURE__*/_jsx(ListItemContent, {
|
|
125
|
+
children: /*#__PURE__*/_jsx(ListItemTitle, {
|
|
126
|
+
children: "Compact with value"
|
|
174
127
|
})
|
|
175
128
|
})]
|
|
176
|
-
}), /*#__PURE__*/
|
|
177
|
-
children:
|
|
178
|
-
children:
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
129
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
130
|
+
children: /*#__PURE__*/_jsx(ListItemTitle, {
|
|
131
|
+
children: "$3,000"
|
|
132
|
+
})
|
|
133
|
+
})]
|
|
134
|
+
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
135
|
+
density: "expanded",
|
|
136
|
+
onPress: () => {},
|
|
137
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
138
|
+
children: [/*#__PURE__*/_jsx(CryptoIcon, {
|
|
139
|
+
ledgerId: "bitcoin",
|
|
140
|
+
ticker: "BTC",
|
|
141
|
+
size: "48px"
|
|
142
|
+
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
143
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
144
|
+
children: "Expanded with icon"
|
|
145
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
146
|
+
children: "Additional information"
|
|
188
147
|
})]
|
|
189
|
-
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
190
|
-
children: /*#__PURE__*/_jsxs(ListItemContent, {
|
|
191
|
-
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
192
|
-
children: "USD"
|
|
193
|
-
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
194
|
-
lx: {
|
|
195
|
-
color: 'success'
|
|
196
|
-
},
|
|
197
|
-
children: "+7.53%"
|
|
198
|
-
})]
|
|
199
|
-
})
|
|
200
148
|
})]
|
|
201
|
-
}), /*#__PURE__*/
|
|
202
|
-
children:
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
149
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
150
|
+
children: /*#__PURE__*/_jsx(ChevronRight, {
|
|
151
|
+
size: 24
|
|
152
|
+
})
|
|
153
|
+
})]
|
|
154
|
+
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
155
|
+
density: "expanded",
|
|
156
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
157
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
158
|
+
size: 48,
|
|
159
|
+
appearance: "icon",
|
|
160
|
+
icon: Wallet
|
|
161
|
+
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
162
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
163
|
+
children: "Expanded with value"
|
|
164
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
165
|
+
children: "With description"
|
|
213
166
|
})]
|
|
214
|
-
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
215
|
-
children: /*#__PURE__*/_jsx(Tag, {
|
|
216
|
-
size: "sm",
|
|
217
|
-
label: "New",
|
|
218
|
-
appearance: "accent"
|
|
219
|
-
})
|
|
220
167
|
})]
|
|
221
|
-
}), /*#__PURE__*/
|
|
222
|
-
children:
|
|
223
|
-
children:
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
168
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
169
|
+
children: /*#__PURE__*/_jsx(ListItemTitle, {
|
|
170
|
+
children: "$3,000"
|
|
171
|
+
})
|
|
172
|
+
})]
|
|
173
|
+
})]
|
|
174
|
+
})
|
|
175
|
+
};
|
|
176
|
+
export const InteractiveShowcase = {
|
|
177
|
+
render: () => {
|
|
178
|
+
const [selected, setSelected] = useState(false);
|
|
179
|
+
return /*#__PURE__*/_jsxs(Box, {
|
|
180
|
+
lx: {
|
|
181
|
+
flexDirection: 'column',
|
|
182
|
+
maxWidth: 's320',
|
|
183
|
+
gap: 's16'
|
|
184
|
+
},
|
|
185
|
+
children: [/*#__PURE__*/_jsxs(Box, {
|
|
186
|
+
lx: {
|
|
187
|
+
flexDirection: 'column',
|
|
188
|
+
gap: 's8'
|
|
189
|
+
},
|
|
190
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
191
|
+
typography: "body4SemiBold",
|
|
192
|
+
lx: {
|
|
193
|
+
color: 'muted'
|
|
194
|
+
},
|
|
195
|
+
children: "Info"
|
|
196
|
+
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
197
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
198
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
199
|
+
size: 48,
|
|
200
|
+
appearance: "icon",
|
|
201
|
+
icon: Settings
|
|
202
|
+
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
203
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
204
|
+
children: "Display only"
|
|
205
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
206
|
+
children: "No press feedback"
|
|
207
|
+
})]
|
|
232
208
|
})]
|
|
209
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
210
|
+
children: /*#__PURE__*/_jsxs(ListItemContent, {
|
|
211
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
212
|
+
children: "42.10"
|
|
213
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
214
|
+
children: "USD"
|
|
215
|
+
})]
|
|
216
|
+
})
|
|
233
217
|
})]
|
|
234
|
-
}), /*#__PURE__*/
|
|
235
|
-
children: /*#__PURE__*/
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
247
|
-
children: "With icon"
|
|
218
|
+
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
219
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
220
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
221
|
+
size: 48,
|
|
222
|
+
appearance: "icon",
|
|
223
|
+
icon: Wallet
|
|
224
|
+
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
225
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
226
|
+
children: "Static item"
|
|
227
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
228
|
+
children: "Not pressable"
|
|
229
|
+
})]
|
|
248
230
|
})]
|
|
231
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
232
|
+
children: /*#__PURE__*/_jsx(Tag, {
|
|
233
|
+
size: "sm",
|
|
234
|
+
label: "New",
|
|
235
|
+
appearance: "accent"
|
|
236
|
+
})
|
|
249
237
|
})]
|
|
250
|
-
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
251
|
-
children: /*#__PURE__*/_jsx(ChevronRight, {
|
|
252
|
-
size: 24
|
|
253
|
-
})
|
|
254
238
|
})]
|
|
255
|
-
}), /*#__PURE__*/_jsxs(
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
239
|
+
}), /*#__PURE__*/_jsxs(Box, {
|
|
240
|
+
lx: {
|
|
241
|
+
flexDirection: 'column',
|
|
242
|
+
gap: 's8'
|
|
243
|
+
},
|
|
244
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
245
|
+
typography: "body4SemiBold",
|
|
246
|
+
lx: {
|
|
247
|
+
color: 'muted'
|
|
248
|
+
},
|
|
249
|
+
children: "Interactive"
|
|
250
|
+
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
251
|
+
onPress: () => {},
|
|
252
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
253
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
254
|
+
size: 48,
|
|
255
|
+
appearance: "icon",
|
|
256
|
+
icon: Settings
|
|
257
|
+
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
263
258
|
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
264
|
-
children: "
|
|
265
|
-
}), /*#__PURE__*/_jsx(
|
|
266
|
-
|
|
267
|
-
label: "New",
|
|
268
|
-
appearance: "base"
|
|
269
|
-
})]
|
|
270
|
-
}), /*#__PURE__*/_jsxs(ListItemContentRow, {
|
|
271
|
-
children: [/*#__PURE__*/_jsx(ListItemDescription, {
|
|
272
|
-
children: "With description"
|
|
273
|
-
}), /*#__PURE__*/_jsx(Tag, {
|
|
274
|
-
size: "sm",
|
|
275
|
-
label: "Custom Tag",
|
|
276
|
-
appearance: "gray"
|
|
259
|
+
children: "Navigation"
|
|
260
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
261
|
+
children: "Press feedback styles"
|
|
277
262
|
})]
|
|
278
263
|
})]
|
|
264
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
265
|
+
children: /*#__PURE__*/_jsx(ChevronRight, {
|
|
266
|
+
size: 24
|
|
267
|
+
})
|
|
279
268
|
})]
|
|
280
|
-
}), /*#__PURE__*/
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
appearance: "icon",
|
|
294
|
-
icon: Wallet
|
|
295
|
-
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
296
|
-
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
297
|
-
children: "Complex 2"
|
|
298
|
-
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
299
|
-
children: "With description"
|
|
269
|
+
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
270
|
+
onPress: () => setSelected(!selected),
|
|
271
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
272
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
273
|
+
size: 48,
|
|
274
|
+
appearance: "icon",
|
|
275
|
+
icon: Wallet
|
|
276
|
+
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
277
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
278
|
+
children: "Toggle"
|
|
279
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
280
|
+
children: "Press to toggle"
|
|
281
|
+
})]
|
|
300
282
|
})]
|
|
283
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
284
|
+
children: /*#__PURE__*/_jsx(Switch, {
|
|
285
|
+
checked: selected,
|
|
286
|
+
onCheckedChange: setSelected
|
|
287
|
+
})
|
|
301
288
|
})]
|
|
302
|
-
}), /*#__PURE__*/
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
289
|
+
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
290
|
+
onPress: () => {},
|
|
291
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
292
|
+
children: [/*#__PURE__*/_jsx(Wallet, {
|
|
293
|
+
size: 24
|
|
294
|
+
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
295
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
296
|
+
children: "Icon without Spot"
|
|
297
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
298
|
+
children: "With icon"
|
|
311
299
|
})]
|
|
312
|
-
}), /*#__PURE__*/_jsx(ListItemContentRow, {
|
|
313
|
-
children: /*#__PURE__*/_jsx(Tag, {
|
|
314
|
-
size: "sm",
|
|
315
|
-
label: "BTC",
|
|
316
|
-
appearance: "gray"
|
|
317
|
-
})
|
|
318
300
|
})]
|
|
319
|
-
})
|
|
301
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
302
|
+
children: /*#__PURE__*/_jsx(ChevronRight, {
|
|
303
|
+
size: 24
|
|
304
|
+
})
|
|
305
|
+
})]
|
|
320
306
|
})]
|
|
321
307
|
})]
|
|
322
308
|
});
|
|
@@ -353,6 +339,7 @@ export const DisabledState = {
|
|
|
353
339
|
})]
|
|
354
340
|
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
355
341
|
...args,
|
|
342
|
+
onPress: () => {},
|
|
356
343
|
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
357
344
|
children: [/*#__PURE__*/_jsx(Spot, {
|
|
358
345
|
size: 48,
|
|
@@ -430,89 +417,316 @@ export const DisabledState = {
|
|
|
430
417
|
}
|
|
431
418
|
};
|
|
432
419
|
export const ResponsiveLayout = {
|
|
433
|
-
render: () => /*#__PURE__*/
|
|
420
|
+
render: () => /*#__PURE__*/_jsxs(Box, {
|
|
434
421
|
lx: {
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
padding: 's16'
|
|
422
|
+
flexDirection: 'column',
|
|
423
|
+
width: 's480',
|
|
424
|
+
gap: 's32'
|
|
439
425
|
},
|
|
440
|
-
children: /*#__PURE__*/_jsxs(
|
|
426
|
+
children: [/*#__PURE__*/_jsxs(ListItem, {
|
|
441
427
|
lx: {
|
|
442
|
-
|
|
428
|
+
alignSelf: 'flex-start'
|
|
443
429
|
},
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
430
|
+
onPress: () => {},
|
|
431
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
432
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
433
|
+
size: 48,
|
|
434
|
+
appearance: "icon",
|
|
435
|
+
icon: Settings
|
|
436
|
+
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
437
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
438
|
+
children: "Fit content"
|
|
439
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
440
|
+
children: "Short"
|
|
441
|
+
})]
|
|
442
|
+
})]
|
|
443
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
444
|
+
children: /*#__PURE__*/_jsx(ChevronRight, {
|
|
445
|
+
size: 24
|
|
446
|
+
})
|
|
447
|
+
})]
|
|
448
|
+
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
449
|
+
lx: {
|
|
450
|
+
width: 's320'
|
|
451
|
+
},
|
|
452
|
+
onPress: () => {},
|
|
453
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
454
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
455
|
+
size: 48,
|
|
456
|
+
appearance: "icon",
|
|
457
|
+
icon: Settings
|
|
458
|
+
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
459
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
460
|
+
children: "Defined width (320px) with a long title that truncates"
|
|
461
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
462
|
+
children: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos."
|
|
456
463
|
})]
|
|
457
|
-
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
458
|
-
children: /*#__PURE__*/_jsx(ChevronRight, {
|
|
459
|
-
size: 24
|
|
460
|
-
})
|
|
461
464
|
})]
|
|
462
|
-
}), /*#__PURE__*/
|
|
463
|
-
children:
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
465
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
466
|
+
children: /*#__PURE__*/_jsx(ChevronRight, {
|
|
467
|
+
size: 24
|
|
468
|
+
})
|
|
469
|
+
})]
|
|
470
|
+
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
471
|
+
lx: {
|
|
472
|
+
width: 's320'
|
|
473
|
+
},
|
|
474
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
475
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
476
|
+
size: 48,
|
|
477
|
+
appearance: "icon",
|
|
478
|
+
icon: Wallet
|
|
479
|
+
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
480
|
+
children: [/*#__PURE__*/_jsxs(ListItemContentRow, {
|
|
469
481
|
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
470
|
-
children: "
|
|
471
|
-
}), /*#__PURE__*/_jsx(
|
|
482
|
+
children: "Defined width (320px) with ContentRow"
|
|
483
|
+
}), /*#__PURE__*/_jsx(Tag, {
|
|
484
|
+
size: "sm",
|
|
485
|
+
label: "New",
|
|
486
|
+
appearance: "base"
|
|
487
|
+
})]
|
|
488
|
+
}), /*#__PURE__*/_jsxs(ListItemContentRow, {
|
|
489
|
+
children: [/*#__PURE__*/_jsx(ListItemDescription, {
|
|
472
490
|
children: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos."
|
|
491
|
+
}), /*#__PURE__*/_jsx(Tag, {
|
|
492
|
+
size: "sm",
|
|
493
|
+
label: "Custom Tag",
|
|
494
|
+
appearance: "gray"
|
|
473
495
|
})]
|
|
474
496
|
})]
|
|
475
|
-
})
|
|
476
|
-
|
|
477
|
-
|
|
497
|
+
})]
|
|
498
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
499
|
+
children: /*#__PURE__*/_jsxs(ListItemContent, {
|
|
500
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
501
|
+
children: "42.10"
|
|
502
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
503
|
+
children: "USD"
|
|
504
|
+
})]
|
|
505
|
+
})
|
|
506
|
+
})]
|
|
507
|
+
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
508
|
+
lx: {
|
|
509
|
+
width: 'full'
|
|
510
|
+
},
|
|
511
|
+
onPress: () => {},
|
|
512
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
513
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
514
|
+
size: 48,
|
|
515
|
+
appearance: "icon",
|
|
516
|
+
icon: Settings
|
|
517
|
+
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
518
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
519
|
+
children: "Full width (fills parent)"
|
|
520
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
521
|
+
children: "Stretches to container width"
|
|
522
|
+
})]
|
|
523
|
+
})]
|
|
524
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
525
|
+
children: /*#__PURE__*/_jsx(ChevronRight, {
|
|
526
|
+
size: 24
|
|
527
|
+
})
|
|
528
|
+
})]
|
|
529
|
+
})]
|
|
530
|
+
})
|
|
531
|
+
};
|
|
532
|
+
export const CompositionShowcase = {
|
|
533
|
+
render: () => /*#__PURE__*/_jsxs(Box, {
|
|
534
|
+
lx: {
|
|
535
|
+
flexDirection: 'column',
|
|
536
|
+
maxWidth: 's320',
|
|
537
|
+
gap: 's8'
|
|
538
|
+
},
|
|
539
|
+
children: [/*#__PURE__*/_jsx(ListItem, {
|
|
540
|
+
children: /*#__PURE__*/_jsxs(ListItemLeading, {
|
|
541
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
542
|
+
size: 48,
|
|
543
|
+
appearance: "icon",
|
|
544
|
+
icon: Settings
|
|
545
|
+
}), /*#__PURE__*/_jsx(ListItemContent, {
|
|
546
|
+
children: /*#__PURE__*/_jsx(ListItemTitle, {
|
|
547
|
+
children: "Simple composition"
|
|
478
548
|
})
|
|
479
549
|
})]
|
|
480
|
-
})
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
children: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos."
|
|
498
|
-
}), /*#__PURE__*/_jsx(Tag, {
|
|
499
|
-
size: "sm",
|
|
500
|
-
label: "Custom Tag",
|
|
501
|
-
appearance: "gray"
|
|
502
|
-
})]
|
|
550
|
+
})
|
|
551
|
+
}), /*#__PURE__*/_jsx(ListItem, {
|
|
552
|
+
children: /*#__PURE__*/_jsxs(ListItemLeading, {
|
|
553
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
554
|
+
size: 48,
|
|
555
|
+
appearance: "icon",
|
|
556
|
+
icon: Settings
|
|
557
|
+
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
558
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
559
|
+
children: "Crypto icon"
|
|
560
|
+
}), /*#__PURE__*/_jsxs(ListItemContentRow, {
|
|
561
|
+
children: [/*#__PURE__*/_jsx(ListItemDescription, {
|
|
562
|
+
children: "Inline with description"
|
|
563
|
+
}), /*#__PURE__*/_jsx(MediaImage, {
|
|
564
|
+
src: "https://crypto-icons.ledger.com/ALGO.png",
|
|
565
|
+
alt: "Algorand",
|
|
566
|
+
size: 20
|
|
503
567
|
})]
|
|
504
568
|
})]
|
|
505
|
-
})
|
|
506
|
-
|
|
569
|
+
})]
|
|
570
|
+
})
|
|
571
|
+
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
572
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
573
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
574
|
+
size: 48,
|
|
575
|
+
appearance: "icon",
|
|
576
|
+
icon: Wallet
|
|
577
|
+
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
578
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
579
|
+
children: "Content Variant"
|
|
580
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
581
|
+
children: "With description"
|
|
582
|
+
})]
|
|
583
|
+
})]
|
|
584
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
585
|
+
children: /*#__PURE__*/_jsxs(ListItemContent, {
|
|
586
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
587
|
+
children: "42.10"
|
|
588
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
589
|
+
children: "USD"
|
|
590
|
+
})]
|
|
591
|
+
})
|
|
592
|
+
})]
|
|
593
|
+
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
594
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
595
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
596
|
+
size: 48,
|
|
597
|
+
appearance: "icon",
|
|
598
|
+
icon: Wallet
|
|
599
|
+
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
600
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
601
|
+
children: "Content Variant"
|
|
602
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
603
|
+
children: "Custom style"
|
|
604
|
+
})]
|
|
605
|
+
})]
|
|
606
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
607
|
+
children: /*#__PURE__*/_jsxs(ListItemContent, {
|
|
608
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
609
|
+
children: "USD"
|
|
610
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
611
|
+
lx: {
|
|
612
|
+
color: 'error'
|
|
613
|
+
},
|
|
614
|
+
children: "-7.53%"
|
|
615
|
+
})]
|
|
616
|
+
})
|
|
617
|
+
})]
|
|
618
|
+
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
619
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
620
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
621
|
+
size: 48,
|
|
622
|
+
appearance: "icon",
|
|
623
|
+
icon: Wallet
|
|
624
|
+
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
625
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
626
|
+
children: "Content Variant"
|
|
627
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
628
|
+
children: "Custom style"
|
|
629
|
+
})]
|
|
630
|
+
})]
|
|
631
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
632
|
+
children: /*#__PURE__*/_jsxs(ListItemContent, {
|
|
633
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
634
|
+
children: "USD"
|
|
635
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
636
|
+
lx: {
|
|
637
|
+
color: 'success'
|
|
638
|
+
},
|
|
639
|
+
children: "+7.53%"
|
|
640
|
+
})]
|
|
641
|
+
})
|
|
642
|
+
})]
|
|
643
|
+
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
644
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
645
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
646
|
+
size: 48,
|
|
647
|
+
appearance: "icon",
|
|
648
|
+
icon: Settings
|
|
649
|
+
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
650
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
651
|
+
children: "Tag Variant"
|
|
652
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
653
|
+
children: "With description"
|
|
654
|
+
})]
|
|
655
|
+
})]
|
|
656
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
657
|
+
children: /*#__PURE__*/_jsx(Tag, {
|
|
658
|
+
size: "sm",
|
|
659
|
+
label: "New",
|
|
660
|
+
appearance: "accent"
|
|
661
|
+
})
|
|
662
|
+
})]
|
|
663
|
+
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
664
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
665
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
666
|
+
size: 48,
|
|
667
|
+
appearance: "icon",
|
|
668
|
+
icon: Wallet
|
|
669
|
+
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
670
|
+
children: [/*#__PURE__*/_jsxs(ListItemContentRow, {
|
|
507
671
|
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
508
|
-
children: "
|
|
509
|
-
}), /*#__PURE__*/_jsx(
|
|
510
|
-
|
|
672
|
+
children: "Complex 1"
|
|
673
|
+
}), /*#__PURE__*/_jsx(Tag, {
|
|
674
|
+
size: "sm",
|
|
675
|
+
label: "New",
|
|
676
|
+
appearance: "base"
|
|
511
677
|
})]
|
|
512
|
-
})
|
|
678
|
+
}), /*#__PURE__*/_jsxs(ListItemContentRow, {
|
|
679
|
+
children: [/*#__PURE__*/_jsx(ListItemDescription, {
|
|
680
|
+
children: "With description"
|
|
681
|
+
}), /*#__PURE__*/_jsx(Tag, {
|
|
682
|
+
size: "sm",
|
|
683
|
+
label: "Custom Tag",
|
|
684
|
+
appearance: "gray"
|
|
685
|
+
})]
|
|
686
|
+
})]
|
|
513
687
|
})]
|
|
688
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
689
|
+
children: /*#__PURE__*/_jsxs(ListItemContent, {
|
|
690
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
691
|
+
children: "42.10"
|
|
692
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
693
|
+
children: "USD"
|
|
694
|
+
})]
|
|
695
|
+
})
|
|
514
696
|
})]
|
|
515
|
-
})
|
|
697
|
+
}), /*#__PURE__*/_jsxs(ListItem, {
|
|
698
|
+
children: [/*#__PURE__*/_jsxs(ListItemLeading, {
|
|
699
|
+
children: [/*#__PURE__*/_jsx(Spot, {
|
|
700
|
+
size: 48,
|
|
701
|
+
appearance: "icon",
|
|
702
|
+
icon: Wallet
|
|
703
|
+
}), /*#__PURE__*/_jsxs(ListItemContent, {
|
|
704
|
+
children: [/*#__PURE__*/_jsx(ListItemTitle, {
|
|
705
|
+
children: "Complex 2"
|
|
706
|
+
}), /*#__PURE__*/_jsx(ListItemDescription, {
|
|
707
|
+
children: "With description"
|
|
708
|
+
})]
|
|
709
|
+
})]
|
|
710
|
+
}), /*#__PURE__*/_jsx(ListItemTrailing, {
|
|
711
|
+
children: /*#__PURE__*/_jsxs(ListItemContent, {
|
|
712
|
+
children: [/*#__PURE__*/_jsxs(ListItemContentRow, {
|
|
713
|
+
children: [/*#__PURE__*/_jsx(Tag, {
|
|
714
|
+
size: "sm",
|
|
715
|
+
label: "New",
|
|
716
|
+
appearance: "base"
|
|
717
|
+
}), /*#__PURE__*/_jsx(ListItemTitle, {
|
|
718
|
+
children: "1200.12"
|
|
719
|
+
})]
|
|
720
|
+
}), /*#__PURE__*/_jsx(ListItemContentRow, {
|
|
721
|
+
children: /*#__PURE__*/_jsx(Tag, {
|
|
722
|
+
size: "sm",
|
|
723
|
+
label: "BTC",
|
|
724
|
+
appearance: "gray"
|
|
725
|
+
})
|
|
726
|
+
})]
|
|
727
|
+
})
|
|
728
|
+
})]
|
|
729
|
+
})]
|
|
516
730
|
})
|
|
517
731
|
};
|
|
518
732
|
//# sourceMappingURL=ListItem.stories.js.map
|