@ledgerhq/react-ui 0.46.0 → 0.47.0-nightly.20260227030100

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 (563) hide show
  1. package/lib/assets/logos/LedgerLiveAltRegular.d.ts +4 -4
  2. package/lib/assets/logos/LedgerLiveAltRegular.d.ts.map +1 -1
  3. package/lib/assets/logos/LedgerLiveAltRegular.js.map +1 -1
  4. package/lib/assets/logos/LedgerLiveRegular.d.ts +4 -4
  5. package/lib/assets/logos/LedgerLiveRegular.d.ts.map +1 -1
  6. package/lib/assets/logos/LedgerLiveRegular.js.map +1 -1
  7. package/lib/cjs/assets/index.js.map +1 -1
  8. package/lib/cjs/assets/logos/LedgerLiveAltRegular.js.map +1 -1
  9. package/lib/cjs/assets/logos/LedgerLiveRegular.js.map +1 -1
  10. package/lib/cjs/assets/logos/index.js.map +1 -1
  11. package/lib/cjs/components/Table/Columns.js +12 -9
  12. package/lib/cjs/components/Table/Columns.js.map +1 -1
  13. package/lib/cjs/components/Table/Table.stories.js +12 -9
  14. package/lib/cjs/components/Table/Table.stories.js.map +1 -1
  15. package/lib/cjs/components/Table/index.js +12 -9
  16. package/lib/cjs/components/Table/index.js.map +1 -1
  17. package/lib/cjs/components/Table/stories.helper.js +12 -9
  18. package/lib/cjs/components/Table/stories.helper.js.map +1 -1
  19. package/lib/cjs/components/Tag/Tag.stories.js +12 -9
  20. package/lib/cjs/components/Tag/Tag.stories.js.map +1 -1
  21. package/lib/cjs/components/Tag/index.js +12 -9
  22. package/lib/cjs/components/Tag/index.js.map +1 -1
  23. package/lib/cjs/components/animations/GlitchText/GlitchText.stories.js +12 -9
  24. package/lib/cjs/components/animations/GlitchText/GlitchText.stories.js.map +1 -1
  25. package/lib/cjs/components/asorted/Divider/Divider.stories.js +12 -9
  26. package/lib/cjs/components/asorted/Divider/Divider.stories.js.map +1 -1
  27. package/lib/cjs/components/asorted/Divider/index.js +12 -9
  28. package/lib/cjs/components/asorted/Divider/index.js.map +1 -1
  29. package/lib/cjs/components/asorted/Icon/BoxedIcon.js.map +1 -1
  30. package/lib/cjs/components/asorted/Icon/BoxedIcon.stories.js.map +1 -1
  31. package/lib/cjs/components/asorted/Icon/Icon.js.map +1 -1
  32. package/lib/cjs/components/asorted/Icon/Icons.stories.js +19 -12
  33. package/lib/cjs/components/asorted/Icon/Icons.stories.js.map +1 -1
  34. package/lib/cjs/components/asorted/Icon/IconsLegacy.stories.js +31 -28
  35. package/lib/cjs/components/asorted/Icon/IconsLegacy.stories.js.map +1 -1
  36. package/lib/cjs/components/asorted/Icon/NotificationIcon.js.map +1 -1
  37. package/lib/cjs/components/asorted/Icon/NotificationIcon.stories.js.map +1 -1
  38. package/lib/cjs/components/asorted/Icon/index.js.map +1 -1
  39. package/lib/cjs/components/asorted/Text/Text.stories.js +33 -34
  40. package/lib/cjs/components/asorted/Text/Text.stories.js.map +1 -1
  41. package/lib/cjs/components/asorted/Text/index.js +16 -9
  42. package/lib/cjs/components/asorted/Text/index.js.map +1 -1
  43. package/lib/cjs/components/asorted/index.js +12 -9
  44. package/lib/cjs/components/asorted/index.js.map +1 -1
  45. package/lib/cjs/components/cta/Button/Button.stories.js +12 -9
  46. package/lib/cjs/components/cta/Button/Button.stories.js.map +1 -1
  47. package/lib/cjs/components/cta/Button/index.js.map +1 -1
  48. package/lib/cjs/components/cta/Link/Link.stories.js +12 -9
  49. package/lib/cjs/components/cta/Link/Link.stories.js.map +1 -1
  50. package/lib/cjs/components/cta/Link/index.js +12 -9
  51. package/lib/cjs/components/cta/Link/index.js.map +1 -1
  52. package/lib/cjs/components/cta/Toggle/Toggle.stories.js.map +1 -1
  53. package/lib/cjs/components/cta/Toggle/index.js.map +1 -1
  54. package/lib/cjs/components/cta/index.js +12 -9
  55. package/lib/cjs/components/cta/index.js.map +1 -1
  56. package/lib/cjs/components/form/BaseInput/Input.stories.js +31 -28
  57. package/lib/cjs/components/form/BaseInput/Input.stories.js.map +1 -1
  58. package/lib/cjs/components/form/BaseInput/index.js +31 -28
  59. package/lib/cjs/components/form/BaseInput/index.js.map +1 -1
  60. package/lib/cjs/components/form/Checkbox/Checkbox.js +12 -9
  61. package/lib/cjs/components/form/Checkbox/Checkbox.js.map +1 -1
  62. package/lib/cjs/components/form/Checkbox/Checkbox.stories.js +12 -9
  63. package/lib/cjs/components/form/Checkbox/Checkbox.stories.js.map +1 -1
  64. package/lib/cjs/components/form/Checkbox/index.js +12 -9
  65. package/lib/cjs/components/form/Checkbox/index.js.map +1 -1
  66. package/lib/cjs/components/form/Dropdown/Dropdown.stories.js +31 -28
  67. package/lib/cjs/components/form/Dropdown/Dropdown.stories.js.map +1 -1
  68. package/lib/cjs/components/form/Dropdown/index.js +31 -28
  69. package/lib/cjs/components/form/Dropdown/index.js.map +1 -1
  70. package/lib/cjs/components/form/LegendInput/Input.stories.js +31 -28
  71. package/lib/cjs/components/form/LegendInput/Input.stories.js.map +1 -1
  72. package/lib/cjs/components/form/LegendInput/index.js +31 -28
  73. package/lib/cjs/components/form/LegendInput/index.js.map +1 -1
  74. package/lib/cjs/components/form/NumberInput/Input.stories.js +31 -28
  75. package/lib/cjs/components/form/NumberInput/Input.stories.js.map +1 -1
  76. package/lib/cjs/components/form/NumberInput/index.js +31 -28
  77. package/lib/cjs/components/form/NumberInput/index.js.map +1 -1
  78. package/lib/cjs/components/form/QrCodeInput/Input.stories.js +31 -28
  79. package/lib/cjs/components/form/QrCodeInput/Input.stories.js.map +1 -1
  80. package/lib/cjs/components/form/QrCodeInput/index.js +31 -28
  81. package/lib/cjs/components/form/QrCodeInput/index.js.map +1 -1
  82. package/lib/cjs/components/form/QuantityInput/Input.stories.js +31 -28
  83. package/lib/cjs/components/form/QuantityInput/Input.stories.js.map +1 -1
  84. package/lib/cjs/components/form/QuantityInput/index.js +31 -28
  85. package/lib/cjs/components/form/QuantityInput/index.js.map +1 -1
  86. package/lib/cjs/components/form/Radio/Radio.stories.js +12 -9
  87. package/lib/cjs/components/form/Radio/Radio.stories.js.map +1 -1
  88. package/lib/cjs/components/form/Radio/RadioElement.js +12 -9
  89. package/lib/cjs/components/form/Radio/RadioElement.js.map +1 -1
  90. package/lib/cjs/components/form/Radio/RadioElement.stories.js +12 -9
  91. package/lib/cjs/components/form/Radio/RadioElement.stories.js.map +1 -1
  92. package/lib/cjs/components/form/Radio/RadioListElement.js +12 -9
  93. package/lib/cjs/components/form/Radio/RadioListElement.js.map +1 -1
  94. package/lib/cjs/components/form/Radio/RadioListElement.stories.js +12 -9
  95. package/lib/cjs/components/form/Radio/RadioListElement.stories.js.map +1 -1
  96. package/lib/cjs/components/form/Radio/index.js +12 -9
  97. package/lib/cjs/components/form/Radio/index.js.map +1 -1
  98. package/lib/cjs/components/form/SearchInput/Input.stories.js +31 -28
  99. package/lib/cjs/components/form/SearchInput/Input.stories.js.map +1 -1
  100. package/lib/cjs/components/form/SearchInput/index.js +31 -28
  101. package/lib/cjs/components/form/SearchInput/index.js.map +1 -1
  102. package/lib/cjs/components/form/SelectInput/Control.js +31 -28
  103. package/lib/cjs/components/form/SelectInput/Control.js.map +1 -1
  104. package/lib/cjs/components/form/SelectInput/DropdownIndicator.js +12 -9
  105. package/lib/cjs/components/form/SelectInput/DropdownIndicator.js.map +1 -1
  106. package/lib/cjs/components/form/SelectInput/IndicatorsContainer.js.map +1 -1
  107. package/lib/cjs/components/form/SelectInput/MenuList.js.map +1 -1
  108. package/lib/cjs/components/form/SelectInput/Option.js +12 -9
  109. package/lib/cjs/components/form/SelectInput/Option.js.map +1 -1
  110. package/lib/cjs/components/form/SelectInput/Select.stories.js +31 -28
  111. package/lib/cjs/components/form/SelectInput/Select.stories.js.map +1 -1
  112. package/lib/cjs/components/form/SelectInput/ValueContainer.js +12 -9
  113. package/lib/cjs/components/form/SelectInput/ValueContainer.js.map +1 -1
  114. package/lib/cjs/components/form/SelectInput/index.js +31 -28
  115. package/lib/cjs/components/form/SelectInput/index.js.map +1 -1
  116. package/lib/cjs/components/form/SplitInput/SplitInput.stories.js +31 -28
  117. package/lib/cjs/components/form/SplitInput/SplitInput.stories.js.map +1 -1
  118. package/lib/cjs/components/form/SplitInput/index.js +31 -28
  119. package/lib/cjs/components/form/SplitInput/index.js.map +1 -1
  120. package/lib/cjs/components/form/Switch/Switch.js +12 -9
  121. package/lib/cjs/components/form/Switch/Switch.js.map +1 -1
  122. package/lib/cjs/components/form/Switch/Switch.stories.js +12 -9
  123. package/lib/cjs/components/form/Switch/Switch.stories.js.map +1 -1
  124. package/lib/cjs/components/form/Switch/index.js +12 -9
  125. package/lib/cjs/components/form/Switch/index.js.map +1 -1
  126. package/lib/cjs/components/form/TabSelector/TabSelector.stories.js +12 -9
  127. package/lib/cjs/components/form/TabSelector/TabSelector.stories.js.map +1 -1
  128. package/lib/cjs/components/form/TabSelector/index.js +12 -9
  129. package/lib/cjs/components/form/TabSelector/index.js.map +1 -1
  130. package/lib/cjs/components/form/index.js +31 -28
  131. package/lib/cjs/components/form/index.js.map +1 -1
  132. package/lib/cjs/components/index.js +105 -59
  133. package/lib/cjs/components/index.js.map +1 -1
  134. package/lib/cjs/components/layout/Banner/BannerCard/BannerCard.stories.js +12 -9
  135. package/lib/cjs/components/layout/Banner/BannerCard/BannerCard.stories.js.map +1 -1
  136. package/lib/cjs/components/layout/Banner/BannerCard/index.js +12 -9
  137. package/lib/cjs/components/layout/Banner/BannerCard/index.js.map +1 -1
  138. package/lib/cjs/components/layout/Banner/NotificationCard/NotificationCard.stories.js +12 -9
  139. package/lib/cjs/components/layout/Banner/NotificationCard/NotificationCard.stories.js.map +1 -1
  140. package/lib/cjs/components/layout/Banner/NotificationCard/index.js +12 -9
  141. package/lib/cjs/components/layout/Banner/NotificationCard/index.js.map +1 -1
  142. package/lib/cjs/components/layout/Box/Box.stories.js.map +1 -1
  143. package/lib/cjs/components/layout/Box/index.js.map +1 -1
  144. package/lib/cjs/components/layout/Carousel/Carousel.stories.js +15 -11
  145. package/lib/cjs/components/layout/Carousel/Carousel.stories.js.map +1 -1
  146. package/lib/cjs/components/layout/Carousel/Footer/Pagination/bullets.js +3 -2
  147. package/lib/cjs/components/layout/Carousel/Footer/Pagination/bullets.js.map +1 -1
  148. package/lib/cjs/components/layout/Carousel/Footer/Pagination/index.js +3 -2
  149. package/lib/cjs/components/layout/Carousel/Footer/Pagination/index.js.map +1 -1
  150. package/lib/cjs/components/layout/Carousel/Footer/index.js +3 -2
  151. package/lib/cjs/components/layout/Carousel/Footer/index.js.map +1 -1
  152. package/lib/cjs/components/layout/Carousel/Footer/variantContentCard.js +3 -2
  153. package/lib/cjs/components/layout/Carousel/Footer/variantContentCard.js.map +1 -1
  154. package/lib/cjs/components/layout/Carousel/Footer/variantDefault.js +3 -2
  155. package/lib/cjs/components/layout/Carousel/Footer/variantDefault.js.map +1 -1
  156. package/lib/cjs/components/layout/Carousel/index.js +3 -2
  157. package/lib/cjs/components/layout/Carousel/index.js.map +1 -1
  158. package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/PortfolioContentCard.stories.js +12 -9
  159. package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/PortfolioContentCard.stories.js.map +1 -1
  160. package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/index.js +12 -9
  161. package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/index.js.map +1 -1
  162. package/lib/cjs/components/layout/Drawer/Drawer.stories.js +24 -11
  163. package/lib/cjs/components/layout/Drawer/Drawer.stories.js.map +1 -1
  164. package/lib/cjs/components/layout/Drawer/index.js +24 -11
  165. package/lib/cjs/components/layout/Drawer/index.js.map +1 -1
  166. package/lib/cjs/components/layout/Flex/Flex.stories.js.map +1 -1
  167. package/lib/cjs/components/layout/Flex/index.js.map +1 -1
  168. package/lib/cjs/components/layout/Grid/Grid.stories.js +46 -48
  169. package/lib/cjs/components/layout/Grid/Grid.stories.js.map +1 -1
  170. package/lib/cjs/components/layout/Grid/index.js.map +1 -1
  171. package/lib/cjs/components/layout/List/NumberedList/NumberedList.stories.js +12 -9
  172. package/lib/cjs/components/layout/List/NumberedList/NumberedList.stories.js.map +1 -1
  173. package/lib/cjs/components/layout/List/NumberedList/index.js +12 -9
  174. package/lib/cjs/components/layout/List/NumberedList/index.js.map +1 -1
  175. package/lib/cjs/components/layout/List/VerticalTimeline/TimelineIndicator.js.map +1 -1
  176. package/lib/cjs/components/layout/List/VerticalTimeline/TimelineItem.js +12 -9
  177. package/lib/cjs/components/layout/List/VerticalTimeline/TimelineItem.js.map +1 -1
  178. package/lib/cjs/components/layout/List/VerticalTimeline/VerticalTimeline.stories.js +18 -15
  179. package/lib/cjs/components/layout/List/VerticalTimeline/VerticalTimeline.stories.js.map +1 -1
  180. package/lib/cjs/components/layout/List/VerticalTimeline/index.js +18 -14
  181. package/lib/cjs/components/layout/List/VerticalTimeline/index.js.map +1 -1
  182. package/lib/cjs/components/layout/Popin/Popin.stories.js +26 -12
  183. package/lib/cjs/components/layout/Popin/Popin.stories.js.map +1 -1
  184. package/lib/cjs/components/layout/Popin/index.js +14 -3
  185. package/lib/cjs/components/layout/Popin/index.js.map +1 -1
  186. package/lib/cjs/components/layout/Side/Provider.js.map +1 -1
  187. package/lib/cjs/components/layout/Side/Side.stories.js +24 -11
  188. package/lib/cjs/components/layout/Side/Side.stories.js.map +1 -1
  189. package/lib/cjs/components/layout/Side/index.js +24 -11
  190. package/lib/cjs/components/layout/Side/index.js.map +1 -1
  191. package/lib/cjs/components/layout/index.js +41 -20
  192. package/lib/cjs/components/layout/index.js.map +1 -1
  193. package/lib/cjs/components/loaders/InfiniteLoader/InfiniteLoader.stories.js.map +1 -1
  194. package/lib/cjs/components/loaders/InfiniteLoader/index.js.map +1 -1
  195. package/lib/cjs/components/loaders/ProgressLoader/ProgressLoader.stories.js +12 -9
  196. package/lib/cjs/components/loaders/ProgressLoader/ProgressLoader.stories.js.map +1 -1
  197. package/lib/cjs/components/loaders/ProgressLoader/index.js +12 -9
  198. package/lib/cjs/components/loaders/ProgressLoader/index.js.map +1 -1
  199. package/lib/cjs/components/loaders/index.js +12 -9
  200. package/lib/cjs/components/loaders/index.js.map +1 -1
  201. package/lib/cjs/components/message/Alert/Alert.stories.js +12 -9
  202. package/lib/cjs/components/message/Alert/Alert.stories.js.map +1 -1
  203. package/lib/cjs/components/message/Alert/index.js +12 -9
  204. package/lib/cjs/components/message/Alert/index.js.map +1 -1
  205. package/lib/cjs/components/message/ContinueOnDevice/ContinueOnDevice.stories.js +12 -9
  206. package/lib/cjs/components/message/ContinueOnDevice/ContinueOnDevice.stories.js.map +1 -1
  207. package/lib/cjs/components/message/ContinueOnDevice/index.js +12 -9
  208. package/lib/cjs/components/message/ContinueOnDevice/index.js.map +1 -1
  209. package/lib/cjs/components/message/Log/Brackets.js.map +1 -1
  210. package/lib/cjs/components/message/Log/Log.stories.js +12 -9
  211. package/lib/cjs/components/message/Log/Log.stories.js.map +1 -1
  212. package/lib/cjs/components/message/Log/index.js +12 -9
  213. package/lib/cjs/components/message/Log/index.js.map +1 -1
  214. package/lib/cjs/components/message/Notification/Badge.js.map +1 -1
  215. package/lib/cjs/components/message/Notification/Badge.stories.js.map +1 -1
  216. package/lib/cjs/components/message/Notification/Notification.stories.js +12 -9
  217. package/lib/cjs/components/message/Notification/Notification.stories.js.map +1 -1
  218. package/lib/cjs/components/message/Notification/index.js +12 -9
  219. package/lib/cjs/components/message/Notification/index.js.map +1 -1
  220. package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js +12 -9
  221. package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js.map +1 -1
  222. package/lib/cjs/components/message/StatusNotification/index.js +12 -9
  223. package/lib/cjs/components/message/StatusNotification/index.js.map +1 -1
  224. package/lib/cjs/components/message/Tip/Tip.stories.js +12 -9
  225. package/lib/cjs/components/message/Tip/Tip.stories.js.map +1 -1
  226. package/lib/cjs/components/message/Tip/index.js +12 -9
  227. package/lib/cjs/components/message/Tip/index.js.map +1 -1
  228. package/lib/cjs/components/message/Tooltip/Tooltip.stories.js +17 -18
  229. package/lib/cjs/components/message/Tooltip/Tooltip.stories.js.map +1 -1
  230. package/lib/cjs/components/message/Tooltip/index.js +15 -16
  231. package/lib/cjs/components/message/Tooltip/index.js.map +1 -1
  232. package/lib/cjs/components/message/index.js +17 -18
  233. package/lib/cjs/components/message/index.js.map +1 -1
  234. package/lib/cjs/components/navigation/Aside/Aside.stories.js +12 -9
  235. package/lib/cjs/components/navigation/Aside/Aside.stories.js.map +1 -1
  236. package/lib/cjs/components/navigation/Aside/index.js.map +1 -1
  237. package/lib/cjs/components/navigation/Breadcrumb/Breadcrumb.stories.js +31 -28
  238. package/lib/cjs/components/navigation/Breadcrumb/Breadcrumb.stories.js.map +1 -1
  239. package/lib/cjs/components/navigation/Breadcrumb/index.js +31 -28
  240. package/lib/cjs/components/navigation/Breadcrumb/index.js.map +1 -1
  241. package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js +47 -22
  242. package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js.map +1 -1
  243. package/lib/cjs/components/navigation/FlowStepper/index.js +47 -22
  244. package/lib/cjs/components/navigation/FlowStepper/index.js.map +1 -1
  245. package/lib/cjs/components/navigation/Header/Header.stories.js +14 -11
  246. package/lib/cjs/components/navigation/Header/Header.stories.js.map +1 -1
  247. package/lib/cjs/components/navigation/Header/index.js +2 -2
  248. package/lib/cjs/components/navigation/Header/index.js.map +1 -1
  249. package/lib/cjs/components/navigation/index.js +77 -44
  250. package/lib/cjs/components/navigation/index.js.map +1 -1
  251. package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.js +12 -9
  252. package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.js.map +1 -1
  253. package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.stories.js +12 -9
  254. package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.stories.js.map +1 -1
  255. package/lib/cjs/components/navigation/progress/ProgressBar/index.js +12 -9
  256. package/lib/cjs/components/navigation/progress/ProgressBar/index.js.map +1 -1
  257. package/lib/cjs/components/navigation/progress/Stepper/Item.stories.js +12 -9
  258. package/lib/cjs/components/navigation/progress/Stepper/Item.stories.js.map +1 -1
  259. package/lib/cjs/components/navigation/progress/Stepper/ProgressSteps.stories.js +12 -9
  260. package/lib/cjs/components/navigation/progress/Stepper/ProgressSteps.stories.js.map +1 -1
  261. package/lib/cjs/components/navigation/progress/Stepper/index.js +12 -9
  262. package/lib/cjs/components/navigation/progress/Stepper/index.js.map +1 -1
  263. package/lib/cjs/components/navigation/progress/index.js +12 -9
  264. package/lib/cjs/components/navigation/progress/index.js.map +1 -1
  265. package/lib/cjs/components/navigation/sideBar/Item/Item.js +18 -10
  266. package/lib/cjs/components/navigation/sideBar/Item/Item.js.map +1 -1
  267. package/lib/cjs/components/navigation/sideBar/Item/Item.stories.js +18 -10
  268. package/lib/cjs/components/navigation/sideBar/Item/Item.stories.js.map +1 -1
  269. package/lib/cjs/components/navigation/sideBar/Item/index.js +18 -10
  270. package/lib/cjs/components/navigation/sideBar/Item/index.js.map +1 -1
  271. package/lib/cjs/components/navigation/sideBar/Logo/Logo.js +6 -1
  272. package/lib/cjs/components/navigation/sideBar/Logo/Logo.js.map +1 -1
  273. package/lib/cjs/components/navigation/sideBar/Logo/index.js +6 -1
  274. package/lib/cjs/components/navigation/sideBar/Logo/index.js.map +1 -1
  275. package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.js +21 -10
  276. package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.js.map +1 -1
  277. package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.stories.js +21 -10
  278. package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.stories.js.map +1 -1
  279. package/lib/cjs/components/navigation/sideBar/SideBar/index.js +21 -10
  280. package/lib/cjs/components/navigation/sideBar/SideBar/index.js.map +1 -1
  281. package/lib/cjs/components/navigation/sideBar/Toggle/Toggle.js +6 -1
  282. package/lib/cjs/components/navigation/sideBar/Toggle/Toggle.js.map +1 -1
  283. package/lib/cjs/components/navigation/sideBar/Toggle/index.js +6 -1
  284. package/lib/cjs/components/navigation/sideBar/Toggle/index.js.map +1 -1
  285. package/lib/cjs/components/styled.js.map +1 -1
  286. package/lib/cjs/components/styled.stories.js.map +1 -1
  287. package/lib/cjs/components/tabs/Bar/Bar.stories.js +12 -9
  288. package/lib/cjs/components/tabs/Bar/Bar.stories.js.map +1 -1
  289. package/lib/cjs/components/tabs/Bar/index.js.map +1 -1
  290. package/lib/cjs/components/tabs/Chip/Chip.stories.js +12 -9
  291. package/lib/cjs/components/tabs/Chip/Chip.stories.js.map +1 -1
  292. package/lib/cjs/components/tabs/Chip/index.js.map +1 -1
  293. package/lib/cjs/components/tabs/Pill/Pill.stories.js +12 -9
  294. package/lib/cjs/components/tabs/Pill/Pill.stories.js.map +1 -1
  295. package/lib/cjs/components/tabs/Pill/index.js.map +1 -1
  296. package/lib/cjs/components/tabs/Tabs/Tabs.stories.js +12 -9
  297. package/lib/cjs/components/tabs/Tabs/Tabs.stories.js.map +1 -1
  298. package/lib/cjs/components/tabs/Tabs/index.js +12 -9
  299. package/lib/cjs/components/tabs/Tabs/index.js.map +1 -1
  300. package/lib/cjs/components/tabs/index.js +12 -9
  301. package/lib/cjs/components/tabs/index.js.map +1 -1
  302. package/lib/cjs/components/transitions/TransitionInOut.js +6 -1
  303. package/lib/cjs/components/transitions/TransitionInOut.js.map +1 -1
  304. package/lib/cjs/components/transitions/TransitionScale.js +8 -2
  305. package/lib/cjs/components/transitions/TransitionScale.js.map +1 -1
  306. package/lib/cjs/components/transitions/TransitionSlide.js +6 -1
  307. package/lib/cjs/components/transitions/TransitionSlide.js.map +1 -1
  308. package/lib/cjs/components/transitions/index.js +20 -4
  309. package/lib/cjs/components/transitions/index.js.map +1 -1
  310. package/lib/cjs/helpers.js +51 -0
  311. package/lib/cjs/helpers.js.map +1 -0
  312. package/lib/cjs/index.js +114 -65
  313. package/lib/cjs/index.js.map +1 -1
  314. package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.js +12 -9
  315. package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.js.map +1 -1
  316. package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.stories.js +12 -9
  317. package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.stories.js.map +1 -1
  318. package/lib/cjs/pre-ldls/components/AccountList/AccountList.js +12 -9
  319. package/lib/cjs/pre-ldls/components/AccountList/AccountList.js.map +1 -1
  320. package/lib/cjs/pre-ldls/components/AccountList/AccountList.stories.js +12 -9
  321. package/lib/cjs/pre-ldls/components/AccountList/AccountList.stories.js.map +1 -1
  322. package/lib/cjs/pre-ldls/components/Address/Address.js +12 -9
  323. package/lib/cjs/pre-ldls/components/Address/Address.js.map +1 -1
  324. package/lib/cjs/pre-ldls/components/Address/Address.stories.js +12 -9
  325. package/lib/cjs/pre-ldls/components/Address/Address.stories.js.map +1 -1
  326. package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.js +12 -9
  327. package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.js.map +1 -1
  328. package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.stories.js +12 -9
  329. package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.stories.js.map +1 -1
  330. package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.js +12 -9
  331. package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.js.map +1 -1
  332. package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.stories.js +12 -9
  333. package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.stories.js.map +1 -1
  334. package/lib/cjs/pre-ldls/components/AssetList/AssetList.js +12 -9
  335. package/lib/cjs/pre-ldls/components/AssetList/AssetList.js.map +1 -1
  336. package/lib/cjs/pre-ldls/components/AssetList/AssetList.stories.js +12 -9
  337. package/lib/cjs/pre-ldls/components/AssetList/AssetList.stories.js.map +1 -1
  338. package/lib/cjs/pre-ldls/components/CardButton/CardButton.js.map +1 -1
  339. package/lib/cjs/pre-ldls/components/CardButton/CardButton.stories.js.map +1 -1
  340. package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.js.map +1 -1
  341. package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.stories.js.map +1 -1
  342. package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.js +12 -9
  343. package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.js.map +1 -1
  344. package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.stories.js +12 -9
  345. package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.stories.js.map +1 -1
  346. package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.js +12 -9
  347. package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.js.map +1 -1
  348. package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.stories.js +12 -9
  349. package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.stories.js.map +1 -1
  350. package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.js +12 -9
  351. package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.js.map +1 -1
  352. package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.stories.js +12 -9
  353. package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.stories.js.map +1 -1
  354. package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.js +12 -9
  355. package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.js.map +1 -1
  356. package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.stories.js +12 -9
  357. package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.stories.js.map +1 -1
  358. package/lib/cjs/pre-ldls/components/Search/Search.js +1 -1
  359. package/lib/cjs/pre-ldls/components/Search/Search.js.map +1 -1
  360. package/lib/cjs/pre-ldls/components/Search/Search.stories.js +1 -1
  361. package/lib/cjs/pre-ldls/components/Search/Search.stories.js.map +1 -1
  362. package/lib/cjs/pre-ldls/components/Tag/Tag.js +12 -9
  363. package/lib/cjs/pre-ldls/components/Tag/Tag.js.map +1 -1
  364. package/lib/cjs/pre-ldls/components/Tag/Tag.stories.js +12 -9
  365. package/lib/cjs/pre-ldls/components/Tag/Tag.stories.js.map +1 -1
  366. package/lib/cjs/pre-ldls/components/TextInput/TextInput.js.map +1 -1
  367. package/lib/cjs/pre-ldls/components/TextInput/TextInput.stories.js.map +1 -1
  368. package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.js.map +1 -1
  369. package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.stories.js.map +1 -1
  370. package/lib/cjs/pre-ldls/components/index.js +13 -10
  371. package/lib/cjs/pre-ldls/components/index.js.map +1 -1
  372. package/lib/cjs/pre-ldls/components/sharedStoryBook.js +12 -9
  373. package/lib/cjs/pre-ldls/components/sharedStoryBook.js.map +1 -1
  374. package/lib/cjs/pre-ldls/hooks/index.js +1 -1
  375. package/lib/cjs/pre-ldls/hooks/index.js.map +1 -1
  376. package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.js +1 -1
  377. package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.js.map +1 -1
  378. package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.stories.js +1 -1
  379. package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.stories.js.map +1 -1
  380. package/lib/cjs/pre-ldls/index.js +13 -10
  381. package/lib/cjs/pre-ldls/index.js.map +1 -1
  382. package/lib/cjs/styles/Spacing.stories.js +32 -34
  383. package/lib/cjs/styles/Spacing.stories.js.map +1 -1
  384. package/lib/cjs/styles/breakpoints.stories.js +30 -31
  385. package/lib/cjs/styles/breakpoints.stories.js.map +1 -1
  386. package/lib/cjs/styles/palettes/colors.stories.js +40 -42
  387. package/lib/cjs/styles/palettes/colors.stories.js.map +1 -1
  388. package/lib/components/Table/index.d.ts +6 -4
  389. package/lib/components/Table/index.d.ts.map +1 -1
  390. package/lib/components/Table/index.js.map +1 -1
  391. package/lib/components/Table/stories.helper.js.map +1 -1
  392. package/lib/components/Tag/index.d.ts +1 -1
  393. package/lib/components/Tag/index.d.ts.map +1 -1
  394. package/lib/components/asorted/Icon/BoxedIcon.d.ts +3 -3
  395. package/lib/components/asorted/Icon/BoxedIcon.d.ts.map +1 -1
  396. package/lib/components/asorted/Icon/Icon.d.ts +2 -2
  397. package/lib/components/asorted/Icon/Icon.d.ts.map +1 -1
  398. package/lib/components/asorted/Icon/Icon.js.map +1 -1
  399. package/lib/components/asorted/Text/index.d.ts +2 -0
  400. package/lib/components/asorted/Text/index.d.ts.map +1 -1
  401. package/lib/components/asorted/Text/index.js.map +1 -1
  402. package/lib/components/form/BaseInput/index.d.ts +10 -7
  403. package/lib/components/form/BaseInput/index.d.ts.map +1 -1
  404. package/lib/components/form/BaseInput/index.js +29 -31
  405. package/lib/components/form/BaseInput/index.js.map +1 -1
  406. package/lib/components/form/Checkbox/Checkbox.d.ts +1 -1
  407. package/lib/components/form/Checkbox/Checkbox.d.ts.map +1 -1
  408. package/lib/components/form/Checkbox/Checkbox.js.map +1 -1
  409. package/lib/components/form/Dropdown/index.d.ts +2 -2
  410. package/lib/components/form/Dropdown/index.d.ts.map +1 -1
  411. package/lib/components/form/LegendInput/index.d.ts +1 -10
  412. package/lib/components/form/LegendInput/index.d.ts.map +1 -1
  413. package/lib/components/form/NumberInput/index.d.ts +1 -10
  414. package/lib/components/form/NumberInput/index.d.ts.map +1 -1
  415. package/lib/components/form/QrCodeInput/index.d.ts +1 -10
  416. package/lib/components/form/QrCodeInput/index.d.ts.map +1 -1
  417. package/lib/components/form/QuantityInput/index.d.ts +1 -10
  418. package/lib/components/form/QuantityInput/index.d.ts.map +1 -1
  419. package/lib/components/form/Radio/RadioElement.d.ts +2 -2
  420. package/lib/components/form/Radio/RadioElement.d.ts.map +1 -1
  421. package/lib/components/form/Radio/RadioElement.js.map +1 -1
  422. package/lib/components/form/Radio/RadioListElement.d.ts +2 -2
  423. package/lib/components/form/Radio/RadioListElement.d.ts.map +1 -1
  424. package/lib/components/form/Radio/RadioListElement.js.map +1 -1
  425. package/lib/components/form/Radio/index.d.ts +3 -3
  426. package/lib/components/form/Radio/index.d.ts.map +1 -1
  427. package/lib/components/form/Radio/index.js.map +1 -1
  428. package/lib/components/form/SearchInput/index.d.ts +1 -10
  429. package/lib/components/form/SearchInput/index.d.ts.map +1 -1
  430. package/lib/components/form/SearchInput/index.js.map +1 -1
  431. package/lib/components/form/SelectInput/Control.d.ts +2 -2
  432. package/lib/components/form/SelectInput/Control.d.ts.map +1 -1
  433. package/lib/components/form/SelectInput/DropdownIndicator.d.ts +2 -2
  434. package/lib/components/form/SelectInput/DropdownIndicator.d.ts.map +1 -1
  435. package/lib/components/form/SelectInput/IndicatorsContainer.d.ts +2 -2
  436. package/lib/components/form/SelectInput/IndicatorsContainer.d.ts.map +1 -1
  437. package/lib/components/form/SelectInput/MenuList.d.ts +2 -2
  438. package/lib/components/form/SelectInput/MenuList.d.ts.map +1 -1
  439. package/lib/components/form/SelectInput/Option.d.ts +1 -1
  440. package/lib/components/form/SelectInput/Option.d.ts.map +1 -1
  441. package/lib/components/form/SelectInput/ValueContainer.d.ts +1 -1
  442. package/lib/components/form/SelectInput/ValueContainer.d.ts.map +1 -1
  443. package/lib/components/form/SelectInput/index.d.ts +1 -1
  444. package/lib/components/form/SelectInput/index.d.ts.map +1 -1
  445. package/lib/components/form/SplitInput/index.d.ts +1 -1
  446. package/lib/components/form/SplitInput/index.d.ts.map +1 -1
  447. package/lib/components/form/Switch/Switch.d.ts +1 -1
  448. package/lib/components/form/Switch/Switch.d.ts.map +1 -1
  449. package/lib/components/form/Switch/Switch.js.map +1 -1
  450. package/lib/components/form/TabSelector/index.d.ts +2 -2
  451. package/lib/components/form/TabSelector/index.d.ts.map +1 -1
  452. package/lib/components/form/TabSelector/index.js.map +1 -1
  453. package/lib/components/layout/Carousel/Footer/Pagination/bullets.d.ts.map +1 -1
  454. package/lib/components/layout/Carousel/Footer/Pagination/bullets.js +4 -1
  455. package/lib/components/layout/Carousel/Footer/Pagination/bullets.js.map +1 -1
  456. package/lib/components/layout/Flex/index.d.ts +2 -1
  457. package/lib/components/layout/Flex/index.d.ts.map +1 -1
  458. package/lib/components/layout/List/VerticalTimeline/index.d.ts +6 -5
  459. package/lib/components/layout/List/VerticalTimeline/index.d.ts.map +1 -1
  460. package/lib/components/layout/List/VerticalTimeline/index.js +5 -4
  461. package/lib/components/layout/List/VerticalTimeline/index.js.map +1 -1
  462. package/lib/components/layout/Popin/index.d.ts +4 -2
  463. package/lib/components/layout/Popin/index.d.ts.map +1 -1
  464. package/lib/components/layout/Side/Provider.d.ts +1 -1
  465. package/lib/components/layout/Side/Provider.d.ts.map +1 -1
  466. package/lib/components/layout/Side/Provider.js.map +1 -1
  467. package/lib/components/layout/Side/index.d.ts +2 -2
  468. package/lib/components/layout/Side/index.d.ts.map +1 -1
  469. package/lib/components/layout/Side/index.js.map +1 -1
  470. package/lib/components/loaders/InfiniteLoader/index.d.ts +1 -1
  471. package/lib/components/loaders/InfiniteLoader/index.d.ts.map +1 -1
  472. package/lib/components/loaders/ProgressLoader/index.d.ts +2 -2
  473. package/lib/components/loaders/ProgressLoader/index.d.ts.map +1 -1
  474. package/lib/components/loaders/ProgressLoader/index.js.map +1 -1
  475. package/lib/components/message/Alert/index.d.ts +3 -3
  476. package/lib/components/message/Alert/index.d.ts.map +1 -1
  477. package/lib/components/message/Alert/index.js.map +1 -1
  478. package/lib/components/message/Log/index.d.ts +1 -1
  479. package/lib/components/message/Log/index.d.ts.map +1 -1
  480. package/lib/components/message/Notification/Badge.d.ts +2 -2
  481. package/lib/components/message/Notification/Badge.d.ts.map +1 -1
  482. package/lib/components/message/Notification/index.d.ts +1 -1
  483. package/lib/components/message/Notification/index.d.ts.map +1 -1
  484. package/lib/components/message/Notification/index.js.map +1 -1
  485. package/lib/components/message/StatusNotification/index.d.ts +1 -1
  486. package/lib/components/message/StatusNotification/index.d.ts.map +1 -1
  487. package/lib/components/message/StatusNotification/index.js.map +1 -1
  488. package/lib/components/message/Tip/index.d.ts +2 -2
  489. package/lib/components/message/Tip/index.d.ts.map +1 -1
  490. package/lib/components/message/Tip/index.js.map +1 -1
  491. package/lib/components/message/Tooltip/index.d.ts +2 -2
  492. package/lib/components/message/Tooltip/index.d.ts.map +1 -1
  493. package/lib/components/message/Tooltip/index.js.map +1 -1
  494. package/lib/components/navigation/Aside/index.d.ts +3 -2
  495. package/lib/components/navigation/Aside/index.d.ts.map +1 -1
  496. package/lib/components/navigation/FlowStepper/index.d.ts.map +1 -1
  497. package/lib/components/navigation/FlowStepper/index.js +10 -8
  498. package/lib/components/navigation/FlowStepper/index.js.map +1 -1
  499. package/lib/components/navigation/Header/index.d.ts +1 -1
  500. package/lib/components/navigation/Header/index.d.ts.map +1 -1
  501. package/lib/components/navigation/Header/index.js +1 -1
  502. package/lib/components/navigation/Header/index.js.map +1 -1
  503. package/lib/components/navigation/progress/ProgressBar/Onboarding.d.ts +2 -2
  504. package/lib/components/navigation/progress/ProgressBar/Onboarding.d.ts.map +1 -1
  505. package/lib/components/navigation/progress/ProgressBar/Onboarding.js.map +1 -1
  506. package/lib/components/navigation/progress/Stepper/index.d.ts +3 -3
  507. package/lib/components/navigation/progress/Stepper/index.d.ts.map +1 -1
  508. package/lib/components/navigation/progress/Stepper/index.js.map +1 -1
  509. package/lib/components/navigation/sideBar/Item/Item.d.ts +4 -4
  510. package/lib/components/navigation/sideBar/Item/Item.d.ts.map +1 -1
  511. package/lib/components/navigation/sideBar/Item/Item.js.map +1 -1
  512. package/lib/components/navigation/sideBar/Logo/Logo.d.ts +2 -2
  513. package/lib/components/navigation/sideBar/Logo/Logo.d.ts.map +1 -1
  514. package/lib/components/navigation/sideBar/Logo/Logo.js.map +1 -1
  515. package/lib/components/navigation/sideBar/SideBar/SideBar.d.ts +4 -4
  516. package/lib/components/navigation/sideBar/SideBar/SideBar.d.ts.map +1 -1
  517. package/lib/components/navigation/sideBar/SideBar/SideBar.js +4 -3
  518. package/lib/components/navigation/sideBar/SideBar/SideBar.js.map +1 -1
  519. package/lib/components/navigation/sideBar/Toggle/Toggle.d.ts +2 -2
  520. package/lib/components/navigation/sideBar/Toggle/Toggle.d.ts.map +1 -1
  521. package/lib/components/navigation/sideBar/Toggle/Toggle.js.map +1 -1
  522. package/lib/components/styled.d.ts +2 -0
  523. package/lib/components/styled.d.ts.map +1 -1
  524. package/lib/components/styled.js.map +1 -1
  525. package/lib/components/tabs/Bar/index.d.ts +1 -1
  526. package/lib/components/tabs/Bar/index.d.ts.map +1 -1
  527. package/lib/components/tabs/Bar/index.js +1 -1
  528. package/lib/components/tabs/Bar/index.js.map +1 -1
  529. package/lib/components/tabs/Chip/index.d.ts +1 -1
  530. package/lib/components/tabs/Chip/index.d.ts.map +1 -1
  531. package/lib/components/tabs/Chip/index.js +1 -1
  532. package/lib/components/tabs/Chip/index.js.map +1 -1
  533. package/lib/components/tabs/Pill/index.d.ts +1 -1
  534. package/lib/components/tabs/Pill/index.d.ts.map +1 -1
  535. package/lib/components/tabs/Tabs/index.d.ts +1 -1
  536. package/lib/components/tabs/Tabs/index.d.ts.map +1 -1
  537. package/lib/components/transitions/TransitionInOut.d.ts +2 -2
  538. package/lib/components/transitions/TransitionInOut.d.ts.map +1 -1
  539. package/lib/components/transitions/TransitionInOut.js +6 -3
  540. package/lib/components/transitions/TransitionInOut.js.map +1 -1
  541. package/lib/components/transitions/TransitionScale.d.ts +1 -1
  542. package/lib/components/transitions/TransitionScale.d.ts.map +1 -1
  543. package/lib/components/transitions/TransitionScale.js +6 -3
  544. package/lib/components/transitions/TransitionScale.js.map +1 -1
  545. package/lib/components/transitions/TransitionSlide.d.ts +1 -1
  546. package/lib/components/transitions/TransitionSlide.d.ts.map +1 -1
  547. package/lib/components/transitions/TransitionSlide.js +6 -3
  548. package/lib/components/transitions/TransitionSlide.js.map +1 -1
  549. package/lib/helpers.d.ts +10 -0
  550. package/lib/helpers.d.ts.map +1 -0
  551. package/lib/helpers.js +18 -0
  552. package/lib/helpers.js.map +1 -0
  553. package/lib/index.d.ts +1 -0
  554. package/lib/index.d.ts.map +1 -1
  555. package/lib/index.js +1 -0
  556. package/lib/index.js.map +1 -1
  557. package/lib/pre-ldls/components/CardButton/CardButton.d.ts +1 -1
  558. package/lib/pre-ldls/components/Checkbox/Checkbox.d.ts +2 -2
  559. package/lib/pre-ldls/components/Checkbox/Checkbox.d.ts.map +1 -1
  560. package/lib/pre-ldls/components/Checkbox/Checkbox.js.map +1 -1
  561. package/lib/pre-ldls/hooks/useDebouncedCallback.js +1 -1
  562. package/lib/pre-ldls/hooks/useDebouncedCallback.js.map +1 -1
  563. package/package.json +6 -6
