@ledgerhq/lumen-ui-rnative 0.1.61 → 0.1.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/dist/module/lib/Components/core/Avatar/Avatar.js +17 -6
  2. package/dist/module/lib/Components/core/Avatar/Avatar.js.map +1 -1
  3. package/dist/module/lib/Components/core/Avatar/Avatar.mdx +10 -6
  4. package/dist/module/lib/Components/core/Avatar/Avatar.stories.js +15 -6
  5. package/dist/module/lib/Components/core/Avatar/Avatar.stories.js.map +1 -1
  6. package/dist/module/lib/Components/core/Avatar/Avatar.test.js +56 -0
  7. package/dist/module/lib/Components/core/Avatar/Avatar.test.js.map +1 -1
  8. package/dist/module/lib/Components/core/Avatar/index.js +1 -1
  9. package/dist/module/lib/Components/core/Avatar/index.js.map +1 -1
  10. package/dist/module/lib/Components/core/Avatar/useResolveAvatarColor.js +21 -0
  11. package/dist/module/lib/Components/core/Avatar/useResolveAvatarColor.js.map +1 -0
  12. package/dist/module/lib/Components/core/Avatar/useResolveAvatarColor.test.js +88 -0
  13. package/dist/module/lib/Components/core/Avatar/useResolveAvatarColor.test.js.map +1 -0
  14. package/dist/module/lib/Components/core/Banner/Banner.js +3 -3
  15. package/dist/module/lib/Components/core/Banner/Banner.js.map +1 -1
  16. package/dist/module/lib/Components/core/Banner/Banner.test.js +3 -3
  17. package/dist/module/lib/Components/core/Banner/Banner.test.js.map +1 -1
  18. package/dist/module/lib/Components/core/DotIcon/getDotIconProps.test.js +1 -4
  19. package/dist/module/lib/Components/core/DotIcon/getDotIconProps.test.js.map +1 -1
  20. package/dist/module/lib/Components/core/DotIcon/index.js +0 -10
  21. package/dist/module/lib/Components/core/DotIcon/index.js.map +1 -1
  22. package/dist/module/lib/Components/core/DotSymbol/getDotSymbolProps.test.js +1 -4
  23. package/dist/module/lib/Components/core/DotSymbol/getDotSymbolProps.test.js.map +1 -1
  24. package/dist/module/lib/Components/core/DotSymbol/index.js +0 -15
  25. package/dist/module/lib/Components/core/DotSymbol/index.js.map +1 -1
  26. package/dist/module/lib/Components/core/MediaButton/MediaButton.js +2 -2
  27. package/dist/module/lib/Components/core/MediaButton/MediaButton.mdx +2 -2
  28. package/dist/module/lib/Components/core/MenuList/MenuList.figma.js +21 -0
  29. package/dist/module/lib/Components/core/MenuList/MenuList.figma.js.map +1 -0
  30. package/dist/module/lib/Components/core/MenuList/MenuList.js +143 -0
  31. package/dist/module/lib/Components/core/MenuList/MenuList.js.map +1 -0
  32. package/dist/module/lib/Components/core/MenuList/MenuList.mdx +66 -0
  33. package/dist/module/lib/Components/core/MenuList/MenuList.stories.js +139 -0
  34. package/dist/module/lib/Components/core/MenuList/MenuList.stories.js.map +1 -0
  35. package/dist/module/lib/Components/core/MenuList/MenuList.test.js +146 -0
  36. package/dist/module/lib/Components/core/MenuList/MenuList.test.js.map +1 -0
  37. package/dist/module/lib/Components/core/MenuList/index.js +5 -0
  38. package/dist/module/lib/Components/core/MenuList/index.js.map +1 -0
  39. package/dist/module/lib/Components/core/MenuList/types.js.map +1 -0
  40. package/dist/module/lib/Components/core/SelectList/SelectList.figma.js +28 -0
  41. package/dist/module/lib/Components/core/{OptionList/OptionList.figma.js.map → SelectList/SelectList.figma.js.map} +1 -1
  42. package/dist/module/lib/Components/core/{OptionList/OptionList.js → SelectList/SelectList.js} +46 -46
  43. package/dist/module/lib/Components/core/{OptionList/OptionList.js.map → SelectList/SelectList.js.map} +1 -1
  44. package/dist/module/lib/Components/core/{OptionList/OptionList.mdx → SelectList/SelectList.mdx} +81 -81
  45. package/dist/module/lib/Components/core/{OptionList/OptionList.stories.js → SelectList/SelectList.stories.js} +130 -130
  46. package/dist/module/lib/Components/core/{OptionList/OptionList.stories.js.map → SelectList/SelectList.stories.js.map} +1 -1
  47. package/dist/module/lib/Components/core/{OptionList/OptionList.test.js → SelectList/SelectList.test.js} +83 -83
  48. package/dist/module/lib/Components/core/{OptionList/OptionList.test.js.map → SelectList/SelectList.test.js.map} +1 -1
  49. package/dist/module/lib/Components/core/SelectList/index.js +5 -0
  50. package/dist/module/lib/Components/core/{OptionList → SelectList}/index.js.map +1 -1
  51. package/dist/module/lib/Components/core/SelectList/types.js +4 -0
  52. package/dist/module/lib/Components/core/{OptionList → SelectList}/types.js.map +1 -1
  53. package/dist/module/lib/Components/core/{OptionList/useOptionList/useOptionListItems.js → SelectList/useSelectList/useSelectListItems.js} +2 -2
  54. package/dist/module/lib/Components/core/{OptionList/useOptionList/useOptionListItems.js.map → SelectList/useSelectList/useSelectListItems.js.map} +1 -1
  55. package/dist/module/lib/Components/core/{OptionList/useOptionList/useOptionListItems.test.js → SelectList/useSelectList/useSelectListItems.test.js} +17 -17
  56. package/dist/module/lib/Components/core/{OptionList/useOptionList/useOptionListItems.test.js.map → SelectList/useSelectList/useSelectListItems.test.js.map} +1 -1
  57. package/dist/module/lib/Components/core/index.js +2 -1
  58. package/dist/module/lib/Components/core/index.js.map +1 -1
  59. package/dist/module/lib/Components/internal/BaseButton/BaseButton.js +2 -2
  60. package/dist/module/lib/Components/internal/BaseButton/BaseButton.js.map +1 -1
  61. package/dist/module/lib/Components/internal/BaseTag/BaseTag.js +3 -3
  62. package/dist/module/lib/Components/internal/BaseTag/BaseTag.js.map +1 -1
  63. package/dist/module/lib/Components/internal/BaseTag/BaseTag.test.js +1 -1
  64. package/dist/module/lib/Components/internal/BaseTag/BaseTag.test.js.map +1 -1
  65. package/dist/module/lib/Components/symbols/Icon/Icon.test.js +1 -1
  66. package/dist/module/lib/Components/symbols/icons/CloudSync.js +50 -0
  67. package/dist/module/lib/Components/symbols/icons/CloudSync.js.map +1 -0
  68. package/dist/module/lib/Components/symbols/icons/Dollar.js +11 -5
  69. package/dist/module/lib/Components/symbols/icons/Dollar.js.map +1 -1
  70. package/dist/module/lib/Components/symbols/icons/DollarConvert.js +1 -1
  71. package/dist/module/lib/Components/symbols/icons/DollarConvert.js.map +1 -1
  72. package/dist/module/lib/Components/symbols/icons/DollarFill.js +47 -0
  73. package/dist/module/lib/Components/symbols/icons/DollarFill.js.map +1 -0
  74. package/dist/module/lib/Components/symbols/icons/FaceId.js +50 -0
  75. package/dist/module/lib/Components/symbols/icons/FaceId.js.map +1 -0
  76. package/dist/module/lib/Components/symbols/icons/Fingerprint.js +50 -0
  77. package/dist/module/lib/Components/symbols/icons/Fingerprint.js.map +1 -0
  78. package/dist/module/lib/Components/symbols/icons/Pause.js +2 -1
  79. package/dist/module/lib/Components/symbols/icons/Pause.js.map +1 -1
  80. package/dist/module/lib/Components/symbols/icons/Range.js +2 -5
  81. package/dist/module/lib/Components/symbols/icons/Range.js.map +1 -1
  82. package/dist/module/lib/Components/symbols/icons/Telegram.js +20 -9
  83. package/dist/module/lib/Components/symbols/icons/Telegram.js.map +1 -1
  84. package/dist/module/lib/Components/symbols/icons/Usb.js +1 -1
  85. package/dist/module/lib/Components/symbols/index.js +4 -0
  86. package/dist/module/lib/Components/symbols/index.js.map +1 -1
  87. package/dist/typescript/src/lib/Components/core/Avatar/Avatar.d.ts.map +1 -1
  88. package/dist/typescript/src/lib/Components/core/Avatar/index.d.ts +1 -1
  89. package/dist/typescript/src/lib/Components/core/Avatar/index.d.ts.map +1 -1
  90. package/dist/typescript/src/lib/Components/core/Avatar/types.d.ts +1 -1
  91. package/dist/typescript/src/lib/Components/core/Avatar/useResolveAvatarColor.d.ts +10 -0
  92. package/dist/typescript/src/lib/Components/core/Avatar/useResolveAvatarColor.d.ts.map +1 -0
  93. package/dist/typescript/src/lib/Components/core/DotIcon/index.d.ts +0 -7
  94. package/dist/typescript/src/lib/Components/core/DotIcon/index.d.ts.map +1 -1
  95. package/dist/typescript/src/lib/Components/core/DotSymbol/index.d.ts +0 -12
  96. package/dist/typescript/src/lib/Components/core/DotSymbol/index.d.ts.map +1 -1
  97. package/dist/typescript/src/lib/Components/core/MediaButton/MediaButton.d.ts +2 -2
  98. package/dist/typescript/src/lib/Components/core/MenuList/MenuList.d.ts +29 -0
  99. package/dist/typescript/src/lib/Components/core/MenuList/MenuList.d.ts.map +1 -0
  100. package/dist/typescript/src/lib/Components/core/MenuList/index.d.ts +3 -0
  101. package/dist/typescript/src/lib/Components/core/MenuList/index.d.ts.map +1 -0
  102. package/dist/typescript/src/lib/Components/core/MenuList/types.d.ts +42 -0
  103. package/dist/typescript/src/lib/Components/core/MenuList/types.d.ts.map +1 -0
  104. package/dist/typescript/src/lib/Components/core/SelectList/SelectList.d.ts +27 -0
  105. package/dist/typescript/src/lib/Components/core/{OptionList/OptionList.d.ts.map → SelectList/SelectList.d.ts.map} +1 -1
  106. package/dist/typescript/src/lib/Components/core/SelectList/index.d.ts +3 -0
  107. package/dist/typescript/src/lib/Components/core/{OptionList → SelectList}/index.d.ts.map +1 -1
  108. package/dist/typescript/src/lib/Components/core/{OptionList → SelectList}/types.d.ts +24 -24
  109. package/dist/typescript/src/lib/Components/core/{OptionList → SelectList}/types.d.ts.map +1 -1
  110. package/dist/typescript/src/lib/Components/core/SelectList/useSelectList/useSelectListItems.d.ts +20 -0
  111. package/dist/typescript/src/lib/Components/core/{OptionList/useOptionList/useOptionListItems.d.ts.map → SelectList/useSelectList/useSelectListItems.d.ts.map} +1 -1
  112. package/dist/typescript/src/lib/Components/core/index.d.ts +2 -1
  113. package/dist/typescript/src/lib/Components/core/index.d.ts.map +1 -1
  114. package/dist/typescript/src/lib/Components/symbols/icons/CloudSync.d.ts +35 -0
  115. package/dist/typescript/src/lib/Components/symbols/icons/CloudSync.d.ts.map +1 -0
  116. package/dist/typescript/src/lib/Components/symbols/icons/Dollar.d.ts.map +1 -1
  117. package/dist/typescript/src/lib/Components/symbols/icons/DollarFill.d.ts +35 -0
  118. package/dist/typescript/src/lib/Components/symbols/icons/DollarFill.d.ts.map +1 -0
  119. package/dist/typescript/src/lib/Components/symbols/icons/FaceId.d.ts +35 -0
  120. package/dist/typescript/src/lib/Components/symbols/icons/FaceId.d.ts.map +1 -0
  121. package/dist/typescript/src/lib/Components/symbols/icons/Fingerprint.d.ts +35 -0
  122. package/dist/typescript/src/lib/Components/symbols/icons/Fingerprint.d.ts.map +1 -0
  123. package/dist/typescript/src/lib/Components/symbols/icons/Pause.d.ts.map +1 -1
  124. package/dist/typescript/src/lib/Components/symbols/icons/Range.d.ts.map +1 -1
  125. package/dist/typescript/src/lib/Components/symbols/icons/Telegram.d.ts.map +1 -1
  126. package/dist/typescript/src/lib/Components/symbols/index.d.ts +4 -0
  127. package/dist/typescript/src/lib/Components/symbols/index.d.ts.map +1 -1
  128. package/package.json +3 -3
  129. package/src/lib/Components/core/Avatar/Avatar.mdx +10 -6
  130. package/src/lib/Components/core/Avatar/Avatar.stories.tsx +16 -9
  131. package/src/lib/Components/core/Avatar/Avatar.test.tsx +64 -0
  132. package/src/lib/Components/core/Avatar/Avatar.tsx +41 -8
  133. package/src/lib/Components/core/Avatar/index.ts +1 -1
  134. package/src/lib/Components/core/Avatar/types.ts +1 -1
  135. package/src/lib/Components/core/Avatar/useResolveAvatarColor.test.tsx +106 -0
  136. package/src/lib/Components/core/Avatar/useResolveAvatarColor.ts +25 -0
  137. package/src/lib/Components/core/Banner/Banner.test.tsx +3 -3
  138. package/src/lib/Components/core/Banner/Banner.tsx +3 -3
  139. package/src/lib/Components/core/DotIcon/getDotIconProps.test.ts +1 -5
  140. package/src/lib/Components/core/DotIcon/index.ts +0 -10
  141. package/src/lib/Components/core/DotSymbol/getDotSymbolProps.test.ts +1 -5
  142. package/src/lib/Components/core/DotSymbol/index.ts +0 -15
  143. package/src/lib/Components/core/MediaButton/MediaButton.mdx +2 -2
  144. package/src/lib/Components/core/MediaButton/MediaButton.tsx +2 -2
  145. package/src/lib/Components/core/MenuList/MenuList.figma.tsx +23 -0
  146. package/src/lib/Components/core/MenuList/MenuList.mdx +66 -0
  147. package/src/lib/Components/core/MenuList/MenuList.stories.tsx +114 -0
  148. package/src/lib/Components/core/MenuList/MenuList.test.tsx +135 -0
  149. package/src/lib/Components/core/MenuList/MenuList.tsx +162 -0
  150. package/src/lib/Components/core/MenuList/index.ts +2 -0
  151. package/src/lib/Components/core/MenuList/types.ts +49 -0
  152. package/src/lib/Components/core/SelectList/SelectList.figma.tsx +37 -0
  153. package/src/lib/Components/core/{OptionList/OptionList.mdx → SelectList/SelectList.mdx} +81 -81
  154. package/src/lib/Components/core/{OptionList/OptionList.stories.tsx → SelectList/SelectList.stories.tsx} +227 -227
  155. package/src/lib/Components/core/{OptionList/OptionList.test.tsx → SelectList/SelectList.test.tsx} +138 -138
  156. package/src/lib/Components/core/{OptionList/OptionList.tsx → SelectList/SelectList.tsx} +92 -92
  157. package/src/lib/Components/core/SelectList/index.ts +2 -0
  158. package/src/lib/Components/core/{OptionList → SelectList}/types.ts +28 -28
  159. package/src/lib/Components/core/{OptionList/useOptionList/useOptionListItems.test.ts → SelectList/useSelectList/useSelectListItems.test.ts} +24 -24
  160. package/src/lib/Components/core/{OptionList/useOptionList/useOptionListItems.ts → SelectList/useSelectList/useSelectListItems.ts} +21 -21
  161. package/src/lib/Components/core/Spot/Spot.tsx +1 -1
  162. package/src/lib/Components/core/index.ts +2 -1
  163. package/src/lib/Components/internal/BaseButton/BaseButton.tsx +2 -2
  164. package/src/lib/Components/internal/BaseTag/BaseTag.test.tsx +3 -3
  165. package/src/lib/Components/internal/BaseTag/BaseTag.tsx +3 -3
  166. package/src/lib/Components/symbols/Icon/Icon.test.tsx +1 -1
  167. package/src/lib/Components/symbols/icons/CloudSync.tsx +45 -0
  168. package/src/lib/Components/symbols/icons/Dollar.tsx +8 -1
  169. package/src/lib/Components/symbols/icons/DollarConvert.tsx +1 -1
  170. package/src/lib/Components/symbols/icons/DollarFill.tsx +42 -0
  171. package/src/lib/Components/symbols/icons/FaceId.tsx +45 -0
  172. package/src/lib/Components/symbols/icons/Fingerprint.tsx +45 -0
  173. package/src/lib/Components/symbols/icons/Pause.tsx +2 -1
  174. package/src/lib/Components/symbols/icons/Range.tsx +2 -5
  175. package/src/lib/Components/symbols/icons/Telegram.tsx +14 -7
  176. package/src/lib/Components/symbols/icons/Usb.tsx +1 -1
  177. package/src/lib/Components/symbols/index.ts +4 -0
  178. package/dist/module/lib/Components/core/Avatar/resolveAvatarColor.js +0 -18
  179. package/dist/module/lib/Components/core/Avatar/resolveAvatarColor.js.map +0 -1
  180. package/dist/module/lib/Components/core/OptionList/OptionList.figma.js +0 -28
  181. package/dist/module/lib/Components/core/OptionList/index.js +0 -5
  182. package/dist/typescript/src/lib/Components/core/Avatar/resolveAvatarColor.d.ts +0 -8
  183. package/dist/typescript/src/lib/Components/core/Avatar/resolveAvatarColor.d.ts.map +0 -1
  184. package/dist/typescript/src/lib/Components/core/OptionList/OptionList.d.ts +0 -27
  185. package/dist/typescript/src/lib/Components/core/OptionList/index.d.ts +0 -3
  186. package/dist/typescript/src/lib/Components/core/OptionList/useOptionList/useOptionListItems.d.ts +0 -20
  187. package/src/lib/Components/core/Avatar/resolveAvatarColor.ts +0 -19
  188. package/src/lib/Components/core/OptionList/OptionList.figma.tsx +0 -37
  189. package/src/lib/Components/core/OptionList/index.ts +0 -2
  190. /package/dist/module/lib/Components/core/{OptionList → MenuList}/types.js +0 -0
