@metamask-previews/design-system-react-native 0.27.0-preview.f5c2542 → 0.30.0-preview.0a4d6f8

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 (471) hide show
  1. package/CHANGELOG.md +51 -1
  2. package/dist/components/AvatarBase/AvatarBase.cjs +2 -2
  3. package/dist/components/AvatarBase/AvatarBase.cjs.map +1 -1
  4. package/dist/components/AvatarBase/AvatarBase.d.cts.map +1 -1
  5. package/dist/components/AvatarBase/AvatarBase.d.mts.map +1 -1
  6. package/dist/components/AvatarBase/AvatarBase.mjs +3 -3
  7. package/dist/components/AvatarBase/AvatarBase.mjs.map +1 -1
  8. package/dist/components/AvatarFavicon/AvatarFavicon.cjs +2 -2
  9. package/dist/components/AvatarFavicon/AvatarFavicon.cjs.map +1 -1
  10. package/dist/components/AvatarFavicon/AvatarFavicon.d.cts.map +1 -1
  11. package/dist/components/AvatarFavicon/AvatarFavicon.d.mts.map +1 -1
  12. package/dist/components/AvatarFavicon/AvatarFavicon.mjs +2 -2
  13. package/dist/components/AvatarFavicon/AvatarFavicon.mjs.map +1 -1
  14. package/dist/components/AvatarIcon/AvatarIcon.constants.cjs +2 -2
  15. package/dist/components/AvatarIcon/AvatarIcon.constants.cjs.map +1 -1
  16. package/dist/components/AvatarIcon/AvatarIcon.constants.mjs +2 -2
  17. package/dist/components/AvatarIcon/AvatarIcon.constants.mjs.map +1 -1
  18. package/dist/components/AvatarNetwork/AvatarNetwork.cjs +3 -4
  19. package/dist/components/AvatarNetwork/AvatarNetwork.cjs.map +1 -1
  20. package/dist/components/AvatarNetwork/AvatarNetwork.d.cts.map +1 -1
  21. package/dist/components/AvatarNetwork/AvatarNetwork.d.mts.map +1 -1
  22. package/dist/components/AvatarNetwork/AvatarNetwork.mjs +3 -4
  23. package/dist/components/AvatarNetwork/AvatarNetwork.mjs.map +1 -1
  24. package/dist/components/AvatarNetwork/index.cjs +2 -2
  25. package/dist/components/AvatarNetwork/index.cjs.map +1 -1
  26. package/dist/components/AvatarNetwork/index.d.cts +1 -1
  27. package/dist/components/AvatarNetwork/index.d.cts.map +1 -1
  28. package/dist/components/AvatarNetwork/index.d.mts +1 -1
  29. package/dist/components/AvatarNetwork/index.d.mts.map +1 -1
  30. package/dist/components/AvatarNetwork/index.mjs +1 -1
  31. package/dist/components/AvatarNetwork/index.mjs.map +1 -1
  32. package/dist/components/AvatarToken/AvatarToken.cjs +2 -2
  33. package/dist/components/AvatarToken/AvatarToken.cjs.map +1 -1
  34. package/dist/components/AvatarToken/AvatarToken.d.cts.map +1 -1
  35. package/dist/components/AvatarToken/AvatarToken.d.mts.map +1 -1
  36. package/dist/components/AvatarToken/AvatarToken.mjs +2 -2
  37. package/dist/components/AvatarToken/AvatarToken.mjs.map +1 -1
  38. package/dist/components/BadgeCount/BadgeCount.cjs +1 -1
  39. package/dist/components/BadgeCount/BadgeCount.cjs.map +1 -1
  40. package/dist/components/BadgeCount/BadgeCount.d.cts.map +1 -1
  41. package/dist/components/BadgeCount/BadgeCount.d.mts.map +1 -1
  42. package/dist/components/BadgeCount/BadgeCount.mjs +2 -2
  43. package/dist/components/BadgeCount/BadgeCount.mjs.map +1 -1
  44. package/dist/components/BannerBase/BannerBase.cjs +1 -1
  45. package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
  46. package/dist/components/BannerBase/BannerBase.d.cts.map +1 -1
  47. package/dist/components/BannerBase/BannerBase.d.mts.map +1 -1
  48. package/dist/components/BannerBase/BannerBase.mjs +2 -2
  49. package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
  50. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs +10 -0
  51. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs.map +1 -1
  52. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts.map +1 -1
  53. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts.map +1 -1
  54. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs +10 -0
  55. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs.map +1 -1
  56. package/dist/components/ButtonBase/ButtonBase.cjs +5 -3
  57. package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
  58. package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
  59. package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
  60. package/dist/components/ButtonBase/ButtonBase.mjs +6 -4
  61. package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
  62. package/dist/components/Content/Content.cjs +4 -10
  63. package/dist/components/Content/Content.cjs.map +1 -1
  64. package/dist/components/Content/Content.d.cts.map +1 -1
  65. package/dist/components/Content/Content.d.mts.map +1 -1
  66. package/dist/components/Content/Content.mjs +5 -11
  67. package/dist/components/Content/Content.mjs.map +1 -1
  68. package/dist/components/Content/Content.types.cjs.map +1 -1
  69. package/dist/components/Content/Content.types.d.cts +1 -1
  70. package/dist/components/Content/Content.types.d.mts +1 -1
  71. package/dist/components/Content/Content.types.mjs.map +1 -1
  72. package/dist/components/{SegmentButton/SegmentButton.cjs → FilterButton/FilterButton.cjs} +19 -17
  73. package/dist/components/FilterButton/FilterButton.cjs.map +1 -0
  74. package/dist/components/FilterButton/FilterButton.d.cts +7 -0
  75. package/dist/components/FilterButton/FilterButton.d.cts.map +1 -0
  76. package/dist/components/FilterButton/FilterButton.d.mts +7 -0
  77. package/dist/components/FilterButton/FilterButton.d.mts.map +1 -0
  78. package/dist/components/{SegmentButton/SegmentButton.mjs → FilterButton/FilterButton.mjs} +18 -16
  79. package/dist/components/FilterButton/FilterButton.mjs.map +1 -0
  80. package/dist/components/{SegmentGroup/SegmentGroup.types.cjs → FilterButton/FilterButton.types.cjs} +1 -1
  81. package/dist/components/FilterButton/FilterButton.types.cjs.map +1 -0
  82. package/dist/components/FilterButton/FilterButton.types.d.cts +9 -0
  83. package/dist/components/FilterButton/FilterButton.types.d.cts.map +1 -0
  84. package/dist/components/FilterButton/FilterButton.types.d.mts +9 -0
  85. package/dist/components/FilterButton/FilterButton.types.d.mts.map +1 -0
  86. package/dist/components/FilterButton/FilterButton.types.mjs +2 -0
  87. package/dist/components/FilterButton/FilterButton.types.mjs.map +1 -0
  88. package/dist/components/FilterButton/index.cjs +8 -0
  89. package/dist/components/FilterButton/index.cjs.map +1 -0
  90. package/dist/components/FilterButton/index.d.cts +4 -0
  91. package/dist/components/FilterButton/index.d.cts.map +1 -0
  92. package/dist/components/FilterButton/index.d.mts +4 -0
  93. package/dist/components/FilterButton/index.d.mts.map +1 -0
  94. package/dist/components/FilterButton/index.mjs +3 -0
  95. package/dist/components/FilterButton/index.mjs.map +1 -0
  96. package/dist/components/{SegmentGroup/SegmentGroup.cjs → FilterButtonGroup/FilterButtonGroup.cjs} +7 -7
  97. package/dist/components/FilterButtonGroup/FilterButtonGroup.cjs.map +1 -0
  98. package/dist/components/FilterButtonGroup/FilterButtonGroup.d.cts +7 -0
  99. package/dist/components/FilterButtonGroup/FilterButtonGroup.d.cts.map +1 -0
  100. package/dist/components/FilterButtonGroup/FilterButtonGroup.d.mts +7 -0
  101. package/dist/components/FilterButtonGroup/FilterButtonGroup.d.mts.map +1 -0
  102. package/dist/components/{SegmentGroup/SegmentGroup.mjs → FilterButtonGroup/FilterButtonGroup.mjs} +6 -6
  103. package/dist/components/FilterButtonGroup/FilterButtonGroup.mjs.map +1 -0
  104. package/dist/components/FilterButtonGroup/FilterButtonGroup.types.cjs +3 -0
  105. package/dist/components/FilterButtonGroup/FilterButtonGroup.types.cjs.map +1 -0
  106. package/dist/components/FilterButtonGroup/FilterButtonGroup.types.d.cts +12 -0
  107. package/dist/components/FilterButtonGroup/FilterButtonGroup.types.d.cts.map +1 -0
  108. package/dist/components/FilterButtonGroup/FilterButtonGroup.types.d.mts +12 -0
  109. package/dist/components/FilterButtonGroup/FilterButtonGroup.types.d.mts.map +1 -0
  110. package/dist/components/FilterButtonGroup/FilterButtonGroup.types.mjs +2 -0
  111. package/dist/components/FilterButtonGroup/FilterButtonGroup.types.mjs.map +1 -0
  112. package/dist/components/FilterButtonGroup/index.cjs +6 -0
  113. package/dist/components/FilterButtonGroup/index.cjs.map +1 -0
  114. package/dist/components/FilterButtonGroup/index.d.cts +3 -0
  115. package/dist/components/FilterButtonGroup/index.d.cts.map +1 -0
  116. package/dist/components/FilterButtonGroup/index.d.mts +3 -0
  117. package/dist/components/FilterButtonGroup/index.d.mts.map +1 -0
  118. package/dist/components/FilterButtonGroup/index.mjs +2 -0
  119. package/dist/components/FilterButtonGroup/index.mjs.map +1 -0
  120. package/dist/components/HeaderRoot/HeaderRoot.cjs +2 -1
  121. package/dist/components/HeaderRoot/HeaderRoot.cjs.map +1 -1
  122. package/dist/components/HeaderRoot/HeaderRoot.d.cts.map +1 -1
  123. package/dist/components/HeaderRoot/HeaderRoot.d.mts.map +1 -1
  124. package/dist/components/HeaderRoot/HeaderRoot.mjs +2 -1
  125. package/dist/components/HeaderRoot/HeaderRoot.mjs.map +1 -1
  126. package/dist/components/HeaderStandard/HeaderStandard.cjs +2 -1
  127. package/dist/components/HeaderStandard/HeaderStandard.cjs.map +1 -1
  128. package/dist/components/HeaderStandard/HeaderStandard.d.cts.map +1 -1
  129. package/dist/components/HeaderStandard/HeaderStandard.d.mts.map +1 -1
  130. package/dist/components/HeaderStandard/HeaderStandard.mjs +2 -1
  131. package/dist/components/HeaderStandard/HeaderStandard.mjs.map +1 -1
  132. package/dist/components/HeaderSubpage/HeaderSubpage.cjs +90 -0
  133. package/dist/components/HeaderSubpage/HeaderSubpage.cjs.map +1 -0
  134. package/dist/components/HeaderSubpage/HeaderSubpage.d.cts +4 -0
  135. package/dist/components/HeaderSubpage/HeaderSubpage.d.cts.map +1 -0
  136. package/dist/components/HeaderSubpage/HeaderSubpage.d.mts +4 -0
  137. package/dist/components/HeaderSubpage/HeaderSubpage.d.mts.map +1 -0
  138. package/dist/components/HeaderSubpage/HeaderSubpage.mjs +70 -0
  139. package/dist/components/HeaderSubpage/HeaderSubpage.mjs.map +1 -0
  140. package/dist/components/{SegmentButton/SegmentButton.types.cjs → HeaderSubpage/HeaderSubpage.types.cjs} +1 -1
  141. package/dist/components/HeaderSubpage/HeaderSubpage.types.cjs.map +1 -0
  142. package/dist/components/HeaderSubpage/HeaderSubpage.types.d.cts +59 -0
  143. package/dist/components/HeaderSubpage/HeaderSubpage.types.d.cts.map +1 -0
  144. package/dist/components/HeaderSubpage/HeaderSubpage.types.d.mts +59 -0
  145. package/dist/components/HeaderSubpage/HeaderSubpage.types.d.mts.map +1 -0
  146. package/dist/components/HeaderSubpage/HeaderSubpage.types.mjs +2 -0
  147. package/dist/components/HeaderSubpage/HeaderSubpage.types.mjs.map +1 -0
  148. package/dist/components/HeaderSubpage/index.cjs +6 -0
  149. package/dist/components/HeaderSubpage/index.cjs.map +1 -0
  150. package/dist/components/HeaderSubpage/index.d.cts +3 -0
  151. package/dist/components/HeaderSubpage/index.d.cts.map +1 -0
  152. package/dist/components/HeaderSubpage/index.d.mts +3 -0
  153. package/dist/components/HeaderSubpage/index.d.mts.map +1 -0
  154. package/dist/components/HeaderSubpage/index.mjs +2 -0
  155. package/dist/components/HeaderSubpage/index.mjs.map +1 -0
  156. package/dist/components/Icon/Icon.assets.cjs +2 -0
  157. package/dist/components/Icon/Icon.assets.cjs.map +1 -1
  158. package/dist/components/Icon/Icon.assets.d.cts.map +1 -1
  159. package/dist/components/Icon/Icon.assets.d.mts.map +1 -1
  160. package/dist/components/Icon/Icon.assets.mjs +2 -0
  161. package/dist/components/Icon/Icon.assets.mjs.map +1 -1
  162. package/dist/components/Icon/Icon.constants.cjs +6 -6
  163. package/dist/components/Icon/Icon.constants.cjs.map +1 -1
  164. package/dist/components/Icon/Icon.constants.d.cts +1 -1
  165. package/dist/components/Icon/Icon.constants.d.cts.map +1 -1
  166. package/dist/components/Icon/Icon.constants.d.mts +1 -1
  167. package/dist/components/Icon/Icon.constants.d.mts.map +1 -1
  168. package/dist/components/Icon/Icon.constants.mjs +1 -1
  169. package/dist/components/Icon/Icon.constants.mjs.map +1 -1
  170. package/dist/components/Icon/assets/trophy.svg +1 -0
  171. package/dist/components/IconAlert/IconAlert.constants.cjs +1 -1
  172. package/dist/components/IconAlert/IconAlert.constants.cjs.map +1 -1
  173. package/dist/components/IconAlert/IconAlert.constants.mjs +1 -1
  174. package/dist/components/IconAlert/IconAlert.constants.mjs.map +1 -1
  175. package/dist/components/KeyValueColumn/KeyValueColumn.cjs +2 -3
  176. package/dist/components/KeyValueColumn/KeyValueColumn.cjs.map +1 -1
  177. package/dist/components/KeyValueColumn/KeyValueColumn.d.cts.map +1 -1
  178. package/dist/components/KeyValueColumn/KeyValueColumn.d.mts.map +1 -1
  179. package/dist/components/KeyValueColumn/KeyValueColumn.mjs +1 -2
  180. package/dist/components/KeyValueColumn/KeyValueColumn.mjs.map +1 -1
  181. package/dist/components/KeyValueRow/KeyValueRow.cjs +2 -3
  182. package/dist/components/KeyValueRow/KeyValueRow.cjs.map +1 -1
  183. package/dist/components/KeyValueRow/KeyValueRow.d.cts.map +1 -1
  184. package/dist/components/KeyValueRow/KeyValueRow.d.mts.map +1 -1
  185. package/dist/components/KeyValueRow/KeyValueRow.mjs +1 -2
  186. package/dist/components/KeyValueRow/KeyValueRow.mjs.map +1 -1
  187. package/dist/components/ListItem/ListItem.cjs +34 -48
  188. package/dist/components/ListItem/ListItem.cjs.map +1 -1
  189. package/dist/components/ListItem/ListItem.d.cts.map +1 -1
  190. package/dist/components/ListItem/ListItem.d.mts.map +1 -1
  191. package/dist/components/ListItem/ListItem.mjs +34 -28
  192. package/dist/components/ListItem/ListItem.mjs.map +1 -1
  193. package/dist/components/ListItem/ListItem.types.cjs +0 -9
  194. package/dist/components/ListItem/ListItem.types.cjs.map +1 -1
  195. package/dist/components/ListItem/ListItem.types.d.cts +14 -55
  196. package/dist/components/ListItem/ListItem.types.d.cts.map +1 -1
  197. package/dist/components/ListItem/ListItem.types.d.mts +14 -55
  198. package/dist/components/ListItem/ListItem.types.d.mts.map +1 -1
  199. package/dist/components/ListItem/ListItem.types.mjs +1 -8
  200. package/dist/components/ListItem/ListItem.types.mjs.map +1 -1
  201. package/dist/components/ListItem/index.cjs +3 -3
  202. package/dist/components/ListItem/index.cjs.map +1 -1
  203. package/dist/components/ListItem/index.d.cts +1 -1
  204. package/dist/components/ListItem/index.d.cts.map +1 -1
  205. package/dist/components/ListItem/index.d.mts +1 -1
  206. package/dist/components/ListItem/index.d.mts.map +1 -1
  207. package/dist/components/ListItem/index.mjs +1 -1
  208. package/dist/components/ListItem/index.mjs.map +1 -1
  209. package/dist/components/ListItemMultiSelect/ListItemMultiSelect.cjs +20 -0
  210. package/dist/components/ListItemMultiSelect/ListItemMultiSelect.cjs.map +1 -0
  211. package/dist/components/ListItemMultiSelect/ListItemMultiSelect.d.cts +7 -0
  212. package/dist/components/ListItemMultiSelect/ListItemMultiSelect.d.cts.map +1 -0
  213. package/dist/components/ListItemMultiSelect/ListItemMultiSelect.d.mts +7 -0
  214. package/dist/components/ListItemMultiSelect/ListItemMultiSelect.d.mts.map +1 -0
  215. package/dist/components/ListItemMultiSelect/ListItemMultiSelect.mjs +20 -0
  216. package/dist/components/ListItemMultiSelect/ListItemMultiSelect.mjs.map +1 -0
  217. package/dist/components/ListItemMultiSelect/ListItemMultiSelect.types.cjs +3 -0
  218. package/dist/components/ListItemMultiSelect/ListItemMultiSelect.types.cjs.map +1 -0
  219. package/dist/components/ListItemMultiSelect/ListItemMultiSelect.types.d.cts +14 -0
  220. package/dist/components/ListItemMultiSelect/ListItemMultiSelect.types.d.cts.map +1 -0
  221. package/dist/components/ListItemMultiSelect/ListItemMultiSelect.types.d.mts +14 -0
  222. package/dist/components/ListItemMultiSelect/ListItemMultiSelect.types.d.mts.map +1 -0
  223. package/dist/components/ListItemMultiSelect/ListItemMultiSelect.types.mjs +2 -0
  224. package/dist/components/ListItemMultiSelect/ListItemMultiSelect.types.mjs.map +1 -0
  225. package/dist/components/ListItemMultiSelect/index.cjs +6 -0
  226. package/dist/components/ListItemMultiSelect/index.cjs.map +1 -0
  227. package/dist/components/ListItemMultiSelect/index.d.cts +3 -0
  228. package/dist/components/ListItemMultiSelect/index.d.cts.map +1 -0
  229. package/dist/components/ListItemMultiSelect/index.d.mts +3 -0
  230. package/dist/components/ListItemMultiSelect/index.d.mts.map +1 -0
  231. package/dist/components/ListItemMultiSelect/index.mjs +2 -0
  232. package/dist/components/ListItemMultiSelect/index.mjs.map +1 -0
  233. package/dist/components/ListItemSelect/ListItemSelect.cjs +21 -0
  234. package/dist/components/ListItemSelect/ListItemSelect.cjs.map +1 -0
  235. package/dist/components/ListItemSelect/ListItemSelect.d.cts +7 -0
  236. package/dist/components/ListItemSelect/ListItemSelect.d.cts.map +1 -0
  237. package/dist/components/ListItemSelect/ListItemSelect.d.mts +7 -0
  238. package/dist/components/ListItemSelect/ListItemSelect.d.mts.map +1 -0
  239. package/dist/components/ListItemSelect/ListItemSelect.mjs +21 -0
  240. package/dist/components/ListItemSelect/ListItemSelect.mjs.map +1 -0
  241. package/dist/components/ListItemSelect/ListItemSelect.types.cjs +3 -0
  242. package/dist/components/ListItemSelect/ListItemSelect.types.cjs.map +1 -0
  243. package/dist/components/ListItemSelect/ListItemSelect.types.d.cts +18 -0
  244. package/dist/components/ListItemSelect/ListItemSelect.types.d.cts.map +1 -0
  245. package/dist/components/ListItemSelect/ListItemSelect.types.d.mts +18 -0
  246. package/dist/components/ListItemSelect/ListItemSelect.types.d.mts.map +1 -0
  247. package/dist/components/ListItemSelect/ListItemSelect.types.mjs +2 -0
  248. package/dist/components/ListItemSelect/ListItemSelect.types.mjs.map +1 -0
  249. package/dist/components/ListItemSelect/index.cjs +6 -0
  250. package/dist/components/ListItemSelect/index.cjs.map +1 -0
  251. package/dist/components/ListItemSelect/index.d.cts +3 -0
  252. package/dist/components/ListItemSelect/index.d.cts.map +1 -0
  253. package/dist/components/ListItemSelect/index.d.mts +3 -0
  254. package/dist/components/ListItemSelect/index.d.mts.map +1 -0
  255. package/dist/components/ListItemSelect/index.mjs +2 -0
  256. package/dist/components/ListItemSelect/index.mjs.map +1 -0
  257. package/dist/components/SectionHeader/SectionHeader.cjs +47 -24
  258. package/dist/components/SectionHeader/SectionHeader.cjs.map +1 -1
  259. package/dist/components/SectionHeader/SectionHeader.d.cts +16 -13
  260. package/dist/components/SectionHeader/SectionHeader.d.cts.map +1 -1
  261. package/dist/components/SectionHeader/SectionHeader.d.mts +16 -13
  262. package/dist/components/SectionHeader/SectionHeader.d.mts.map +1 -1
  263. package/dist/components/SectionHeader/SectionHeader.mjs +48 -25
  264. package/dist/components/SectionHeader/SectionHeader.mjs.map +1 -1
  265. package/dist/components/SectionHeader/SectionHeader.types.cjs.map +1 -1
  266. package/dist/components/SectionHeader/SectionHeader.types.d.cts +16 -9
  267. package/dist/components/SectionHeader/SectionHeader.types.d.cts.map +1 -1
  268. package/dist/components/SectionHeader/SectionHeader.types.d.mts +16 -9
  269. package/dist/components/SectionHeader/SectionHeader.types.d.mts.map +1 -1
  270. package/dist/components/SectionHeader/SectionHeader.types.mjs.map +1 -1
  271. package/dist/components/SegmentedControl/SegmentedControl.cjs +50 -0
  272. package/dist/components/SegmentedControl/SegmentedControl.cjs.map +1 -0
  273. package/dist/components/SegmentedControl/SegmentedControl.constants.cjs +12 -0
  274. package/dist/components/SegmentedControl/SegmentedControl.constants.cjs.map +1 -0
  275. package/dist/components/SegmentedControl/SegmentedControl.constants.d.cts +4 -0
  276. package/dist/components/SegmentedControl/SegmentedControl.constants.d.cts.map +1 -0
  277. package/dist/components/SegmentedControl/SegmentedControl.constants.d.mts +4 -0
  278. package/dist/components/SegmentedControl/SegmentedControl.constants.d.mts.map +1 -0
  279. package/dist/components/SegmentedControl/SegmentedControl.constants.mjs +8 -0
  280. package/dist/components/SegmentedControl/SegmentedControl.constants.mjs.map +1 -0
  281. package/dist/components/SegmentedControl/SegmentedControl.d.cts +7 -0
  282. package/dist/components/SegmentedControl/SegmentedControl.d.cts.map +1 -0
  283. package/dist/components/SegmentedControl/SegmentedControl.d.mts +7 -0
  284. package/dist/components/SegmentedControl/SegmentedControl.d.mts.map +1 -0
  285. package/dist/components/SegmentedControl/SegmentedControl.mjs +30 -0
  286. package/dist/components/SegmentedControl/SegmentedControl.mjs.map +1 -0
  287. package/dist/components/SegmentedControl/SegmentedControl.types.cjs +3 -0
  288. package/dist/components/SegmentedControl/SegmentedControl.types.cjs.map +1 -0
  289. package/dist/components/SegmentedControl/SegmentedControl.types.d.cts +12 -0
  290. package/dist/components/SegmentedControl/SegmentedControl.types.d.cts.map +1 -0
  291. package/dist/components/SegmentedControl/SegmentedControl.types.d.mts +12 -0
  292. package/dist/components/SegmentedControl/SegmentedControl.types.d.mts.map +1 -0
  293. package/dist/components/SegmentedControl/SegmentedControl.types.mjs +2 -0
  294. package/dist/components/SegmentedControl/SegmentedControl.types.mjs.map +1 -0
  295. package/dist/components/SegmentedControl/index.cjs +6 -0
  296. package/dist/components/SegmentedControl/index.cjs.map +1 -0
  297. package/dist/components/SegmentedControl/index.d.cts +3 -0
  298. package/dist/components/SegmentedControl/index.d.cts.map +1 -0
  299. package/dist/components/SegmentedControl/index.d.mts +3 -0
  300. package/dist/components/SegmentedControl/index.d.mts.map +1 -0
  301. package/dist/components/SegmentedControl/index.mjs +2 -0
  302. package/dist/components/SegmentedControl/index.mjs.map +1 -0
  303. package/dist/components/SelectButton/SelectButton.constants.cjs +4 -5
  304. package/dist/components/SelectButton/SelectButton.constants.cjs.map +1 -1
  305. package/dist/components/SelectButton/SelectButton.constants.d.cts +1 -2
  306. package/dist/components/SelectButton/SelectButton.constants.d.cts.map +1 -1
  307. package/dist/components/SelectButton/SelectButton.constants.d.mts +1 -2
  308. package/dist/components/SelectButton/SelectButton.constants.d.mts.map +1 -1
  309. package/dist/components/SelectButton/SelectButton.constants.mjs +1 -2
  310. package/dist/components/SelectButton/SelectButton.constants.mjs.map +1 -1
  311. package/dist/components/Switch/Switch.cjs +28 -0
  312. package/dist/components/Switch/Switch.cjs.map +1 -0
  313. package/dist/components/Switch/Switch.d.cts +4 -0
  314. package/dist/components/Switch/Switch.d.cts.map +1 -0
  315. package/dist/components/Switch/Switch.d.mts +4 -0
  316. package/dist/components/Switch/Switch.d.mts.map +1 -0
  317. package/dist/components/Switch/Switch.mjs +28 -0
  318. package/dist/components/Switch/Switch.mjs.map +1 -0
  319. package/dist/components/Switch/Switch.types.cjs +3 -0
  320. package/dist/components/Switch/Switch.types.cjs.map +1 -0
  321. package/dist/components/Switch/Switch.types.d.cts +14 -0
  322. package/dist/components/Switch/Switch.types.d.cts.map +1 -0
  323. package/dist/components/Switch/Switch.types.d.mts +14 -0
  324. package/dist/components/Switch/Switch.types.d.mts.map +1 -0
  325. package/dist/components/Switch/Switch.types.mjs +2 -0
  326. package/dist/components/Switch/Switch.types.mjs.map +1 -0
  327. package/dist/components/Switch/index.cjs +6 -0
  328. package/dist/components/Switch/index.cjs.map +1 -0
  329. package/dist/components/Switch/index.d.cts +3 -0
  330. package/dist/components/Switch/index.d.cts.map +1 -0
  331. package/dist/components/Switch/index.d.mts +3 -0
  332. package/dist/components/Switch/index.d.mts.map +1 -0
  333. package/dist/components/Switch/index.mjs +2 -0
  334. package/dist/components/Switch/index.mjs.map +1 -0
  335. package/dist/components/TabEmptyState/TabEmptyState.cjs +2 -1
  336. package/dist/components/TabEmptyState/TabEmptyState.cjs.map +1 -1
  337. package/dist/components/TabEmptyState/TabEmptyState.d.cts.map +1 -1
  338. package/dist/components/TabEmptyState/TabEmptyState.d.mts.map +1 -1
  339. package/dist/components/TabEmptyState/TabEmptyState.mjs +2 -1
  340. package/dist/components/TabEmptyState/TabEmptyState.mjs.map +1 -1
  341. package/dist/components/Tag/Tag.cjs +1 -1
  342. package/dist/components/Tag/Tag.cjs.map +1 -1
  343. package/dist/components/Tag/Tag.constants.cjs +3 -3
  344. package/dist/components/Tag/Tag.constants.cjs.map +1 -1
  345. package/dist/components/Tag/Tag.constants.mjs +3 -3
  346. package/dist/components/Tag/Tag.constants.mjs.map +1 -1
  347. package/dist/components/Tag/Tag.d.cts.map +1 -1
  348. package/dist/components/Tag/Tag.d.mts.map +1 -1
  349. package/dist/components/Tag/Tag.mjs +1 -1
  350. package/dist/components/Tag/Tag.mjs.map +1 -1
  351. package/dist/components/TextArea/TextArea.cjs +3 -7
  352. package/dist/components/TextArea/TextArea.cjs.map +1 -1
  353. package/dist/components/TextArea/TextArea.d.cts +158 -163
  354. package/dist/components/TextArea/TextArea.d.cts.map +1 -1
  355. package/dist/components/TextArea/TextArea.d.mts +158 -163
  356. package/dist/components/TextArea/TextArea.d.mts.map +1 -1
  357. package/dist/components/TextArea/TextArea.mjs +4 -8
  358. package/dist/components/TextArea/TextArea.mjs.map +1 -1
  359. package/dist/components/TextArea/TextArea.types.cjs.map +1 -1
  360. package/dist/components/TextArea/TextArea.types.d.cts +12 -45
  361. package/dist/components/TextArea/TextArea.types.d.cts.map +1 -1
  362. package/dist/components/TextArea/TextArea.types.d.mts +12 -45
  363. package/dist/components/TextArea/TextArea.types.d.mts.map +1 -1
  364. package/dist/components/TextArea/TextArea.types.mjs.map +1 -1
  365. package/dist/components/TextButton/TextButton.types.cjs.map +1 -1
  366. package/dist/components/TextButton/TextButton.types.d.cts +2 -5
  367. package/dist/components/TextButton/TextButton.types.d.cts.map +1 -1
  368. package/dist/components/TextButton/TextButton.types.d.mts +2 -5
  369. package/dist/components/TextButton/TextButton.types.d.mts.map +1 -1
  370. package/dist/components/TextButton/TextButton.types.mjs.map +1 -1
  371. package/dist/components/TextField/TextField.cjs +2 -1
  372. package/dist/components/TextField/TextField.cjs.map +1 -1
  373. package/dist/components/TextField/TextField.d.cts.map +1 -1
  374. package/dist/components/TextField/TextField.d.mts.map +1 -1
  375. package/dist/components/TextField/TextField.mjs +2 -1
  376. package/dist/components/TextField/TextField.mjs.map +1 -1
  377. package/dist/components/Toast/Toast.cjs +1 -1
  378. package/dist/components/Toast/Toast.cjs.map +1 -1
  379. package/dist/components/Toast/Toast.constants.cjs +5 -8
  380. package/dist/components/Toast/Toast.constants.cjs.map +1 -1
  381. package/dist/components/Toast/Toast.constants.d.cts +2 -7
  382. package/dist/components/Toast/Toast.constants.d.cts.map +1 -1
  383. package/dist/components/Toast/Toast.constants.d.mts +2 -7
  384. package/dist/components/Toast/Toast.constants.d.mts.map +1 -1
  385. package/dist/components/Toast/Toast.constants.mjs +2 -7
  386. package/dist/components/Toast/Toast.constants.mjs.map +1 -1
  387. package/dist/components/Toast/Toast.d.cts.map +1 -1
  388. package/dist/components/Toast/Toast.d.mts.map +1 -1
  389. package/dist/components/Toast/Toast.mjs +2 -2
  390. package/dist/components/Toast/Toast.mjs.map +1 -1
  391. package/dist/components/Toast/index.cjs +1 -3
  392. package/dist/components/Toast/index.cjs.map +1 -1
  393. package/dist/components/Toast/index.d.cts +1 -1
  394. package/dist/components/Toast/index.d.cts.map +1 -1
  395. package/dist/components/Toast/index.d.mts +1 -1
  396. package/dist/components/Toast/index.d.mts.map +1 -1
  397. package/dist/components/Toast/index.mjs +1 -1
  398. package/dist/components/Toast/index.mjs.map +1 -1
  399. package/dist/components/index.cjs +19 -9
  400. package/dist/components/index.cjs.map +1 -1
  401. package/dist/components/index.d.cts +16 -6
  402. package/dist/components/index.d.cts.map +1 -1
  403. package/dist/components/index.d.mts +16 -6
  404. package/dist/components/index.d.mts.map +1 -1
  405. package/dist/components/index.mjs +8 -3
  406. package/dist/components/index.mjs.map +1 -1
  407. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.cjs.map +1 -1
  408. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.cts +2 -2
  409. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.cts.map +1 -1
  410. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.mts +2 -2
  411. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.mts.map +1 -1
  412. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.mjs.map +1 -1
  413. package/package.json +11 -9
  414. package/dist/components/ListItem/ListItem.constants.cjs +0 -14
  415. package/dist/components/ListItem/ListItem.constants.cjs.map +0 -1
  416. package/dist/components/ListItem/ListItem.constants.d.cts +0 -8
  417. package/dist/components/ListItem/ListItem.constants.d.cts.map +0 -1
  418. package/dist/components/ListItem/ListItem.constants.d.mts +0 -8
  419. package/dist/components/ListItem/ListItem.constants.d.mts.map +0 -1
  420. package/dist/components/ListItem/ListItem.constants.mjs +0 -11
  421. package/dist/components/ListItem/ListItem.constants.mjs.map +0 -1
  422. package/dist/components/SegmentButton/SegmentButton.cjs.map +0 -1
  423. package/dist/components/SegmentButton/SegmentButton.d.cts +0 -7
  424. package/dist/components/SegmentButton/SegmentButton.d.cts.map +0 -1
  425. package/dist/components/SegmentButton/SegmentButton.d.mts +0 -7
  426. package/dist/components/SegmentButton/SegmentButton.d.mts.map +0 -1
  427. package/dist/components/SegmentButton/SegmentButton.mjs.map +0 -1
  428. package/dist/components/SegmentButton/SegmentButton.types.cjs.map +0 -1
  429. package/dist/components/SegmentButton/SegmentButton.types.d.cts +0 -9
  430. package/dist/components/SegmentButton/SegmentButton.types.d.cts.map +0 -1
  431. package/dist/components/SegmentButton/SegmentButton.types.d.mts +0 -9
  432. package/dist/components/SegmentButton/SegmentButton.types.d.mts.map +0 -1
  433. package/dist/components/SegmentButton/SegmentButton.types.mjs +0 -2
  434. package/dist/components/SegmentButton/SegmentButton.types.mjs.map +0 -1
  435. package/dist/components/SegmentButton/index.cjs +0 -8
  436. package/dist/components/SegmentButton/index.cjs.map +0 -1
  437. package/dist/components/SegmentButton/index.d.cts +0 -4
  438. package/dist/components/SegmentButton/index.d.cts.map +0 -1
  439. package/dist/components/SegmentButton/index.d.mts +0 -4
  440. package/dist/components/SegmentButton/index.d.mts.map +0 -1
  441. package/dist/components/SegmentButton/index.mjs +0 -3
  442. package/dist/components/SegmentButton/index.mjs.map +0 -1
  443. package/dist/components/SegmentGroup/SegmentGroup.cjs.map +0 -1
  444. package/dist/components/SegmentGroup/SegmentGroup.d.cts +0 -7
  445. package/dist/components/SegmentGroup/SegmentGroup.d.cts.map +0 -1
  446. package/dist/components/SegmentGroup/SegmentGroup.d.mts +0 -7
  447. package/dist/components/SegmentGroup/SegmentGroup.d.mts.map +0 -1
  448. package/dist/components/SegmentGroup/SegmentGroup.mjs.map +0 -1
  449. package/dist/components/SegmentGroup/SegmentGroup.types.cjs.map +0 -1
  450. package/dist/components/SegmentGroup/SegmentGroup.types.d.cts +0 -12
  451. package/dist/components/SegmentGroup/SegmentGroup.types.d.cts.map +0 -1
  452. package/dist/components/SegmentGroup/SegmentGroup.types.d.mts +0 -12
  453. package/dist/components/SegmentGroup/SegmentGroup.types.d.mts.map +0 -1
  454. package/dist/components/SegmentGroup/SegmentGroup.types.mjs +0 -2
  455. package/dist/components/SegmentGroup/SegmentGroup.types.mjs.map +0 -1
  456. package/dist/components/SegmentGroup/index.cjs +0 -6
  457. package/dist/components/SegmentGroup/index.cjs.map +0 -1
  458. package/dist/components/SegmentGroup/index.d.cts +0 -3
  459. package/dist/components/SegmentGroup/index.d.cts.map +0 -1
  460. package/dist/components/SegmentGroup/index.d.mts +0 -3
  461. package/dist/components/SegmentGroup/index.d.mts.map +0 -1
  462. package/dist/components/SegmentGroup/index.mjs +0 -2
  463. package/dist/components/SegmentGroup/index.mjs.map +0 -1
  464. package/dist/types/index.cjs +0 -18
  465. package/dist/types/index.cjs.map +0 -1
  466. package/dist/types/index.d.cts +0 -8
  467. package/dist/types/index.d.cts.map +0 -1
  468. package/dist/types/index.d.mts +0 -8
  469. package/dist/types/index.d.mts.map +0 -1
  470. package/dist/types/index.mjs +0 -8
  471. package/dist/types/index.mjs.map +0 -1
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { ListItemMultiSelectProps } from "./ListItemMultiSelect.types.mjs";
3
+ export declare const ListItemMultiSelect: {
4
+ ({ isSelected, accessoryGap, twClassName, ...props }: ListItemMultiSelectProps): React.JSX.Element;
5
+ displayName: string;
6
+ };
7
+ //# sourceMappingURL=ListItemMultiSelect.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemMultiSelect.d.mts","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/ListItemMultiSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,wCAAoC;AAI5E,eAAO,MAAM,mBAAmB;0DAK7B,wBAAwB;;CAqB1B,CAAC"}
@@ -0,0 +1,20 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import { mergeTwClassName } from "@metamask-previews/design-system-shared";
8
+ import $React from "react";
9
+ const React = $importDefault($React);
10
+ import { Checkbox } from "../Checkbox/index.mjs";
11
+ import { ListItem } from "../ListItem/index.mjs";
12
+ const noopChange = () => undefined;
13
+ export const ListItemMultiSelect = ({ isSelected, accessoryGap = 3, twClassName, ...props }) => {
14
+ const resolvedTwClassName = isSelected
15
+ ? mergeTwClassName('bg-background-muted', twClassName)
16
+ : twClassName;
17
+ return (<ListItem isInteractive twClassName={resolvedTwClassName} endAccessory={<Checkbox isSelected={isSelected} onChange={noopChange} label="" pointerEvents="none"/>} accessoryGap={accessoryGap} {...props}/>);
18
+ };
19
+ ListItemMultiSelect.displayName = 'ListItemMultiSelect';
20
+ //# sourceMappingURL=ListItemMultiSelect.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemMultiSelect.mjs","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/ListItemMultiSelect.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,gDAAgD;AAC3E,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,QAAQ,EAAE,8BAAoB;AACvC,OAAO,EAAE,QAAQ,EAAE,8BAAoB;AAIvC,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC;AAEnC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAClC,UAAU,EACV,YAAY,GAAG,CAAC,EAChB,WAAW,EACX,GAAG,KAAK,EACiB,EAAE,EAAE;IAC7B,MAAM,mBAAmB,GAAG,UAAU;QACpC,CAAC,CAAC,gBAAgB,CAAC,qBAAqB,EAAE,WAAW,CAAC;QACtD,CAAC,CAAC,WAAW,CAAC;IAEhB,OAAO,CACL,CAAC,QAAQ,CACP,aAAa,CACb,WAAW,CAAC,CAAC,mBAAmB,CAAC,CACjC,YAAY,CAAC,CACX,CAAC,QAAQ,CACP,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,QAAQ,CAAC,CAAC,UAAU,CAAC,CACrB,KAAK,CAAC,EAAE,CACR,aAAa,CAAC,MAAM,EACpB,CACH,CACD,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,IAAI,KAAK,CAAC,EACV,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC","sourcesContent":["import { mergeTwClassName } from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { Checkbox } from '../Checkbox';\nimport { ListItem } from '../ListItem';\n\nimport type { ListItemMultiSelectProps } from './ListItemMultiSelect.types';\n\nconst noopChange = () => undefined;\n\nexport const ListItemMultiSelect = ({\n isSelected,\n accessoryGap = 3,\n twClassName,\n ...props\n}: ListItemMultiSelectProps) => {\n const resolvedTwClassName = isSelected\n ? mergeTwClassName('bg-background-muted', twClassName)\n : twClassName;\n\n return (\n <ListItem\n isInteractive\n twClassName={resolvedTwClassName}\n endAccessory={\n <Checkbox\n isSelected={isSelected}\n onChange={noopChange}\n label=\"\"\n pointerEvents=\"none\"\n />\n }\n accessoryGap={accessoryGap}\n {...props}\n />\n );\n};\n\nListItemMultiSelect.displayName = 'ListItemMultiSelect';\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ListItemMultiSelect.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemMultiSelect.types.cjs","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/ListItemMultiSelect.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ListItemMultiSelectPropsShared } from '@metamask-previews/design-system-shared';\n\nimport type { ListItemProps } from '../ListItem/ListItem.types';\n\ntype ListItemInteractiveProps = Extract<ListItemProps, { isInteractive: true }>;\n\n/**\n * ListItemMultiSelect component props.\n *\n * Interactive list row for multi-select lists. Wraps {@link ListItem} with\n * `isInteractive`, selection styling, and a trailing Checkbox.\n */\nexport type ListItemMultiSelectProps = Omit<\n ListItemInteractiveProps,\n 'isInteractive' | 'endAccessory'\n> &\n ListItemMultiSelectPropsShared;\n"]}
@@ -0,0 +1,14 @@
1
+ import type { ListItemMultiSelectPropsShared } from "@metamask-previews/design-system-shared";
2
+ import type { ListItemProps } from "../ListItem/ListItem.types.cjs";
3
+ type ListItemInteractiveProps = Extract<ListItemProps, {
4
+ isInteractive: true;
5
+ }>;
6
+ /**
7
+ * ListItemMultiSelect component props.
8
+ *
9
+ * Interactive list row for multi-select lists. Wraps {@link ListItem} with
10
+ * `isInteractive`, selection styling, and a trailing Checkbox.
11
+ */
12
+ export type ListItemMultiSelectProps = Omit<ListItemInteractiveProps, 'isInteractive' | 'endAccessory'> & ListItemMultiSelectPropsShared;
13
+ export {};
14
+ //# sourceMappingURL=ListItemMultiSelect.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemMultiSelect.types.d.cts","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/ListItemMultiSelect.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,gDAAgD;AAE9F,OAAO,KAAK,EAAE,aAAa,EAAE,uCAAmC;AAEhE,KAAK,wBAAwB,GAAG,OAAO,CAAC,aAAa,EAAE;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,wBAAwB,EACxB,eAAe,GAAG,cAAc,CACjC,GACC,8BAA8B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { ListItemMultiSelectPropsShared } from "@metamask-previews/design-system-shared";
2
+ import type { ListItemProps } from "../ListItem/ListItem.types.mjs";
3
+ type ListItemInteractiveProps = Extract<ListItemProps, {
4
+ isInteractive: true;
5
+ }>;
6
+ /**
7
+ * ListItemMultiSelect component props.
8
+ *
9
+ * Interactive list row for multi-select lists. Wraps {@link ListItem} with
10
+ * `isInteractive`, selection styling, and a trailing Checkbox.
11
+ */
12
+ export type ListItemMultiSelectProps = Omit<ListItemInteractiveProps, 'isInteractive' | 'endAccessory'> & ListItemMultiSelectPropsShared;
13
+ export {};
14
+ //# sourceMappingURL=ListItemMultiSelect.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemMultiSelect.types.d.mts","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/ListItemMultiSelect.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,gDAAgD;AAE9F,OAAO,KAAK,EAAE,aAAa,EAAE,uCAAmC;AAEhE,KAAK,wBAAwB,GAAG,OAAO,CAAC,aAAa,EAAE;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,wBAAwB,EACxB,eAAe,GAAG,cAAc,CACjC,GACC,8BAA8B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ListItemMultiSelect.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemMultiSelect.types.mjs","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/ListItemMultiSelect.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ListItemMultiSelectPropsShared } from '@metamask-previews/design-system-shared';\n\nimport type { ListItemProps } from '../ListItem/ListItem.types';\n\ntype ListItemInteractiveProps = Extract<ListItemProps, { isInteractive: true }>;\n\n/**\n * ListItemMultiSelect component props.\n *\n * Interactive list row for multi-select lists. Wraps {@link ListItem} with\n * `isInteractive`, selection styling, and a trailing Checkbox.\n */\nexport type ListItemMultiSelectProps = Omit<\n ListItemInteractiveProps,\n 'isInteractive' | 'endAccessory'\n> &\n ListItemMultiSelectPropsShared;\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListItemMultiSelect = void 0;
4
+ var ListItemMultiSelect_1 = require("./ListItemMultiSelect.cjs");
5
+ Object.defineProperty(exports, "ListItemMultiSelect", { enumerable: true, get: function () { return ListItemMultiSelect_1.ListItemMultiSelect; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/index.ts"],"names":[],"mappings":";;;AAAA,iEAA4D;AAAnD,0HAAA,mBAAmB,OAAA","sourcesContent":["export { ListItemMultiSelect } from './ListItemMultiSelect';\nexport type { ListItemMultiSelectProps } from './ListItemMultiSelect.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { ListItemMultiSelect } from "./ListItemMultiSelect.cjs";
2
+ export type { ListItemMultiSelectProps } from "./ListItemMultiSelect.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,kCAA8B;AAC5D,YAAY,EAAE,wBAAwB,EAAE,wCAAoC"}
@@ -0,0 +1,3 @@
1
+ export { ListItemMultiSelect } from "./ListItemMultiSelect.mjs";
2
+ export type { ListItemMultiSelectProps } from "./ListItemMultiSelect.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,kCAA8B;AAC5D,YAAY,EAAE,wBAAwB,EAAE,wCAAoC"}
@@ -0,0 +1,2 @@
1
+ export { ListItemMultiSelect } from "./ListItemMultiSelect.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,kCAA8B","sourcesContent":["export { ListItemMultiSelect } from './ListItemMultiSelect';\nexport type { ListItemMultiSelectProps } from './ListItemMultiSelect.types';\n"]}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ListItemSelect = void 0;
7
+ const design_system_shared_1 = require("@metamask-previews/design-system-shared");
8
+ const react_1 = __importDefault(require("react"));
9
+ const Icon_1 = require("../Icon/index.cjs");
10
+ const ListItem_1 = require("../ListItem/index.cjs");
11
+ const ListItemSelect = ({ isSelected, showSelectedIcon = false, endAccessory, accessoryGap = 3, twClassName, ...props }) => {
12
+ const showCheck = isSelected && showSelectedIcon;
13
+ const resolvedEndAccessory = showCheck ? (<Icon_1.Icon name={Icon_1.IconName.Check} size={Icon_1.IconSize.Lg} color={Icon_1.IconColor.IconDefault}/>) : (endAccessory);
14
+ const resolvedTwClassName = isSelected
15
+ ? (0, design_system_shared_1.mergeTwClassName)('bg-background-muted', twClassName)
16
+ : twClassName;
17
+ return (<ListItem_1.ListItem isInteractive twClassName={resolvedTwClassName} endAccessory={resolvedEndAccessory} accessoryGap={accessoryGap} {...props}/>);
18
+ };
19
+ exports.ListItemSelect = ListItemSelect;
20
+ exports.ListItemSelect.displayName = 'ListItemSelect';
21
+ //# sourceMappingURL=ListItemSelect.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemSelect.cjs","sourceRoot":"","sources":["../../../src/components/ListItemSelect/ListItemSelect.tsx"],"names":[],"mappings":";;;;;;AAAA,kFAA2E;AAC3E,kDAA0B;AAE1B,4CAA8D;AAC9D,oDAAuC;AAIhC,MAAM,cAAc,GAAG,CAAC,EAC7B,UAAU,EACV,gBAAgB,GAAG,KAAK,EACxB,YAAY,EACZ,YAAY,GAAG,CAAC,EAChB,WAAW,EACX,GAAG,KAAK,EACY,EAAE,EAAE;IACxB,MAAM,SAAS,GAAG,UAAU,IAAI,gBAAgB,CAAC;IACjD,MAAM,oBAAoB,GAAG,SAAS,CAAC,CAAC,CAAC,CACvC,CAAC,WAAI,CACH,IAAI,CAAC,CAAC,eAAQ,CAAC,KAAK,CAAC,CACrB,IAAI,CAAC,CAAC,eAAQ,CAAC,EAAE,CAAC,CAClB,KAAK,CAAC,CAAC,gBAAS,CAAC,WAAW,CAAC,EAC7B,CACH,CAAC,CAAC,CAAC,CACF,YAAY,CACb,CAAC;IAEF,MAAM,mBAAmB,GAAG,UAAU;QACpC,CAAC,CAAC,IAAA,uCAAgB,EAAC,qBAAqB,EAAE,WAAW,CAAC;QACtD,CAAC,CAAC,WAAW,CAAC;IAEhB,OAAO,CACL,CAAC,mBAAQ,CACP,aAAa,CACb,WAAW,CAAC,CAAC,mBAAmB,CAAC,CACjC,YAAY,CAAC,CAAC,oBAAoB,CAAC,CACnC,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,IAAI,KAAK,CAAC,EACV,CACH,CAAC;AACJ,CAAC,CAAC;AAhCW,QAAA,cAAc,kBAgCzB;AAEF,sBAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC","sourcesContent":["import { mergeTwClassName } from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { Icon, IconColor, IconName, IconSize } from '../Icon';\nimport { ListItem } from '../ListItem';\n\nimport type { ListItemSelectProps } from './ListItemSelect.types';\n\nexport const ListItemSelect = ({\n isSelected,\n showSelectedIcon = false,\n endAccessory,\n accessoryGap = 3,\n twClassName,\n ...props\n}: ListItemSelectProps) => {\n const showCheck = isSelected && showSelectedIcon;\n const resolvedEndAccessory = showCheck ? (\n <Icon\n name={IconName.Check}\n size={IconSize.Lg}\n color={IconColor.IconDefault}\n />\n ) : (\n endAccessory\n );\n\n const resolvedTwClassName = isSelected\n ? mergeTwClassName('bg-background-muted', twClassName)\n : twClassName;\n\n return (\n <ListItem\n isInteractive\n twClassName={resolvedTwClassName}\n endAccessory={resolvedEndAccessory}\n accessoryGap={accessoryGap}\n {...props}\n />\n );\n};\n\nListItemSelect.displayName = 'ListItemSelect';\n"]}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { ListItemSelectProps } from "./ListItemSelect.types.cjs";
3
+ export declare const ListItemSelect: {
4
+ ({ isSelected, showSelectedIcon, endAccessory, accessoryGap, twClassName, ...props }: ListItemSelectProps): React.JSX.Element;
5
+ displayName: string;
6
+ };
7
+ //# sourceMappingURL=ListItemSelect.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemSelect.d.cts","sourceRoot":"","sources":["../../../src/components/ListItemSelect/ListItemSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAElE,eAAO,MAAM,cAAc;0FAOxB,mBAAmB;;CAyBrB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { ListItemSelectProps } from "./ListItemSelect.types.mjs";
3
+ export declare const ListItemSelect: {
4
+ ({ isSelected, showSelectedIcon, endAccessory, accessoryGap, twClassName, ...props }: ListItemSelectProps): React.JSX.Element;
5
+ displayName: string;
6
+ };
7
+ //# sourceMappingURL=ListItemSelect.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemSelect.d.mts","sourceRoot":"","sources":["../../../src/components/ListItemSelect/ListItemSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAElE,eAAO,MAAM,cAAc;0FAOxB,mBAAmB;;CAyBrB,CAAC"}
@@ -0,0 +1,21 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import { mergeTwClassName } from "@metamask-previews/design-system-shared";
8
+ import $React from "react";
9
+ const React = $importDefault($React);
10
+ import { Icon, IconColor, IconName, IconSize } from "../Icon/index.mjs";
11
+ import { ListItem } from "../ListItem/index.mjs";
12
+ export const ListItemSelect = ({ isSelected, showSelectedIcon = false, endAccessory, accessoryGap = 3, twClassName, ...props }) => {
13
+ const showCheck = isSelected && showSelectedIcon;
14
+ const resolvedEndAccessory = showCheck ? (<Icon name={IconName.Check} size={IconSize.Lg} color={IconColor.IconDefault}/>) : (endAccessory);
15
+ const resolvedTwClassName = isSelected
16
+ ? mergeTwClassName('bg-background-muted', twClassName)
17
+ : twClassName;
18
+ return (<ListItem isInteractive twClassName={resolvedTwClassName} endAccessory={resolvedEndAccessory} accessoryGap={accessoryGap} {...props}/>);
19
+ };
20
+ ListItemSelect.displayName = 'ListItemSelect';
21
+ //# sourceMappingURL=ListItemSelect.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemSelect.mjs","sourceRoot":"","sources":["../../../src/components/ListItemSelect/ListItemSelect.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,gDAAgD;AAC3E,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,0BAAgB;AAC9D,OAAO,EAAE,QAAQ,EAAE,8BAAoB;AAIvC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,UAAU,EACV,gBAAgB,GAAG,KAAK,EACxB,YAAY,EACZ,YAAY,GAAG,CAAC,EAChB,WAAW,EACX,GAAG,KAAK,EACY,EAAE,EAAE;IACxB,MAAM,SAAS,GAAG,UAAU,IAAI,gBAAgB,CAAC;IACjD,MAAM,oBAAoB,GAAG,SAAS,CAAC,CAAC,CAAC,CACvC,CAAC,IAAI,CACH,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CACrB,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAClB,KAAK,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,EAC7B,CACH,CAAC,CAAC,CAAC,CACF,YAAY,CACb,CAAC;IAEF,MAAM,mBAAmB,GAAG,UAAU;QACpC,CAAC,CAAC,gBAAgB,CAAC,qBAAqB,EAAE,WAAW,CAAC;QACtD,CAAC,CAAC,WAAW,CAAC;IAEhB,OAAO,CACL,CAAC,QAAQ,CACP,aAAa,CACb,WAAW,CAAC,CAAC,mBAAmB,CAAC,CACjC,YAAY,CAAC,CAAC,oBAAoB,CAAC,CACnC,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,IAAI,KAAK,CAAC,EACV,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC","sourcesContent":["import { mergeTwClassName } from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { Icon, IconColor, IconName, IconSize } from '../Icon';\nimport { ListItem } from '../ListItem';\n\nimport type { ListItemSelectProps } from './ListItemSelect.types';\n\nexport const ListItemSelect = ({\n isSelected,\n showSelectedIcon = false,\n endAccessory,\n accessoryGap = 3,\n twClassName,\n ...props\n}: ListItemSelectProps) => {\n const showCheck = isSelected && showSelectedIcon;\n const resolvedEndAccessory = showCheck ? (\n <Icon\n name={IconName.Check}\n size={IconSize.Lg}\n color={IconColor.IconDefault}\n />\n ) : (\n endAccessory\n );\n\n const resolvedTwClassName = isSelected\n ? mergeTwClassName('bg-background-muted', twClassName)\n : twClassName;\n\n return (\n <ListItem\n isInteractive\n twClassName={resolvedTwClassName}\n endAccessory={resolvedEndAccessory}\n accessoryGap={accessoryGap}\n {...props}\n />\n );\n};\n\nListItemSelect.displayName = 'ListItemSelect';\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ListItemSelect.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemSelect.types.cjs","sourceRoot":"","sources":["../../../src/components/ListItemSelect/ListItemSelect.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ListItemSelectPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ReactNode } from 'react';\n\nimport type { ListItemProps } from '../ListItem/ListItem.types';\n\ntype ListItemInteractiveProps = Extract<ListItemProps, { isInteractive: true }>;\n\n/**\n * ListItemSelect component props.\n *\n * Interactive list row for single-select lists. Wraps {@link ListItem} with\n * `isInteractive` and selection styling.\n */\nexport type ListItemSelectProps = Omit<\n ListItemInteractiveProps,\n 'isInteractive' | 'endAccessory'\n> &\n ListItemSelectPropsShared & {\n /** Used when the check icon is not shown (see `showSelectedIcon`). */\n endAccessory?: ReactNode;\n };\n"]}
@@ -0,0 +1,18 @@
1
+ import type { ListItemSelectPropsShared } from "@metamask-previews/design-system-shared";
2
+ import type { ReactNode } from "react";
3
+ import type { ListItemProps } from "../ListItem/ListItem.types.cjs";
4
+ type ListItemInteractiveProps = Extract<ListItemProps, {
5
+ isInteractive: true;
6
+ }>;
7
+ /**
8
+ * ListItemSelect component props.
9
+ *
10
+ * Interactive list row for single-select lists. Wraps {@link ListItem} with
11
+ * `isInteractive` and selection styling.
12
+ */
13
+ export type ListItemSelectProps = Omit<ListItemInteractiveProps, 'isInteractive' | 'endAccessory'> & ListItemSelectPropsShared & {
14
+ /** Used when the check icon is not shown (see `showSelectedIcon`). */
15
+ endAccessory?: ReactNode;
16
+ };
17
+ export {};
18
+ //# sourceMappingURL=ListItemSelect.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemSelect.types.d.cts","sourceRoot":"","sources":["../../../src/components/ListItemSelect/ListItemSelect.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,gDAAgD;AACzF,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,uCAAmC;AAEhE,KAAK,wBAAwB,GAAG,OAAO,CAAC,aAAa,EAAE;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,wBAAwB,EACxB,eAAe,GAAG,cAAc,CACjC,GACC,yBAAyB,GAAG;IAC1B,sEAAsE;IACtE,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { ListItemSelectPropsShared } from "@metamask-previews/design-system-shared";
2
+ import type { ReactNode } from "react";
3
+ import type { ListItemProps } from "../ListItem/ListItem.types.mjs";
4
+ type ListItemInteractiveProps = Extract<ListItemProps, {
5
+ isInteractive: true;
6
+ }>;
7
+ /**
8
+ * ListItemSelect component props.
9
+ *
10
+ * Interactive list row for single-select lists. Wraps {@link ListItem} with
11
+ * `isInteractive` and selection styling.
12
+ */
13
+ export type ListItemSelectProps = Omit<ListItemInteractiveProps, 'isInteractive' | 'endAccessory'> & ListItemSelectPropsShared & {
14
+ /** Used when the check icon is not shown (see `showSelectedIcon`). */
15
+ endAccessory?: ReactNode;
16
+ };
17
+ export {};
18
+ //# sourceMappingURL=ListItemSelect.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemSelect.types.d.mts","sourceRoot":"","sources":["../../../src/components/ListItemSelect/ListItemSelect.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,gDAAgD;AACzF,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,uCAAmC;AAEhE,KAAK,wBAAwB,GAAG,OAAO,CAAC,aAAa,EAAE;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,wBAAwB,EACxB,eAAe,GAAG,cAAc,CACjC,GACC,yBAAyB,GAAG;IAC1B,sEAAsE;IACtE,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ListItemSelect.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemSelect.types.mjs","sourceRoot":"","sources":["../../../src/components/ListItemSelect/ListItemSelect.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ListItemSelectPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ReactNode } from 'react';\n\nimport type { ListItemProps } from '../ListItem/ListItem.types';\n\ntype ListItemInteractiveProps = Extract<ListItemProps, { isInteractive: true }>;\n\n/**\n * ListItemSelect component props.\n *\n * Interactive list row for single-select lists. Wraps {@link ListItem} with\n * `isInteractive` and selection styling.\n */\nexport type ListItemSelectProps = Omit<\n ListItemInteractiveProps,\n 'isInteractive' | 'endAccessory'\n> &\n ListItemSelectPropsShared & {\n /** Used when the check icon is not shown (see `showSelectedIcon`). */\n endAccessory?: ReactNode;\n };\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListItemSelect = void 0;
4
+ var ListItemSelect_1 = require("./ListItemSelect.cjs");
5
+ Object.defineProperty(exports, "ListItemSelect", { enumerable: true, get: function () { return ListItemSelect_1.ListItemSelect; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/ListItemSelect/index.ts"],"names":[],"mappings":";;;AAAA,uDAAkD;AAAzC,gHAAA,cAAc,OAAA","sourcesContent":["export { ListItemSelect } from './ListItemSelect';\nexport type { ListItemSelectProps } from './ListItemSelect.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { ListItemSelect } from "./ListItemSelect.cjs";
2
+ export type { ListItemSelectProps } from "./ListItemSelect.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/ListItemSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,6BAAyB;AAClD,YAAY,EAAE,mBAAmB,EAAE,mCAA+B"}
@@ -0,0 +1,3 @@
1
+ export { ListItemSelect } from "./ListItemSelect.mjs";
2
+ export type { ListItemSelectProps } from "./ListItemSelect.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/ListItemSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,6BAAyB;AAClD,YAAY,EAAE,mBAAmB,EAAE,mCAA+B"}
@@ -0,0 +1,2 @@
1
+ export { ListItemSelect } from "./ListItemSelect.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/ListItemSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,6BAAyB","sourcesContent":["export { ListItemSelect } from './ListItemSelect';\nexport type { ListItemSelectProps } from './ListItemSelect.types';\n"]}
@@ -5,39 +5,62 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SectionHeader = void 0;
7
7
  const design_system_shared_1 = require("@metamask-previews/design-system-shared");