@@ -5,29 +5,32 @@ var __webpack_modules__ = ({
5
5
  __webpack_require__.d(__webpack_exports__, {
6
6
  "default": () => (__rspack_default_export)
7
7
  });
8
- /* import */ var _styled__rspack_import_1 = __webpack_require__(7680);
9
- /* import */ var styled_system__rspack_import_0 = __webpack_require__(9351);
10
- /* import */ var styled_system__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_0);
11
- /* import */ var _styles_styled_fontFamily__rspack_import_3 = __webpack_require__(3364);
12
- /* import */ var _styles__rspack_import_2 = __webpack_require__(4368);
8
+ /* import */ var react__rspack_import_0 = __webpack_require__(2015);
9
+ /* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
10
+ /* import */ var _styled__rspack_import_2 = __webpack_require__(7680);
11
+ /* import */ var styled_system__rspack_import_1 = __webpack_require__(9351);
12
+ /* import */ var styled_system__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_1);
13
+ /* import */ var _styles_styled_fontFamily__rspack_import_4 = __webpack_require__(3364);
14
+ /* import */ var _styles__rspack_import_3 = __webpack_require__(4368);
15
+
13
16
 
14
17
 
15
18
 
16
19
 
17
- const uppercase = (0,styled_system__rspack_import_0.system)({
20
+ const uppercase = (0,styled_system__rspack_import_1.system)({
18
21
  uppercase: {
19
22
  property: "textTransform",
20
23
  transform: (value)=>value ? "uppercase" : "none"
21
24
  }
22
25
  });
23
- const Text = _styled__rspack_import_1["default"].span.attrs(({ variant = "body", fontSize, color })=>({
26
+ const Text = _styled__rspack_import_2["default"].span.attrs(({ variant = "body", fontSize, color })=>({
24
27
  fontSize: fontSize ? fontSize : variant,
25
28
  color: color || "neutral.c100"
26
29
  }))`
27
30
  font-weight: 500;
28
31
  white-space: ${(props)=>props.whiteSpace ?? "normal"};
29
- ${(p)=>_styles__rspack_import_2.textVariantStyle[p.variant || "body"]}
30
- ${(0,styled_system__rspack_import_0.compose)(uppercase, styled_system__rspack_import_0.lineHeight, _styles_styled_fontFamily__rspack_import_3["default"], styled_system__rspack_import_0.fontSize, styled_system__rspack_import_0.textAlign, styled_system__rspack_import_0.fontWeight, styled_system__rspack_import_0.letterSpacing, (0,styled_system__rspack_import_0.system)({
32
+ ${(p)=>_styles__rspack_import_3.textVariantStyle[p.variant || "body"]}
33
+ ${(0,styled_system__rspack_import_1.compose)(uppercase, styled_system__rspack_import_1.lineHeight, _styles_styled_fontFamily__rspack_import_4["default"], styled_system__rspack_import_1.fontSize, styled_system__rspack_import_1.textAlign, styled_system__rspack_import_1.fontWeight, styled_system__rspack_import_1.letterSpacing, (0,styled_system__rspack_import_1.system)({
31
34
  textOverflow: true
32
35
  }))}
33
36
  ${(p)=>p.textTransform ? `text-transform: ${p.textTransform};` : ""}
@@ -409,6 +412,25 @@ const proxyStyled = new Proxy((styled_components__rspack_import_0_default()), {
409
412
  /* export default */ const __rspack_default_export = (proxyStyled);
410
413
 
411
414
 
415
+ },
416
+ 2563(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
417
+ __webpack_require__.d(__webpack_exports__, {
418
+ isValidReactElement: () => (isValidReactElement)
419
+ });
420
+ const REACT_ELEMENT_TYPE = Symbol.for("react.element");
421
+ const REACT_TRANSITIONAL_ELEMENT_TYPE = Symbol.for("react.transitional.element");
422
+ /**
423
+ * Checks whether a value is a React element.
424
+ *
425
+ * Handles the React 19 `react.transitional.element` symbol (and the classic
426
+ * `react.element` symbol for compatibility), making it safe to use without
427
+ * relying on the legacy `React.isValidElement` API.
428
+ */ const isValidReactElement = (value)=>!!value && typeof value === "object" && // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
429
+ "$$typeof" in value && // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
430
+ (value.$$typeof === REACT_ELEMENT_TYPE || // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
431
+ value.$$typeof === REACT_TRANSITIONAL_ELEMENT_TYPE);
432
+
433
+
412
434
  },
413
435
  4336(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
414
436
 
@@ -776,10 +798,6 @@ module.exports = require("@ledgerhq/ui-shared");
776
798
  2015(module) {
777
799
  module.exports = require("react");
778
800
 
779
- },
780
- 4562(module) {
781
- module.exports = require("react-is");
782
-
783
801
  },
784
802
  2770(module) {
785
803
  module.exports = require("styled-components");
@@ -859,21 +877,21 @@ __webpack_require__.d(__webpack_exports__, {
859
877
  });
860
878
  /* import */ var react__rspack_import_0 = __webpack_require__(2015);
861
879
  /* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
862
- /* import */ var react_is__rspack_import_1 = __webpack_require__(4562);
863
- /* import */ var react_is__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(react_is__rspack_import_1);
864
880
  /* import */ var _layout_Flex__rspack_import_2 = __webpack_require__(3696);
865
881
  /* import */ var ___rspack_import_3 = __webpack_require__(1982);
882
+ /* import */ var _helpers__rspack_import_1 = __webpack_require__(2563);
866
883
 
867
884
 
868
885
 
869
886
 
870
887
  function FlowStepper({ activeIndex, header, renderStepHeader, footer, renderStepFooter, extraProps, extraContainerProps, extraStepperProps, extraStepperContainerProps, extraChildrenContainerProps, renderChildren, children }) {
871
888
  const { steps, innerContents, stepFooter, stepHeader } = react__rspack_import_0_default().Children.toArray(children).reduce((acc, child, idx)=>{
872
- const index = ((0,react_is__rspack_import_1.isElement)(child) && child.props.index) ?? idx;
873
- const label = (0,react_is__rspack_import_1.isElement)(child) && child.props.label;
874
- const hidden = (0,react_is__rspack_import_1.isElement)(child) && child.props.hidden;
875
- const stepHeader = (0,react_is__rspack_import_1.isElement)(child) && child.props.header;
876
- const stepFooter = (0,react_is__rspack_import_1.isElement)(child) && child.props.footer;
889
+ const stepChild = (0,_helpers__rspack_import_1.isValidReactElement)(child) ? child : null;
890
+ const index = stepChild?.props.index ?? idx;
891
+ const label = stepChild?.props.label;
892
+ const hidden = stepChild?.props.hidden;
893
+ const stepHeader = stepChild?.props.header;
894
+ const stepFooter = stepChild?.props.footer;
877
895
  if (label && !hidden) {
878
896
  acc.steps[index] = label;
879
897
  }
@@ -900,6 +918,13 @@ function FlowStepper({ activeIndex, header, renderStepHeader, footer, renderStep
900
918
  children: stepSection
901
919
  }) : stepSection : renderFunc && renderFunc(renderArgs);
902
920
  }
921
+ console.log("FlowStepper", {
922
+ activeIndex,
923
+ steps,
924
+ innerContents,
925
+ stepHeader,
926
+ stepFooter
927
+ });
903
928
  return /*#__PURE__*/ react__rspack_import_0_default().createElement(_layout_Flex__rspack_import_2["default"], {
904
929
  flex: 1,
905
930
  flexDirection: "column",
@@ -941,8 +966,8 @@ FlowStepper.Step = Step;
941
966
  */ function FlowStepperIndexed(props) {
942
967
  const { activeKey, children, ...otherProps } = props;
943
968
  const activeIndex = react__rspack_import_0_default().Children.toArray(children).findIndex((child)=>{
944
- const res = (0,react_is__rspack_import_1.isElement)(child) && child.props.itemKey === activeKey;
945
- return res;
969
+ const stepChild = (0,_helpers__rspack_import_1.isValidReactElement)(child) ? child : null;
970
+ return stepChild?.props.itemKey === activeKey;
946
971
  });
947
972
  return /*#__PURE__*/ react__rspack_import_0_default().createElement(FlowStepper, {
948
973
  ...otherProps,
@@ -1 +1 @@
1
- {"version":3,"file":"components/navigation/FlowStepper/index.js","sources":["webpack://@ledgerhq/react-ui/./src/components/asorted/Text/index.tsx","webpack://@ledgerhq/react-ui/./src/components/asorted/Text/styles.ts","webpack://@ledgerhq/react-ui/./src/components/layout/Flex/index.ts","webpack://@ledgerhq/react-ui/./src/components/navigation/progress/Stepper/index.tsx","webpack://@ledgerhq/react-ui/./src/components/styled.ts","webpack://@ledgerhq/react-ui/./src/styles/helpers.ts","webpack://@ledgerhq/react-ui/./src/styles/styled/fontFamily.ts","webpack://@ledgerhq/react-ui/./src/styles/system/gaps.ts","webpack://@ledgerhq/react-ui/./src/styles/theme.ts","webpack://@ledgerhq/react-ui/webpack/runtime/compat_get_default_export","webpack://@ledgerhq/react-ui/webpack/runtime/define_property_getters","webpack://@ledgerhq/react-ui/webpack/runtime/has_own_property","webpack://@ledgerhq/react-ui/webpack/runtime/make_namespace_object","webpack://@ledgerhq/react-ui/./src/components/navigation/FlowStepper/index.tsx"],"sourcesContent":["import baseStyled, { BaseStyledProps } from \"../../styled\";\nimport {\n compose,\n fontSize,\n fontWeight,\n textAlign,\n lineHeight,\n letterSpacing,\n system,\n} from \"styled-system\";\nimport fontFamily from \"../../../styles/styled/fontFamily\";\nimport { TextVariants } from \"../../../styles/theme\";\nimport { textVariantStyle } from \"./styles\";\n\nconst uppercase = system({\n uppercase: {\n property: \"textTransform\",\n transform: value => (value ? \"uppercase\" : \"none\"),\n },\n});\n\ntype FontFamilies =\n | \"Inter|ExtraLight\"\n | \"Inter|Light\"\n | \"Inter|Regular\"\n | \"Inter|Medium\"\n | \"Inter|SemiBold\"\n | \"Inter|Bold\"\n | \"Inter|ExtraBold\"\n | \"Alpha|Medium\";\n\ntype WhiteSpace = \"normal\" | \"nowrap\" | \"pre\" | \"pre-line\" | \"pre-wrap\";\n\nexport interface TextProps extends BaseStyledProps {\n fontFamily?: string;\n ff?: FontFamilies;\n fontSize?: number | string | TextVariants;\n variant?: TextVariants;\n textAlign?: string;\n fontWeight?: string;\n lineHeight?: string;\n textTransform?: string;\n textOverflow?: string;\n uppercase?: boolean;\n whiteSpace?: WhiteSpace;\n}\n\nconst Text = baseStyled.span.attrs<TextProps, TextProps>(\n ({ variant = \"body\", fontSize, color }) => ({\n fontSize: fontSize ? fontSize : variant,\n color: color || \"neutral.c100\",\n }),\n)`\n font-weight: 500;\n white-space: ${props => props.whiteSpace ?? \"normal\"};\n ${(p: TextProps) => textVariantStyle[p.variant || \"body\"]}\n ${compose(\n uppercase,\n lineHeight,\n fontFamily,\n fontSize,\n textAlign,\n fontWeight,\n letterSpacing,\n system({\n textOverflow: true,\n }),\n )}\n ${p => (p.textTransform ? `text-transform: ${p.textTransform};` : \"\")}\n`;\n\nexport default Text;\n","import { GlobalStyleProps } from \"../../../styles/global\";\nimport { css } from \"styled-components\";\nimport { TextVariants } from \"../../../styles/theme\";\n\nconst getFontSource = (name: string) => (props: GlobalStyleProps) => {\n const fontsPath = props.fontsPath ?? \"assets/fonts\";\n const fontName = (props.fontMappings && props.fontMappings(name)) || `${name}.woff2`;\n return `url(\"${fontsPath}/${fontName}\") format(\"woff2\")`;\n};\n\nexport const fontStyles = css`\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-ExtraLight-BETA\")};\n font-weight: 100;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Light-BETA\")};\n font-weight: 300;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Regular\")};\n font-weight: 400;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Medium\")};\n font-weight: 500;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-SemiBold\")};\n font-weight: 600;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-ExtraBold\")};\n font-weight: 900;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Alpha\";\n src: ${getFontSource(\"HMAlphaMono-Medium\")};\n font-weight: 500;\n font-style: normal;\n }\n`;\n\nexport const textVariantStyle: Record<\n TextVariants,\n {\n fontFamily: string;\n lineHeight?: string | number;\n fontWeight?: number;\n \"text-transform\"?: string;\n }\n> = {\n h1: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h1Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h2: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h2Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h3: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h3Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n },\n h4: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h4Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 600,\n },\n h5: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h5Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n },\n large: {\n fontFamily: \"Inter, Sans\",\n },\n largeLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n body: {\n fontFamily: \"Inter, Sans\",\n },\n bodyLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n paragraph: {\n fontFamily: \"Inter, Sans\",\n },\n paragraphLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n small: {\n fontFamily: \"Inter, Sans\",\n },\n extraSmall: {\n fontFamily: \"Inter, Sans\",\n },\n tiny: {\n fontFamily: \"Inter, Sans\",\n },\n micro: {\n fontFamily: \"Inter, Sans\",\n },\n subtitle: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 600,\n \"text-transform\": \"uppercase\",\n },\n};\n","import baseStyled, { BaseStyledProps } from \"../../styled\";\n\nconst FlexBox = baseStyled.div.attrs<BaseStyledProps, BaseStyledProps>({ display: \"flex\" })``;\nexport type FlexBoxProps = BaseStyledProps & React.HTMLAttributes<HTMLDivElement>;\n\nexport default FlexBox;\n","import React, { memo, Fragment } from \"react\";\nimport styled from \"styled-components\";\nimport { border, BorderProps, color, ColorProps, space, SpaceProps } from \"styled-system\";\nimport { IconsLegacy } from \"../../../../index\";\nimport Text from \"../../../asorted/Text\";\nimport Flex, { FlexBoxProps } from \"../../../layout/Flex\";\n\n/**\n * The state of a progress bar step.\n */\nexport type StepState = \"pending\" | \"current\" | \"completed\" | \"errored\" | \"disabled\";\n\ntype LabelType = string | React.ComponentType<{ state: StepState }>;\nexport interface Props extends FlexBoxProps {\n /**\n * An array of labels that will determine the progress bar steps.\n * A label is either a string or a component that will be rendered with the\n * prop `state: \"pending\" | \"current\" | \"completed\" | \"errored\"`.\n * A styled StepText component is exported to allow easy styling of such a custom label.\n */\n steps: LabelType[];\n /**\n * Index of the active step, starting at zero and defaulting to 0 if omitted.\n */\n activeIndex?: number;\n /**\n * If true the current step is considered as a failure.\n */\n errored?: boolean;\n /**\n * Steps with indexes contained inside the array will be shown as disabled.\n */\n disabledIndexes?: number[];\n /**\n * Delete steps with same following labels\n */\n filterDuplicate?: boolean;\n /**\n * Complete all the steps\n */\n isOver?: boolean;\n}\n\nexport type StepProps = {\n /**\n * State of the step.\n */\n state: StepState;\n /**\n * The label to display. To display more than text, this can be a component that will be rendered with the\n * prop `state: \"pending\" | \"current\" | \"completed\" | \"errored\" | \"disabled\"`.\n * A styled StepText component is exported to allow easy styling of such a custom Label\n */\n label: LabelType;\n /**\n * If true, hides the left \"separator\" bar that bridges the gap between the wider separator and the item.\n */\n hideLeftSeparator: boolean;\n /**\n * The next step state, or undefined if the current step is the last one.\n */\n nextState?: StepState;\n};\n\nexport const Item = {\n Container: styled.div.attrs({\n mx: \"8px\",\n })<ColorProps & BorderProps & SpaceProps>`\n display: flex;\n justify-content: center;\n align-items: center;\n width: ${p => p.theme.space[8]}px;\n height: ${p => p.theme.space[8]}px;\n ${color}\n ${border}\n ${space}\n `,\n Spacer: styled.div<SpaceProps>`\n display: flex;\n align-self: stretch;\n ${space}\n `,\n Current: styled.div.attrs({\n backgroundColor: \"primary.c90\",\n })<ColorProps>`\n width: 6px;\n height: 6px;\n border-radius: 6px;\n ${color}\n `,\n Pending: styled.div.attrs({\n backgroundColor: \"neutral.c70\",\n })<ColorProps>`\n width: ${p => p.theme.space[2]}px;\n height: ${p => p.theme.space[2]}px;\n border-radius: ${p => p.theme.space[2]}px;\n ${color}\n `,\n Completed: (): JSX.Element => <IconsLegacy.CheckAloneMedium size={16} />,\n Disabled: (): JSX.Element => <IconsLegacy.CloseMedium size={16} />,\n Errored: (): JSX.Element => <IconsLegacy.CloseMedium size={16} />,\n};\n\nexport const StepText = styled(Text)<{ state: StepState }>`\n text-align: center;\n white-space: pre-wrap;\n color: ${p => {\n if (p.state === \"errored\") {\n return p.theme.colors.error.c50;\n }\n if (p.state === \"disabled\") {\n return p.theme.colors.neutral.c50;\n }\n if (p.state === \"pending\") {\n return p.theme.colors.neutral.c70;\n }\n return p.theme.colors.neutral.c100;\n }};\n`;\n\nconst BaseSeparator = styled.div<{ inactive?: boolean }>`\n flex: 1;\n position: relative;\n overflow-x: hidden;\n background-color: ${p => p.theme.colors.neutral.c40};\n height: 1px;\n top: ${p => p.theme.space[5]}px;\n`;\n\nconst Separator = {\n Step: styled(BaseSeparator)``,\n Item: styled(BaseSeparator)<{ position: string }>``,\n};\n\nconst stepContentsByState = {\n pending: (\n <Item.Container>\n <Item.Pending />\n </Item.Container>\n ),\n current: (\n <Item.Container backgroundColor=\"primary.c20\" borderRadius=\"8px\">\n <Item.Current />\n </Item.Container>\n ),\n completed: (\n <Item.Container color=\"primary.c90\" backgroundColor=\"primary.c20\" borderRadius=\"8px\">\n <Item.Completed />\n </Item.Container>\n ),\n errored: (\n <Item.Container color=\"error.c50\" backgroundColor=\"warning.c30\" borderRadius=\"8px\">\n <Item.Errored />\n </Item.Container>\n ),\n disabled: (\n <Item.Container color=\"neutral.c50\">\n <Item.Disabled />\n </Item.Container>\n ),\n};\n\nexport const Step = memo(function Step({\n state,\n label: Label,\n hideLeftSeparator,\n nextState,\n}: StepProps): JSX.Element {\n const inactive = state === \"pending\";\n const nextInactive = state === \"pending\";\n\n return (\n <Flex flexDirection=\"column\" alignItems=\"center\" flex={20}>\n <Item.Spacer mb={5}>\n {(!hideLeftSeparator && <Separator.Item inactive={inactive} position=\"left\" />) || (\n <Flex flex=\"1\" />\n )}\n {stepContentsByState[state]}\n {(nextState && <Separator.Item inactive={nextInactive} position=\"right\" />) || (\n <Flex flex=\"1\" />\n )}\n </Item.Spacer>\n {typeof Label === \"string\" ? (\n <StepText state={state} variant=\"small\">\n {Label}\n </StepText>\n ) : (\n <Label state={state} />\n )}\n </Flex>\n );\n});\n\nfunction getState(\n activeIndex: number,\n index: number,\n errored?: boolean,\n disabled?: boolean,\n completed?: boolean,\n) {\n if (completed) {\n return \"completed\";\n }\n if (disabled) {\n return \"disabled\";\n }\n if (activeIndex < index) {\n return \"pending\";\n }\n if (activeIndex === index) {\n return errored ? \"errored\" : \"current\";\n }\n return \"completed\";\n}\n\nfunction Stepper({\n steps,\n activeIndex = 0,\n errored,\n disabledIndexes,\n filterDuplicate,\n isOver,\n ...extraProps\n}: Props) {\n const displayedSteps = filterDuplicate\n ? steps.filter((step, index) => index === 0 || step !== steps[index - 1])\n : steps;\n const dislayedActiveIndex = filterDuplicate\n ? displayedSteps.findIndex(step => step === steps[activeIndex])\n : activeIndex;\n\n return (\n <Flex flexWrap=\"nowrap\" justifyContent=\"space-between\" {...extraProps}>\n {displayedSteps.map((step, idx) => {\n const state = getState(\n dislayedActiveIndex,\n idx,\n errored,\n disabledIndexes?.includes(idx),\n isOver,\n );\n const nextState =\n idx < displayedSteps.length - 1 ? getState(dislayedActiveIndex, idx + 1) : undefined;\n return (\n <Fragment key={idx}>\n {idx > 0 && <Separator.Step inactive={state === \"pending\"} />}\n <Step label={step} state={state} nextState={nextState} hideLeftSeparator={idx === 0} />\n </Fragment>\n );\n })}\n </Flex>\n );\n}\n\nexport default memo(Stepper);\n","import gaps from \"../styles/system/gaps\";\nimport styled, { StyledInterface, InterpolationFunction } from \"styled-components\";\nimport {\n compose,\n flexbox,\n FlexboxProps,\n space,\n SpaceProps,\n position,\n PositionProps,\n color,\n ColorProps,\n layout,\n LayoutProps,\n overflow,\n OverflowProps,\n border,\n BorderProps,\n} from \"styled-system\";\n\nexport type BaseStyledProps = SpaceProps &\n FlexboxProps &\n PositionProps &\n ColorProps &\n LayoutProps &\n BorderProps &\n OverflowProps & {\n /**\n * The columnGap CSS property sets the size of the gap (gutter) between an element's grid columns.\n */\n columnGap?: string | number;\n /**\n * The rowGap CSS property sets the size of the gap (gutter) between an element's grid rows.\n */\n rowGap?: string | number;\n color?: string;\n };\n\nexport const baseStyles: InterpolationFunction<unknown> = compose(\n flexbox,\n space,\n position,\n color,\n layout,\n overflow,\n gaps,\n border,\n);\n\nconst proxyStyled = new Proxy(styled, {\n apply(target: typeof styled, thisArg, argumentsList: Parameters<typeof styled>) {\n return styled(target.apply(thisArg, argumentsList)(baseStyles));\n },\n get(target, property: keyof typeof styled) {\n if (typeof target[property] === \"function\") {\n return styled(target[property].apply(styled, [baseStyles]));\n }\n return target[property];\n },\n});\n\nexport default <StyledInterface>proxyStyled;\n","import Color from \"color\";\n\nimport { fontFamilies } from \"./theme\";\n\nexport const rgba = (c: string, a: number): string => Color(c).alpha(a).rgb().toString();\n\nexport const darken = (c: string, a: number): string => Color(c).darken(a).toString();\n\nexport const lighten = (c: string, a: number): string => Color(c).lighten(a).toString();\n\nexport const mix = (c: string, b: string, a: number): string =>\n Color(c).mix(Color(b), a).toString();\n\nexport const ff = (v: string) => {\n const [font, type = \"Regular\"] = v.split(\"|\");\n // @ts-expect-error FIXME\n const { style, weight } = fontFamilies[font][type];\n // @ts-expect-error FIXME\n const fallback: string = fontFamilies[font].fallback ?? \"Arial\";\n\n return {\n fontFamily: `${font}, ${fallback}`,\n fontWeight: weight,\n fontStyle: style,\n };\n};\n\nexport const ensureContrast = (color1: string, color2: string) => {\n const colorL1 = Color(color1).luminosity() + 0.05;\n const colorL2 = Color(color2).luminosity() + 0.05;\n\n const lRatio = colorL1 > colorL2 ? colorL1 / colorL2 : colorL2 / colorL1;\n\n if (lRatio < 1.5) {\n return Color(color1).rotate(180).negate().string();\n }\n return color1;\n};\n","import { ff } from \"../helpers\";\n\nexport default (props: { ff?: string }) => {\n const prop = props.ff;\n\n if (prop == null) {\n return null;\n }\n\n return ff(prop);\n};\n","import { system } from \"styled-system\";\n\nconst gaps = system({\n rowGap: { property: \"rowGap\", scale: \"space\" },\n columnGap: { property: \"columnGap\", scale: \"space\" },\n});\n\nexport default gaps;\n","import { keyframes, css, Font } from \"styled-components\";\nimport { palettes, ColorPalette } from \"@ledgerhq/ui-shared\";\n\nexport type screensBreakpoints = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\";\n\nexport const breakpoints = {\n sm: \"640px\",\n md: \"768px\",\n lg: \"1024px\",\n xl: \"1280px\",\n xxl: \"1536px\",\n} as Record<screensBreakpoints, string>;\n\nexport const space = [\n /* space indexes:\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 */\n 0, 2, 4, 8, 10, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76,\n];\n\nexport type TextVariants =\n | \"h1\"\n | \"h1Inter\"\n | \"h2\"\n | \"h2Inter\"\n | \"h3\"\n | \"h3Inter\"\n | \"h4\"\n | \"h4Inter\"\n | \"h5\"\n | \"h5Inter\"\n | \"large\"\n | \"largeLineHeight\"\n | \"body\"\n | \"bodyLineHeight\"\n | \"paragraph\"\n | \"paragraphLineHeight\"\n | \"small\"\n | \"extraSmall\"\n | \"tiny\"\n | \"micro\"\n | \"subtitle\";\n\nexport type ThemeScale<Type, Aliases extends string> = Array<Type> & Record<Aliases, Type>;\n\nexport const fontSizes = [8, 10, 11, 12, 13, 14, 16, 20, 24, 28, 32, 36] as ThemeScale<\n number,\n TextVariants\n>;\n\n[\n fontSizes.micro,\n fontSizes.tiny,\n fontSizes.extraSmall,\n fontSizes.small,\n fontSizes.paragraph,\n fontSizes.body,\n fontSizes.large,\n fontSizes.h5,\n fontSizes.h4,\n fontSizes.h3,\n fontSizes.h2,\n fontSizes.h1,\n] = fontSizes;\nfontSizes.largeLineHeight = fontSizes.large;\nfontSizes.bodyLineHeight = fontSizes.body;\nfontSizes.paragraphLineHeight = fontSizes.paragraph;\nfontSizes.subtitle = fontSizes.extraSmall;\nfontSizes.h1Inter = fontSizes.h1;\nfontSizes.h2Inter = fontSizes.h2;\nfontSizes.h3Inter = fontSizes.h3;\nfontSizes.h4Inter = fontSizes.h4;\nfontSizes.h5Inter = fontSizes.h5;\n\nconst fontWeights = {\n extraLight: \"100\",\n light: \"300\",\n regular: \"400\",\n medium: \"500\",\n semiBold: \"600\",\n bold: \"700\",\n extraBold: \"800\",\n};\n\nexport const radii = [0, 4, 8, 12, 16, 20];\nexport const shadows = [\"0 4px 8px 0 rgba(0, 0, 0, 0.03)\"];\nexport const zIndexes = [-1, 0, 1, 9, 10, 90, 100, 900, 1000];\n\n// Those fonts are now defined in global.css, this is just a mapping for styled-system\nexport const fontFamilies = {\n Inter: {\n ExtraLight: {\n weight: 100,\n style: \"normal\",\n },\n Light: {\n weight: 300,\n style: \"normal\",\n },\n Regular: {\n weight: 400,\n style: \"normal\",\n },\n Medium: {\n weight: 500,\n style: \"normal\",\n },\n SemiBold: {\n weight: 600,\n style: \"normal\",\n },\n Bold: {\n weight: 700,\n style: \"normal\",\n },\n ExtraBold: {\n weight: 800,\n style: \"normal\",\n },\n },\n Alpha: {\n Medium: {\n weight: 500,\n style: \"normal\",\n },\n },\n};\n\nconst animationDuration = \"0.33s\";\nconst easings = {\n outQuadratic: \"cubic-bezier(0.25, 0.46, 0.45, 0.94)\",\n};\n\nconst transition = (\n properties = [\"all\"],\n duration = animationDuration,\n easing = easings.outQuadratic,\n) => css`\n transition-property: ${properties.join(\",\")};\n transition-duration: ${duration};\n transition-timing-function: ${easing};\n`;\n\nconst fadeIn = keyframes`\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n `;\nconst fadeOut = keyframes`\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n `;\nconst fadeInGrowX = keyframes`\n 0% {\n opacity: 0;\n transform: scaleX(0);\n }\n 100% {\n opacity: 1;\n transform: scaleX(1);\n }\n`;\nconst fadeInUp = keyframes`\n 0% {\n opacity: 0;\n transform: translateY(66%);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n `;\nconst animations = {\n fadeIn: () => css`\n ${fadeIn} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n fadeOut: () => css`\n ${fadeOut} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n fadeInGrowX: () => css`\n ${fadeInGrowX} 0.6s ${easings.outQuadratic} forwards\n `,\n fadeInUp: () => css`\n ${fadeInUp} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n};\nconst overflow = {\n x: css`\n overflow-y: hidden;\n overflow-x: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n y: css`\n overflow-x: hidden;\n overflow-y: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n yAuto: css`\n overflow-x: hidden;\n overflow-y: auto;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n xy: css`\n overflow: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n trackSize: 12,\n};\n\ninterface DefaultTheme {\n theme: \"dark\" | \"light\";\n animations: typeof animations;\n transition: typeof transition;\n overflow: typeof overflow;\n sizes: {\n topBarHeight: number;\n sideBarWidth: number;\n drawer: {\n side: {\n big: {\n width: number;\n };\n small: {\n width: number;\n };\n };\n popin: {\n min: {\n height: number;\n width: number;\n };\n max: {\n height: number;\n width: number;\n };\n };\n };\n };\n radii: number[];\n fontFamilies: Record<string, Record<string, Font>>;\n fontSizes: number[];\n space: number[];\n shadows: string[];\n colors: ColorPalette;\n fontWeights: Record<string, string>;\n breakpoints: Record<screensBreakpoints, string>;\n zIndexes: number[];\n}\n\nconst theme: DefaultTheme = {\n theme: \"light\",\n sizes: {\n drawer: {\n side: {\n big: {\n width: 580,\n },\n small: {\n width: 420,\n },\n },\n popin: {\n min: {\n height: 158,\n width: 462,\n },\n max: {\n height: 522,\n width: 622,\n },\n },\n },\n topBarHeight: 58,\n sideBarWidth: 230,\n },\n radii,\n fontFamilies,\n fontSizes,\n fontWeights,\n space,\n shadows,\n colors: palettes.light,\n animations,\n overflow,\n transition,\n zIndexes,\n breakpoints,\n};\n\nexport default theme;\nexport type Theme = DefaultTheme;\n","// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import React from \"react\";\nimport { isElement } from \"react-is\";\nimport { Props as StepperProps } from \"../progress/Stepper\";\nimport Flex, { FlexBoxProps as FlexProps } from \"../../layout/Flex\";\nimport { Stepper } from \"..\";\n\nexport type StepProps = {\n /**\n * A specific index, can be used to explicitely order steps.\n */\n index?: number;\n /**\n * Custom header for this step.\n */\n header?: React.ReactNode;\n /**\n * Custom footer for this step.\n */\n footer?: React.ReactNode;\n /**\n * The label of the step.\n */\n label: string;\n /**\n * Hides the step from the progress stepper.\n */\n hidden?: boolean;\n /**\n * The step contents.\n */\n children: React.ReactNode;\n};\n\ninterface InnerProps {\n /**\n * The active index.\n */\n activeIndex: number;\n /**\n * The total number of steps.\n */\n stepsLength: number;\n}\n\ntype StepChild = React.ReactElement<StepProps>;\ntype SectionRenderFunc<ExtraProps> = (props: InnerProps & ExtraProps) => React.ReactNode;\ntype SectionStepRenderFunc<ExtraProps> = (\n args: InnerProps & ExtraProps & { children: React.ReactNode },\n) => React.ReactNode;\n\nexport interface Props<ExtraProps> {\n /**\n * The index of the active step.\n */\n activeIndex: number;\n /**\n * An optional generic header displayed above the stepper.\n */\n header?: SectionRenderFunc<ExtraProps>;\n /**\n * Custom rendering function to wrap the header (only used if the `header` is defined\n * on the child for the current step.)\n */\n renderStepHeader?: SectionStepRenderFunc<ExtraProps>;\n /**\n * An optional generic footer displayed below the body.\n */\n footer?: SectionRenderFunc<ExtraProps>;\n /**\n * Custom rendering function to wrap the footer (only used if the `footer` is defined\n * on the child for the current step.)\n */\n renderStepFooter?: SectionStepRenderFunc<ExtraProps>;\n /**\n * Extra props that are passed to the header and footer render functions.\n */\n extraProps?: ExtraProps;\n /**\n * Extra props that are passed to the container `Flex` element.\n */\n extraContainerProps?: FlexProps;\n /**\n * Extra props that are passed to the stepper component.\n */\n extraStepperProps?: Partial<StepperProps>;\n /**\n * Extra props that are passed to the stepper `Flex` wrapper.\n */\n extraStepperContainerProps?: FlexProps;\n /**\n * Extra props that are passed to the children `Flex` wrapper.\n */\n extraChildrenContainerProps?: FlexProps;\n /**\n * Custom rendering function to wrap children.\n */\n renderChildren?: (\n args: InnerProps & ExtraProps & { children: React.ReactNode },\n ) => React.ReactNode;\n /**\n * A list of children representing each step of the flow.\n * Each child can have a prop `stepHeader` and/or `stepFooter` that will\n * associate a custom header/footer to this particular step.\n * The custom header/footer can be wrapped using the prop renderStepHeader/renderStepFooter.\n */\n children: StepChild | StepChild[];\n}\n\nfunction FlowStepper<ExtraProps>({\n activeIndex,\n header,\n renderStepHeader,\n footer,\n renderStepFooter,\n extraProps,\n extraContainerProps,\n extraStepperProps,\n extraStepperContainerProps,\n extraChildrenContainerProps,\n renderChildren,\n children,\n}: Props<ExtraProps>) {\n const { steps, innerContents, stepFooter, stepHeader } = React.Children.toArray(children).reduce<{\n steps: string[];\n innerContents: React.ReactNode | null;\n stepHeader: React.ReactNode | null;\n stepFooter: React.ReactNode | null;\n }>(\n (acc, child, idx) => {\n const index = (isElement(child) && child.props.index) ?? idx;\n const label = isElement(child) && child.props.label;\n const hidden = isElement(child) && child.props.hidden;\n const stepHeader = isElement(child) && child.props.header;\n const stepFooter = isElement(child) && child.props.footer;\n\n if (label && !hidden) {\n acc.steps[index] = label;\n }\n if (index === activeIndex) {\n acc.innerContents = child;\n acc.stepFooter = stepFooter;\n acc.stepHeader = stepHeader;\n }\n return acc;\n },\n {\n steps: [],\n innerContents: null,\n stepHeader: null,\n stepFooter: null,\n },\n );\n\n const renderArgs = { ...extraProps, activeIndex, stepsLength: steps.length } as InnerProps &\n ExtraProps;\n\n function getSectionContents(\n renderFunc?: SectionRenderFunc<ExtraProps>,\n stepSection?: React.ReactNode,\n renderStepFunc?: SectionStepRenderFunc<ExtraProps>,\n ) {\n return stepSection\n ? renderStepFunc\n ? renderStepFunc({ ...renderArgs, children: stepSection })\n : stepSection\n : renderFunc && renderFunc(renderArgs);\n }\n\n return (\n <Flex flex={1} flexDirection=\"column\" {...extraContainerProps}>\n {getSectionContents(header, stepHeader, renderStepHeader)}\n <Flex my={8} justifyContent=\"center\" {...extraStepperContainerProps}>\n <Stepper activeIndex={activeIndex} steps={steps} flex={1} {...extraStepperProps} />\n </Flex>\n <Flex flex={1} flexDirection=\"column\" position=\"relative\" {...extraChildrenContainerProps}>\n {renderChildren\n ? renderChildren({ ...renderArgs, children: innerContents })\n : innerContents}\n </Flex>\n {getSectionContents(footer, stepFooter, renderStepFooter)}\n </Flex>\n );\n}\n\nfunction Step({ children }: StepProps) {\n return <>{children}</>;\n}\n\nFlowStepper.Step = Step;\nexport default FlowStepper;\n\nexport type IndexedStepProps = StepProps & {\n /**\n * String to identify the step. Must be different from sibling steps's `key` prop.\n */\n itemKey: string;\n};\n\ntype IndexedStepperChild = React.ReactElement<IndexedStepProps>;\n\nexport type IndexedProps<ExtraProps> = Omit<Props<ExtraProps>, \"activeIndex\" | \"children\"> & {\n /**\n * The key of the active step\n */\n activeKey: string;\n\n /**\n * A list of children representing each step of the flow.\n */\n children: IndexedStepperChild | IndexedStepperChild[];\n};\n\n/**\n * This is a FlowStepper where each child must have an `itemKey: string` prop\n * and the active step is defined by the `activeKey: string` prop.\n *\n * This allows for usages with a lot of steps where dealing with indices could be\n * painful and error prone (for instance inserting/removing a step somewhere would shift\n * the indices of the following steps and navigation would be impacted).\n *\n * By using string identifiers (`itemKey`) for each step, it's more \"human readable\"\n * and less error prone to setup a navigation logic between steps.\n */\nfunction FlowStepperIndexed<ExtraProps>(props: IndexedProps<ExtraProps>) {\n const { activeKey, children, ...otherProps } = props;\n const activeIndex = React.Children.toArray(children).findIndex(child => {\n const res = isElement(child) && child.props.itemKey === activeKey;\n return res;\n });\n return (\n <FlowStepper {...otherProps} activeIndex={activeIndex}>\n {children}\n </FlowStepper>\n );\n}\n\nfunction IndexedStep({ children }: IndexedStepProps) {\n return <>{children}</>;\n}\n\nFlowStepperIndexed.Step = IndexedStep;\nFlowStepper.Indexed = FlowStepperIndexed;\n"],"names":["baseStyled","compose","fontSize","fontWeight","textAlign","lineHeight","letterSpacing","system","fontFamily","textVariantStyle","uppercase","value","Text","variant","color","props","p","css","getFontSource","name","fontsPath","fontName","fontStyles","FlexBox","React","memo","Fragment","styled","border","space","IconsLegacy","Flex","Item","StepText","BaseSeparator","Separator","stepContentsByState","Step","state","Label","hideLeftSeparator","nextState","inactive","nextInactive","getState","activeIndex","index","errored","disabled","completed","Stepper","steps","disabledIndexes","filterDuplicate","isOver","extraProps","displayedSteps","step","dislayedActiveIndex","idx","undefined","gaps","flexbox","position","layout","overflow","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property","Color","fontFamilies","rgba","c","a","darken","lighten","mix","b","ff","v","font","type","style","weight","fallback","ensureContrast","color1","color2","colorL1","colorL2","lRatio","prop","keyframes","palettes","breakpoints","fontSizes","fontWeights","radii","shadows","zIndexes","animationDuration","easings","transition","properties","duration","easing","fadeIn","fadeOut","fadeInGrowX","fadeInUp","animations","theme","isElement","FlowStepper","header","renderStepHeader","footer","renderStepFooter","extraContainerProps","extraStepperProps","extraStepperContainerProps","extraChildrenContainerProps","renderChildren","children","innerContents","stepFooter","stepHeader","acc","child","label","hidden","renderArgs","getSectionContents","renderFunc","stepSection","renderStepFunc","FlowStepperIndexed","activeKey","otherProps","res","IndexedStep"],"mappings":";;;;;;;;;;;;AAA2D;AASpC;AACoC;AAEf;AAE5C,MAAMU,YAAYH,yCAAMA,CAAC;IACvB,WAAW;QACT,UAAU;QACV,WAAWI,CAAAA,QAAUA,QAAQ,cAAc;IAC7C;AACF;AA4BA,MAAMC,OAAOZ,8CAAqB,CAChC,CAAC,EAAEa,UAAU,MAAM,EAAEX,QAAQ,EAAEY,KAAK,EAAE,GAAM;QAC1C,UAAUZ,WAAWA,WAAWW;QAChC,OAAOC,SAAS;IAClB,GACD,CAAC;;eAEa,EAAEC,CAAAA,QAASA,MAAM,UAAU,IAAI,SAAS;EACrD,EAAE,CAACC,IAAiBP,yCAAgB,CAACO,EAAE,OAAO,IAAI,OAAO,CAAC;EAC1D,EAAEf,0CAAOA,CACPS,WACAL,yCAAUA,EACVG,qDAAUA,EACVN,uCAAQA,EACRE,wCAASA,EACTD,yCAAUA,EACVG,4C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AAC;AAuB3B;;;;;;;;;;CAUC,GACD,SAASuB,mBAA+B7H,KAA+B;IACrE,MAAM,EAAE8H,SAAS,EAAEd,QAAQ,EAAE,GAAGe,YAAY,GAAG/H;IAC/C,MAAM8B,cAAcrB,iDAAsB,CAACuG,UAAU,SAAS,CAACK,CAAAA;QAC7D,MAAMW,MAAM3B,uCAASA,CAACgB,UAAUA,MAAM,KAAK,CAAC,OAAO,KAAKS;QACxD,OAAOE;IACT;IACA,qBACE,+CAAC1B;QAAa,GAAGyB,UAAU;QAAE,aAAajG;OACvCkF;AAGP;AAEA,SAASiB,YAAY,EAAEjB,QAAQ,EAAoB;IACjD,qBAAO,kGAAGA;AACZ;AAEAa,mBAAmB,IAAI,GAAGI;AAC1B3B,YAAY,OAAO,GAAGuB"}
1
+ {"version":3,"file":"components/navigation/FlowStepper/index.js","sources":["webpack://@ledgerhq/react-ui/./src/components/asorted/Text/index.tsx","webpack://@ledgerhq/react-ui/./src/components/asorted/Text/styles.ts","webpack://@ledgerhq/react-ui/./src/components/layout/Flex/index.ts","webpack://@ledgerhq/react-ui/./src/components/navigation/progress/Stepper/index.tsx","webpack://@ledgerhq/react-ui/./src/components/styled.ts","webpack://@ledgerhq/react-ui/./src/helpers.ts","webpack://@ledgerhq/react-ui/./src/styles/helpers.ts","webpack://@ledgerhq/react-ui/./src/styles/styled/fontFamily.ts","webpack://@ledgerhq/react-ui/./src/styles/system/gaps.ts","webpack://@ledgerhq/react-ui/./src/styles/theme.ts","webpack://@ledgerhq/react-ui/webpack/runtime/compat_get_default_export","webpack://@ledgerhq/react-ui/webpack/runtime/define_property_getters","webpack://@ledgerhq/react-ui/webpack/runtime/has_own_property","webpack://@ledgerhq/react-ui/webpack/runtime/make_namespace_object","webpack://@ledgerhq/react-ui/./src/components/navigation/FlowStepper/index.tsx"],"sourcesContent":["import React from \"react\";\nimport baseStyled, { BaseStyledProps } from \"../../styled\";\nimport {\n compose,\n fontSize,\n fontWeight,\n textAlign,\n lineHeight,\n letterSpacing,\n system,\n} from \"styled-system\";\nimport fontFamily from \"../../../styles/styled/fontFamily\";\nimport { TextVariants } from \"../../../styles/theme\";\nimport { textVariantStyle } from \"./styles\";\n\nconst uppercase = system({\n uppercase: {\n property: \"textTransform\",\n transform: value => (value ? \"uppercase\" : \"none\"),\n },\n});\n\ntype FontFamilies =\n | \"Inter|ExtraLight\"\n | \"Inter|Light\"\n | \"Inter|Regular\"\n | \"Inter|Medium\"\n | \"Inter|SemiBold\"\n | \"Inter|Bold\"\n | \"Inter|ExtraBold\"\n | \"Alpha|Medium\";\n\ntype WhiteSpace = \"normal\" | \"nowrap\" | \"pre\" | \"pre-line\" | \"pre-wrap\";\n\nexport interface TextProps extends BaseStyledProps {\n fontFamily?: string;\n ff?: FontFamilies;\n fontSize?: number | string | TextVariants;\n variant?: TextVariants;\n textAlign?: string;\n fontWeight?: string;\n lineHeight?: string;\n textTransform?: string;\n textOverflow?: string;\n uppercase?: boolean;\n whiteSpace?: WhiteSpace;\n children?: React.ReactNode;\n}\n\nconst Text = baseStyled.span.attrs<TextProps, TextProps>(\n ({ variant = \"body\", fontSize, color }) => ({\n fontSize: fontSize ? fontSize : variant,\n color: color || \"neutral.c100\",\n }),\n)`\n font-weight: 500;\n white-space: ${props => props.whiteSpace ?? \"normal\"};\n ${(p: TextProps) => textVariantStyle[p.variant || \"body\"]}\n ${compose(\n uppercase,\n lineHeight,\n fontFamily,\n fontSize,\n textAlign,\n fontWeight,\n letterSpacing,\n system({\n textOverflow: true,\n }),\n )}\n ${p => (p.textTransform ? `text-transform: ${p.textTransform};` : \"\")}\n`;\n\nexport default Text;\n","import { GlobalStyleProps } from \"../../../styles/global\";\nimport { css } from \"styled-components\";\nimport { TextVariants } from \"../../../styles/theme\";\n\nconst getFontSource = (name: string) => (props: GlobalStyleProps) => {\n const fontsPath = props.fontsPath ?? \"assets/fonts\";\n const fontName = (props.fontMappings && props.fontMappings(name)) || `${name}.woff2`;\n return `url(\"${fontsPath}/${fontName}\") format(\"woff2\")`;\n};\n\nexport const fontStyles = css`\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-ExtraLight-BETA\")};\n font-weight: 100;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Light-BETA\")};\n font-weight: 300;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Regular\")};\n font-weight: 400;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Medium\")};\n font-weight: 500;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-SemiBold\")};\n font-weight: 600;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-ExtraBold\")};\n font-weight: 900;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Alpha\";\n src: ${getFontSource(\"HMAlphaMono-Medium\")};\n font-weight: 500;\n font-style: normal;\n }\n`;\n\nexport const textVariantStyle: Record<\n TextVariants,\n {\n fontFamily: string;\n lineHeight?: string | number;\n fontWeight?: number;\n \"text-transform\"?: string;\n }\n> = {\n h1: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h1Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h2: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h2Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h3: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h3Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n },\n h4: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h4Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 600,\n },\n h5: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h5Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n },\n large: {\n fontFamily: \"Inter, Sans\",\n },\n largeLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n body: {\n fontFamily: \"Inter, Sans\",\n },\n bodyLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n paragraph: {\n fontFamily: \"Inter, Sans\",\n },\n paragraphLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n small: {\n fontFamily: \"Inter, Sans\",\n },\n extraSmall: {\n fontFamily: \"Inter, Sans\",\n },\n tiny: {\n fontFamily: \"Inter, Sans\",\n },\n micro: {\n fontFamily: \"Inter, Sans\",\n },\n subtitle: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 600,\n \"text-transform\": \"uppercase\",\n },\n};\n","import baseStyled, { BaseStyledProps } from \"../../styled\";\n\nconst FlexBox = baseStyled.div.attrs<BaseStyledProps, BaseStyledProps>({ display: \"flex\" })``;\nexport type FlexBoxProps = BaseStyledProps & React.HTMLAttributes<HTMLDivElement>;\n\nexport default FlexBox;\n","import React, { memo, Fragment } from \"react\";\nimport styled from \"styled-components\";\nimport { border, BorderProps, color, ColorProps, space, SpaceProps } from \"styled-system\";\nimport { IconsLegacy } from \"../../../../index\";\nimport Text from \"../../../asorted/Text\";\nimport Flex, { FlexBoxProps } from \"../../../layout/Flex\";\n\n/**\n * The state of a progress bar step.\n */\nexport type StepState = \"pending\" | \"current\" | \"completed\" | \"errored\" | \"disabled\";\n\ntype LabelType = string | React.ComponentType<{ state: StepState }>;\nexport interface Props extends FlexBoxProps {\n /**\n * An array of labels that will determine the progress bar steps.\n * A label is either a string or a component that will be rendered with the\n * prop `state: \"pending\" | \"current\" | \"completed\" | \"errored\"`.\n * A styled StepText component is exported to allow easy styling of such a custom label.\n */\n steps: LabelType[];\n /**\n * Index of the active step, starting at zero and defaulting to 0 if omitted.\n */\n activeIndex?: number;\n /**\n * If true the current step is considered as a failure.\n */\n errored?: boolean;\n /**\n * Steps with indexes contained inside the array will be shown as disabled.\n */\n disabledIndexes?: number[];\n /**\n * Delete steps with same following labels\n */\n filterDuplicate?: boolean;\n /**\n * Complete all the steps\n */\n isOver?: boolean;\n}\n\nexport type StepProps = {\n /**\n * State of the step.\n */\n state: StepState;\n /**\n * The label to display. To display more than text, this can be a component that will be rendered with the\n * prop `state: \"pending\" | \"current\" | \"completed\" | \"errored\" | \"disabled\"`.\n * A styled StepText component is exported to allow easy styling of such a custom Label\n */\n label: LabelType;\n /**\n * If true, hides the left \"separator\" bar that bridges the gap between the wider separator and the item.\n */\n hideLeftSeparator: boolean;\n /**\n * The next step state, or undefined if the current step is the last one.\n */\n nextState?: StepState;\n};\n\nexport const Item = {\n Container: styled.div.attrs({\n mx: \"8px\",\n })<ColorProps & BorderProps & SpaceProps>`\n display: flex;\n justify-content: center;\n align-items: center;\n width: ${p => p.theme.space[8]}px;\n height: ${p => p.theme.space[8]}px;\n ${color}\n ${border}\n ${space}\n `,\n Spacer: styled.div<SpaceProps>`\n display: flex;\n align-self: stretch;\n ${space}\n `,\n Current: styled.div.attrs({\n backgroundColor: \"primary.c90\",\n })<ColorProps>`\n width: 6px;\n height: 6px;\n border-radius: 6px;\n ${color}\n `,\n Pending: styled.div.attrs({\n backgroundColor: \"neutral.c70\",\n })<ColorProps>`\n width: ${p => p.theme.space[2]}px;\n height: ${p => p.theme.space[2]}px;\n border-radius: ${p => p.theme.space[2]}px;\n ${color}\n `,\n Completed: (): React.JSX.Element => <IconsLegacy.CheckAloneMedium size={16} />,\n Disabled: (): React.JSX.Element => <IconsLegacy.CloseMedium size={16} />,\n Errored: (): React.JSX.Element => <IconsLegacy.CloseMedium size={16} />,\n};\n\nexport const StepText = styled(Text)<{ state: StepState }>`\n text-align: center;\n white-space: pre-wrap;\n color: ${p => {\n if (p.state === \"errored\") {\n return p.theme.colors.error.c50;\n }\n if (p.state === \"disabled\") {\n return p.theme.colors.neutral.c50;\n }\n if (p.state === \"pending\") {\n return p.theme.colors.neutral.c70;\n }\n return p.theme.colors.neutral.c100;\n }};\n`;\n\nconst BaseSeparator = styled.div<{ inactive?: boolean }>`\n flex: 1;\n position: relative;\n overflow-x: hidden;\n background-color: ${p => p.theme.colors.neutral.c40};\n height: 1px;\n top: ${p => p.theme.space[5]}px;\n`;\n\nconst Separator = {\n Step: styled(BaseSeparator)``,\n Item: styled(BaseSeparator)<{ position: string }>``,\n};\n\nconst stepContentsByState = {\n pending: (\n <Item.Container>\n <Item.Pending />\n </Item.Container>\n ),\n current: (\n <Item.Container backgroundColor=\"primary.c20\" borderRadius=\"8px\">\n <Item.Current />\n </Item.Container>\n ),\n completed: (\n <Item.Container color=\"primary.c90\" backgroundColor=\"primary.c20\" borderRadius=\"8px\">\n <Item.Completed />\n </Item.Container>\n ),\n errored: (\n <Item.Container color=\"error.c50\" backgroundColor=\"warning.c30\" borderRadius=\"8px\">\n <Item.Errored />\n </Item.Container>\n ),\n disabled: (\n <Item.Container color=\"neutral.c50\">\n <Item.Disabled />\n </Item.Container>\n ),\n};\n\nexport const Step = memo(function Step({\n state,\n label: Label,\n hideLeftSeparator,\n nextState,\n}: StepProps): React.JSX.Element {\n const inactive = state === \"pending\";\n const nextInactive = state === \"pending\";\n\n return (\n <Flex flexDirection=\"column\" alignItems=\"center\" flex={20}>\n <Item.Spacer mb={5}>\n {(!hideLeftSeparator && <Separator.Item inactive={inactive} position=\"left\" />) || (\n <Flex flex=\"1\" />\n )}\n {stepContentsByState[state]}\n {(nextState && <Separator.Item inactive={nextInactive} position=\"right\" />) || (\n <Flex flex=\"1\" />\n )}\n </Item.Spacer>\n {typeof Label === \"string\" ? (\n <StepText state={state} variant=\"small\">\n {Label}\n </StepText>\n ) : (\n <Label state={state} />\n )}\n </Flex>\n );\n});\n\nfunction getState(\n activeIndex: number,\n index: number,\n errored?: boolean,\n disabled?: boolean,\n completed?: boolean,\n) {\n if (completed) {\n return \"completed\";\n }\n if (disabled) {\n return \"disabled\";\n }\n if (activeIndex < index) {\n return \"pending\";\n }\n if (activeIndex === index) {\n return errored ? \"errored\" : \"current\";\n }\n return \"completed\";\n}\n\nfunction Stepper({\n steps,\n activeIndex = 0,\n errored,\n disabledIndexes,\n filterDuplicate,\n isOver,\n ...extraProps\n}: Props) {\n const displayedSteps = filterDuplicate\n ? steps.filter((step, index) => index === 0 || step !== steps[index - 1])\n : steps;\n const dislayedActiveIndex = filterDuplicate\n ? displayedSteps.findIndex(step => step === steps[activeIndex])\n : activeIndex;\n\n return (\n <Flex flexWrap=\"nowrap\" justifyContent=\"space-between\" {...extraProps}>\n {displayedSteps.map((step, idx) => {\n const state = getState(\n dislayedActiveIndex,\n idx,\n errored,\n disabledIndexes?.includes(idx),\n isOver,\n );\n const nextState =\n idx < displayedSteps.length - 1 ? getState(dislayedActiveIndex, idx + 1) : undefined;\n return (\n <Fragment key={idx}>\n {idx > 0 && <Separator.Step inactive={state === \"pending\"} />}\n <Step label={step} state={state} nextState={nextState} hideLeftSeparator={idx === 0} />\n </Fragment>\n );\n })}\n </Flex>\n );\n}\n\nexport default memo(Stepper);\n","import React from \"react\";\nimport gaps from \"../styles/system/gaps\";\nimport styled, { StyledInterface, InterpolationFunction } from \"styled-components\";\nimport {\n compose,\n flexbox,\n FlexboxProps,\n space,\n SpaceProps,\n position,\n PositionProps,\n color,\n ColorProps,\n layout,\n LayoutProps,\n overflow,\n OverflowProps,\n border,\n BorderProps,\n} from \"styled-system\";\n\nexport type BaseStyledProps = SpaceProps &\n FlexboxProps &\n PositionProps &\n ColorProps &\n LayoutProps &\n BorderProps &\n OverflowProps & {\n /**\n * The columnGap CSS property sets the size of the gap (gutter) between an element's grid columns.\n */\n columnGap?: string | number;\n /**\n * The rowGap CSS property sets the size of the gap (gutter) between an element's grid rows.\n */\n rowGap?: string | number;\n color?: string;\n children?: React.ReactNode;\n };\n\nexport const baseStyles: InterpolationFunction<unknown> = compose(\n flexbox,\n space,\n position,\n color,\n layout,\n overflow,\n gaps,\n border,\n);\n\nconst proxyStyled = new Proxy(styled, {\n apply(target: typeof styled, thisArg, argumentsList: Parameters<typeof styled>) {\n return styled(target.apply(thisArg, argumentsList)(baseStyles));\n },\n get(target, property: keyof typeof styled) {\n if (typeof target[property] === \"function\") {\n return styled(target[property].apply(styled, [baseStyles]));\n }\n return target[property];\n },\n});\n\nexport default <StyledInterface>proxyStyled;\n","import React from \"react\";\n\nconst REACT_ELEMENT_TYPE = Symbol.for(\"react.element\");\nconst REACT_TRANSITIONAL_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\");\n\n/**\n * Checks whether a value is a React element.\n *\n * Handles the React 19 `react.transitional.element` symbol (and the classic\n * `react.element` symbol for compatibility), making it safe to use without\n * relying on the legacy `React.isValidElement` API.\n */\nexport const isValidReactElement = (value: unknown): value is React.ReactElement =>\n !!value &&\n typeof value === \"object\" &&\n // eslint-disable-next-line @typescript-eslint/consistent-type-assertions\n \"$$typeof\" in (value as Record<string, unknown>) &&\n // eslint-disable-next-line @typescript-eslint/consistent-type-assertions\n ((value as { $$typeof?: unknown }).$$typeof === REACT_ELEMENT_TYPE ||\n // eslint-disable-next-line @typescript-eslint/consistent-type-assertions\n (value as { $$typeof?: unknown }).$$typeof === REACT_TRANSITIONAL_ELEMENT_TYPE);\n","import Color from \"color\";\n\nimport { fontFamilies } from \"./theme\";\n\nexport const rgba = (c: string, a: number): string => Color(c).alpha(a).rgb().toString();\n\nexport const darken = (c: string, a: number): string => Color(c).darken(a).toString();\n\nexport const lighten = (c: string, a: number): string => Color(c).lighten(a).toString();\n\nexport const mix = (c: string, b: string, a: number): string =>\n Color(c).mix(Color(b), a).toString();\n\nexport const ff = (v: string) => {\n const [font, type = \"Regular\"] = v.split(\"|\");\n // @ts-expect-error FIXME\n const { style, weight } = fontFamilies[font][type];\n // @ts-expect-error FIXME\n const fallback: string = fontFamilies[font].fallback ?? \"Arial\";\n\n return {\n fontFamily: `${font}, ${fallback}`,\n fontWeight: weight,\n fontStyle: style,\n };\n};\n\nexport const ensureContrast = (color1: string, color2: string) => {\n const colorL1 = Color(color1).luminosity() + 0.05;\n const colorL2 = Color(color2).luminosity() + 0.05;\n\n const lRatio = colorL1 > colorL2 ? colorL1 / colorL2 : colorL2 / colorL1;\n\n if (lRatio < 1.5) {\n return Color(color1).rotate(180).negate().string();\n }\n return color1;\n};\n","import { ff } from \"../helpers\";\n\nexport default (props: { ff?: string }) => {\n const prop = props.ff;\n\n if (prop == null) {\n return null;\n }\n\n return ff(prop);\n};\n","import { system } from \"styled-system\";\n\nconst gaps = system({\n rowGap: { property: \"rowGap\", scale: \"space\" },\n columnGap: { property: \"columnGap\", scale: \"space\" },\n});\n\nexport default gaps;\n","import { keyframes, css, Font } from \"styled-components\";\nimport { palettes, ColorPalette } from \"@ledgerhq/ui-shared\";\n\nexport type screensBreakpoints = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\";\n\nexport const breakpoints = {\n sm: \"640px\",\n md: \"768px\",\n lg: \"1024px\",\n xl: \"1280px\",\n xxl: \"1536px\",\n} as Record<screensBreakpoints, string>;\n\nexport const space = [\n /* space indexes:\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 */\n 0, 2, 4, 8, 10, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76,\n];\n\nexport type TextVariants =\n | \"h1\"\n | \"h1Inter\"\n | \"h2\"\n | \"h2Inter\"\n | \"h3\"\n | \"h3Inter\"\n | \"h4\"\n | \"h4Inter\"\n | \"h5\"\n | \"h5Inter\"\n | \"large\"\n | \"largeLineHeight\"\n | \"body\"\n | \"bodyLineHeight\"\n | \"paragraph\"\n | \"paragraphLineHeight\"\n | \"small\"\n | \"extraSmall\"\n | \"tiny\"\n | \"micro\"\n | \"subtitle\";\n\nexport type ThemeScale<Type, Aliases extends string> = Array<Type> & Record<Aliases, Type>;\n\nexport const fontSizes = [8, 10, 11, 12, 13, 14, 16, 20, 24, 28, 32, 36] as ThemeScale<\n number,\n TextVariants\n>;\n\n[\n fontSizes.micro,\n fontSizes.tiny,\n fontSizes.extraSmall,\n fontSizes.small,\n fontSizes.paragraph,\n fontSizes.body,\n fontSizes.large,\n fontSizes.h5,\n fontSizes.h4,\n fontSizes.h3,\n fontSizes.h2,\n fontSizes.h1,\n] = fontSizes;\nfontSizes.largeLineHeight = fontSizes.large;\nfontSizes.bodyLineHeight = fontSizes.body;\nfontSizes.paragraphLineHeight = fontSizes.paragraph;\nfontSizes.subtitle = fontSizes.extraSmall;\nfontSizes.h1Inter = fontSizes.h1;\nfontSizes.h2Inter = fontSizes.h2;\nfontSizes.h3Inter = fontSizes.h3;\nfontSizes.h4Inter = fontSizes.h4;\nfontSizes.h5Inter = fontSizes.h5;\n\nconst fontWeights = {\n extraLight: \"100\",\n light: \"300\",\n regular: \"400\",\n medium: \"500\",\n semiBold: \"600\",\n bold: \"700\",\n extraBold: \"800\",\n};\n\nexport const radii = [0, 4, 8, 12, 16, 20];\nexport const shadows = [\"0 4px 8px 0 rgba(0, 0, 0, 0.03)\"];\nexport const zIndexes = [-1, 0, 1, 9, 10, 90, 100, 900, 1000];\n\n// Those fonts are now defined in global.css, this is just a mapping for styled-system\nexport const fontFamilies = {\n Inter: {\n ExtraLight: {\n weight: 100,\n style: \"normal\",\n },\n Light: {\n weight: 300,\n style: \"normal\",\n },\n Regular: {\n weight: 400,\n style: \"normal\",\n },\n Medium: {\n weight: 500,\n style: \"normal\",\n },\n SemiBold: {\n weight: 600,\n style: \"normal\",\n },\n Bold: {\n weight: 700,\n style: \"normal\",\n },\n ExtraBold: {\n weight: 800,\n style: \"normal\",\n },\n },\n Alpha: {\n Medium: {\n weight: 500,\n style: \"normal\",\n },\n },\n};\n\nconst animationDuration = \"0.33s\";\nconst easings = {\n outQuadratic: \"cubic-bezier(0.25, 0.46, 0.45, 0.94)\",\n};\n\nconst transition = (\n properties = [\"all\"],\n duration = animationDuration,\n easing = easings.outQuadratic,\n) => css`\n transition-property: ${properties.join(\",\")};\n transition-duration: ${duration};\n transition-timing-function: ${easing};\n`;\n\nconst fadeIn = keyframes`\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n `;\nconst fadeOut = keyframes`\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n `;\nconst fadeInGrowX = keyframes`\n 0% {\n opacity: 0;\n transform: scaleX(0);\n }\n 100% {\n opacity: 1;\n transform: scaleX(1);\n }\n`;\nconst fadeInUp = keyframes`\n 0% {\n opacity: 0;\n transform: translateY(66%);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n `;\nconst animations = {\n fadeIn: () => css`\n ${fadeIn} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n fadeOut: () => css`\n ${fadeOut} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n fadeInGrowX: () => css`\n ${fadeInGrowX} 0.6s ${easings.outQuadratic} forwards\n `,\n fadeInUp: () => css`\n ${fadeInUp} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n};\nconst overflow = {\n x: css`\n overflow-y: hidden;\n overflow-x: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n y: css`\n overflow-x: hidden;\n overflow-y: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n yAuto: css`\n overflow-x: hidden;\n overflow-y: auto;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n xy: css`\n overflow: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n trackSize: 12,\n};\n\ninterface DefaultTheme {\n theme: \"dark\" | \"light\";\n animations: typeof animations;\n transition: typeof transition;\n overflow: typeof overflow;\n sizes: {\n topBarHeight: number;\n sideBarWidth: number;\n drawer: {\n side: {\n big: {\n width: number;\n };\n small: {\n width: number;\n };\n };\n popin: {\n min: {\n height: number;\n width: number;\n };\n max: {\n height: number;\n width: number;\n };\n };\n };\n };\n radii: number[];\n fontFamilies: Record<string, Record<string, Font>>;\n fontSizes: number[];\n space: number[];\n shadows: string[];\n colors: ColorPalette;\n fontWeights: Record<string, string>;\n breakpoints: Record<screensBreakpoints, string>;\n zIndexes: number[];\n}\n\nconst theme: DefaultTheme = {\n theme: \"light\",\n sizes: {\n drawer: {\n side: {\n big: {\n width: 580,\n },\n small: {\n width: 420,\n },\n },\n popin: {\n min: {\n height: 158,\n width: 462,\n },\n max: {\n height: 522,\n width: 622,\n },\n },\n },\n topBarHeight: 58,\n sideBarWidth: 230,\n },\n radii,\n fontFamilies,\n fontSizes,\n fontWeights,\n space,\n shadows,\n colors: palettes.light,\n animations,\n overflow,\n transition,\n zIndexes,\n breakpoints,\n};\n\nexport default theme;\nexport type Theme = DefaultTheme;\n","// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import React from \"react\";\nimport { Props as StepperProps } from \"../progress/Stepper\";\nimport Flex, { FlexBoxProps as FlexProps } from \"../../layout/Flex\";\nimport { Stepper } from \"..\";\nimport { isValidReactElement } from \"../../../helpers\";\n\nexport type StepProps = {\n /**\n * A specific index, can be used to explicitely order steps.\n */\n index?: number;\n /**\n * Custom header for this step.\n */\n header?: React.ReactNode;\n /**\n * Custom footer for this step.\n */\n footer?: React.ReactNode;\n /**\n * The label of the step.\n */\n label: string;\n /**\n * Hides the step from the progress stepper.\n */\n hidden?: boolean;\n /**\n * The step contents.\n */\n children: React.ReactNode;\n};\n\ninterface InnerProps {\n /**\n * The active index.\n */\n activeIndex: number;\n /**\n * The total number of steps.\n */\n stepsLength: number;\n}\n\ntype StepChild = React.ReactElement<StepProps>;\ntype SectionRenderFunc<ExtraProps> = (props: InnerProps & ExtraProps) => React.ReactNode;\ntype SectionStepRenderFunc<ExtraProps> = (\n args: InnerProps & ExtraProps & { children: React.ReactNode },\n) => React.ReactNode;\n\nexport interface Props<ExtraProps> {\n /**\n * The index of the active step.\n */\n activeIndex: number;\n /**\n * An optional generic header displayed above the stepper.\n */\n header?: SectionRenderFunc<ExtraProps>;\n /**\n * Custom rendering function to wrap the header (only used if the `header` is defined\n * on the child for the current step.)\n */\n renderStepHeader?: SectionStepRenderFunc<ExtraProps>;\n /**\n * An optional generic footer displayed below the body.\n */\n footer?: SectionRenderFunc<ExtraProps>;\n /**\n * Custom rendering function to wrap the footer (only used if the `footer` is defined\n * on the child for the current step.)\n */\n renderStepFooter?: SectionStepRenderFunc<ExtraProps>;\n /**\n * Extra props that are passed to the header and footer render functions.\n */\n extraProps?: ExtraProps;\n /**\n * Extra props that are passed to the container `Flex` element.\n */\n extraContainerProps?: FlexProps;\n /**\n * Extra props that are passed to the stepper component.\n */\n extraStepperProps?: Partial<StepperProps>;\n /**\n * Extra props that are passed to the stepper `Flex` wrapper.\n */\n extraStepperContainerProps?: FlexProps;\n /**\n * Extra props that are passed to the children `Flex` wrapper.\n */\n extraChildrenContainerProps?: FlexProps;\n /**\n * Custom rendering function to wrap children.\n */\n renderChildren?: (\n args: InnerProps & ExtraProps & { children: React.ReactNode },\n ) => React.ReactNode;\n /**\n * A list of children representing each step of the flow.\n * Each child can have a prop `stepHeader` and/or `stepFooter` that will\n * associate a custom header/footer to this particular step.\n * The custom header/footer can be wrapped using the prop renderStepHeader/renderStepFooter.\n */\n children: StepChild | StepChild[];\n}\n\nfunction FlowStepper<ExtraProps>({\n activeIndex,\n header,\n renderStepHeader,\n footer,\n renderStepFooter,\n extraProps,\n extraContainerProps,\n extraStepperProps,\n extraStepperContainerProps,\n extraChildrenContainerProps,\n renderChildren,\n children,\n}: Props<ExtraProps>) {\n const { steps, innerContents, stepFooter, stepHeader } = React.Children.toArray(children).reduce<{\n steps: string[];\n innerContents: React.ReactNode | null;\n stepHeader: React.ReactNode | null;\n stepFooter: React.ReactNode | null;\n }>(\n (acc, child, idx) => {\n const stepChild = isValidReactElement(child) ? (child as StepChild) : null;\n const index = stepChild?.props.index ?? idx;\n const label = stepChild?.props.label;\n const hidden = stepChild?.props.hidden;\n const stepHeader = stepChild?.props.header;\n const stepFooter = stepChild?.props.footer;\n\n if (label && !hidden) {\n acc.steps[index] = label;\n }\n if (index === activeIndex) {\n acc.innerContents = child;\n acc.stepFooter = stepFooter;\n acc.stepHeader = stepHeader;\n }\n return acc;\n },\n {\n steps: [],\n innerContents: null,\n stepHeader: null,\n stepFooter: null,\n },\n );\n\n const renderArgs = { ...extraProps, activeIndex, stepsLength: steps.length } as InnerProps &\n ExtraProps;\n\n function getSectionContents(\n renderFunc?: SectionRenderFunc<ExtraProps>,\n stepSection?: React.ReactNode,\n renderStepFunc?: SectionStepRenderFunc<ExtraProps>,\n ) {\n return stepSection\n ? renderStepFunc\n ? renderStepFunc({ ...renderArgs, children: stepSection })\n : stepSection\n : renderFunc && renderFunc(renderArgs);\n }\n\n console.log(\"FlowStepper\", { activeIndex, steps, innerContents, stepHeader, stepFooter });\n return (\n <Flex flex={1} flexDirection=\"column\" {...extraContainerProps}>\n {getSectionContents(header, stepHeader, renderStepHeader)}\n <Flex my={8} justifyContent=\"center\" {...extraStepperContainerProps}>\n <Stepper activeIndex={activeIndex} steps={steps} flex={1} {...extraStepperProps} />\n </Flex>\n <Flex flex={1} flexDirection=\"column\" position=\"relative\" {...extraChildrenContainerProps}>\n {renderChildren\n ? renderChildren({ ...renderArgs, children: innerContents })\n : innerContents}\n </Flex>\n {getSectionContents(footer, stepFooter, renderStepFooter)}\n </Flex>\n );\n}\n\nfunction Step({ children }: StepProps) {\n return <>{children}</>;\n}\n\nFlowStepper.Step = Step;\nexport default FlowStepper;\n\nexport type IndexedStepProps = StepProps & {\n /**\n * String to identify the step. Must be different from sibling steps's `key` prop.\n */\n itemKey: string;\n};\n\ntype IndexedStepperChild = React.ReactElement<IndexedStepProps>;\n\nexport type IndexedProps<ExtraProps> = Omit<Props<ExtraProps>, \"activeIndex\" | \"children\"> & {\n /**\n * The key of the active step\n */\n activeKey: string;\n\n /**\n * A list of children representing each step of the flow.\n */\n children: IndexedStepperChild | IndexedStepperChild[];\n};\n\n/**\n * This is a FlowStepper where each child must have an `itemKey: string` prop\n * and the active step is defined by the `activeKey: string` prop.\n *\n * This allows for usages with a lot of steps where dealing with indices could be\n * painful and error prone (for instance inserting/removing a step somewhere would shift\n * the indices of the following steps and navigation would be impacted).\n *\n * By using string identifiers (`itemKey`) for each step, it's more \"human readable\"\n * and less error prone to setup a navigation logic between steps.\n */\nfunction FlowStepperIndexed<ExtraProps>(props: IndexedProps<ExtraProps>) {\n const { activeKey, children, ...otherProps } = props;\n const activeIndex = React.Children.toArray(children).findIndex(child => {\n const stepChild = isValidReactElement(child) ? (child as IndexedStepperChild) : null;\n return stepChild?.props.itemKey === activeKey;\n });\n return (\n <FlowStepper {...otherProps} activeIndex={activeIndex}>\n {children}\n </FlowStepper>\n );\n}\n\nfunction IndexedStep({ children }: IndexedStepProps) {\n return <>{children}</>;\n}\n\nFlowStepperIndexed.Step = IndexedStep;\nFlowStepper.Indexed = FlowStepperIndexed;\n"],"names":["React","baseStyled","compose","fontSize","fontWeight","textAlign","lineHeight","letterSpacing","system","fontFamily","textVariantStyle","uppercase","value","Text","variant","color","props","p","css","getFontSource","name","fontsPath","fontName","fontStyles","FlexBox","memo","Fragment","styled","border","space","IconsLegacy","Flex","Item","StepText","BaseSeparator","Separator","stepContentsByState","Step","state","Label","hideLeftSeparator","nextState","inactive","nextInactive","getState","activeIndex","index","errored","disabled","completed","Stepper","steps","disabledIndexes","filterDuplicate","isOver","extraProps","displayedSteps","step","dislayedActiveIndex","idx","undefined","gaps","flexbox","position","layout","overflow","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property","REACT_ELEMENT_TYPE","Symbol","REACT_TRANSITIONAL_ELEMENT_TYPE","isValidReactElement","Color","fontFamilies","rgba","c","a","darken","lighten","mix","b","ff","v","font","type","style","weight","fallback","ensureContrast","color1","color2","colorL1","colorL2","lRatio","prop","keyframes","palettes","breakpoints","fontSizes","fontWeights","radii","shadows","zIndexes","animationDuration","easings","transition","properties","duration","easing","fadeIn","fadeOut","fadeInGrowX","fadeInUp","animations","theme","FlowStepper","header","renderStepHeader","footer","renderStepFooter","extraContainerProps","extraStepperProps","extraStepperContainerProps","extraChildrenContainerProps","renderChildren","children","innerContents","stepFooter","stepHeader","acc","child","stepChild","label","hidden","renderArgs","getSectionContents","renderFunc","stepSection","renderStepFunc","console","FlowStepperIndexed","activeKey","otherProps","IndexedStep"],"mappings":";;;;;;;;;;;;;;AAA0B;AACiC;AASpC;AACoC;AAEf;AAE5C,MAAMW,YAAYH,yCAAMA,CAAC;IACvB,WAAW;QACT,UAAU;QACV,WAAWI,CAAAA,QAAUA,QAAQ,cAAc;IAC7C;AACF;AA6BA,MAAMC,OAAOZ,8CAAqB,CAChC,CAAC,EAAEa,UAAU,MAAM,EAAEX,QAAQ,EAAEY,KAAK,EAAE,GAAM;QAC1C,UAAUZ,WAAWA,WAAWW;QAChC,OAAOC,SAAS;IAClB,GACD,CAAC;;eAEa,EAAEC,CAAAA,QA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X,iCACxC,+CAAC3F,wCAAIA;QAAC,IAAI;QAAG,gBAAe;QAAU,GAAGgG,0BAA0B;qBACjE,+CAAC7E,6BAAOA;QAAC,aAAaL;QAAa,OAAOM;QAAO,MAAM;QAAI,GAAG2E,iBAAiB;uBAEjF,+CAAC/F,wCAAIA;QAAC,MAAM;QAAG,eAAc;QAAS,UAAS;QAAY,GAAGiG,2BAA2B;OACtFC,iBACGA,eAAe;QAAE,GAAGU,UAAU;QAAE,UAAUR;IAAc,KACxDA,gBAELS,mBAAmBjB,QAAQS,YAAYR;AAG9C;AAEA,SAASvF,KAAK,EAAE6F,QAAQ,EAAa;IACnC,qBAAO,kGAAGA;AACZ;AAEAV,YAAY,IAAI,GAAGnF;AACnB,sDAAemF,WAAWA,EAAC;AAuB3B;;;;;;;;;;CAUC,GACD,SAASyB,mBAA+BjI,KAA+B;IACrE,MAAM,EAAEkI,SAAS,EAAEhB,QAAQ,EAAE,GAAGiB,YAAY,GAAGnI;IAC/C,MAAM6B,cAAc7C,iDAAsB,CAACkI,UAAU,SAAS,CAACK,CAAAA;QAC7D,MAAMC,YAAY5D,iDAAmBA,CAAC2D,SAAUA,QAAgC;QAChF,OAAOC,WAAW,MAAM,YAAYU;IACtC;IACA,qBACE,+CAAC1B;QAAa,GAAG2B,UAAU;QAAE,aAAatG;OACvCqF;AAGP;AAEA,SAASkB,YAAY,EAAElB,QAAQ,EAAoB;IACjD,qBAAO,kGAAGA;AACZ;AAEAe,mBAAmB,IAAI,GAAGG;AAC1B5B,YAAY,OAAO,GAAGyB"}
@@ -36,29 +36,32 @@ const Icon = ({ name, size = 16, color = "currentColor", weight = "Medium" })=>{
36
36
  __webpack_require__.d(__webpack_exports__, {
37
37
  "default": () => (__rspack_default_export)
38
38
  });
39
- /* import */ var _styled__rspack_import_1 = __webpack_require__(7680);
40
- /* import */ var styled_system__rspack_import_0 = __webpack_require__(9351);
41
- /* import */ var styled_system__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_0);
42
- /* import */ var _styles_styled_fontFamily__rspack_import_3 = __webpack_require__(3364);
43
- /* import */ var _styles__rspack_import_2 = __webpack_require__(4368);
39
+ /* import */ var react__rspack_import_0 = __webpack_require__(2015);
40
+ /* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
41
+ /* import */ var _styled__rspack_import_2 = __webpack_require__(7680);
42
+ /* import */ var styled_system__rspack_import_1 = __webpack_require__(9351);
43
+ /* import */ var styled_system__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_1);
44
+ /* import */ var _styles_styled_fontFamily__rspack_import_4 = __webpack_require__(3364);
45
+ /* import */ var _styles__rspack_import_3 = __webpack_require__(4368);
46
+
44
47
 
45
48
 
46
49
 
47
50
 
48
- const uppercase = (0,styled_system__rspack_import_0.system)({
51
+ const uppercase = (0,styled_system__rspack_import_1.system)({
49
52
  uppercase: {
50
53
  property: "textTransform",
51
54
  transform: (value)=>value ? "uppercase" : "none"
52
55
  }
53
56
  });
54
- const Text = _styled__rspack_import_1["default"].span.attrs(({ variant = "body", fontSize, color })=>({
57
+ const Text = _styled__rspack_import_2["default"].span.attrs(({ variant = "body", fontSize, color })=>({
55
58
  fontSize: fontSize ? fontSize : variant,
56
59
  color: color || "neutral.c100"
57
60
  }))`
58
61
  font-weight: 500;
59
62
  white-space: ${(props)=>props.whiteSpace ?? "normal"};
60
- ${(p)=>_styles__rspack_import_2.textVariantStyle[p.variant || "body"]}
61
- ${(0,styled_system__rspack_import_0.compose)(uppercase, styled_system__rspack_import_0.lineHeight, _styles_styled_fontFamily__rspack_import_3["default"], styled_system__rspack_import_0.fontSize, styled_system__rspack_import_0.textAlign, styled_system__rspack_import_0.fontWeight, styled_system__rspack_import_0.letterSpacing, (0,styled_system__rspack_import_0.system)({
63
+ ${(p)=>_styles__rspack_import_3.textVariantStyle[p.variant || "body"]}
64
+ ${(0,styled_system__rspack_import_1.compose)(uppercase, styled_system__rspack_import_1.lineHeight, _styles_styled_fontFamily__rspack_import_4["default"], styled_system__rspack_import_1.fontSize, styled_system__rspack_import_1.textAlign, styled_system__rspack_import_1.fontWeight, styled_system__rspack_import_1.letterSpacing, (0,styled_system__rspack_import_1.system)({
62
65
  textOverflow: true
63
66
  }))}
64
67
  ${(p)=>p.textTransform ? `text-transform: ${p.textTransform};` : ""}
@@ -234,14 +237,14 @@ const FlexBox = _styled__rspack_import_0["default"].div.attrs({
234
237
  },
235
238
  6070(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
236
239
  __webpack_require__.d(__webpack_exports__, {
237
- "default": () => (/* export default binding */ __rspack_default_export)
240
+ "default": () => (Header)
238
241
  });
239
242
  /* import */ var react__rspack_import_0 = __webpack_require__(2015);
240
243
  /* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
241
244
  /* import */ var _layout_Flex__rspack_import_1 = __webpack_require__(3696);
242
245
 
243
246
 
244
- /* export default */ function __rspack_default_export({ left, right, children, ...rest }) {
247
+ function Header({ left, right, children, ...rest }) {
245
248
  return /*#__PURE__*/ react__rspack_import_0_default().createElement(_layout_Flex__rspack_import_1["default"], {
246
249
  justifyContent: "space-between",
247
250
  ...rest
@@ -1 +1 @@
1
- {"version":3,"file":"components/navigation/Header/Header.stories.js","sources":["webpack://@ledgerhq/react-ui/./src/components/asorted/Icon/Icon.tsx","webpack://@ledgerhq/react-ui/./src/components/asorted/Text/index.tsx","webpack://@ledgerhq/react-ui/./src/components/asorted/Text/styles.ts","webpack://@ledgerhq/react-ui/./src/components/layout/Flex/index.ts","webpack://@ledgerhq/react-ui/./src/components/navigation/Header/index.tsx","webpack://@ledgerhq/react-ui/./src/components/styled.ts","webpack://@ledgerhq/react-ui/./src/styles/helpers.ts","webpack://@ledgerhq/react-ui/./src/styles/styled/fontFamily.ts","webpack://@ledgerhq/react-ui/./src/styles/system/gaps.ts","webpack://@ledgerhq/react-ui/./src/styles/theme.ts","webpack://@ledgerhq/react-ui/webpack/runtime/compat_get_default_export","webpack://@ledgerhq/react-ui/webpack/runtime/define_property_getters","webpack://@ledgerhq/react-ui/webpack/runtime/has_own_property","webpack://@ledgerhq/react-ui/webpack/runtime/make_namespace_object","webpack://@ledgerhq/react-ui/./src/components/navigation/Header/Header.stories.tsx"],"sourcesContent":["import * as icons from \"@ledgerhq/icons-ui/reactLegacy\";\nimport React from \"react\";\n\nexport type Props = {\n name: string;\n size?: number;\n weight?: \"Medium\";\n color?: string;\n};\n\nexport const iconNames = Array.from(\n Object.keys(icons).reduce((set, rawKey) => {\n const key = rawKey.replace(/(.+)(Medium)+$/g, \"$1\");\n if (!set.has(key)) set.add(key);\n return set;\n }, new Set<string>()),\n);\n\nconst Icon = ({\n name,\n size = 16,\n color = \"currentColor\",\n weight = \"Medium\",\n}: Props): JSX.Element | null => {\n const maybeIconName = `${name}${weight}`;\n if (maybeIconName in icons) {\n // @ts-expect-error FIXME I don't know how to make you happy ts\n const Component = icons[maybeIconName];\n return <Component size={size} color={color} />;\n }\n return null;\n};\n\nexport default Icon;\n","import baseStyled, { BaseStyledProps } from \"../../styled\";\nimport {\n compose,\n fontSize,\n fontWeight,\n textAlign,\n lineHeight,\n letterSpacing,\n system,\n} from \"styled-system\";\nimport fontFamily from \"../../../styles/styled/fontFamily\";\nimport { TextVariants } from \"../../../styles/theme\";\nimport { textVariantStyle } from \"./styles\";\n\nconst uppercase = system({\n uppercase: {\n property: \"textTransform\",\n transform: value => (value ? \"uppercase\" : \"none\"),\n },\n});\n\ntype FontFamilies =\n | \"Inter|ExtraLight\"\n | \"Inter|Light\"\n | \"Inter|Regular\"\n | \"Inter|Medium\"\n | \"Inter|SemiBold\"\n | \"Inter|Bold\"\n | \"Inter|ExtraBold\"\n | \"Alpha|Medium\";\n\ntype WhiteSpace = \"normal\" | \"nowrap\" | \"pre\" | \"pre-line\" | \"pre-wrap\";\n\nexport interface TextProps extends BaseStyledProps {\n fontFamily?: string;\n ff?: FontFamilies;\n fontSize?: number | string | TextVariants;\n variant?: TextVariants;\n textAlign?: string;\n fontWeight?: string;\n lineHeight?: string;\n textTransform?: string;\n textOverflow?: string;\n uppercase?: boolean;\n whiteSpace?: WhiteSpace;\n}\n\nconst Text = baseStyled.span.attrs<TextProps, TextProps>(\n ({ variant = \"body\", fontSize, color }) => ({\n fontSize: fontSize ? fontSize : variant,\n color: color || \"neutral.c100\",\n }),\n)`\n font-weight: 500;\n white-space: ${props => props.whiteSpace ?? \"normal\"};\n ${(p: TextProps) => textVariantStyle[p.variant || \"body\"]}\n ${compose(\n uppercase,\n lineHeight,\n fontFamily,\n fontSize,\n textAlign,\n fontWeight,\n letterSpacing,\n system({\n textOverflow: true,\n }),\n )}\n ${p => (p.textTransform ? `text-transform: ${p.textTransform};` : \"\")}\n`;\n\nexport default Text;\n","import { GlobalStyleProps } from \"../../../styles/global\";\nimport { css } from \"styled-components\";\nimport { TextVariants } from \"../../../styles/theme\";\n\nconst getFontSource = (name: string) => (props: GlobalStyleProps) => {\n const fontsPath = props.fontsPath ?? \"assets/fonts\";\n const fontName = (props.fontMappings && props.fontMappings(name)) || `${name}.woff2`;\n return `url(\"${fontsPath}/${fontName}\") format(\"woff2\")`;\n};\n\nexport const fontStyles = css`\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-ExtraLight-BETA\")};\n font-weight: 100;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Light-BETA\")};\n font-weight: 300;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Regular\")};\n font-weight: 400;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Medium\")};\n font-weight: 500;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-SemiBold\")};\n font-weight: 600;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-ExtraBold\")};\n font-weight: 900;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Alpha\";\n src: ${getFontSource(\"HMAlphaMono-Medium\")};\n font-weight: 500;\n font-style: normal;\n }\n`;\n\nexport const textVariantStyle: Record<\n TextVariants,\n {\n fontFamily: string;\n lineHeight?: string | number;\n fontWeight?: number;\n \"text-transform\"?: string;\n }\n> = {\n h1: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h1Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h2: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h2Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h3: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h3Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n },\n h4: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h4Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 600,\n },\n h5: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h5Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n },\n large: {\n fontFamily: \"Inter, Sans\",\n },\n largeLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n body: {\n fontFamily: \"Inter, Sans\",\n },\n bodyLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n paragraph: {\n fontFamily: \"Inter, Sans\",\n },\n paragraphLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n small: {\n fontFamily: \"Inter, Sans\",\n },\n extraSmall: {\n fontFamily: \"Inter, Sans\",\n },\n tiny: {\n fontFamily: \"Inter, Sans\",\n },\n micro: {\n fontFamily: \"Inter, Sans\",\n },\n subtitle: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 600,\n \"text-transform\": \"uppercase\",\n },\n};\n","import baseStyled, { BaseStyledProps } from \"../../styled\";\n\nconst FlexBox = baseStyled.div.attrs<BaseStyledProps, BaseStyledProps>({ display: \"flex\" })``;\nexport type FlexBoxProps = BaseStyledProps & React.HTMLAttributes<HTMLDivElement>;\n\nexport default FlexBox;\n","import React from \"react\";\nimport FlexBox from \"../../layout/Flex\";\n\nexport type Props = {\n /* Content displayed on the left side of the header. */\n left?: React.ReactNode;\n /* Content displayed on the right side of the header. */\n right?: React.ReactNode;\n /* Content displayed in the middle part - vertically centered. */\n children?: React.ReactNode;\n} & React.ComponentProps<typeof FlexBox>;\n\nexport default function ({ left, right, children, ...rest }: Props): JSX.Element {\n return (\n <FlexBox justifyContent=\"space-between\" {...rest}>\n {left}\n <FlexBox justify-content=\"center\">{children}</FlexBox>\n {right}\n </FlexBox>\n );\n}\n","import gaps from \"../styles/system/gaps\";\nimport styled, { StyledInterface, InterpolationFunction } from \"styled-components\";\nimport {\n compose,\n flexbox,\n FlexboxProps,\n space,\n SpaceProps,\n position,\n PositionProps,\n color,\n ColorProps,\n layout,\n LayoutProps,\n overflow,\n OverflowProps,\n border,\n BorderProps,\n} from \"styled-system\";\n\nexport type BaseStyledProps = SpaceProps &\n FlexboxProps &\n PositionProps &\n ColorProps &\n LayoutProps &\n BorderProps &\n OverflowProps & {\n /**\n * The columnGap CSS property sets the size of the gap (gutter) between an element's grid columns.\n */\n columnGap?: string | number;\n /**\n * The rowGap CSS property sets the size of the gap (gutter) between an element's grid rows.\n */\n rowGap?: string | number;\n color?: string;\n };\n\nexport const baseStyles: InterpolationFunction<unknown> = compose(\n flexbox,\n space,\n position,\n color,\n layout,\n overflow,\n gaps,\n border,\n);\n\nconst proxyStyled = new Proxy(styled, {\n apply(target: typeof styled, thisArg, argumentsList: Parameters<typeof styled>) {\n return styled(target.apply(thisArg, argumentsList)(baseStyles));\n },\n get(target, property: keyof typeof styled) {\n if (typeof target[property] === \"function\") {\n return styled(target[property].apply(styled, [baseStyles]));\n }\n return target[property];\n },\n});\n\nexport default <StyledInterface>proxyStyled;\n","import Color from \"color\";\n\nimport { fontFamilies } from \"./theme\";\n\nexport const rgba = (c: string, a: number): string => Color(c).alpha(a).rgb().toString();\n\nexport const darken = (c: string, a: number): string => Color(c).darken(a).toString();\n\nexport const lighten = (c: string, a: number): string => Color(c).lighten(a).toString();\n\nexport const mix = (c: string, b: string, a: number): string =>\n Color(c).mix(Color(b), a).toString();\n\nexport const ff = (v: string) => {\n const [font, type = \"Regular\"] = v.split(\"|\");\n // @ts-expect-error FIXME\n const { style, weight } = fontFamilies[font][type];\n // @ts-expect-error FIXME\n const fallback: string = fontFamilies[font].fallback ?? \"Arial\";\n\n return {\n fontFamily: `${font}, ${fallback}`,\n fontWeight: weight,\n fontStyle: style,\n };\n};\n\nexport const ensureContrast = (color1: string, color2: string) => {\n const colorL1 = Color(color1).luminosity() + 0.05;\n const colorL2 = Color(color2).luminosity() + 0.05;\n\n const lRatio = colorL1 > colorL2 ? colorL1 / colorL2 : colorL2 / colorL1;\n\n if (lRatio < 1.5) {\n return Color(color1).rotate(180).negate().string();\n }\n return color1;\n};\n","import { ff } from \"../helpers\";\n\nexport default (props: { ff?: string }) => {\n const prop = props.ff;\n\n if (prop == null) {\n return null;\n }\n\n return ff(prop);\n};\n","import { system } from \"styled-system\";\n\nconst gaps = system({\n rowGap: { property: \"rowGap\", scale: \"space\" },\n columnGap: { property: \"columnGap\", scale: \"space\" },\n});\n\nexport default gaps;\n","import { keyframes, css, Font } from \"styled-components\";\nimport { palettes, ColorPalette } from \"@ledgerhq/ui-shared\";\n\nexport type screensBreakpoints = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\";\n\nexport const breakpoints = {\n sm: \"640px\",\n md: \"768px\",\n lg: \"1024px\",\n xl: \"1280px\",\n xxl: \"1536px\",\n} as Record<screensBreakpoints, string>;\n\nexport const space = [\n /* space indexes:\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 */\n 0, 2, 4, 8, 10, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76,\n];\n\nexport type TextVariants =\n | \"h1\"\n | \"h1Inter\"\n | \"h2\"\n | \"h2Inter\"\n | \"h3\"\n | \"h3Inter\"\n | \"h4\"\n | \"h4Inter\"\n | \"h5\"\n | \"h5Inter\"\n | \"large\"\n | \"largeLineHeight\"\n | \"body\"\n | \"bodyLineHeight\"\n | \"paragraph\"\n | \"paragraphLineHeight\"\n | \"small\"\n | \"extraSmall\"\n | \"tiny\"\n | \"micro\"\n | \"subtitle\";\n\nexport type ThemeScale<Type, Aliases extends string> = Array<Type> & Record<Aliases, Type>;\n\nexport const fontSizes = [8, 10, 11, 12, 13, 14, 16, 20, 24, 28, 32, 36] as ThemeScale<\n number,\n TextVariants\n>;\n\n[\n fontSizes.micro,\n fontSizes.tiny,\n fontSizes.extraSmall,\n fontSizes.small,\n fontSizes.paragraph,\n fontSizes.body,\n fontSizes.large,\n fontSizes.h5,\n fontSizes.h4,\n fontSizes.h3,\n fontSizes.h2,\n fontSizes.h1,\n] = fontSizes;\nfontSizes.largeLineHeight = fontSizes.large;\nfontSizes.bodyLineHeight = fontSizes.body;\nfontSizes.paragraphLineHeight = fontSizes.paragraph;\nfontSizes.subtitle = fontSizes.extraSmall;\nfontSizes.h1Inter = fontSizes.h1;\nfontSizes.h2Inter = fontSizes.h2;\nfontSizes.h3Inter = fontSizes.h3;\nfontSizes.h4Inter = fontSizes.h4;\nfontSizes.h5Inter = fontSizes.h5;\n\nconst fontWeights = {\n extraLight: \"100\",\n light: \"300\",\n regular: \"400\",\n medium: \"500\",\n semiBold: \"600\",\n bold: \"700\",\n extraBold: \"800\",\n};\n\nexport const radii = [0, 4, 8, 12, 16, 20];\nexport const shadows = [\"0 4px 8px 0 rgba(0, 0, 0, 0.03)\"];\nexport const zIndexes = [-1, 0, 1, 9, 10, 90, 100, 900, 1000];\n\n// Those fonts are now defined in global.css, this is just a mapping for styled-system\nexport const fontFamilies = {\n Inter: {\n ExtraLight: {\n weight: 100,\n style: \"normal\",\n },\n Light: {\n weight: 300,\n style: \"normal\",\n },\n Regular: {\n weight: 400,\n style: \"normal\",\n },\n Medium: {\n weight: 500,\n style: \"normal\",\n },\n SemiBold: {\n weight: 600,\n style: \"normal\",\n },\n Bold: {\n weight: 700,\n style: \"normal\",\n },\n ExtraBold: {\n weight: 800,\n style: \"normal\",\n },\n },\n Alpha: {\n Medium: {\n weight: 500,\n style: \"normal\",\n },\n },\n};\n\nconst animationDuration = \"0.33s\";\nconst easings = {\n outQuadratic: \"cubic-bezier(0.25, 0.46, 0.45, 0.94)\",\n};\n\nconst transition = (\n properties = [\"all\"],\n duration = animationDuration,\n easing = easings.outQuadratic,\n) => css`\n transition-property: ${properties.join(\",\")};\n transition-duration: ${duration};\n transition-timing-function: ${easing};\n`;\n\nconst fadeIn = keyframes`\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n `;\nconst fadeOut = keyframes`\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n `;\nconst fadeInGrowX = keyframes`\n 0% {\n opacity: 0;\n transform: scaleX(0);\n }\n 100% {\n opacity: 1;\n transform: scaleX(1);\n }\n`;\nconst fadeInUp = keyframes`\n 0% {\n opacity: 0;\n transform: translateY(66%);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n `;\nconst animations = {\n fadeIn: () => css`\n ${fadeIn} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n fadeOut: () => css`\n ${fadeOut} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n fadeInGrowX: () => css`\n ${fadeInGrowX} 0.6s ${easings.outQuadratic} forwards\n `,\n fadeInUp: () => css`\n ${fadeInUp} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n};\nconst overflow = {\n x: css`\n overflow-y: hidden;\n overflow-x: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n y: css`\n overflow-x: hidden;\n overflow-y: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n yAuto: css`\n overflow-x: hidden;\n overflow-y: auto;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n xy: css`\n overflow: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n trackSize: 12,\n};\n\ninterface DefaultTheme {\n theme: \"dark\" | \"light\";\n animations: typeof animations;\n transition: typeof transition;\n overflow: typeof overflow;\n sizes: {\n topBarHeight: number;\n sideBarWidth: number;\n drawer: {\n side: {\n big: {\n width: number;\n };\n small: {\n width: number;\n };\n };\n popin: {\n min: {\n height: number;\n width: number;\n };\n max: {\n height: number;\n width: number;\n };\n };\n };\n };\n radii: number[];\n fontFamilies: Record<string, Record<string, Font>>;\n fontSizes: number[];\n space: number[];\n shadows: string[];\n colors: ColorPalette;\n fontWeights: Record<string, string>;\n breakpoints: Record<screensBreakpoints, string>;\n zIndexes: number[];\n}\n\nconst theme: DefaultTheme = {\n theme: \"light\",\n sizes: {\n drawer: {\n side: {\n big: {\n width: 580,\n },\n small: {\n width: 420,\n },\n },\n popin: {\n min: {\n height: 158,\n width: 462,\n },\n max: {\n height: 522,\n width: 622,\n },\n },\n },\n topBarHeight: 58,\n sideBarWidth: 230,\n },\n radii,\n fontFamilies,\n fontSizes,\n fontWeights,\n space,\n shadows,\n colors: palettes.light,\n animations,\n overflow,\n transition,\n zIndexes,\n breakpoints,\n};\n\nexport default theme;\nexport type Theme = DefaultTheme;\n","// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import HeaderComponent, { Props } from \"./index\";\n\nimport Icon from \"../../asorted/Icon\";\nimport Text from \"../../asorted/Text\";\nimport FlexBox from \"../../layout/Flex\";\nimport React from \"react\";\n\nexport default {\n title: \"Navigation/Header\",\n component: HeaderComponent,\n};\n\nexport const Header = (args: Props): JSX.Element => {\n const left = (\n <FlexBox alignItems=\"center\" style={{ columnGap: \"6px\" }}>\n <Icon name=\"ArrowLeft\" weight=\"Medium\" />\n <Text fontWeight=\"semiBold\" variant={\"paragraph\"}>\n Previous\n </Text>\n </FlexBox>\n );\n\n const right = (\n <FlexBox alignItems=\"center\" style={{ columnGap: \"8px\" }}>\n <Icon name=\"Linux\" size={20} />\n <Icon name=\"Apple\" size={20} />\n <Icon name=\"Windows\" size={20} />\n </FlexBox>\n );\n\n return (\n <HeaderComponent {...args} left={left} right={right} alignItems=\"center\">\n <Text variant={\"h3\"} textTransform=\"uppercase\">\n Ledger\n </Text>\n </HeaderComponent>\n );\n};\n"],"names":["icons","React","iconNames","Array","Object","set","rawKey","key","Set","Icon","name","size","color","weight","maybeIconName","Component","baseStyled","compose","fontSize","fontWeight","textAlign","lineHeight","letterSpacing","system","fontFamily","textVariantStyle","uppercase","value","Text","variant","props","p","css","getFontSource","fontsPath","fontName","fontStyles","FlexBox","left","right","children","rest","gaps","styled","flexbox","space","position","layout","overflow","border","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property","Color","fontFamilies","rgba","c","a","darken","lighten","mix","b","ff","v","font","type","style","fallback","ensureContrast","color1","color2","colorL1","colorL2","lRatio","prop","keyframes","palettes","breakpoints","fontSizes","fontWeights","radii","shadows","zIndexes","animationDuration","easings","transition","properties","duration","easing","fadeIn","fadeOut","fadeInGrowX","fadeInUp","animations","theme","HeaderComponent","Header","args"],"mappings":";;;;;;;;;;;AAAwD;AAC9B;AASnB,MAAME,YAAYC,MAAM,IAAI,CACjCC,OAAO,IAAI,CAACJ,+CAAKA,EAAE,MAAM,CAAC,CAACK,KAAKC;IAC9B,MAAMC,MAAMD,OAAO,OAAO,CAAC,mBAAmB;IAC9C,IAAI,CAACD,IAAI,GAAG,CAACE,MAAMF,IAAI,GAAG,CAACE;IAC3B,OAAOF;AACT,GAAG,IAAIG,QACP;AAEF,MAAMC,OAAO,CAAC,EACZC,IAAI,EACJC,OAAO,EAAE,EACTC,QAAQ,cAAc,EACtBC,SAAS,QAAQ,EACX;IACN,MAAMC,gBAAgB,GAAGJ,OAAOG,QAAQ;IACxC,IAAIC,iBAAiBd,+CAAKA,EAAE;QAC1B,+DAA+D;QAC/D,MAAMe,YAAYf,+CAAK,CAACc,cAAc;QACtC,qBAAO,+CAACC;YAAU,MAAMJ;YAAM,OAAOC;;IACvC;IACA,OAAO;AACT;AAEA,sDAAeH,IAAIA,EAAC;;;;;;;;;;;;;ACjCuC;AASpC;AACoC;AAEf;AAE5C,MAAMiB,YAAYH,yCAAMA,CAAC;IACvB,WAAW;QACT,UAAU;QACV,WAAWI,CAAAA,QAAUA,QAAQ,cAAc;IAC7C;AACF;AA4BA,MAAMC,OAAOZ,8CAAqB,CAChC,CAAC,EAAEa,UAAU,MAAM,EAAEX,QAAQ,EAAEN,KAAK,EAAE,GAAM;QAC1C,UAAUM,WAAWA,WAAWW;QAChC,OAAOjB,SAAS;IAClB,GACD,CAAC;;eAEa,EAA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;QAAQ,MAAM;sBACzB,+CAACA,yCAAIA;QAAC,MAAK;QAAQ,MAAM;sBACzB,+CAACA,yCAAIA;QAAC,MAAK;QAAU,MAAM;;IAI/B,qBACE,+CAAC0F,kCAAeA;QAAE,GAAGE,IAAI;QAAE,MAAM/D;QAAM,OAAOC;QAAO,YAAW;qBAC9D,+CAACX,yCAAIA;QAAC,SAAS;QAAM,eAAc;OAAY;AAKrD,EAAE"}
1
+ {"version":3,"file":"components/navigation/Header/Header.stories.js","sources":["webpack://@ledgerhq/react-ui/./src/components/asorted/Icon/Icon.tsx","webpack://@ledgerhq/react-ui/./src/components/asorted/Text/index.tsx","webpack://@ledgerhq/react-ui/./src/components/asorted/Text/styles.ts","webpack://@ledgerhq/react-ui/./src/components/layout/Flex/index.ts","webpack://@ledgerhq/react-ui/./src/components/navigation/Header/index.tsx","webpack://@ledgerhq/react-ui/./src/components/styled.ts","webpack://@ledgerhq/react-ui/./src/styles/helpers.ts","webpack://@ledgerhq/react-ui/./src/styles/styled/fontFamily.ts","webpack://@ledgerhq/react-ui/./src/styles/system/gaps.ts","webpack://@ledgerhq/react-ui/./src/styles/theme.ts","webpack://@ledgerhq/react-ui/webpack/runtime/compat_get_default_export","webpack://@ledgerhq/react-ui/webpack/runtime/define_property_getters","webpack://@ledgerhq/react-ui/webpack/runtime/has_own_property","webpack://@ledgerhq/react-ui/webpack/runtime/make_namespace_object","webpack://@ledgerhq/react-ui/./src/components/navigation/Header/Header.stories.tsx"],"sourcesContent":["import * as icons from \"@ledgerhq/icons-ui/reactLegacy\";\nimport React from \"react\";\n\nexport type Props = {\n name: string;\n size?: number;\n weight?: \"Medium\";\n color?: string;\n};\n\nexport const iconNames = Array.from(\n Object.keys(icons).reduce((set, rawKey) => {\n const key = rawKey.replace(/(.+)(Medium)+$/g, \"$1\");\n if (!set.has(key)) set.add(key);\n return set;\n }, new Set<string>()),\n);\n\nconst Icon = ({\n name,\n size = 16,\n color = \"currentColor\",\n weight = \"Medium\",\n}: Props): React.JSX.Element | null => {\n const maybeIconName = `${name}${weight}`;\n if (maybeIconName in icons) {\n // @ts-expect-error FIXME I don't know how to make you happy ts\n const Component = icons[maybeIconName];\n return <Component size={size} color={color} />;\n }\n return null;\n};\n\nexport default Icon;\n","import React from \"react\";\nimport baseStyled, { BaseStyledProps } from \"../../styled\";\nimport {\n compose,\n fontSize,\n fontWeight,\n textAlign,\n lineHeight,\n letterSpacing,\n system,\n} from \"styled-system\";\nimport fontFamily from \"../../../styles/styled/fontFamily\";\nimport { TextVariants } from \"../../../styles/theme\";\nimport { textVariantStyle } from \"./styles\";\n\nconst uppercase = system({\n uppercase: {\n property: \"textTransform\",\n transform: value => (value ? \"uppercase\" : \"none\"),\n },\n});\n\ntype FontFamilies =\n | \"Inter|ExtraLight\"\n | \"Inter|Light\"\n | \"Inter|Regular\"\n | \"Inter|Medium\"\n | \"Inter|SemiBold\"\n | \"Inter|Bold\"\n | \"Inter|ExtraBold\"\n | \"Alpha|Medium\";\n\ntype WhiteSpace = \"normal\" | \"nowrap\" | \"pre\" | \"pre-line\" | \"pre-wrap\";\n\nexport interface TextProps extends BaseStyledProps {\n fontFamily?: string;\n ff?: FontFamilies;\n fontSize?: number | string | TextVariants;\n variant?: TextVariants;\n textAlign?: string;\n fontWeight?: string;\n lineHeight?: string;\n textTransform?: string;\n textOverflow?: string;\n uppercase?: boolean;\n whiteSpace?: WhiteSpace;\n children?: React.ReactNode;\n}\n\nconst Text = baseStyled.span.attrs<TextProps, TextProps>(\n ({ variant = \"body\", fontSize, color }) => ({\n fontSize: fontSize ? fontSize : variant,\n color: color || \"neutral.c100\",\n }),\n)`\n font-weight: 500;\n white-space: ${props => props.whiteSpace ?? \"normal\"};\n ${(p: TextProps) => textVariantStyle[p.variant || \"body\"]}\n ${compose(\n uppercase,\n lineHeight,\n fontFamily,\n fontSize,\n textAlign,\n fontWeight,\n letterSpacing,\n system({\n textOverflow: true,\n }),\n )}\n ${p => (p.textTransform ? `text-transform: ${p.textTransform};` : \"\")}\n`;\n\nexport default Text;\n","import { GlobalStyleProps } from \"../../../styles/global\";\nimport { css } from \"styled-components\";\nimport { TextVariants } from \"../../../styles/theme\";\n\nconst getFontSource = (name: string) => (props: GlobalStyleProps) => {\n const fontsPath = props.fontsPath ?? \"assets/fonts\";\n const fontName = (props.fontMappings && props.fontMappings(name)) || `${name}.woff2`;\n return `url(\"${fontsPath}/${fontName}\") format(\"woff2\")`;\n};\n\nexport const fontStyles = css`\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-ExtraLight-BETA\")};\n font-weight: 100;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Light-BETA\")};\n font-weight: 300;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Regular\")};\n font-weight: 400;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Medium\")};\n font-weight: 500;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-SemiBold\")};\n font-weight: 600;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-ExtraBold\")};\n font-weight: 900;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Alpha\";\n src: ${getFontSource(\"HMAlphaMono-Medium\")};\n font-weight: 500;\n font-style: normal;\n }\n`;\n\nexport const textVariantStyle: Record<\n TextVariants,\n {\n fontFamily: string;\n lineHeight?: string | number;\n fontWeight?: number;\n \"text-transform\"?: string;\n }\n> = {\n h1: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h1Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h2: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h2Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h3: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h3Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n },\n h4: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h4Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 600,\n },\n h5: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h5Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n },\n large: {\n fontFamily: \"Inter, Sans\",\n },\n largeLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n body: {\n fontFamily: \"Inter, Sans\",\n },\n bodyLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n paragraph: {\n fontFamily: \"Inter, Sans\",\n },\n paragraphLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n small: {\n fontFamily: \"Inter, Sans\",\n },\n extraSmall: {\n fontFamily: \"Inter, Sans\",\n },\n tiny: {\n fontFamily: \"Inter, Sans\",\n },\n micro: {\n fontFamily: \"Inter, Sans\",\n },\n subtitle: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 600,\n \"text-transform\": \"uppercase\",\n },\n};\n","import baseStyled, { BaseStyledProps } from \"../../styled\";\n\nconst FlexBox = baseStyled.div.attrs<BaseStyledProps, BaseStyledProps>({ display: \"flex\" })``;\nexport type FlexBoxProps = BaseStyledProps & React.HTMLAttributes<HTMLDivElement>;\n\nexport default FlexBox;\n","import React from \"react\";\nimport FlexBox from \"../../layout/Flex\";\n\nexport type Props = {\n /* Content displayed on the left side of the header. */\n left?: React.ReactNode;\n /* Content displayed on the right side of the header. */\n right?: React.ReactNode;\n /* Content displayed in the middle part - vertically centered. */\n children?: React.ReactNode;\n} & React.ComponentProps<typeof FlexBox>;\n\nexport default function Header({\n left,\n right,\n children,\n ...rest\n}: Readonly<Props>): React.JSX.Element {\n return (\n <FlexBox justifyContent=\"space-between\" {...rest}>\n {left}\n <FlexBox justify-content=\"center\">{children}</FlexBox>\n {right}\n </FlexBox>\n );\n}\n","import React from \"react\";\nimport gaps from \"../styles/system/gaps\";\nimport styled, { StyledInterface, InterpolationFunction } from \"styled-components\";\nimport {\n compose,\n flexbox,\n FlexboxProps,\n space,\n SpaceProps,\n position,\n PositionProps,\n color,\n ColorProps,\n layout,\n LayoutProps,\n overflow,\n OverflowProps,\n border,\n BorderProps,\n} from \"styled-system\";\n\nexport type BaseStyledProps = SpaceProps &\n FlexboxProps &\n PositionProps &\n ColorProps &\n LayoutProps &\n BorderProps &\n OverflowProps & {\n /**\n * The columnGap CSS property sets the size of the gap (gutter) between an element's grid columns.\n */\n columnGap?: string | number;\n /**\n * The rowGap CSS property sets the size of the gap (gutter) between an element's grid rows.\n */\n rowGap?: string | number;\n color?: string;\n children?: React.ReactNode;\n };\n\nexport const baseStyles: InterpolationFunction<unknown> = compose(\n flexbox,\n space,\n position,\n color,\n layout,\n overflow,\n gaps,\n border,\n);\n\nconst proxyStyled = new Proxy(styled, {\n apply(target: typeof styled, thisArg, argumentsList: Parameters<typeof styled>) {\n return styled(target.apply(thisArg, argumentsList)(baseStyles));\n },\n get(target, property: keyof typeof styled) {\n if (typeof target[property] === \"function\") {\n return styled(target[property].apply(styled, [baseStyles]));\n }\n return target[property];\n },\n});\n\nexport default <StyledInterface>proxyStyled;\n","import Color from \"color\";\n\nimport { fontFamilies } from \"./theme\";\n\nexport const rgba = (c: string, a: number): string => Color(c).alpha(a).rgb().toString();\n\nexport const darken = (c: string, a: number): string => Color(c).darken(a).toString();\n\nexport const lighten = (c: string, a: number): string => Color(c).lighten(a).toString();\n\nexport const mix = (c: string, b: string, a: number): string =>\n Color(c).mix(Color(b), a).toString();\n\nexport const ff = (v: string) => {\n const [font, type = \"Regular\"] = v.split(\"|\");\n // @ts-expect-error FIXME\n const { style, weight } = fontFamilies[font][type];\n // @ts-expect-error FIXME\n const fallback: string = fontFamilies[font].fallback ?? \"Arial\";\n\n return {\n fontFamily: `${font}, ${fallback}`,\n fontWeight: weight,\n fontStyle: style,\n };\n};\n\nexport const ensureContrast = (color1: string, color2: string) => {\n const colorL1 = Color(color1).luminosity() + 0.05;\n const colorL2 = Color(color2).luminosity() + 0.05;\n\n const lRatio = colorL1 > colorL2 ? colorL1 / colorL2 : colorL2 / colorL1;\n\n if (lRatio < 1.5) {\n return Color(color1).rotate(180).negate().string();\n }\n return color1;\n};\n","import { ff } from \"../helpers\";\n\nexport default (props: { ff?: string }) => {\n const prop = props.ff;\n\n if (prop == null) {\n return null;\n }\n\n return ff(prop);\n};\n","import { system } from \"styled-system\";\n\nconst gaps = system({\n rowGap: { property: \"rowGap\", scale: \"space\" },\n columnGap: { property: \"columnGap\", scale: \"space\" },\n});\n\nexport default gaps;\n","import { keyframes, css, Font } from \"styled-components\";\nimport { palettes, ColorPalette } from \"@ledgerhq/ui-shared\";\n\nexport type screensBreakpoints = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\";\n\nexport const breakpoints = {\n sm: \"640px\",\n md: \"768px\",\n lg: \"1024px\",\n xl: \"1280px\",\n xxl: \"1536px\",\n} as Record<screensBreakpoints, string>;\n\nexport const space = [\n /* space indexes:\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 */\n 0, 2, 4, 8, 10, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76,\n];\n\nexport type TextVariants =\n | \"h1\"\n | \"h1Inter\"\n | \"h2\"\n | \"h2Inter\"\n | \"h3\"\n | \"h3Inter\"\n | \"h4\"\n | \"h4Inter\"\n | \"h5\"\n | \"h5Inter\"\n | \"large\"\n | \"largeLineHeight\"\n | \"body\"\n | \"bodyLineHeight\"\n | \"paragraph\"\n | \"paragraphLineHeight\"\n | \"small\"\n | \"extraSmall\"\n | \"tiny\"\n | \"micro\"\n | \"subtitle\";\n\nexport type ThemeScale<Type, Aliases extends string> = Array<Type> & Record<Aliases, Type>;\n\nexport const fontSizes = [8, 10, 11, 12, 13, 14, 16, 20, 24, 28, 32, 36] as ThemeScale<\n number,\n TextVariants\n>;\n\n[\n fontSizes.micro,\n fontSizes.tiny,\n fontSizes.extraSmall,\n fontSizes.small,\n fontSizes.paragraph,\n fontSizes.body,\n fontSizes.large,\n fontSizes.h5,\n fontSizes.h4,\n fontSizes.h3,\n fontSizes.h2,\n fontSizes.h1,\n] = fontSizes;\nfontSizes.largeLineHeight = fontSizes.large;\nfontSizes.bodyLineHeight = fontSizes.body;\nfontSizes.paragraphLineHeight = fontSizes.paragraph;\nfontSizes.subtitle = fontSizes.extraSmall;\nfontSizes.h1Inter = fontSizes.h1;\nfontSizes.h2Inter = fontSizes.h2;\nfontSizes.h3Inter = fontSizes.h3;\nfontSizes.h4Inter = fontSizes.h4;\nfontSizes.h5Inter = fontSizes.h5;\n\nconst fontWeights = {\n extraLight: \"100\",\n light: \"300\",\n regular: \"400\",\n medium: \"500\",\n semiBold: \"600\",\n bold: \"700\",\n extraBold: \"800\",\n};\n\nexport const radii = [0, 4, 8, 12, 16, 20];\nexport const shadows = [\"0 4px 8px 0 rgba(0, 0, 0, 0.03)\"];\nexport const zIndexes = [-1, 0, 1, 9, 10, 90, 100, 900, 1000];\n\n// Those fonts are now defined in global.css, this is just a mapping for styled-system\nexport const fontFamilies = {\n Inter: {\n ExtraLight: {\n weight: 100,\n style: \"normal\",\n },\n Light: {\n weight: 300,\n style: \"normal\",\n },\n Regular: {\n weight: 400,\n style: \"normal\",\n },\n Medium: {\n weight: 500,\n style: \"normal\",\n },\n SemiBold: {\n weight: 600,\n style: \"normal\",\n },\n Bold: {\n weight: 700,\n style: \"normal\",\n },\n ExtraBold: {\n weight: 800,\n style: \"normal\",\n },\n },\n Alpha: {\n Medium: {\n weight: 500,\n style: \"normal\",\n },\n },\n};\n\nconst animationDuration = \"0.33s\";\nconst easings = {\n outQuadratic: \"cubic-bezier(0.25, 0.46, 0.45, 0.94)\",\n};\n\nconst transition = (\n properties = [\"all\"],\n duration = animationDuration,\n easing = easings.outQuadratic,\n) => css`\n transition-property: ${properties.join(\",\")};\n transition-duration: ${duration};\n transition-timing-function: ${easing};\n`;\n\nconst fadeIn = keyframes`\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n `;\nconst fadeOut = keyframes`\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n `;\nconst fadeInGrowX = keyframes`\n 0% {\n opacity: 0;\n transform: scaleX(0);\n }\n 100% {\n opacity: 1;\n transform: scaleX(1);\n }\n`;\nconst fadeInUp = keyframes`\n 0% {\n opacity: 0;\n transform: translateY(66%);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n `;\nconst animations = {\n fadeIn: () => css`\n ${fadeIn} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n fadeOut: () => css`\n ${fadeOut} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n fadeInGrowX: () => css`\n ${fadeInGrowX} 0.6s ${easings.outQuadratic} forwards\n `,\n fadeInUp: () => css`\n ${fadeInUp} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n};\nconst overflow = {\n x: css`\n overflow-y: hidden;\n overflow-x: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n y: css`\n overflow-x: hidden;\n overflow-y: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n yAuto: css`\n overflow-x: hidden;\n overflow-y: auto;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n xy: css`\n overflow: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n trackSize: 12,\n};\n\ninterface DefaultTheme {\n theme: \"dark\" | \"light\";\n animations: typeof animations;\n transition: typeof transition;\n overflow: typeof overflow;\n sizes: {\n topBarHeight: number;\n sideBarWidth: number;\n drawer: {\n side: {\n big: {\n width: number;\n };\n small: {\n width: number;\n };\n };\n popin: {\n min: {\n height: number;\n width: number;\n };\n max: {\n height: number;\n width: number;\n };\n };\n };\n };\n radii: number[];\n fontFamilies: Record<string, Record<string, Font>>;\n fontSizes: number[];\n space: number[];\n shadows: string[];\n colors: ColorPalette;\n fontWeights: Record<string, string>;\n breakpoints: Record<screensBreakpoints, string>;\n zIndexes: number[];\n}\n\nconst theme: DefaultTheme = {\n theme: \"light\",\n sizes: {\n drawer: {\n side: {\n big: {\n width: 580,\n },\n small: {\n width: 420,\n },\n },\n popin: {\n min: {\n height: 158,\n width: 462,\n },\n max: {\n height: 522,\n width: 622,\n },\n },\n },\n topBarHeight: 58,\n sideBarWidth: 230,\n },\n radii,\n fontFamilies,\n fontSizes,\n fontWeights,\n space,\n shadows,\n colors: palettes.light,\n animations,\n overflow,\n transition,\n zIndexes,\n breakpoints,\n};\n\nexport default theme;\nexport type Theme = DefaultTheme;\n","// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import HeaderComponent, { Props } from \"./index\";\n\nimport Icon from \"../../asorted/Icon\";\nimport Text from \"../../asorted/Text\";\nimport FlexBox from \"../../layout/Flex\";\nimport React from \"react\";\n\nexport default {\n title: \"Navigation/Header\",\n component: HeaderComponent,\n};\n\nexport const Header = (args: Props): React.JSX.Element => {\n const left = (\n <FlexBox alignItems=\"center\" style={{ columnGap: \"6px\" }}>\n <Icon name=\"ArrowLeft\" weight=\"Medium\" />\n <Text fontWeight=\"semiBold\" variant={\"paragraph\"}>\n Previous\n </Text>\n </FlexBox>\n );\n\n const right = (\n <FlexBox alignItems=\"center\" style={{ columnGap: \"8px\" }}>\n <Icon name=\"Linux\" size={20} />\n <Icon name=\"Apple\" size={20} />\n <Icon name=\"Windows\" size={20} />\n </FlexBox>\n );\n\n return (\n <HeaderComponent {...args} left={left} right={right} alignItems=\"center\">\n <Text variant={\"h3\"} textTransform=\"uppercase\">\n Ledger\n </Text>\n </HeaderComponent>\n );\n};\n"],"names":["icons","React","iconNames","Array","Object","set","rawKey","key","Set","Icon","name","size","color","weight","maybeIconName","Component","baseStyled","compose","fontSize","fontWeight","textAlign","lineHeight","letterSpacing","system","fontFamily","textVariantStyle","uppercase","value","Text","variant","props","p","css","getFontSource","fontsPath","fontName","fontStyles","FlexBox","Header","left","right","children","rest","gaps","styled","flexbox","space","position","layout","overflow","border","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property","Color","fontFamilies","rgba","c","a","darken","lighten","mix","b","ff","v","font","type","style","fallback","ensureContrast","color1","color2","colorL1","colorL2","lRatio","prop","keyframes","palettes","breakpoints","fontSizes","fontWeights","radii","shadows","zIndexes","animationDuration","easings","transition","properties","duration","easing","fadeIn","fadeOut","fadeInGrowX","fadeInUp","animations","theme","HeaderComponent","args"],"mappings":";;;;;;;;;;;AAAwD;AAC9B;AASnB,MAAME,YAAYC,MAAM,IAAI,CACjCC,OAAO,IAAI,CAACJ,+CAAKA,EAAE,MAAM,CAAC,CAACK,KAAK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