@@ -14,35 +14,35 @@ import { MediaButton } from '../MediaButton';
14
14
  import { Spot } from '../Spot';
15
15
  import { Tag } from '../Tag/Tag';
16
16
  import {
17
- createOptionList,
18
- OptionList,
19
- OptionListContent,
20
- OptionListEmptyState,
21
- OptionListItem,
22
- OptionListItemLeading,
23
- OptionListItemContent,
24
- OptionListItemDescription,
25
- OptionListItemContentRow,
26
- OptionListSearch,
27
- OptionListTrigger,
28
- OptionListItemText,
29
- } from './OptionList';
30
- import type { OptionListItemData } from './types';
17
+ createSelectList,
18
+ SelectList,
19
+ SelectListContent,
20
+ SelectListEmptyState,
21
+ SelectListItem,
22
+ SelectListItemLeading,
23
+ SelectListItemContent,
24
+ SelectListItemDescription,
25
+ SelectListItemContentRow,
26
+ SelectListSearch,
27
+ SelectListTrigger,
28
+ SelectListItemText,
29
+ } from './SelectList';
30
+ import type { SelectListItemData } from './types';
31
31
 
32
32
  const meta = {
33
- component: OptionList,
34
- id: 'rnative-optionlist',
35
- title: 'Core/OptionList',
33
+ component: SelectList,
34
+ id: 'rnative-selectlist',
35
+ title: 'Core/SelectList',
36
36
  subcomponents: {
37
- OptionListContent,
38
- OptionListItem,
39
- OptionListItemLeading,
40
- OptionListItemContent,
41
- OptionListItemText,
42
- OptionListItemDescription,
43
- OptionListItemContentRow,
44
- OptionListSearch,
45
- OptionListTrigger,
37
+ SelectListContent,
38
+ SelectListItem,
39
+ SelectListItemLeading,
40
+ SelectListItemContent,
41
+ SelectListItemText,
42
+ SelectListItemDescription,
43
+ SelectListItemContentRow,
44
+ SelectListSearch,
45
+ SelectListTrigger,
46
46
  },
47
47
  decorators: [
48
48
  (Story) => (
@@ -71,12 +71,12 @@ const meta = {
71
71
  },
72
72
  },
73
73
  },
74
- } satisfies Meta<typeof OptionList>;
74
+ } satisfies Meta<typeof SelectList>;
75
75
 