8
+ const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
8
9
  const react_1 = __importDefault(require("react"));
10
+ const react_native_1 = require("react-native");
9
11
  const BoxRow_1 = require("../BoxRow/index.cjs");
10
12
  const Icon_1 = require("../Icon/index.cjs");
11
13
  /**
12
14
  * Horizontal section header: optional start/end icons or accessories, and a title row with optional inline accessory.
13
- * Remaining `View` props are forwarded to the outer {@link BoxRow}.
15
+ * When `isInteractive` is `true`, the header is wrapped in a `Pressable` and remaining `PressableProps` are forwarded to it.
16
+ * Otherwise, remaining `View` props are forwarded to the outer {@link BoxRow}.
14
17
  *
15
- * @param props - Component props
16
- * @param props.title - Title content for the inner row (required)
17
- * @param props.titleAccessory - Optional node to the right of `title` in the inner row
18
- * @param props.titleProps - Optional props merged into inner row `Text` when `title` is a string
19
- * @param props.titleWrapperProps - Optional props spread onto the inner `BoxRow`
20
- * @param props.startAccessory - Optional custom node before the title row on the outer row; used when no start icon is resolved
21
- * @param props.startIconName - Optional start icon; takes precedence over `startAccessory` when resolved
22
- * @param props.startIconProps - Props merged into the start `Icon` (defaults include medium size and default icon color)
23
- * @param props.endAccessory - Optional custom node after the title row on the outer row; used when no end icon is resolved
24
- * @param props.endIconName - Optional end icon; takes precedence over `endAccessory` when resolved
25
- * @param props.endIconProps - Props merged into the end `Icon`
26
- * @param props.twClassName - Optional Tailwind classes on the outer row
18
+ * @param sectionHeaderProps - Component props
19
+ * @param sectionHeaderProps.title - Title content for the inner row (required)
20
+ * @param sectionHeaderProps.titleAccessory - Optional node to the right of `title` in the inner row
21
+ * @param sectionHeaderProps.titleProps - Optional props merged into inner row `Text` when `title` is a string
22
+ * @param sectionHeaderProps.titleWrapperProps - Optional props spread onto the inner `BoxRow`
23
+ * @param sectionHeaderProps.startAccessory - Optional custom node before the title row on the outer row; used when no start icon is resolved
24
+ * @param sectionHeaderProps.startIconName - Optional start icon; takes precedence over `startAccessory` when set
25
+ * @param sectionHeaderProps.startIconProps - Props merged into the start `Icon` (defaults include medium size and default icon color)
26
+ * @param sectionHeaderProps.endAccessory - Optional custom node after the title row on the outer row; used when no end icon is resolved
27
+ * @param sectionHeaderProps.endIconName - Optional end icon; takes precedence over `endAccessory` when set. Defaults to `IconName.ArrowRight` when `isInteractive` is `true` and no end icon or `endAccessory` is provided
28
+ * @param sectionHeaderProps.endIconProps - Props merged into the end `Icon`
29
+ * @param sectionHeaderProps.isInteractive - When `true`, wraps the header in a `Pressable` with reduced opacity on press
30
+ * @param sectionHeaderProps.style - Optional style on the outer wrapper (`View` or `Pressable` style, including function form when interactive)
31
+ * @param sectionHeaderProps.twClassName - Optional Tailwind classes on the outer row
27
32
  *
28
33
  * @returns The rendered SectionHeader layout.
29
34
  */
