@ledgerhq/lumen-ui-rnative 0.1.58 → 0.1.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.
Files changed (189) hide show
  1. package/dist/module/lib/Components/animations/Pulse/Pulse.stories.js +9 -0
  2. package/dist/module/lib/Components/animations/Pulse/Pulse.stories.js.map +1 -1
  3. package/dist/module/lib/Components/animations/Spin/Spin.stories.js +3 -0
  4. package/dist/module/lib/Components/animations/Spin/Spin.stories.js.map +1 -1
  5. package/dist/module/lib/Components/core/AddressInput/AddressInput.figma.js +4 -0
  6. package/dist/module/lib/Components/core/AddressInput/AddressInput.figma.js.map +1 -1
  7. package/dist/module/lib/Components/core/AddressInput/AddressInput.js +18 -6
  8. package/dist/module/lib/Components/core/AddressInput/AddressInput.js.map +1 -1
  9. package/dist/module/lib/Components/core/AddressInput/AddressInput.mdx +26 -1
  10. package/dist/module/lib/Components/core/AddressInput/AddressInput.stories.js +30 -0
  11. package/dist/module/lib/Components/core/AddressInput/AddressInput.stories.js.map +1 -1
  12. package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.stories.js +6 -0
  13. package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.stories.js.map +1 -1
  14. package/dist/module/lib/Components/core/AmountInput/AmountInput.stories.js +64 -44
  15. package/dist/module/lib/Components/core/AmountInput/AmountInput.stories.js.map +1 -1
  16. package/dist/module/lib/Components/core/Banner/Banner.stories.js.map +1 -1
  17. package/dist/module/lib/Components/core/Button/Button.stories.js +21 -0
  18. package/dist/module/lib/Components/core/Button/Button.stories.js.map +1 -1
  19. package/dist/module/lib/Components/core/Card/Card.js +15 -10
  20. package/dist/module/lib/Components/core/Card/Card.js.map +1 -1
  21. package/dist/module/lib/Components/core/Card/Card.stories.js +19 -2
  22. package/dist/module/lib/Components/core/Card/Card.stories.js.map +1 -1
  23. package/dist/module/lib/Components/core/Card/Card.test.js +8 -3
  24. package/dist/module/lib/Components/core/Card/Card.test.js.map +1 -1
  25. package/dist/module/lib/Components/core/CardButton/CardButton.stories.js +15 -0
  26. package/dist/module/lib/Components/core/CardButton/CardButton.stories.js.map +1 -1
  27. package/dist/module/lib/Components/core/Checkbox/Checkbox.stories.js.map +1 -1
  28. package/dist/module/lib/Components/core/ContentBanner/ContentBanner.stories.js +13 -0
  29. package/dist/module/lib/Components/core/ContentBanner/ContentBanner.stories.js.map +1 -1
  30. package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.stories.js +11 -0
  31. package/dist/module/lib/Components/core/DescriptionItem/DescriptionItem.stories.js.map +1 -1
  32. package/dist/module/lib/Components/core/Divider/Divider.stories.js.map +1 -1
  33. package/dist/module/lib/Components/core/IconButton/IconButton.stories.js +10 -0
  34. package/dist/module/lib/Components/core/IconButton/IconButton.stories.js.map +1 -1
  35. package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.js +12 -0
  36. package/dist/module/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.js.map +1 -1
  37. package/dist/module/lib/Components/core/Link/Link.stories.js.map +1 -1
  38. package/dist/module/lib/Components/core/ListItem/ListItem.stories.js +21 -3
  39. package/dist/module/lib/Components/core/ListItem/ListItem.stories.js.map +1 -1
  40. package/dist/module/lib/Components/core/MediaBanner/MediaBanner.stories.js +18 -1
  41. package/dist/module/lib/Components/core/MediaBanner/MediaBanner.stories.js.map +1 -1
  42. package/dist/module/lib/Components/core/MediaButton/MediaButton.stories.js +9 -0
  43. package/dist/module/lib/Components/core/MediaButton/MediaButton.stories.js.map +1 -1
  44. package/dist/module/lib/Components/core/MediaCard/MediaCard.stories.js +13 -0
  45. package/dist/module/lib/Components/core/MediaCard/MediaCard.stories.js.map +1 -1
  46. package/dist/module/lib/Components/core/MediaTag/MediaTag.stories.js +13 -0
  47. package/dist/module/lib/Components/core/MediaTag/MediaTag.stories.js.map +1 -1
  48. package/dist/module/lib/Components/core/NavBar/NavBar.stories.js.map +1 -1
  49. package/dist/module/lib/Components/core/OptionList/OptionList.stories.js +52 -0
  50. package/dist/module/lib/Components/core/OptionList/OptionList.stories.js.map +1 -1
  51. package/dist/module/lib/Components/core/SearchInput/SearchInput.stories.js.map +1 -1
  52. package/dist/module/lib/Components/core/SectionHeader/SectionHeader.stories.js.map +1 -1
  53. package/dist/module/lib/Components/core/Skeleton/Skeleton.stories.js.map +1 -1
  54. package/dist/module/lib/Components/core/Spinner/Spinner.stories.js.map +1 -1
  55. package/dist/module/lib/Components/core/Spot/Spot.stories.js +20 -0
  56. package/dist/module/lib/Components/core/Spot/Spot.stories.js.map +1 -1
  57. package/dist/module/lib/Components/core/Stepper/Stepper.stories.js +4 -0
  58. package/dist/module/lib/Components/core/Stepper/Stepper.stories.js.map +1 -1
  59. package/dist/module/lib/Components/core/Subheader/Subheader.stories.js.map +1 -1
  60. package/dist/module/lib/Components/core/Switch/Switch.stories.js.map +1 -1
  61. package/dist/module/lib/Components/core/Tag/Tag.stories.js +12 -0
  62. package/dist/module/lib/Components/core/Tag/Tag.stories.js.map +1 -1
  63. package/dist/module/lib/Components/core/TextInput/TextInput.figma.js +4 -0
  64. package/dist/module/lib/Components/core/TextInput/TextInput.figma.js.map +1 -1
  65. package/dist/module/lib/Components/core/TextInput/TextInput.mdx +25 -0
  66. package/dist/module/lib/Components/core/TextInput/TextInput.stories.js +29 -0
  67. package/dist/module/lib/Components/core/TextInput/TextInput.stories.js.map +1 -1
  68. package/dist/module/lib/Components/core/TextInput/TextInput.test.js +125 -2
  69. package/dist/module/lib/Components/core/TextInput/TextInput.test.js.map +1 -1
  70. package/dist/module/lib/Components/core/Tile/Tile.stories.js +23 -1
  71. package/dist/module/lib/Components/core/Tile/Tile.stories.js.map +1 -1
  72. package/dist/module/lib/Components/core/TileButton/TileButton.stories.js +24 -0
  73. package/dist/module/lib/Components/core/TileButton/TileButton.stories.js.map +1 -1
  74. package/dist/module/lib/Components/core/Tooltip/Tooltip.stories.js +12 -0
  75. package/dist/module/lib/Components/core/Tooltip/Tooltip.stories.js.map +1 -1
  76. package/dist/module/lib/Components/core/Trend/Trend.stories.js +9 -0
  77. package/dist/module/lib/Components/core/Trend/Trend.stories.js.map +1 -1
  78. package/dist/module/lib/Components/internal/BaseInput/BaseInput.js +114 -201
  79. package/dist/module/lib/Components/internal/BaseInput/BaseInput.js.map +1 -1
  80. package/dist/module/lib/Components/internal/BaseInput/BaseInputCounter.js +32 -0
  81. package/dist/module/lib/Components/internal/BaseInput/BaseInputCounter.js.map +1 -0
  82. package/dist/module/lib/Components/internal/BaseInput/BaseInputHelperText.js +60 -0
  83. package/dist/module/lib/Components/internal/BaseInput/BaseInputHelperText.js.map +1 -0
  84. package/dist/module/lib/Components/internal/BaseInput/BaseInputLabel.js +126 -0
  85. package/dist/module/lib/Components/internal/BaseInput/BaseInputLabel.js.map +1 -0
  86. package/dist/module/lib/Components/internal/BaseInput/multilineLayout.js +34 -0
  87. package/dist/module/lib/Components/internal/BaseInput/multilineLayout.js.map +1 -0
  88. package/dist/module/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.js +46 -0
  89. package/dist/module/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.js.map +1 -0
  90. package/dist/module/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.test.js +111 -0
  91. package/dist/module/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.test.js.map +1 -0
  92. package/dist/module/lib/Components/primitives/Box/Box.stories.js.map +1 -1
  93. package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.js +14 -0
  94. package/dist/module/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.js.map +1 -1
  95. package/dist/module/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.js +8 -0
  96. package/dist/module/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.js.map +1 -1
  97. package/dist/module/lib/Components/primitives/Pressable/Pressable.stories.js.map +1 -1
  98. package/dist/module/lib/Components/primitives/Text/Text.stories.js.map +1 -1
  99. package/dist/module/lib/Components/symbols/Icon/Icon.stories.js.map +1 -1
  100. package/dist/typescript/src/lib/Components/core/AddressInput/AddressInput.d.ts +1 -1
  101. package/dist/typescript/src/lib/Components/core/AddressInput/AddressInput.d.ts.map +1 -1
  102. package/dist/typescript/src/lib/Components/core/Card/Card.d.ts.map +1 -1
  103. package/dist/typescript/src/lib/Components/core/SearchInput/types.d.ts +1 -1
  104. package/dist/typescript/src/lib/Components/core/SearchInput/types.d.ts.map +1 -1
  105. package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInput.d.ts +1 -1
  106. package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInput.d.ts.map +1 -1
  107. package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputCounter.d.ts +8 -0
  108. package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputCounter.d.ts.map +1 -0
  109. package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputHelperText.d.ts +8 -0
  110. package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputHelperText.d.ts.map +1 -0
  111. package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputLabel.d.ts +8 -0
  112. package/dist/typescript/src/lib/Components/internal/BaseInput/BaseInputLabel.d.ts.map +1 -0
  113. package/dist/typescript/src/lib/Components/internal/BaseInput/multilineLayout.d.ts +27 -0
  114. package/dist/typescript/src/lib/Components/internal/BaseInput/multilineLayout.d.ts.map +1 -0
  115. package/dist/typescript/src/lib/Components/internal/BaseInput/types.d.ts +48 -1
  116. package/dist/typescript/src/lib/Components/internal/BaseInput/types.d.ts.map +1 -1
  117. package/dist/typescript/src/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.d.ts +27 -0
  118. package/dist/typescript/src/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.d.ts.map +1 -0
  119. package/package.json +2 -2
  120. package/src/lib/Components/animations/Pulse/Pulse.stories.tsx +7 -2
  121. package/src/lib/Components/animations/Spin/Spin.stories.tsx +5 -2
  122. package/src/lib/Components/core/AddressInput/AddressInput.figma.tsx +4 -0
  123. package/src/lib/Components/core/AddressInput/AddressInput.mdx +26 -1
  124. package/src/lib/Components/core/AddressInput/AddressInput.stories.tsx +30 -2
  125. package/src/lib/Components/core/AddressInput/AddressInput.tsx +24 -8
  126. package/src/lib/Components/core/AmountDisplay/AmountDisplay.stories.tsx +8 -2
  127. package/src/lib/Components/core/AmountInput/AmountInput.stories.tsx +33 -13
  128. package/src/lib/Components/core/Avatar/Avatar.stories.tsx +1 -1
  129. package/src/lib/Components/core/AvatarButton/AvatarButton.stories.tsx +1 -1
  130. package/src/lib/Components/core/Banner/Banner.stories.tsx +2 -2
  131. package/src/lib/Components/core/Button/Button.stories.tsx +23 -2
  132. package/src/lib/Components/core/Card/Card.stories.tsx +19 -2
  133. package/src/lib/Components/core/Card/Card.test.tsx +10 -3
  134. package/src/lib/Components/core/Card/Card.tsx +20 -9
  135. package/src/lib/Components/core/CardButton/CardButton.stories.tsx +17 -2
  136. package/src/lib/Components/core/Checkbox/Checkbox.stories.tsx +3 -3
  137. package/src/lib/Components/core/ContentBanner/ContentBanner.stories.tsx +15 -2
  138. package/src/lib/Components/core/DescriptionItem/DescriptionItem.stories.tsx +13 -2
  139. package/src/lib/Components/core/Divider/Divider.stories.tsx +2 -2
  140. package/src/lib/Components/core/DotCount/DotCount.stories.tsx +1 -1
  141. package/src/lib/Components/core/DotIcon/DotIcon.stories.tsx +1 -1
  142. package/src/lib/Components/core/DotIndicator/DotIndicator.stories.tsx +1 -1
  143. package/src/lib/Components/core/DotSymbol/DotSymbol.stories.tsx +1 -1
  144. package/src/lib/Components/core/IconButton/IconButton.stories.tsx +12 -2
  145. package/src/lib/Components/core/InteractiveIcon/InteractiveIcon.stories.tsx +14 -2
  146. package/src/lib/Components/core/Link/Link.stories.tsx +2 -2
  147. package/src/lib/Components/core/ListItem/ListItem.stories.tsx +18 -0
  148. package/src/lib/Components/core/MediaBanner/MediaBanner.stories.tsx +19 -2
  149. package/src/lib/Components/core/MediaButton/MediaButton.stories.tsx +11 -2
  150. package/src/lib/Components/core/MediaCard/MediaCard.stories.tsx +13 -0
  151. package/src/lib/Components/core/MediaImage/MediaImage.stories.tsx +1 -1
  152. package/src/lib/Components/core/MediaTag/MediaTag.stories.tsx +15 -2
  153. package/src/lib/Components/core/NavBar/NavBar.stories.tsx +2 -2
  154. package/src/lib/Components/core/OptionList/OptionList.stories.tsx +52 -0
  155. package/src/lib/Components/core/PageIndicator/PageIndicator.stories.tsx +1 -1
  156. package/src/lib/Components/core/SearchInput/SearchInput.stories.tsx +2 -2
  157. package/src/lib/Components/core/SearchInput/types.ts +4 -1
  158. package/src/lib/Components/core/SectionHeader/SectionHeader.stories.tsx +2 -2
  159. package/src/lib/Components/core/SegmentedControl/SegmentedControl.stories.tsx +1 -1
  160. package/src/lib/Components/core/Skeleton/Skeleton.stories.tsx +2 -2
  161. package/src/lib/Components/core/Spinner/Spinner.stories.tsx +2 -2
  162. package/src/lib/Components/core/Spot/Spot.stories.tsx +22 -2
  163. package/src/lib/Components/core/Stepper/Stepper.stories.tsx +6 -2
  164. package/src/lib/Components/core/Subheader/Subheader.stories.tsx +2 -2
  165. package/src/lib/Components/core/Switch/Switch.stories.tsx +3 -3
  166. package/src/lib/Components/core/TabBar/TabBar.stories.tsx +1 -1
  167. package/src/lib/Components/core/Tag/Tag.stories.tsx +14 -2
  168. package/src/lib/Components/core/TextInput/TextInput.figma.tsx +4 -0
  169. package/src/lib/Components/core/TextInput/TextInput.mdx +25 -0
  170. package/src/lib/Components/core/TextInput/TextInput.stories.tsx +29 -2
  171. package/src/lib/Components/core/TextInput/TextInput.test.tsx +129 -2
  172. package/src/lib/Components/core/Tile/Tile.stories.tsx +24 -2
  173. package/src/lib/Components/core/TileButton/TileButton.stories.tsx +26 -2
  174. package/src/lib/Components/core/Tooltip/Tooltip.stories.tsx +14 -2
  175. package/src/lib/Components/core/Trend/Trend.stories.tsx +11 -2
  176. package/src/lib/Components/internal/BaseInput/BaseInput.tsx +123 -242
  177. package/src/lib/Components/internal/BaseInput/BaseInputCounter.tsx +35 -0
  178. package/src/lib/Components/internal/BaseInput/BaseInputHelperText.tsx +57 -0
  179. package/src/lib/Components/internal/BaseInput/BaseInputLabel.tsx +137 -0
  180. package/src/lib/Components/internal/BaseInput/multilineLayout.ts +49 -0
  181. package/src/lib/Components/internal/BaseInput/types.ts +49 -1
  182. package/src/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.test.ts +110 -0
  183. package/src/lib/Components/internal/BaseInput/useBaseInputValue/useBaseInputValue.ts +72 -0
  184. package/src/lib/Components/primitives/Box/Box.stories.tsx +2 -2
  185. package/src/lib/Components/primitives/Gradient/LinearGradient/LinearGradient.stories.tsx +6 -2
  186. package/src/lib/Components/primitives/Gradient/RadialGradient/RadialGradient.stories.tsx +5 -2
  187. package/src/lib/Components/primitives/Pressable/Pressable.stories.tsx +2 -2
  188. package/src/lib/Components/primitives/Text/Text.stories.tsx +2 -2
  189. package/src/lib/Components/symbols/Icon/Icon.stories.tsx +2 -2