76
76
  export default meta;
77
- type Story = StoryObj<typeof OptionList>;
77
+ type Story = StoryObj<typeof SelectList>;
78
78
 
79
- const CURRENCIES: OptionListItemData[] = [
79
+ const CURRENCIES: SelectListItemData[] = [
80
80
  {
81
81
  value: 'btc',
82
82
  label: 'Bitcoin',
@@ -111,12 +111,12 @@ export const Base: Story = {
111
111
 
112
112
  return (
113
113
  <>
114
- <OptionListTrigger
114
+ <SelectListTrigger
115
115
  label='Currency'
116
116
  onPress={() => bottomSheetRef.current?.present()}
117
117
  >
118
118
  {selected && <Text lx={{ color: 'base' }}>{selected.label}</Text>}
119
- </OptionListTrigger>
119
+ </SelectListTrigger>
120
120
  <BottomSheet
121
121
  ref={bottomSheetRef}
122
122
  enableDynamicSizing
@@ -125,7 +125,7 @@ export const Base: Story = {
125
125
  >
126
126
  <BottomSheetView>
127
127
  <BottomSheetHeader title='Select currency' />
128
- <OptionList
128
+ <SelectList
129
129
  items={CURRENCIES}
130
130
  value={value}
131
131
  onValueChange={(v) => {
@@ -133,29 +133,29 @@ export const Base: Story = {
133
133
  bottomSheetRef.current?.dismiss();
134
134
  }}
135
135
  >
136
- <OptionListContent
136
+ <SelectListContent
137
137
  renderItem={(item) => {
138
138
  const ticker = (item.meta as { ticker: string }).ticker;
139
139
  return (
140
- <OptionListItem value={item.value}>
141
- <OptionListItemLeading>
140
+ <SelectListItem value={item.value}>
141
+ <SelectListItemLeading>
142
142
  <CryptoIcon
143
143
  ledgerId={(item.meta?.ledgerId as string) ?? ''}
144
144
  ticker={ticker}
145
145
  size={32}
146
146
  />
147
- </OptionListItemLeading>
148
- <OptionListItemContent>
149
- <OptionListItemText>{item.label}</OptionListItemText>
150
- <OptionListItemDescription>
147
+ </SelectListItemLeading>
148
+ <SelectListItemContent>
149
+ <SelectListItemText>{item.label}</SelectListItemText>
150
+ <SelectListItemDescription>
151
151
  {ticker}
152
- </OptionListItemDescription>
153
- </OptionListItemContent>
154
- </OptionListItem>
152
+ </SelectListItemDescription>
153
+ </SelectListItemContent>
154
+ </SelectListItem>
155
155
  );
156
156
  }}
157
157
  />
158
- </OptionList>
158
+ </SelectList>
159
159
  </BottomSheetView>
160
160
  </BottomSheet>
161
161
  </>
@@ -163,7 +163,7 @@ export const Base: Story = {
163
163
  },
164
164
  };
165
165
 
166
- const FOODS: OptionListItemData[] = [
166
+ const FOODS: SelectListItemData[] = [
167
167
  { value: 'apple', label: 'Apple', group: 'Fruits' },
168
168
  { value: 'banana', label: 'Banana', group: 'Fruits' },
169
169
  { value: 'orange', label: 'Orange', group: 'Fruits' },
@@ -184,12 +184,12 @@ export const WithGroups: Story = {
184
184
 
185
185
  return (
186
186
  <>
187
- <OptionListTrigger
187
+ <SelectListTrigger
188
188
  label='Food'
189
189
  onPress={() => bottomSheetRef.current?.present()}
190
190
  >
191
191
  {selected && <Text lx={{ color: 'base' }}>{selected.label}</Text>}
192
- </OptionListTrigger>
192
+ </SelectListTrigger>
193
193
  <BottomSheet
194
194
  ref={bottomSheetRef}
195
195
  enableDynamicSizing
@@ -198,7 +198,7 @@ export const WithGroups: Story = {
198
198
  >
199
199
  <BottomSheetScrollView>
200
200
  <BottomSheetHeader title='Pick a food' />
201
- <OptionList
201
+ <SelectList
202
202
  items={FOODS}
203
203
  value={value}
204
204
  onValueChange={(v) => {
@@ -206,16 +206,16 @@ export const WithGroups: Story = {
206
206
  bottomSheetRef.current?.dismiss();
207
207
  }}
208
208
  >
209
- <OptionListContent
209
+ <SelectListContent
210
210
  renderItem={(item) => (
211
- <OptionListItem value={item.value}>
212
- <OptionListItemContent>
213
- <OptionListItemText>{item.label}</OptionListItemText>
214
- </OptionListItemContent>
215
- </OptionListItem>
211
+ <SelectListItem value={item.value}>
212
+ <SelectListItemContent>
213
+ <SelectListItemText>{item.label}</SelectListItemText>
214
+ </SelectListItemContent>
215
+ </SelectListItem>
216
216
  )}
217
217
  />
218
- </OptionList>
218
+ </SelectList>
219
219
  </BottomSheetScrollView>
220
220
  </BottomSheet>
221
221
  </>
@@ -223,7 +223,7 @@ export const WithGroups: Story = {
223
223
  },
224
224
  };
225
225
 
226
- const NETWORKS: OptionListItemData[] = [
226
+ const NETWORKS: SelectListItemData[] = [
227
227
  {
228
228
  value: 'ethereum',
229
229
  label: 'Ethereum',
@@ -258,12 +258,12 @@ export const WithContentRow: Story = {
258
258
 
259
259
  return (
260
260
  <>
261
- <OptionListTrigger
261
+ <SelectListTrigger
262
262
  label='Network'
263
263
  onPress={() => bottomSheetRef.current?.present()}
264
264
  >
265
265
  {selected && <Text lx={{ color: 'base' }}>{selected.label}</Text>}
266
- </OptionListTrigger>
266
+ </SelectListTrigger>
267
267
  <BottomSheet
268
268
  ref={bottomSheetRef}
269
269
  enableDynamicSizing
@@ -272,7 +272,7 @@ export const WithContentRow: Story = {
272
272
  >
273
273
  <BottomSheetView>
274
274
  <BottomSheetHeader title='Select network' />
275
- <OptionList
275
+ <SelectList
276
276
  items={NETWORKS}
277
277
  value={value}
278
278
  onValueChange={(v) => {
@@ -280,7 +280,7 @@ export const WithContentRow: Story = {
280
280
  bottomSheetRef.current?.dismiss();
281
281
  }}
282
282
  >
283
- <OptionListContent
283
+ <SelectListContent
284
284
  renderItem={(item) => {
285
285
  const meta = item.meta as {
286
286
  ticker: string;
@@ -288,28 +288,28 @@ export const WithContentRow: Story = {
288
288
  tag: string;
289
289
  };
290
290
  return (
291
- <OptionListItem value={item.value}>
292
- <OptionListItemLeading>
291
+ <SelectListItem value={item.value}>
292
+ <SelectListItemLeading>
293
293
  <CryptoIcon
294
294
  ledgerId={meta.ledgerId}
295
295
  ticker={meta.ticker}
296
296
  size={32}
297
297
  />
298
- </OptionListItemLeading>
299
- <OptionListItemContent>
300
- <OptionListItemContentRow>
301
- <OptionListItemText>{item.label}</OptionListItemText>
298
+ </SelectListItemLeading>
299
+ <SelectListItemContent>
300
+ <SelectListItemContentRow>
301
+ <SelectListItemText>{item.label}</SelectListItemText>
302
302
  <Tag label={meta.tag} appearance='gray' size='sm' />
303
- </OptionListItemContentRow>
304
- <OptionListItemDescription>
303
+ </SelectListItemContentRow>
304
+ <SelectListItemDescription>
305
305
  {meta.ticker}
306
- </OptionListItemDescription>
307
- </OptionListItemContent>
308
- </OptionListItem>
306
+ </SelectListItemDescription>
307
+ </SelectListItemContent>
308
+ </SelectListItem>
309
309
  );
310
310
  }}
311
311
  />
312
- </OptionList>
312
+ </SelectList>
313
313
  </BottomSheetView>
314
314
  </BottomSheet>
315
315
  </>
@@ -317,7 +317,7 @@ export const WithContentRow: Story = {
317
317
  },
318
318
  };
319
319
 
320
- const ACCOUNTS: OptionListItemData[] = [
320
+ const ACCOUNTS: SelectListItemData[] = [
321
321
  {
322
322
  value: 'savings',
323
323
  label: 'Savings Account',
@@ -350,12 +350,12 @@ export const WithDisabledItems: Story = {
350
350
 
351
351
  return (
352
352
  <>
353
- <OptionListTrigger
353
+ <SelectListTrigger
354
354
  label='Account'
355
355
  onPress={() => bottomSheetRef.current?.present()}
356
356
  >
357
357
  {selected && <Text lx={{ color: 'base' }}>{selected.label}</Text>}
358
- </OptionListTrigger>
358
+ </SelectListTrigger>
359
359
  <BottomSheet
360
360
  ref={bottomSheetRef}
361
361
  enableDynamicSizing
@@ -364,7 +364,7 @@ export const WithDisabledItems: Story = {
364
364
  >
365
365
  <BottomSheetView>
366
366
  <BottomSheetHeader title='Select account' />
367
- <OptionList
367
+ <SelectList
368
368
  items={ACCOUNTS}
369
369
  value={value}
370
370
  onValueChange={(v) => {
@@ -372,24 +372,24 @@ export const WithDisabledItems: Story = {
372
372
  bottomSheetRef.current?.dismiss();
373
373
  }}
374
374
  >
375
- <OptionListContent
375
+ <SelectListContent
376
376
  renderItem={(item) => (
377
- <OptionListItem value={item.value} disabled={item.disabled}>
378
- <OptionListItemLeading>
377
+ <SelectListItem value={item.value} disabled={item.disabled}>
378
+ <SelectListItemLeading>
379
379
  <Spot appearance='icon' icon={Settings} />
380
- </OptionListItemLeading>
381
- <OptionListItemContent>
382
- <OptionListItemText>{item.label}</OptionListItemText>
380
+ </SelectListItemLeading>
381
+ <SelectListItemContent>
382
+ <SelectListItemText>{item.label}</SelectListItemText>
383
383
  {item.description && (
384
- <OptionListItemDescription>
384
+ <SelectListItemDescription>
385
385
  {item.description}
386
- </OptionListItemDescription>
386
+ </SelectListItemDescription>
387
387
  )}
388
- </OptionListItemContent>
389
- </OptionListItem>
388
+ </SelectListItemContent>
389
+ </SelectListItem>
390
390
  )}
391
391
  />
392
- </OptionList>
392
+ </SelectList>
393
393
  </BottomSheetView>
394
394
  </BottomSheet>
395
395
  </>
@@ -397,7 +397,7 @@ export const WithDisabledItems: Story = {
397
397
  },
398
398
  };
399
399
 
400
- const GROUPED_NETWORKS: OptionListItemData[] = [
400
+ const GROUPED_NETWORKS: SelectListItemData[] = [
401
401
  {
402
402
  value: 'eth-main',
403
403
  label: 'Ethereum',
@@ -442,12 +442,12 @@ export const GroupedWithContentRow: Story = {
442
442
 
443
443
  return (
444
444
  <>
445
- <OptionListTrigger
445
+ <SelectListTrigger
446
446
  label='Network'
447
447
  onPress={() => bottomSheetRef.current?.present()}
448
448
  >
449
449
  {selected && <Text lx={{ color: 'base' }}>{selected.label}</Text>}
450
- </OptionListTrigger>
450
+ </SelectListTrigger>
451
451
  <BottomSheet
452
452
  ref={bottomSheetRef}
453
453
  enableDynamicSizing
@@ -456,7 +456,7 @@ export const GroupedWithContentRow: Story = {
456
456
  >
457
457
  <BottomSheetScrollView>
458
458
  <BottomSheetHeader title='Select network' />
459
- <OptionList
459
+ <SelectList
460
460
  items={GROUPED_NETWORKS}
461
461
  value={value}
462
462
  onValueChange={(v) => {
@@ -464,7 +464,7 @@ export const GroupedWithContentRow: Story = {
464
464
  bottomSheetRef.current?.dismiss();
465
465
  }}
466
466
  >
467
- <OptionListContent
467
+ <SelectListContent
468
468
  renderItem={(item) => {
469
469
  const meta = item.meta as {
470
470
  ticker: string;
@@ -472,28 +472,28 @@ export const GroupedWithContentRow: Story = {
472
472
  tag: string;
473
473
  };
474
474
  return (
475
- <OptionListItem value={item.value}>
476
- <OptionListItemLeading>
475
+ <SelectListItem value={item.value}>
476
+ <SelectListItemLeading>
477
477
  <CryptoIcon
478
478
  ledgerId={meta.ledgerId}
479
479
  ticker={meta.ticker}
480
480
  size={32}
481
481
  />
482
- </OptionListItemLeading>
483
- <OptionListItemContent>
484
- <OptionListItemContentRow>
485
- <OptionListItemText>{item.label}</OptionListItemText>
482
+ </SelectListItemLeading>
483
+ <SelectListItemContent>
484
+ <SelectListItemContentRow>
485
+ <SelectListItemText>{item.label}</SelectListItemText>
486
486
  <Tag label={meta.tag} appearance='gray' size='sm' />
487
- </OptionListItemContentRow>
488
- <OptionListItemDescription>
487
+ </SelectListItemContentRow>
488
+ <SelectListItemDescription>
489
489
  {meta.ticker}
490
- </OptionListItemDescription>
491
- </OptionListItemContent>
492
- </OptionListItem>
490
+ </SelectListItemDescription>
491
+ </SelectListItemContent>
492
+ </SelectListItem>
493
493
  );
494
494
  }}
495
495
  />
496
- </OptionList>
496
+ </SelectList>
497
497
  </BottomSheetScrollView>
498
498
  </BottomSheet>
499
499
  </>
@@ -513,12 +513,12 @@ export const WithSearch: Story = {
513
513
 
514
514
  return (
515
515
  <>
516
- <OptionListTrigger
516
+ <SelectListTrigger
517
517
  label='Currency'
518
518
  onPress={() => bottomSheetRef.current?.present()}
519
519
  >
520
520
  {selected && <Text lx={{ color: 'base' }}>{selected.label}</Text>}
521
- </OptionListTrigger>
521
+ </SelectListTrigger>
522
522
  <BottomSheet
523
523
  ref={bottomSheetRef}
524
524
  enableDynamicSizing
@@ -527,7 +527,7 @@ export const WithSearch: Story = {
527
527
  >
528
528
  <BottomSheetView>
529
529
  <BottomSheetHeader title='Select currency' />
530
- <OptionList
530
+ <SelectList
531
531
  items={CURRENCIES}
532
532
  value={value}
533
533
  onValueChange={(v) => {
@@ -535,34 +535,34 @@ export const WithSearch: Story = {
535
535
  bottomSheetRef.current?.dismiss();
536
536
  }}
537
537
  >
538
- <OptionListSearch placeholder='Search currencies' />
539
- <OptionListContent
538
+ <SelectListSearch placeholder='Search currencies' />
539
+ <SelectListContent
540
540
  renderItem={(item) => {
541
541
  const ticker = (item.meta as { ticker: string }).ticker;
542
542
  return (
543
- <OptionListItem value={item.value}>
544
- <OptionListItemLeading>
543
+ <SelectListItem value={item.value}>
544
+ <SelectListItemLeading>
545
545
  <CryptoIcon
546
546
  ledgerId={(item.meta?.ledgerId as string) ?? ''}
547
547
  ticker={ticker}
548
548
  size={32}
549
549
  />
550
- </OptionListItemLeading>
551
- <OptionListItemContent>
552
- <OptionListItemText>{item.label}</OptionListItemText>
553
- <OptionListItemDescription>
550
+ </SelectListItemLeading>
551
+ <SelectListItemContent>
552
+ <SelectListItemText>{item.label}</SelectListItemText>
553
+ <SelectListItemDescription>
554
554
  {ticker}
555
- </OptionListItemDescription>
556
- </OptionListItemContent>
557
- </OptionListItem>
555
+ </SelectListItemDescription>
556
+ </SelectListItemContent>
557
+ </SelectListItem>
558
558
  );
559
559
  }}
560
560
  />
561
- <OptionListEmptyState
561
+ <SelectListEmptyState
562
562
  title='No currencies found'
563
563
  description='Try a different search term'
564
564
  />
565
- </OptionList>
565
+ </SelectList>
566
566
  </BottomSheetView>
567
567
  </BottomSheet>
568
568
  </>
@@ -582,12 +582,12 @@ export const WithSearchAndGroups: Story = {
582
582
 
583
583
  return (
584
584
  <>
585
- <OptionListTrigger
585
+ <SelectListTrigger
586
586
  label='Network'
587
587
  onPress={() => bottomSheetRef.current?.present()}
588
588
  >
589
589
  {selected && <Text lx={{ color: 'base' }}>{selected.label}</Text>}
590
- </OptionListTrigger>
590
+ </SelectListTrigger>
591
591
  <BottomSheet
592
592
  ref={bottomSheetRef}
593
593
  enableDynamicSizing
@@ -596,7 +596,7 @@ export const WithSearchAndGroups: Story = {
596
596
  >
597
597
  <BottomSheetScrollView>
598
598
  <BottomSheetHeader title='Select network' />
599
- <OptionList
599
+ <SelectList
600
600
  items={GROUPED_NETWORKS}
601
601
  value={value}
602
602
  onValueChange={(v) => {
@@ -604,18 +604,18 @@ export const WithSearchAndGroups: Story = {
604
604
  bottomSheetRef.current?.dismiss();
605
605
  }}
606
606
  >
607
- <OptionListSearch placeholder='Search networks' />
608
- <OptionListContent
607
+ <SelectListSearch placeholder='Search networks' />
608
+ <SelectListContent
609
609
  renderItem={(item) => (
610
- <OptionListItem value={item.value}>
611
- <OptionListItemContent>
612
- <OptionListItemText>{item.label}</OptionListItemText>
613
- </OptionListItemContent>
614
- </OptionListItem>
610
+ <SelectListItem value={item.value}>
611
+ <SelectListItemContent>
612
+ <SelectListItemText>{item.label}</SelectListItemText>
613
+ </SelectListItemContent>
614
+ </SelectListItem>
615
615
  )}
616
616
  />
617
- <OptionListEmptyState title='No networks found' />
618
- </OptionList>
617
+ <SelectListEmptyState title='No networks found' />
618
+ </SelectList>
619
619
  </BottomSheetScrollView>
620
620
  </BottomSheet>
621
621
  </>
@@ -635,12 +635,12 @@ export const WithCustomSearchFilter: Story = {
635
635
 
636
636
  return (
637
637
  <>
638
- <OptionListTrigger
638
+ <SelectListTrigger
639
639
  label='Currency'
640
640
  onPress={() => bottomSheetRef.current?.present()}
641
641
  >
642
642
  {selected && <Text lx={{ color: 'base' }}>{selected.label}</Text>}
643
- </OptionListTrigger>
643
+ </SelectListTrigger>
644
644
  <BottomSheet
645
645
  ref={bottomSheetRef}
646
646
  enableDynamicSizing
@@ -649,7 +649,7 @@ export const WithCustomSearchFilter: Story = {
649
649
  >
650
650
  <BottomSheetView>
651
651
  <BottomSheetHeader title='Select currency' />
652
- <OptionList
652
+ <SelectList
653
653
  items={CURRENCIES}
654
654
  value={value}
655
655
  onValueChange={(v) => {
@@ -665,31 +665,31 @@ export const WithCustomSearchFilter: Story = {
665
665
  );
666
666
  }}
667
667
  >
668
- <OptionListSearch placeholder='Search by name or ticker' />
669
- <OptionListContent
668
+ <SelectListSearch placeholder='Search by name or ticker' />
669
+ <SelectListContent
670
670
  renderItem={(item) => {
671
671
  const ticker = (item.meta as { ticker: string }).ticker;
672
672
  return (
673
- <OptionListItem value={item.value}>
674
- <OptionListItemLeading>
673
+ <SelectListItem value={item.value}>
674
+ <SelectListItemLeading>
675
675
  <CryptoIcon
676
676
  ledgerId={(item.meta?.ledgerId as string) ?? ''}
677
677
  ticker={ticker}
678
678
  size={32}
679
679
  />
680
- </OptionListItemLeading>
681
- <OptionListItemContent>
682
- <OptionListItemText>{item.label}</OptionListItemText>
683
- <OptionListItemDescription>
680
+ </SelectListItemLeading>
681
+ <SelectListItemContent>
682
+ <SelectListItemText>{item.label}</SelectListItemText>
683
+ <SelectListItemDescription>
684
684
  {ticker}
685
- </OptionListItemDescription>
686
- </OptionListItemContent>
687
- </OptionListItem>
685
+ </SelectListItemDescription>
686
+ </SelectListItemContent>
687
+ </SelectListItem>
688
688
  );
689
689
  }}
690
690
  />
691
- <OptionListEmptyState title='No currencies found' />
692
- </OptionList>
691
+ <SelectListEmptyState title='No currencies found' />
692
+ </SelectList>
693
693
  </BottomSheetView>
694
694
  </BottomSheet>
695
695
  </>
@@ -710,12 +710,12 @@ export const WithControlledSearch: Story = {
710
710
 
711
711
  return (
712
712
  <>
713
- <OptionListTrigger
713
+ <SelectListTrigger
714
714
  label='Currency'
715
715
  onPress={() => bottomSheetRef.current?.present()}
716
716
  >
717
717
  {selected && <Text lx={{ color: 'base' }}>{selected.label}</Text>}
718
- </OptionListTrigger>
718
+ </SelectListTrigger>
719
719
  <BottomSheet
720
720
  ref={bottomSheetRef}
721
721
  enableDynamicSizing
@@ -727,7 +727,7 @@ export const WithControlledSearch: Story = {
727
727
  <Box lx={{ padding: 's8' }}>
728
728
  <Text lx={{ color: 'muted' }}>Search: "{searchValue}"</Text>
729
729
  </Box>
730
- <OptionList
730
+ <SelectList
731
731
  items={CURRENCIES}
732
732
  value={value}
733
733
  onValueChange={(v) => {
@@ -737,31 +737,31 @@ export const WithControlledSearch: Story = {
737
737
  searchValue={searchValue}
738
738
  onSearchValueChange={setSearchValue}
739
739
  >
740
- <OptionListSearch placeholder='Search currencies' />
741
- <OptionListContent
740
+ <SelectListSearch placeholder='Search currencies' />
741
+ <SelectListContent
742
742
  renderItem={(item) => {
743
743
  const ticker = (item.meta as { ticker: string }).ticker;
744
744
  return (
745
- <OptionListItem value={item.value}>
746
- <OptionListItemLeading>
745
+ <SelectListItem value={item.value}>
746
+ <SelectListItemLeading>
747
747
  <CryptoIcon
748
748
  ledgerId={(item.meta?.ledgerId as string) ?? ''}
749
749
  ticker={ticker}
750
750
  size={32}
751
751
  />
752
- </OptionListItemLeading>
753
- <OptionListItemContent>
754
- <OptionListItemText>{item.label}</OptionListItemText>
755
- <OptionListItemDescription>
752
+ </SelectListItemLeading>
753
+ <SelectListItemContent>
754
+ <SelectListItemText>{item.label}</SelectListItemText>
755
+ <SelectListItemDescription>
756
756
  {ticker}
757
- </OptionListItemDescription>
758
- </OptionListItemContent>
759
- </OptionListItem>
757
+ </SelectListItemDescription>
758
+ </SelectListItemContent>
759
+ </SelectListItem>
760
760
  );
761
761
  }}
762
762
  />
763
- <OptionListEmptyState title='No currencies found' />
764
- </OptionList>
763
+ <SelectListEmptyState title='No currencies found' />
764
+ </SelectList>
765
765
  </BottomSheetView>
766
766
  </BottomSheet>
767
767
  </>
@@ -779,7 +779,7 @@ export const EmptyState: Story = {
779
779
 
780
780
  return (
781
781
  <>
782
- <OptionListTrigger
782
+ <SelectListTrigger
783
783
  label='Currency'
784
784
  onPress={() => bottomSheetRef.current?.present()}
785
785
  />
@@ -791,21 +791,21 @@ export const EmptyState: Story = {
791
791
  >
792
792
  <BottomSheetView>
793
793
  <BottomSheetHeader title='Select currency' />
794
- <OptionList items={[]} value={null}>
795
- <OptionListContent
794
+ <SelectList items={[]} value={null}>
795
+ <SelectListContent
796
796
  renderItem={(item) => (
797
- <OptionListItem value={item.value}>
798
- <OptionListItemContent>
799
- <OptionListItemText>{item.label}</OptionListItemText>
800
- </OptionListItemContent>
801
- </OptionListItem>
797
+ <SelectListItem value={item.value}>
798
+ <SelectListItemContent>
799
+ <SelectListItemText>{item.label}</SelectListItemText>
800
+ </SelectListItemContent>
801
+ </SelectListItem>
802
802
  )}
803
803
  />
804
- <OptionListEmptyState
804
+ <SelectListEmptyState
805
805
  title='No options available'
806
806
  description='There are no items to display'
807
807
  />
808
- </OptionList>
808
+ </SelectList>
809
809
  </BottomSheetView>
810
810
  </BottomSheet>
811
811
  </>
@@ -813,13 +813,13 @@ export const EmptyState: Story = {
813
813
  },
814
814
  };
815
815
 
816
- const SIMPLE_OPTIONS: OptionListItemData[] = [
816
+ const SIMPLE_OPTIONS: SelectListItemData[] = [
817
817
  { value: 'all', label: 'All accounts' },
818
818
  { value: 'savings', label: 'Savings' },
819
819
  { value: 'checking', label: 'Checking' },
820
820
  ];
821
821
 
822
- const SETTINGS_OPTIONS: OptionListItemData[] = [
822
+ const SETTINGS_OPTIONS: SelectListItemData[] = [
823
823
  { value: 'general', label: 'General' },
824
824
  { value: 'security', label: 'Security' },
825
825
  { value: 'notifications', label: 'Notifications' },
@@ -827,7 +827,7 @@ const SETTINGS_OPTIONS: OptionListItemData[] = [
827
827
 
828
828
  const appearances = ['gray', 'transparent', 'no-background'] as const;
829
829
 
830
- const SimpleOptionListSheet = ({
830
+ const SimpleSelectListSheet = ({
831
831
  sheetRef,
832
832
  items,
833
833
  title,
@@ -835,7 +835,7 @@ const SimpleOptionListSheet = ({
835
835
  onValueChange,
836
836
  }: {
837
837
  sheetRef: ReturnType<typeof useBottomSheetRef>;
838
- items: OptionListItemData[];
838
+ items: SelectListItemData[];
839
839
  title: string;
840
840
  value: string | null;
841
841
  onValueChange: (v: string | null) => void;
@@ -848,7 +848,7 @@ const SimpleOptionListSheet = ({
848
848
  >
849
849
  <BottomSheetView>
850
850
  <BottomSheetHeader title={title} />
851
- <OptionList
851
+ <SelectList
852
852
  items={items}
853
853
  value={value}
854
854
  onValueChange={(v) => {
@@ -856,16 +856,16 @@ const SimpleOptionListSheet = ({
856
856
  sheetRef.current?.dismiss();
857
857
  }}
858
858
  >
859
- <OptionListContent
859
+ <SelectListContent
860
860
  renderItem={(item) => (
861
- <OptionListItem value={item.value}>
862
- <OptionListItemContent>
863
- <OptionListItemText>{item.label}</OptionListItemText>
864
- </OptionListItemContent>
865
- </OptionListItem>
861
+ <SelectListItem value={item.value}>
862
+ <SelectListItemContent>
863
+ <SelectListItemText>{item.label}</SelectListItemText>
864
+ </SelectListItemContent>
865
+ </SelectListItem>
866
866
  )}
867
867
  />
868
- </OptionList>
868
+ </SelectList>
869
869
  </BottomSheetView>
870
870
  </BottomSheet>
871
871
  );
@@ -951,14 +951,14 @@ export const TriggerShowcase: Story = {
951
951
  })}
952
952
  </Box>
953
953
 
954
- <SimpleOptionListSheet
954
+ <SimpleSelectListSheet
955
955
  sheetRef={buttonRef}
956
956
  items={SIMPLE_OPTIONS}
957
957
  title='All accounts'
958
958
  value={buttonValue}
959
959
  onValueChange={setButtonValue}
960
960
  />
961
- <SimpleOptionListSheet
961
+ <SimpleSelectListSheet
962
962
  sheetRef={iconRef}
963
963
  items={SETTINGS_OPTIONS}
964
964
  title='Settings'
@@ -973,7 +973,7 @@ export const TriggerShowcase: Story = {
973
973
  >
974
974
  <BottomSheetView>
975
975
  <BottomSheetHeader title='Select network' />
976
- <OptionList
976
+ <SelectList
977
977
  items={CURRENCIES}
978
978
  value={cryptoValue}
979
979
  onValueChange={(v) => {
@@ -981,33 +981,33 @@ export const TriggerShowcase: Story = {
981
981
  cryptoRef.current?.dismiss();
982
982
  }}
983
983
  >
984
- <OptionListContent
984
+ <SelectListContent
985
985
  renderItem={(item) => {
986
986
  const ticker = (item.meta as { ticker: string }).ticker;
987
987
  return (
988
- <OptionListItem value={item.value}>
989
- <OptionListItemLeading>
988
+ <SelectListItem value={item.value}>
989
+ <SelectListItemLeading>
990
990
  <CryptoIcon
991
991
  ledgerId={(item.meta?.ledgerId as string) ?? ''}
992
992
  ticker={ticker}
993
993
  size={32}
994
994
  />
995
- </OptionListItemLeading>
996
- <OptionListItemContent>
997
- <OptionListItemText>{item.label}</OptionListItemText>
998
- <OptionListItemDescription>
995
+ </SelectListItemLeading>
996
+ <SelectListItemContent>
997
+ <SelectListItemText>{item.label}</SelectListItemText>
998
+ <SelectListItemDescription>
999
999
  {ticker}
1000
- </OptionListItemDescription>
1001
- </OptionListItemContent>
1002
- </OptionListItem>
1000
+ </SelectListItemDescription>
1001
+ </SelectListItemContent>
1002
+ </SelectListItem>
1003
1003
  );
1004
1004
  }}
1005
1005
  />
1006
- </OptionList>
1006
+ </SelectList>
1007
1007
  </BottomSheetView>
1008
1008
  </BottomSheet>
1009
1009
  {appearances.map((appearance) => (
1010
- <SimpleOptionListSheet
1010
+ <SimpleSelectListSheet
1011
1011
  key={appearance}
1012
1012
  sheetRef={appearanceRefs[appearance]}
1013
1013
  items={SIMPLE_OPTIONS}
@@ -1030,39 +1030,39 @@ export const WithDefaultValue: Story = {
1030
1030
  },
1031
1031
  render: () => (
1032
1032
  <Box lx={{ width: 's320' }}>
1033
- <OptionList items={CURRENCIES} defaultValue='eth'>
1034
- <OptionListContent
1033
+ <SelectList items={CURRENCIES} defaultValue='eth'>
1034
+ <SelectListContent
1035
1035
  renderItem={(item) => {
1036
1036
  const meta = item.meta as { ticker: string; ledgerId: string };
1037
1037
  return (
1038
- <OptionListItem value={item.value}>
1039
- <OptionListItemLeading>
1038
+ <SelectListItem value={item.value}>
1039
+ <SelectListItemLeading>
1040
1040
  <CryptoIcon
1041
1041
  ledgerId={meta.ledgerId}
1042
1042
  ticker={meta.ticker}
1043
1043
  size={32}
1044
1044
  />
1045
- </OptionListItemLeading>
1046
- <OptionListItemContent>
1047
- <OptionListItemText>{item.label}</OptionListItemText>
1048
- <OptionListItemDescription>
1045
+ </SelectListItemLeading>
1046
+ <SelectListItemContent>
1047
+ <SelectListItemText>{item.label}</SelectListItemText>
1048
+ <SelectListItemDescription>
1049
1049
  {meta.ticker}
1050
- </OptionListItemDescription>
1051
- </OptionListItemContent>
1052
- </OptionListItem>
1050
+ </SelectListItemDescription>
1051
+ </SelectListItemContent>
1052
+ </SelectListItem>
1053
1053
  );
1054
1054
  }}
1055
1055
  />
1056
- </OptionList>
1056
+ </SelectList>
1057
1057
  </Box>
1058
1058
  ),
1059
1059
  };
1060
1060
 
1061
1061
  type TypedNetwork = 'eth' | 'sol' | 'btc';
1062
1062
  type TypedNetworkMeta = { ticker: string; ledgerId: string };
1063
- const NetworkList = createOptionList<TypedNetwork, TypedNetworkMeta>();
1063
+ const NetworkList = createSelectList<TypedNetwork, TypedNetworkMeta>();
1064
1064
 
1065
- const TYPED_NETWORKS: OptionListItemData<TypedNetwork, TypedNetworkMeta>[] = [
1065
+ const TYPED_NETWORKS: SelectListItemData<TypedNetwork, TypedNetworkMeta>[] = [
1066
1066
  {
1067
1067
  value: 'eth',
1068
1068
  label: 'Ethereum',
@@ -1090,35 +1090,35 @@ export const TypesafeFactory: Story = {
1090
1090
 
1091
1091
  return (
1092
1092
  <Box lx={{ width: 's320' }}>
1093
- <NetworkList.OptionList
1093
+ <NetworkList.SelectList
1094
1094
  items={TYPED_NETWORKS}
1095
1095
  value={value}
1096
1096
  onValueChange={setValue}
1097
1097
  >
1098
- <NetworkList.OptionListContent
1098
+ <NetworkList.SelectListContent
1099
1099
  renderItem={({ value, label, meta }) =>
1100
1100
  meta ? (
1101
- <NetworkList.OptionListItem value={value}>
1102
- <NetworkList.OptionListItemLeading>
1101
+ <NetworkList.SelectListItem value={value}>
1102
+ <NetworkList.SelectListItemLeading>
1103
1103
  <CryptoIcon
1104
1104
  ledgerId={meta.ledgerId}
1105
1105
  ticker={meta.ticker}
1106
1106
  size={32}
1107
1107
  />
1108
- </NetworkList.OptionListItemLeading>
1109
- <NetworkList.OptionListItemContent>
1110
- <NetworkList.OptionListItemText>
1108
+ </NetworkList.SelectListItemLeading>
1109
+ <NetworkList.SelectListItemContent>
1110
+ <NetworkList.SelectListItemText>
1111
1111
  {label}
1112
- </NetworkList.OptionListItemText>
1113
- <NetworkList.OptionListItemDescription>
1112
+ </NetworkList.SelectListItemText>
1113
+ <NetworkList.SelectListItemDescription>
1114
1114
  {meta.ticker}
1115
- </NetworkList.OptionListItemDescription>
1116
- </NetworkList.OptionListItemContent>
1117
- </NetworkList.OptionListItem>
1115
+ </NetworkList.SelectListItemDescription>
1116
+ </NetworkList.SelectListItemContent>
1117
+ </NetworkList.SelectListItem>
1118
1118
  ) : null
1119
1119
  }
1120
1120
  />
1121
- </NetworkList.OptionList>
1121
+ </NetworkList.SelectList>
1122
1122
  </Box>
1123
1123
  );
1124
1124
  },