30
- const SectionHeader = ({ title, titleAccessory, titleProps, titleWrapperProps, startAccessory, startIconName, startIconProps, endAccessory, endIconName, endIconProps, twClassName = '', ...rest }) => {
31
- const finalStartIconName = startIconName ?? startIconProps?.name;
32
- const finalEndIconName = endIconName ?? endIconProps?.name;
33
- return (<BoxRow_1.BoxRow {...rest} gap={1} twClassName={twClassName} startAccessory={finalStartIconName ? (<Icon_1.Icon size={design_system_shared_1.IconSize.Md} color={design_system_shared_1.IconColor.IconDefault} twClassName="shrink-0" {...startIconProps} name={finalStartIconName}/>) : (startAccessory)} endAccessory={finalEndIconName ? (<Icon_1.Icon size={design_system_shared_1.IconSize.Md} color={design_system_shared_1.IconColor.IconDefault} twClassName="shrink-0" {...endIconProps} name={finalEndIconName}/>) : (endAccessory)}>
34
- {title ? (<BoxRow_1.BoxRow {...titleWrapperProps} gap={1} endAccessory={titleAccessory} textProps={{
35
- variant: design_system_shared_1.TextVariant.HeadingMd,
36
- color: design_system_shared_1.TextColor.TextDefault,
37
- ...titleProps,
38
- }}>
39
- {title}
40
- </BoxRow_1.BoxRow>) : null}
35
+ const SectionHeader = (sectionHeaderProps) => {
36
+ const { title, titleAccessory, titleProps, titleWrapperProps, startAccessory, startIconName, startIconProps, endAccessory, endIconName, endIconProps, isInteractive, twClassName = '', style, ...props } = sectionHeaderProps;
37
+ const tw = (0, design_system_twrnc_preset_1.useTailwind)();
38
+ const resolvedEndIconName = endIconName ??
39
+ (isInteractive && !endAccessory ? design_system_shared_1.IconName.ArrowRight : undefined);
40
+ const resolvedStartAccessory = startIconName ? (<Icon_1.Icon size={design_system_shared_1.IconSize.Md} color={design_system_shared_1.IconColor.IconDefault} twClassName="shrink-0" {...startIconProps} name={startIconName}/>) : (startAccessory);
41
+ const resolvedEndAccessory = resolvedEndIconName ? (<Icon_1.Icon size={design_system_shared_1.IconSize.Md} color={design_system_shared_1.IconColor.IconAlternative} twClassName="shrink-0" {...endIconProps} name={resolvedEndIconName}/>) : (endAccessory);
42
+ const titleRow = title ? (<BoxRow_1.BoxRow {...titleWrapperProps} gap={1} endAccessory={titleAccessory} textProps={{
43
+ variant: design_system_shared_1.TextVariant.HeadingMd,
44
+ color: design_system_shared_1.TextColor.TextDefault,
45
+ ...titleProps,
46
+ }}>
47
+ {title}
48
+ </BoxRow_1.BoxRow>) : null;
49
+ if (isInteractive) {
50
+ const { disabled, accessibilityRole = 'button' } = sectionHeaderProps;
51
+ const isDisabled = Boolean(disabled);
52
+ return (<react_native_1.Pressable accessibilityRole={accessibilityRole} style={({ pressed }) => {
53
+ const baseStyle = tw.style('px-4 pb-2 pt-3', twClassName, pressed && !isDisabled && 'opacity-70');
54
+ const additionalStyle = typeof style === 'function' ? style({ pressed }) : style;
55
+ return additionalStyle ? [baseStyle, additionalStyle] : baseStyle;
56
+ }} {...props}>
57
+ <BoxRow_1.BoxRow gap={1} startAccessory={resolvedStartAccessory} endAccessory={resolvedEndAccessory}>
58
+ {titleRow}
59
+ </BoxRow_1.BoxRow>
60
+ </react_native_1.Pressable>);
61
+ }
62
+ return (<BoxRow_1.BoxRow {...props} gap={1} style={style} twClassName={(0, design_system_shared_1.mergeTwClassName)('px-4 pb-2 pt-3', twClassName)} startAccessory={resolvedStartAccessory} endAccessory={resolvedEndAccessory}>
63
+ {titleRow}
41
64
  </BoxRow_1.BoxRow>);
42
65
  };
43
66
  exports.SectionHeader = SectionHeader;
@@ -1 +1 @@
1
- {"version":3,"file":"SectionHeader.cjs","sourceRoot":"","sources":["../../../src/components/SectionHeader/SectionHeader.tsx"],"names":[],"mappings":";;;;;;AAAA,kFAKiD;AACjD,kDAA0B;AAE1B,gDAAmC;AACnC,4CAA+B;AAI/B;;;;;;;;;;;;;;;;;;GAkBG;AACI,MAAM,aAAa,GAAiC,CAAC,EAC1D,KAAK,EACL,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,cAAc,EACd,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,WAAW,GAAG,EAAE,EAChB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,kBAAkB,GAAG,aAAa,IAAI,cAAc,EAAE,IAAI,CAAC;IACjE,MAAM,gBAAgB,GAAG,WAAW,IAAI,YAAY,EAAE,IAAI,CAAC;IAE3D,OAAO,CACL,CAAC,eAAM,CACL,IAAI,IAAI,CAAC,CACT,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,cAAc,CAAC,CACb,kBAAkB,CAAC,CAAC,CAAC,CACnB,CAAC,WAAI,CACH,IAAI,CAAC,CAAC,+BAAQ,CAAC,EAAE,CAAC,CAClB,KAAK,CAAC,CAAC,gCAAS,CAAC,WAAW,CAAC,CAC7B,WAAW,CAAC,UAAU,CACtB,IAAI,cAAc,CAAC,CACnB,IAAI,CAAC,CAAC,kBAAkB,CAAC,EACzB,CACH,CAAC,CAAC,CAAC,CACF,cAAc,CACf,CACF,CACD,YAAY,CAAC,CACX,gBAAgB,CAAC,CAAC,CAAC,CACjB,CAAC,WAAI,CACH,IAAI,CAAC,CAAC,+BAAQ,CAAC,EAAE,CAAC,CAClB,KAAK,CAAC,CAAC,gCAAS,CAAC,WAAW,CAAC,CAC7B,WAAW,CAAC,UAAU,CACtB,IAAI,YAAY,CAAC,CACjB,IAAI,CAAC,CAAC,gBAAgB,CAAC,EACvB,CACH,CAAC,CAAC,CAAC,CACF,YAAY,CACb,CACF,CAED;MAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CACP,CAAC,eAAM,CACL,IAAI,iBAAiB,CAAC,CACtB,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,YAAY,CAAC,CAAC,cAAc,CAAC,CAC7B,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,SAAS;gBAC9B,KAAK,EAAE,gCAAS,CAAC,WAAW;gBAC5B,GAAG,UAAU;aACd,CAAC,CAEF;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,eAAM,CAAC,CACV,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,EAAE,eAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AAjEW,QAAA,aAAa,iBAiExB;AAEF,qBAAa,CAAC,WAAW,GAAG,eAAe,CAAC","sourcesContent":["import {\n IconColor,\n IconSize,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { BoxRow } from '../BoxRow';\nimport { Icon } from '../Icon';\n\nimport type { SectionHeaderProps } from './SectionHeader.types';\n\n/**\n * Horizontal section header: optional start/end icons or accessories, and a title row with optional inline accessory.\n * Remaining `View` props are forwarded to the outer {@link BoxRow}.\n *\n * @param props - Component props\n * @param props.title - Title content for the inner row (required)\n * @param props.titleAccessory - Optional node to the right of `title` in the inner row\n * @param props.titleProps - Optional props merged into inner row `Text` when `title` is a string\n * @param props.titleWrapperProps - Optional props spread onto the inner `BoxRow`\n * @param props.startAccessory - Optional custom node before the title row on the outer row; used when no start icon is resolved\n * @param props.startIconName - Optional start icon; takes precedence over `startAccessory` when resolved\n * @param props.startIconProps - Props merged into the start `Icon` (defaults include medium size and default icon color)\n * @param props.endAccessory - Optional custom node after the title row on the outer row; used when no end icon is resolved\n * @param props.endIconName - Optional end icon; takes precedence over `endAccessory` when resolved\n * @param props.endIconProps - Props merged into the end `Icon`\n * @param props.twClassName - Optional Tailwind classes on the outer row\n *\n * @returns The rendered SectionHeader layout.\n */\nexport const SectionHeader: React.FC<SectionHeaderProps> = ({\n title,\n titleAccessory,\n titleProps,\n titleWrapperProps,\n startAccessory,\n startIconName,\n startIconProps,\n endAccessory,\n endIconName,\n endIconProps,\n twClassName = '',\n ...rest\n}) => {\n const finalStartIconName = startIconName ?? startIconProps?.name;\n const finalEndIconName = endIconName ?? endIconProps?.name;\n\n return (\n <BoxRow\n {...rest}\n gap={1}\n twClassName={twClassName}\n startAccessory={\n finalStartIconName ? (\n <Icon\n size={IconSize.Md}\n color={IconColor.IconDefault}\n twClassName=\"shrink-0\"\n {...startIconProps}\n name={finalStartIconName}\n />\n ) : (\n startAccessory\n )\n }\n endAccessory={\n finalEndIconName ? (\n <Icon\n size={IconSize.Md}\n color={IconColor.IconDefault}\n twClassName=\"shrink-0\"\n {...endIconProps}\n name={finalEndIconName}\n />\n ) : (\n endAccessory\n )\n }\n >\n {title ? (\n <BoxRow\n {...titleWrapperProps}\n gap={1}\n endAccessory={titleAccessory}\n textProps={{\n variant: TextVariant.HeadingMd,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </BoxRow>\n ) : null}\n </BoxRow>\n );\n};\n\nSectionHeader.displayName = 'SectionHeader';\n"]}
1
+ {"version":3,"file":"SectionHeader.cjs","sourceRoot":"","sources":["../../../src/components/SectionHeader/SectionHeader.tsx"],"names":[],"mappings":";;;;;;AAAA,kFAOiD;AACjD,8FAA4E;AAC5E,kDAA0B;AAC1B,+CAAyC;AAEzC,gDAAmC;AACnC,4CAA+B;AAI/B;;;;;;;;;;;;;;;;;;;;;GAqBG;AACI,MAAM,aAAa,GAAiC,CACzD,kBAAkB,EAClB,EAAE;IACF,MAAM,EACJ,KAAK,EACL,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,cAAc,EACd,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,aAAa,EACb,WAAW,GAAG,EAAE,EAChB,KAAK,EACL,GAAG,KAAK,EACT,GAAG,kBAAkB,CAAC;IAEvB,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,mBAAmB,GACvB,WAAW;QACX,CAAC,aAAa,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,+BAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAErE,MAAM,sBAAsB,GAAG,aAAa,CAAC,CAAC,CAAC,CAC7C,CAAC,WAAI,CACH,IAAI,CAAC,CAAC,+BAAQ,CAAC,EAAE,CAAC,CAClB,KAAK,CAAC,CAAC,gCAAS,CAAC,WAAW,CAAC,CAC7B,WAAW,CAAC,UAAU,CACtB,IAAI,cAAc,CAAC,CACnB,IAAI,CAAC,CAAC,aAAa,CAAC,EACpB,CACH,CAAC,CAAC,CAAC,CACF,cAAc,CACf,CAAC;IAEF,MAAM,oBAAoB,GAAG,mBAAmB,CAAC,CAAC,CAAC,CACjD,CAAC,WAAI,CACH,IAAI,CAAC,CAAC,+BAAQ,CAAC,EAAE,CAAC,CAClB,KAAK,CAAC,CAAC,gCAAS,CAAC,eAAe,CAAC,CACjC,WAAW,CAAC,UAAU,CACtB,IAAI,YAAY,CAAC,CACjB,IAAI,CAAC,CAAC,mBAAmB,CAAC,EAC1B,CACH,CAAC,CAAC,CAAC,CACF,YAAY,CACb,CAAC;IAEF,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,CACvB,CAAC,eAAM,CACL,IAAI,iBAAiB,CAAC,CACtB,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,YAAY,CAAC,CAAC,cAAc,CAAC,CAC7B,SAAS,CAAC,CAAC;YACT,OAAO,EAAE,kCAAW,CAAC,SAAS;YAC9B,KAAK,EAAE,gCAAS,CAAC,WAAW;YAC5B,GAAG,UAAU;SACd,CAAC,CAEF;MAAA,CAAC,KAAK,CACR;IAAA,EAAE,eAAM,CAAC,CACV,CAAC,CAAC,CAAC,IAAI,CAAC;IAET,IAAI,aAAa,EAAE;QACjB,MAAM,EAAE,QAAQ,EAAE,iBAAiB,GAAG,QAAQ,EAAE,GAAG,kBAAkB,CAAC;QACtE,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;QAErC,OAAO,CACL,CAAC,wBAAS,CACR,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;gBACrB,MAAM,SAAS,GAAG,EAAE,CAAC,KAAK,CACxB,gBAAgB,EAChB,WAAW,EACX,OAAO,IAAI,CAAC,UAAU,IAAI,YAAY,CACvC,CAAC;gBACF,MAAM,eAAe,GACnB,OAAO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;gBAE3D,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,CAAC,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;QAAA,CAAC,eAAM,CACL,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,cAAc,CAAC,CAAC,sBAAsB,CAAC,CACvC,YAAY,CAAC,CAAC,oBAAoB,CAAC,CAEnC;UAAA,CAAC,QAAQ,CACX;QAAA,EAAE,eAAM,CACV;MAAA,EAAE,wBAAS,CAAC,CACb,CAAC;KACH;IAED,OAAO,CACL,CAAC,eAAM,CACL,IAAI,KAAK,CAAC,CACV,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,WAAW,CAAC,CAAC,IAAA,uCAAgB,EAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC,CAC7D,cAAc,CAAC,CAAC,sBAAsB,CAAC,CACvC,YAAY,CAAC,CAAC,oBAAoB,CAAC,CAEnC;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,eAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AA3GW,QAAA,aAAa,iBA2GxB;AAEF,qBAAa,CAAC,WAAW,GAAG,eAAe,CAAC","sourcesContent":["import {\n IconColor,\n IconName,\n IconSize,\n mergeTwClassName,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { Pressable } from 'react-native';\n\nimport { BoxRow } from '../BoxRow';\nimport { Icon } from '../Icon';\n\nimport type { SectionHeaderProps } from './SectionHeader.types';\n\n/**\n * Horizontal section header: optional start/end icons or accessories, and a title row with optional inline accessory.\n * When `isInteractive` is `true`, the header is wrapped in a `Pressable` and remaining `PressableProps` are forwarded to it.\n * Otherwise, remaining `View` props are forwarded to the outer {@link BoxRow}.\n *\n * @param sectionHeaderProps - Component props\n * @param sectionHeaderProps.title - Title content for the inner row (required)\n * @param sectionHeaderProps.titleAccessory - Optional node to the right of `title` in the inner row\n * @param sectionHeaderProps.titleProps - Optional props merged into inner row `Text` when `title` is a string\n * @param sectionHeaderProps.titleWrapperProps - Optional props spread onto the inner `BoxRow`\n * @param sectionHeaderProps.startAccessory - Optional custom node before the title row on the outer row; used when no start icon is resolved\n * @param sectionHeaderProps.startIconName - Optional start icon; takes precedence over `startAccessory` when set\n * @param sectionHeaderProps.startIconProps - Props merged into the start `Icon` (defaults include medium size and default icon color)\n * @param sectionHeaderProps.endAccessory - Optional custom node after the title row on the outer row; used when no end icon is resolved\n * @param sectionHeaderProps.endIconName - Optional end icon; takes precedence over `endAccessory` when set. Defaults to `IconName.ArrowRight` when `isInteractive` is `true` and no end icon or `endAccessory` is provided\n * @param sectionHeaderProps.endIconProps - Props merged into the end `Icon`\n * @param sectionHeaderProps.isInteractive - When `true`, wraps the header in a `Pressable` with reduced opacity on press\n * @param sectionHeaderProps.style - Optional style on the outer wrapper (`View` or `Pressable` style, including function form when interactive)\n * @param sectionHeaderProps.twClassName - Optional Tailwind classes on the outer row\n *\n * @returns The rendered SectionHeader layout.\n */\nexport const SectionHeader: React.FC<SectionHeaderProps> = (\n sectionHeaderProps,\n) => {\n const {\n title,\n titleAccessory,\n titleProps,\n titleWrapperProps,\n startAccessory,\n startIconName,\n startIconProps,\n endAccessory,\n endIconName,\n endIconProps,\n isInteractive,\n twClassName = '',\n style,\n ...props\n } = sectionHeaderProps;\n\n const tw = useTailwind();\n const resolvedEndIconName =\n endIconName ??\n (isInteractive && !endAccessory ? IconName.ArrowRight : undefined);\n\n const resolvedStartAccessory = startIconName ? (\n <Icon\n size={IconSize.Md}\n color={IconColor.IconDefault}\n twClassName=\"shrink-0\"\n {...startIconProps}\n name={startIconName}\n />\n ) : (\n startAccessory\n );\n\n const resolvedEndAccessory = resolvedEndIconName ? (\n <Icon\n size={IconSize.Md}\n color={IconColor.IconAlternative}\n twClassName=\"shrink-0\"\n {...endIconProps}\n name={resolvedEndIconName}\n />\n ) : (\n endAccessory\n );\n\n const titleRow = title ? (\n <BoxRow\n {...titleWrapperProps}\n gap={1}\n endAccessory={titleAccessory}\n textProps={{\n variant: TextVariant.HeadingMd,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </BoxRow>\n ) : null;\n\n if (isInteractive) {\n const { disabled, accessibilityRole = 'button' } = sectionHeaderProps;\n const isDisabled = Boolean(disabled);\n\n return (\n <Pressable\n accessibilityRole={accessibilityRole}\n style={({ pressed }) => {\n const baseStyle = tw.style(\n 'px-4 pb-2 pt-3',\n twClassName,\n pressed && !isDisabled && 'opacity-70',\n );\n const additionalStyle =\n typeof style === 'function' ? style({ pressed }) : style;\n\n return additionalStyle ? [baseStyle, additionalStyle] : baseStyle;\n }}\n {...props}\n >\n <BoxRow\n gap={1}\n startAccessory={resolvedStartAccessory}\n endAccessory={resolvedEndAccessory}\n >\n {titleRow}\n </BoxRow>\n </Pressable>\n );\n }\n\n return (\n <BoxRow\n {...props}\n gap={1}\n style={style}\n twClassName={mergeTwClassName('px-4 pb-2 pt-3', twClassName)}\n startAccessory={resolvedStartAccessory}\n endAccessory={resolvedEndAccessory}\n >\n {titleRow}\n </BoxRow>\n );\n};\n\nSectionHeader.displayName = 'SectionHeader';\n"]}
@@ -2,20 +2,23 @@ import React from "react";
2
2
  import type { SectionHeaderProps } from "./SectionHeader.types.cjs";
3
3
  /**
4
4
  * Horizontal section header: optional start/end icons or accessories, and a title row with optional inline accessory.
5
- * Remaining `View` props are forwarded to the outer {@link BoxRow}.
5
+ * When `isInteractive` is `true`, the header is wrapped in a `Pressable` and remaining `PressableProps` are forwarded to it.
6
+ * Otherwise, remaining `View` props are forwarded to the outer {@link BoxRow}.
6
7
  *
7
- * @param props - Component props
8
- * @param props.title - Title content for the inner row (required)
9
- * @param props.titleAccessory - Optional node to the right of `title` in the inner row
10
- * @param props.titleProps - Optional props merged into inner row `Text` when `title` is a string
11
- * @param props.titleWrapperProps - Optional props spread onto the inner `BoxRow`
12
- * @param props.startAccessory - Optional custom node before the title row on the outer row; used when no start icon is resolved
13
- * @param props.startIconName - Optional start icon; takes precedence over `startAccessory` when resolved
14
- * @param props.startIconProps - Props merged into the start `Icon` (defaults include medium size and default icon color)
15
- * @param props.endAccessory - Optional custom node after the title row on the outer row; used when no end icon is resolved
16
- * @param props.endIconName - Optional end icon; takes precedence over `endAccessory` when resolved
17
- * @param props.endIconProps - Props merged into the end `Icon`
18
- * @param props.twClassName - Optional Tailwind classes on the outer row
8
+ * @param sectionHeaderProps - Component props
9
+ * @param sectionHeaderProps.title - Title content for the inner row (required)
10
+ * @param sectionHeaderProps.titleAccessory - Optional node to the right of `title` in the inner row
11
+ * @param sectionHeaderProps.titleProps - Optional props merged into inner row `Text` when `title` is a string
12
+ * @param sectionHeaderProps.titleWrapperProps - Optional props spread onto the inner `BoxRow`
13
+ * @param sectionHeaderProps.startAccessory - Optional custom node before the title row on the outer row; used when no start icon is resolved
14
+ * @param sectionHeaderProps.startIconName - Optional start icon; takes precedence over `startAccessory` when set
15
+ * @param sectionHeaderProps.startIconProps - Props merged into the start `Icon` (defaults include medium size and default icon color)
16
+ * @param sectionHeaderProps.endAccessory - Optional custom node after the title row on the outer row; used when no end icon is resolved
17
+ * @param sectionHeaderProps.endIconName - Optional end icon; takes precedence over `endAccessory` when set. Defaults to `IconName.ArrowRight` when `isInteractive` is `true` and no end icon or `endAccessory` is provided
18
+ * @param sectionHeaderProps.endIconProps - Props merged into the end `Icon`
19
+ * @param sectionHeaderProps.isInteractive - When `true`, wraps the header in a `Pressable` with reduced opacity on press
20
+ * @param sectionHeaderProps.style - Optional style on the outer wrapper (`View` or `Pressable` style, including function form when interactive)
21
+ * @param sectionHeaderProps.twClassName - Optional Tailwind classes on the outer row
19
22
  *
20
23
  * @returns The rendered SectionHeader layout.
21
24
  */
@@ -1 +1 @@
1
- {"version":3,"file":"SectionHeader.d.cts","sourceRoot":"","sources":["../../../src/components/SectionHeader/SectionHeader.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAiEtD,CAAC"}
1
+ {"version":3,"file":"SectionHeader.d.cts","sourceRoot":"","sources":["../../../src/components/SectionHeader/SectionHeader.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA2GtD,CAAC"}
@@ -2,20 +2,23 @@ import React from "react";
2
2
  import type { SectionHeaderProps } from "./SectionHeader.types.mjs";
3
3
  /**
4
4
  * Horizontal section header: optional start/end icons or accessories, and a title row with optional inline accessory.
5
- * Remaining `View` props are forwarded to the outer {@link BoxRow}.
5
+ * When `isInteractive` is `true`, the header is wrapped in a `Pressable` and remaining `PressableProps` are forwarded to it.
6
+ * Otherwise, remaining `View` props are forwarded to the outer {@link BoxRow}.
6
7
  *
7
- * @param props - Component props
8
- * @param props.title - Title content for the inner row (required)
9
- * @param props.titleAccessory - Optional node to the right of `title` in the inner row
10
- * @param props.titleProps - Optional props merged into inner row `Text` when `title` is a string
11
- * @param props.titleWrapperProps - Optional props spread onto the inner `BoxRow`
12
- * @param props.startAccessory - Optional custom node before the title row on the outer row; used when no start icon is resolved
13
- * @param props.startIconName - Optional start icon; takes precedence over `startAccessory` when resolved
14
- * @param props.startIconProps - Props merged into the start `Icon` (defaults include medium size and default icon color)
15
- * @param props.endAccessory - Optional custom node after the title row on the outer row; used when no end icon is resolved
16
- * @param props.endIconName - Optional end icon; takes precedence over `endAccessory` when resolved
17
- * @param props.endIconProps - Props merged into the end `Icon`
18
- * @param props.twClassName - Optional Tailwind classes on the outer row
8
+ * @param sectionHeaderProps - Component props
9
+ * @param sectionHeaderProps.title - Title content for the inner row (required)
10
+ * @param sectionHeaderProps.titleAccessory - Optional node to the right of `title` in the inner row
11
+ * @param sectionHeaderProps.titleProps - Optional props merged into inner row `Text` when `title` is a string
12
+ * @param sectionHeaderProps.titleWrapperProps - Optional props spread onto the inner `BoxRow`
13
+ * @param sectionHeaderProps.startAccessory - Optional custom node before the title row on the outer row; used when no start icon is resolved
14
+ * @param sectionHeaderProps.startIconName - Optional start icon; takes precedence over `startAccessory` when set
15
+ * @param sectionHeaderProps.startIconProps - Props merged into the start `Icon` (defaults include medium size and default icon color)
16
+ * @param sectionHeaderProps.endAccessory - Optional custom node after the title row on the outer row; used when no end icon is resolved
17
+ * @param sectionHeaderProps.endIconName - Optional end icon; takes precedence over `endAccessory` when set. Defaults to `IconName.ArrowRight` when `isInteractive` is `true` and no end icon or `endAccessory` is provided
18
+ * @param sectionHeaderProps.endIconProps - Props merged into the end `Icon`
19
+ * @param sectionHeaderProps.isInteractive - When `true`, wraps the header in a `Pressable` with reduced opacity on press
20
+ * @param sectionHeaderProps.style - Optional style on the outer wrapper (`View` or `Pressable` style, including function form when interactive)
21
+ * @param sectionHeaderProps.twClassName - Optional Tailwind classes on the outer row
19
22
  *
20
23
  * @returns The rendered SectionHeader layout.
21
24
  */
@@ -1 +1 @@
1
- {"version":3,"file":"SectionHeader.d.mts","sourceRoot":"","sources":["../../../src/components/SectionHeader/SectionHeader.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAiEtD,CAAC"}
1
+ {"version":3,"file":"SectionHeader.d.mts","sourceRoot":"","sources":["../../../src/components/SectionHeader/SectionHeader.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA2GtD,CAAC"}