@@ -59,6 +59,7 @@ export const Base: Story = {
59
59
  args: {
60
60
  density: 'expanded',
61
61
  lx: { maxWidth: 's320' },
62
+ children: null,
62
63
  },
63
64
  render: (args) => (
64
65
  <ListItem {...args}>
@@ -99,6 +100,9 @@ export const Base: Story = {
99
100
  };
100
101
 
101
102
  export const DensityShowcase: Story = {
103
+ args: {
104
+ children: null,
105
+ },
102
106
  render: () => (
103
107
  <Box lx={{ flexDirection: 'column', maxWidth: 's320', gap: 's8' }}>
104
108
  <ListItem density='compact' onPress={() => {}}>
@@ -155,6 +159,9 @@ export const DensityShowcase: Story = {
155
159
  };
156
160
 
157
161
  export const InteractiveShowcase: Story = {
162
+ args: {
163
+ children: null,
164
+ },
158
165
  render: () => {
159
166
  const [selected, setSelected] = useState(false);
160
167
 
@@ -245,6 +252,7 @@ export const InteractiveShowcase: Story = {
245
252
  export const DisabledState: Story = {
246
253
  args: {
247
254
  disabled: true,
255
+ children: null,
248
256
  },
249
257
  render: (args) => (
250
258
  <Box lx={{ flexDirection: 'column', width: 's320' }}>
@@ -326,6 +334,7 @@ export const DisabledState: Story = {
326
334
  export const ActiveState: Story = {
327
335
  args: {
328
336
  active: true,
337
+ children: null,
329
338
  },
330
339
  render: (args) => (
331
340
  <Box lx={{ flexDirection: 'column', width: 's320', gap: 's8' }}>
@@ -368,6 +377,9 @@ export const ActiveState: Story = {
368
377
  };
369
378
 
370
379
  export const ResponsiveLayout: Story = {
380
+ args: {
381
+ children: null,
382
+ },
371
383
  render: () => (
372
384
  <Box lx={{ flexDirection: 'column', width: 's480', gap: 's32' }}>
373
385
  <ListItem lx={{ alignSelf: 'flex-start' }} onPress={() => {}}>
@@ -447,6 +459,9 @@ export const ResponsiveLayout: Story = {
447
459
  };
448
460
 
449
461
  export const PriorityShowcase: Story = {
462
+ args: {
463
+ children: null,
464
+ },
450
465
  render: () => (
451
466
  <Box lx={{ flexDirection: 'column', width: 's320', gap: 's8' }}>
452
467
  <Text typography='body4SemiBold' lx={{ color: 'muted' }}>
@@ -495,6 +510,9 @@ export const PriorityShowcase: Story = {
495
510
  };
496
511
 
497
512
  export const CompositionShowcase: Story = {
513
+ args: {
514
+ children: null,
515
+ },
498
516
  render: () => (
499
517
  <Box lx={{ flexDirection: 'column', maxWidth: 's320', gap: 's8' }}>
500
518
  <ListItem>
@@ -11,7 +11,7 @@ import {
11
11
  const IMAGE_URL =
12
12
  'https://images.unsplash.com/photo-1663741954108-d15d514529ef';
13
13
 
14
- const meta: Meta<typeof MediaBanner> = {
14
+ const meta = {
15
15
  component: MediaBanner,
16
16
  id: 'rnative-mediabanner',
17
17
  title: 'Core/MediaBanner',
@@ -48,7 +48,7 @@ const meta: Meta<typeof MediaBanner> = {
48
48
  },
49
49
  },
50
50
  },
51
- };
51
+ } satisfies Meta<typeof MediaBanner>;
52
52
 
53
53
  export default meta;
54
54
  type Story = StoryObj<typeof MediaBanner>;
@@ -56,6 +56,7 @@ type Story = StoryObj<typeof MediaBanner>;
56
56
  export const Base: Story = {
57
57
  args: {
58
58
  imageUrl: IMAGE_URL,
59
+ children: null,
59
60
  },
60
61
  render: (args) => (
61
62
  <Box lx={{ width: 's400' }}>
@@ -82,6 +83,10 @@ export const Base: Story = {
82
83
  };
83
84
 
84
85
  export const Truncation: Story = {
86
+ args: {
87
+ imageUrl: IMAGE_URL,
88
+ children: null,
89
+ },
85
90
  render: () => (
86
91
  <Box lx={{ width: 's400' }}>
87
92
  <MediaBanner imageUrl={IMAGE_URL} onClose={() => console.log('close')}>
@@ -99,6 +104,10 @@ export const Truncation: Story = {
99
104
  };
100
105
 
101
106
  export const WithBrokenImage: Story = {
107
+ args: {
108
+ imageUrl: IMAGE_URL,
109
+ children: null,
110
+ },
102
111
  render: () => (
103
112
  <Box lx={{ width: 's400' }}>
104
113
  <MediaBanner
@@ -115,6 +124,10 @@ export const WithBrokenImage: Story = {
115
124
  };
116
125
 
117
126
  export const Clickable: Story = {
127
+ args: {
128
+ imageUrl: IMAGE_URL,
129
+ children: null,
130
+ },
118
131
  render: () => {
119
132
  const [count, setCount] = useState(0);
120
133
 
@@ -137,6 +150,10 @@ export const Clickable: Story = {
137
150
  };
138
151
 
139
152
  export const WithClose: Story = {
153
+ args: {
154
+ imageUrl: IMAGE_URL,
155
+ children: null,
156
+ },
140
157
  render: () => {
141
158
  const [visible, setVisible] = useState(true);
142
159
 
@@ -4,7 +4,7 @@ import { Box } from '../../primitives';
4
4
  import { Settings, Star } from '../../symbols';
5
5
  import { MediaButton } from './MediaButton';
6
6
 
7
- const meta: Meta<typeof MediaButton> = {
7
+ const meta = {
8
8
  component: MediaButton,
9
9
  id: 'rnative-mediabutton',
10
10
  title: 'Core/MediaButton',
@@ -18,7 +18,7 @@ const meta: Meta<typeof MediaButton> = {
18
18
  },
19
19
  },
20
20
  },
21
- };
21
+ } satisfies Meta<typeof MediaButton>;
22
22
 
23
23
  export default meta;
24
24
  type Story = StoryObj<typeof MediaButton>;
@@ -43,6 +43,9 @@ export const Base: Story = {
43
43
  };
44
44
 
45
45
  export const SizeShowcase: Story = {
46
+ args: {
47
+ children: 'All accounts',
48
+ },
46
49
  render: () => (
47
50
  <Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's16' }}>
48
51
  <MediaButton
@@ -64,6 +67,9 @@ export const SizeShowcase: Story = {
64
67
  };
65
68
 
66
69
  export const LeadingContentShapeShowcase: Story = {
70
+ args: {
71
+ children: 'All accounts',
72
+ },
67
73
  render: () => (
68
74
  <Box lx={{ flexDirection: 'column', gap: 's16' }}>
69
75
  <Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's16' }}>
@@ -113,6 +119,9 @@ export const LeadingContentShapeShowcase: Story = {
113
119
  };
114
120
 
115
121
  export const AppearanceShowcase: Story = {
122
+ args: {
123
+ children: 'All accounts',
124
+ },
116
125
  render: () => {
117
126
  const appearances = ['gray', 'transparent', 'no-background'] as const;
118
127
  return (
@@ -32,6 +32,7 @@ const EXAMPLE_SRC =
32
32
 
33
33
  const baseArgs = {
34
34
  imageUrl: EXAMPLE_SRC,
35
+ children: null,
35
36
  onPress: () => ({}),
36
37
  onClose: () => ({}),
37
38
  };
@@ -74,6 +75,10 @@ export const Base: Story = {
74
75
  };
75
76
 
76
77
  export const LayoutShowcase: Story = {
78
+ args: {
79
+ imageUrl: EXAMPLE_SRC,
80
+ children: null,
81
+ },
77
82
  render: () => (
78
83
  <Box
79
84
  lx={{
@@ -103,6 +108,10 @@ export const LayoutShowcase: Story = {
103
108
  };
104
109
 
105
110
  export const CompositionShowcase: Story = {
111
+ args: {
112
+ imageUrl: EXAMPLE_SRC,
113
+ children: null,
114
+ },
106
115
  render: () => (
107
116
  <Box
108
117
  lx={{
@@ -153,6 +162,10 @@ export const CompositionShowcase: Story = {
153
162
  };
154
163
 
155
164
  export const WithClose: Story = {
165
+ args: {
166
+ imageUrl: EXAMPLE_SRC,
167
+ children: null,
168
+ },
156
169
  render: () => {
157
170
  const [visible, setVisible] = useState(true);
158
171
 
@@ -18,7 +18,7 @@ const meta = {
18
18
  } satisfies Meta<typeof MediaImage>;
19
19
 
20
20
  export default meta;
21
- type Story = StoryObj<typeof meta>;
21
+ type Story = StoryObj<typeof MediaImage>;
22
22
 
23
23
  const exampleSrc = 'https://crypto-icons.ledger.com/ADA.png';
24
24
 
@@ -12,7 +12,7 @@ const ETH_ICON = (
12
12
  />
13
13
  );
14
14
 
15
- const meta: Meta<typeof MediaTag> = {
15
+ const meta = {
16
16
  component: MediaTag,
17
17
  id: 'rnative-mediatag',
18
18
  title: 'Core/MediaTag',
@@ -38,7 +38,7 @@ const meta: Meta<typeof MediaTag> = {
38
38
  control: 'text',
39
39
  },
40
40
  },
41
- };
41
+ } satisfies Meta<typeof MediaTag>;
42
42
 
43
43
  export default meta;
44
44
 
@@ -47,6 +47,7 @@ type Story = StoryObj<typeof MediaTag>;
47
47
  export const Base: Story = {
48
48
  args: {
49
49
  label: 'Ethereum',
50
+ leadingContent: ETH_ICON,
50
51
  appearance: 'accent',
51
52
  size: 'md',
52
53
  },
@@ -54,6 +55,10 @@ export const Base: Story = {
54
55
  };
55
56
 
56
57
  export const AppearanceShowcase: Story = {
58
+ args: {
59
+ label: 'Ethereum',
60
+ leadingContent: ETH_ICON,
61
+ },
57
62
  render: () => (
58
63
  <Box lx={{ flexDirection: 'row', flexWrap: 'wrap', gap: 's4' }}>
59
64
  <MediaTag appearance='base' label='Base' leadingContent={ETH_ICON} />
@@ -82,6 +87,10 @@ export const AppearanceShowcase: Story = {
82
87
  };
83
88
 
84
89
  export const SizeShowcase: Story = {
90
+ args: {
91
+ label: 'Ethereum',
92
+ leadingContent: ETH_ICON,
93
+ },
85
94
  render: () => (
86
95
  <Box lx={{ flexDirection: 'row', alignItems: 'center', gap: 's4' }}>
87
96
  <MediaTag size='md' label='Medium' leadingContent={ETH_ICON} />
@@ -102,6 +111,10 @@ export const SizeShowcase: Story = {
102
111
  };
103
112
 
104
113
  export const TruncateShowcase: Story = {
114
+ args: {
115
+ label: 'Ethereum',
116
+ leadingContent: ETH_ICON,
117
+ },
105
118
  render: () => (
106
119
  <Box lx={{ width: 's176' }}>
107
120
  <MediaTag
@@ -12,7 +12,7 @@ import {
12
12
  NavBarTrailing,
13
13
  } from './NavBar';
14
14
 
15
- const meta: Meta<typeof NavBar> = {
15
+ const meta = {
16
16
  component: NavBar,
17
17
  id: 'rnative-navbar',
18
18
  title: 'Core/NavBar',
@@ -42,7 +42,7 @@ const meta: Meta<typeof NavBar> = {
42
42
  description: 'Controls the density/layout of the NavBar',
43
43
  },
44
44
  },
45
- };
45
+ } satisfies Meta<typeof NavBar>;
46
46
 
47
47
  export default meta;
48
48
  type Story = StoryObj<typeof NavBar>;
@@ -100,6 +100,10 @@ const CURRENCIES: OptionListItemData[] = [
100
100
  ];
101
101
 
102
102
  export const Base: Story = {
103
+ args: {
104
+ items: CURRENCIES,
105
+ children: null,
106
+ },
103
107
  render: () => {
104
108
  const [value, setValue] = useState<string | null>(null);
105
109
  const bottomSheetRef = useBottomSheetRef();
@@ -169,6 +173,10 @@ const FOODS: OptionListItemData[] = [
169
173
  ];
170
174
 
171
175
  export const WithGroups: Story = {
176
+ args: {
177
+ items: FOODS,
178
+ children: null,
179
+ },
172
180
  render: () => {
173
181
  const [value, setValue] = useState<string | null>(null);
174
182
  const bottomSheetRef = useBottomSheetRef();
@@ -239,6 +247,10 @@ const NETWORKS: OptionListItemData[] = [
239
247
  ];
240
248
 
241
249
  export const WithContentRow: Story = {
250
+ args: {
251
+ items: NETWORKS,
252
+ children: null,
253
+ },
242
254
  render: () => {
243
255
  const [value, setValue] = useState<string | null>(null);
244
256
  const bottomSheetRef = useBottomSheetRef();
@@ -327,6 +339,10 @@ const ACCOUNTS: OptionListItemData[] = [
327
339
  ];
328
340
 
329
341
  export const WithDisabledItems: Story = {
342
+ args: {
343
+ items: ACCOUNTS,
344
+ children: null,
345
+ },
330
346
  render: () => {
331
347
  const [value, setValue] = useState<string | null>(null);
332
348
  const bottomSheetRef = useBottomSheetRef();
@@ -415,6 +431,10 @@ const GROUPED_NETWORKS: OptionListItemData[] = [
415
431
  ];
416
432
 
417
433
  export const GroupedWithContentRow: Story = {
434
+ args: {
435
+ items: GROUPED_NETWORKS,
436
+ children: null,
437
+ },
418
438
  render: () => {
419
439
  const [value, setValue] = useState<string | null>(null);
420
440
  const bottomSheetRef = useBottomSheetRef();
@@ -482,6 +502,10 @@ export const GroupedWithContentRow: Story = {
482
502
  };
483
503
 
484
504
  export const WithSearch: Story = {
505
+ args: {
506
+ items: CURRENCIES,
507
+ children: null,
508
+ },
485
509
  render: () => {
486
510
  const [value, setValue] = useState<string | null>(null);
487
511
  const bottomSheetRef = useBottomSheetRef();
@@ -547,6 +571,10 @@ export const WithSearch: Story = {
547
571
  };
548
572
 
549
573
  export const WithSearchAndGroups: Story = {
574
+ args: {
575
+ items: GROUPED_NETWORKS,
576
+ children: null,
577
+ },
550
578
  render: () => {
551
579
  const [value, setValue] = useState<string | null>(null);
552
580
  const bottomSheetRef = useBottomSheetRef();
@@ -596,6 +624,10 @@ export const WithSearchAndGroups: Story = {
596
624
  };
597
625
 
598
626
  export const WithCustomSearchFilter: Story = {
627
+ args: {
628
+ items: CURRENCIES,
629
+ children: null,
630
+ },
599
631
  render: () => {
600
632
  const [value, setValue] = useState<string | null>(null);
601
633
  const bottomSheetRef = useBottomSheetRef();
@@ -666,6 +698,10 @@ export const WithCustomSearchFilter: Story = {
666
698
  };
667
699
 
668
700
  export const WithControlledSearch: Story = {
701
+ args: {
702
+ items: CURRENCIES,
703
+ children: null,
704
+ },
669
705
  render: () => {
670
706
  const [value, setValue] = useState<string | null>(null);
671
707
  const [searchValue, setSearchValue] = useState('');
@@ -734,6 +770,10 @@ export const WithControlledSearch: Story = {
734
770
  };
735
771
 
736
772
  export const EmptyState: Story = {
773
+ args: {
774
+ items: [],
775
+ children: null,
776
+ },
737
777
  render: () => {
738
778
  const bottomSheetRef = useBottomSheetRef();
739
779
 
@@ -831,6 +871,10 @@ const SimpleOptionListSheet = ({
831
871
  );
832
872
 
833
873
  export const TriggerShowcase: Story = {
874
+ args: {
875
+ items: SIMPLE_OPTIONS,
876
+ children: null,
877
+ },
834
878
  render: () => {
835
879
  const [buttonValue, setButtonValue] = useState<string | null>(null);
836
880
  const [iconValue, setIconValue] = useState<string | null>(null);
@@ -980,6 +1024,10 @@ export const TriggerShowcase: Story = {
980
1024
  };
981
1025
 
982
1026
  export const WithDefaultValue: Story = {
1027
+ args: {
1028
+ items: CURRENCIES,
1029
+ children: null,
1030
+ },
983
1031
  render: () => (
984
1032
  <Box lx={{ width: 's320' }}>
985
1033
  <OptionList items={CURRENCIES} defaultValue='eth'>
@@ -1033,6 +1081,10 @@ const TYPED_NETWORKS: OptionListItemData<TypedNetwork, TypedNetworkMeta>[] = [
1033
1081
  ];
1034
1082
 
1035
1083
  export const TypesafeFactory: Story = {
1084
+ args: {
1085
+ items: TYPED_NETWORKS,
1086
+ children: null,
1087
+ },
1036
1088
  render: () => {
1037
1089
  const [value, setValue] = useState<TypedNetwork | null>('eth');
1038
1090
 
@@ -21,7 +21,7 @@ const meta = {
21
21
 
22
22
  export default meta;
23
23
 
24
- type Story = StoryObj<typeof meta>;
24
+ type Story = StoryObj<typeof PageIndicator>;
25
25
 
26
26
  export const Base: Story = {
27
27
  args: {
@@ -4,7 +4,7 @@ import { View } from 'react-native';
4
4
  import { SearchInput } from './SearchInput';
5
5
  import type { SearchInputProps } from './types';
6
6
 
7
- const meta: Meta<typeof SearchInput> = {
7
+ const meta = {
8
8
  component: SearchInput,
9
9
  id: 'rnative-searchinput',
10
10
  title: 'Core/SearchInput',
@@ -20,7 +20,7 @@ const meta: Meta<typeof SearchInput> = {
20
20
  },
21
21
  },
22
22
  },
23
- };
23
+ } satisfies Meta<typeof SearchInput>;
24
24
 
25
25
  export default meta;
26
26
  type Story = StoryObj<typeof SearchInput>;
@@ -1,7 +1,10 @@
1
1
  import type { BaseInputProps } from '../../internal/BaseInput';
2
2
  import type { BoxProps } from '../../primitives';
3
3
 
4
- export type SearchInputProps = Omit<BaseInputProps, 'prefix' | 'label'> &
4
+ export type SearchInputProps = Omit<
5
+ BaseInputProps,
6
+ 'prefix' | 'label' | 'multiline' | 'minLines' | 'maxLines'
7
+ > &
5
8
  BoxProps & {
6
9
  /**
7
10
  * The visual appearance of the search input
@@ -7,7 +7,7 @@ import {
7
7
  SectionHeaderTitle,
8
8
  } from './SectionHeader';
9
9
 
10
- const meta: Meta<typeof SectionHeader> = {
10
+ const meta = {
11
11
  component: SectionHeader,
12
12
  id: 'rnative-sectionheader',
13
13
  title: 'Core/SectionHeader',
@@ -39,7 +39,7 @@ const meta: Meta<typeof SectionHeader> = {
39
39
  </Box>
40
40
  ),
41
41
  ],
42
- };
42
+ } satisfies Meta<typeof SectionHeader>;
43
43
 
44
44
  export default meta;
45
45
  type Story = StoryObj<typeof SectionHeader>;
@@ -40,7 +40,7 @@ const meta = {
40
40
  } satisfies Meta<typeof SegmentedControl>;
41
41
 
42
42
  export default meta;
43
- type Story = StoryObj<typeof meta>;
43
+ type Story = StoryObj<typeof SegmentedControl>;
44
44
 
45
45
  export const Base: Story = {
46
46
  args: {} as React.ComponentProps<typeof SegmentedControl>,
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react-native-web-vite';
2
2
  import { Box } from '../../primitives/Box';
3
3
  import { Skeleton } from './Skeleton';
4
4
 
5
- const meta: Meta<typeof Skeleton> = {
5
+ const meta = {
6
6
  id: 'rnative-skeleton',
7
7
  title: 'Core/Skeleton',
8
8
  component: Skeleton,
@@ -16,7 +16,7 @@ const meta: Meta<typeof Skeleton> = {
16
16
  description: 'Pre-built skeleton component variant',
17
17
  },
18
18
  },
19
- };
19
+ } satisfies Meta<typeof Skeleton>;
20
20
 
21
21
  export default meta;
22
22
  type Story = StoryObj<typeof Skeleton>;
@@ -3,7 +3,7 @@ import { Box } from '../../primitives/Box';
3
3
  import { Text } from '../../primitives/Text';
4
4
  import { Spinner } from './Spinner';
5
5
 
6
- const meta: Meta<typeof Spinner> = {
6
+ const meta = {
7
7
  id: 'rnative-spinner',
8
8
  title: 'Core/Spinner',
9
9
  component: Spinner,
@@ -16,7 +16,7 @@ const meta: Meta<typeof Spinner> = {
16
16
  options: [12, 16, 20, 24, 40, 48, 56],
17
17
  },
18
18
  },
19
- };
19
+ } satisfies Meta<typeof Spinner>;
20
20
 
21
21
  export default meta;
22
22
  type Story = StoryObj<typeof Spinner>;
@@ -5,7 +5,7 @@ import type { IconProps } from '../../symbols/Icon';
5
5
  import { Spot } from './Spot';
6
6
  import type { SpotProps } from './types';
7
7
 
8
- const meta: Meta<typeof Spot> = {
8
+ const meta = {
9
9
  component: Spot,
10
10
  id: 'rnative-spot',
11
11
  title: 'Core/Spot',
@@ -60,7 +60,7 @@ const meta: Meta<typeof Spot> = {
60
60
  description: 'Number to display (required for number appearance)',
61
61
  },
62
62
  },
63
- };
63
+ } satisfies Meta<typeof Spot>;
64
64
 
65
65
  export default meta;
66
66
  type Story = StoryObj<typeof Spot>;
@@ -85,6 +85,10 @@ export const Base: Story = {
85
85
  };
86
86
 
87
87
  export const AppearanceShowcase: Story = {
88
+ args: {
89
+ appearance: 'icon',
90
+ icon: Settings,
91
+ },
88
92
  render: () => {
89
93
  const appearances: {
90
94
  name: string;
@@ -137,6 +141,10 @@ export const AppearanceShowcase: Story = {
137
141
  };
138
142
 
139
143
  export const IconVariants: Story = {
144
+ args: {
145
+ appearance: 'icon',
146
+ icon: Settings,
147
+ },
140
148
  render: () => {
141
149
  const icons = [
142
150
  { name: 'Settings', component: Settings },
@@ -156,6 +164,10 @@ export const IconVariants: Story = {
156
164
  };
157
165
 
158
166
  export const NumberVariants: Story = {
167
+ args: {
168
+ appearance: 'icon',
169
+ icon: Settings,
170
+ },
159
171
  render: () => {
160
172
  const numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] as const;
161
173
 
@@ -177,6 +189,10 @@ export const NumberVariants: Story = {
177
189
  };
178
190
 
179
191
  export const SizesShowcase: Story = {
192
+ args: {
193
+ appearance: 'icon',
194
+ icon: Settings,
195
+ },
180
196
  render: () => {
181
197
  const sizes = [32, 40, 48, 56, 72] as const;
182
198
 
@@ -198,6 +214,10 @@ export const SizesShowcase: Story = {
198
214
  };
199
215
 
200
216
  export const StatesShowcase: Story = {
217
+ args: {
218
+ appearance: 'icon',
219
+ icon: Settings,
220
+ },
201
221
  render: () => {
202
222
  return (
203
223
  <Box lx={{ flexDirection: 'column', gap: 's16' }}>
@@ -3,7 +3,7 @@ import { Box } from '../../primitives/Box';
3
3
  import { Text } from '../../primitives/Text';
4
4
  import { Stepper } from './Stepper';
5
5
 
6
- const meta: Meta<typeof Stepper> = {
6
+ const meta = {
7
7
  id: 'rnative-stepper',
8
8
  title: 'Core/Stepper',
9
9
  component: Stepper,
@@ -15,7 +15,7 @@ const meta: Meta<typeof Stepper> = {
15
15
  totalSteps: { control: 'number' },
16
16
  disabled: { control: 'boolean' },
17
17
  },
18
- };
18
+ } satisfies Meta<typeof Stepper>;
19
19
 
20
20
  export default meta;
21
21
  type Story = StoryObj<typeof Stepper>;
@@ -29,6 +29,10 @@ export const Base: Story = {
29
29
  };
30
30
 
31
31
  export const DisabledShowcase: Story = {
32
+ args: {
33
+ currentStep: 2,
34
+ totalSteps: 4,
35
+ },
32
36
  render: () => (
33
37
  <Box lx={{ gap: 's32', alignItems: 'center' }}>
34
38
  <Box lx={{ alignItems: 'center', gap: 's8' }}>
@@ -18,7 +18,7 @@ const Container = ({ children }: { children: React.ReactNode }) => (
18
18
  </View>
19
19
  );
20
20
 
21
- const meta: Meta<typeof Subheader> = {
21
+ const meta = {
22
22
  component: Subheader,
23
23
  id: 'rnative-subheader',
24
24
  title: 'Core/Subheader',
@@ -37,7 +37,7 @@ const meta: Meta<typeof Subheader> = {
37
37
  </Container>
38
38
  ),
39
39
  ],
40
- };
40
+ } satisfies Meta<typeof Subheader>;
41
41
 
42
42
  export default meta;
43
43
  type Story = StoryObj<typeof Subheader>;