@ledgerhq/react-ui 0.52.0 → 0.53.0-nightly.20260626030713

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 (521) hide show
  1. package/lib/cjs/assets/index.js +31 -21
  2. package/lib/cjs/assets/index.js.map +1 -1
  3. package/lib/cjs/assets/logos/LedgerLiveAltRegular.js +15 -9
  4. package/lib/cjs/assets/logos/LedgerLiveAltRegular.js.map +1 -1
  5. package/lib/cjs/assets/logos/LedgerLiveRegular.js +15 -9
  6. package/lib/cjs/assets/logos/LedgerLiveRegular.js.map +1 -1
  7. package/lib/cjs/assets/logos/index.js +25 -16
  8. package/lib/cjs/assets/logos/index.js.map +1 -1
  9. package/lib/cjs/components/Table/Columns.js +53 -33
  10. package/lib/cjs/components/Table/Columns.js.map +1 -1
  11. package/lib/cjs/components/Table/Table.stories.js +80 -54
  12. package/lib/cjs/components/Table/Table.stories.js.map +1 -1
  13. package/lib/cjs/components/Table/index.js +58 -36
  14. package/lib/cjs/components/Table/index.js.map +1 -1
  15. package/lib/cjs/components/Table/stories.helper.js +64 -40
  16. package/lib/cjs/components/Table/stories.helper.js.map +1 -1
  17. package/lib/cjs/components/Tag/Tag.stories.js +62 -41
  18. package/lib/cjs/components/Tag/Tag.stories.js.map +1 -1
  19. package/lib/cjs/components/Tag/index.js +47 -30
  20. package/lib/cjs/components/Tag/index.js.map +1 -1
  21. package/lib/cjs/components/animations/GlitchText/GlitchText.stories.js +69 -44
  22. package/lib/cjs/components/animations/GlitchText/GlitchText.stories.js.map +1 -1
  23. package/lib/cjs/components/animations/GlitchText/index.js +14 -9
  24. package/lib/cjs/components/animations/GlitchText/index.js.map +1 -1
  25. package/lib/cjs/components/asorted/Divider/Divider.stories.js +59 -37
  26. package/lib/cjs/components/asorted/Divider/Divider.stories.js.map +1 -1
  27. package/lib/cjs/components/asorted/Divider/index.js +53 -33
  28. package/lib/cjs/components/asorted/Divider/index.js.map +1 -1
  29. package/lib/cjs/components/asorted/Icon/BoxedIcon.js +34 -22
  30. package/lib/cjs/components/asorted/Icon/BoxedIcon.js.map +1 -1
  31. package/lib/cjs/components/asorted/Icon/BoxedIcon.stories.js +45 -29
  32. package/lib/cjs/components/asorted/Icon/BoxedIcon.stories.js.map +1 -1
  33. package/lib/cjs/components/asorted/Icon/Icon.js +16 -10
  34. package/lib/cjs/components/asorted/Icon/Icon.js.map +1 -1
  35. package/lib/cjs/components/asorted/Icon/Icons.stories.js +50 -32
  36. package/lib/cjs/components/asorted/Icon/Icons.stories.js.map +1 -1
  37. package/lib/cjs/components/asorted/Icon/IconsLegacy.stories.js +79 -55
  38. package/lib/cjs/components/asorted/Icon/IconsLegacy.stories.js.map +1 -1
  39. package/lib/cjs/components/asorted/Icon/NotificationIcon.js +28 -18
  40. package/lib/cjs/components/asorted/Icon/NotificationIcon.js.map +1 -1
  41. package/lib/cjs/components/asorted/Icon/NotificationIcon.stories.js +34 -22
  42. package/lib/cjs/components/asorted/Icon/NotificationIcon.stories.js.map +1 -1
  43. package/lib/cjs/components/asorted/Icon/index.js +45 -29
  44. package/lib/cjs/components/asorted/Icon/index.js.map +1 -1
  45. package/lib/cjs/components/asorted/Text/Text.stories.js +55 -35
  46. package/lib/cjs/components/asorted/Text/Text.stories.js.map +1 -1
  47. package/lib/cjs/components/asorted/Text/index.js +43 -27
  48. package/lib/cjs/components/asorted/Text/index.js.map +1 -1
  49. package/lib/cjs/components/asorted/Text/styles.js +16 -10
  50. package/lib/cjs/components/asorted/Text/styles.js.map +1 -1
  51. package/lib/cjs/components/asorted/index.js +72 -46
  52. package/lib/cjs/components/asorted/index.js.map +1 -1
  53. package/lib/cjs/components/cta/Button/Button.stories.js +65 -45
  54. package/lib/cjs/components/cta/Button/Button.stories.js.map +1 -1
  55. package/lib/cjs/components/cta/Button/index.js +40 -28
  56. package/lib/cjs/components/cta/Button/index.js.map +1 -1
  57. package/lib/cjs/components/cta/Link/Link.stories.js +55 -36
  58. package/lib/cjs/components/cta/Link/Link.stories.js.map +1 -1
  59. package/lib/cjs/components/cta/Link/getLinkStyle.js +14 -9
  60. package/lib/cjs/components/cta/Link/getLinkStyle.js.map +1 -1
  61. package/lib/cjs/components/cta/Link/index.js +53 -34
  62. package/lib/cjs/components/cta/Link/index.js.map +1 -1
  63. package/lib/cjs/components/cta/Toggle/Toggle.stories.js +47 -33
  64. package/lib/cjs/components/cta/Toggle/Toggle.stories.js.map +1 -1
  65. package/lib/cjs/components/cta/Toggle/index.js +45 -31
  66. package/lib/cjs/components/cta/Toggle/index.js.map +1 -1
  67. package/lib/cjs/components/cta/getCtaStyle.js +16 -10
  68. package/lib/cjs/components/cta/getCtaStyle.js.map +1 -1
  69. package/lib/cjs/components/cta/index.js +66 -45
  70. package/lib/cjs/components/cta/index.js.map +1 -1
  71. package/lib/cjs/components/form/BaseInput/Input.stories.js +70 -50
  72. package/lib/cjs/components/form/BaseInput/Input.stories.js.map +1 -1
  73. package/lib/cjs/components/form/BaseInput/index.js +62 -44
  74. package/lib/cjs/components/form/BaseInput/index.js.map +1 -1
  75. package/lib/cjs/components/form/Checkbox/Checkbox.js +43 -27
  76. package/lib/cjs/components/form/Checkbox/Checkbox.js.map +1 -1
  77. package/lib/cjs/components/form/Checkbox/Checkbox.stories.js +48 -32
  78. package/lib/cjs/components/form/Checkbox/Checkbox.stories.js.map +1 -1
  79. package/lib/cjs/components/form/Checkbox/index.js +47 -30
  80. package/lib/cjs/components/form/Checkbox/index.js.map +1 -1
  81. package/lib/cjs/components/form/Dropdown/Dropdown.stories.js +100 -72
  82. package/lib/cjs/components/form/Dropdown/Dropdown.stories.js.map +1 -1
  83. package/lib/cjs/components/form/Dropdown/index.js +94 -68
  84. package/lib/cjs/components/form/Dropdown/index.js.map +1 -1
  85. package/lib/cjs/components/form/LegendInput/Input.stories.js +72 -50
  86. package/lib/cjs/components/form/LegendInput/Input.stories.js.map +1 -1
  87. package/lib/cjs/components/form/LegendInput/index.js +66 -46
  88. package/lib/cjs/components/form/LegendInput/index.js.map +1 -1
  89. package/lib/cjs/components/form/NumberInput/Input.stories.js +70 -48
  90. package/lib/cjs/components/form/NumberInput/Input.stories.js.map +1 -1
  91. package/lib/cjs/components/form/NumberInput/index.js +64 -44
  92. package/lib/cjs/components/form/NumberInput/index.js.map +1 -1
  93. package/lib/cjs/components/form/QrCodeInput/Input.stories.js +67 -47
  94. package/lib/cjs/components/form/QrCodeInput/Input.stories.js.map +1 -1
  95. package/lib/cjs/components/form/QrCodeInput/index.js +59 -41
  96. package/lib/cjs/components/form/QrCodeInput/index.js.map +1 -1
  97. package/lib/cjs/components/form/QuantityInput/Input.stories.js +70 -48
  98. package/lib/cjs/components/form/QuantityInput/Input.stories.js.map +1 -1
  99. package/lib/cjs/components/form/QuantityInput/index.js +64 -44
  100. package/lib/cjs/components/form/QuantityInput/index.js.map +1 -1
  101. package/lib/cjs/components/form/Radio/Radio.stories.js +55 -37
  102. package/lib/cjs/components/form/Radio/Radio.stories.js.map +1 -1
  103. package/lib/cjs/components/form/Radio/RadioElement.js +52 -34
  104. package/lib/cjs/components/form/Radio/RadioElement.js.map +1 -1
  105. package/lib/cjs/components/form/Radio/RadioElement.stories.js +58 -38
  106. package/lib/cjs/components/form/Radio/RadioElement.stories.js.map +1 -1
  107. package/lib/cjs/components/form/Radio/RadioListElement.js +52 -34
  108. package/lib/cjs/components/form/Radio/RadioListElement.js.map +1 -1
  109. package/lib/cjs/components/form/Radio/RadioListElement.stories.js +58 -38
  110. package/lib/cjs/components/form/Radio/RadioListElement.stories.js.map +1 -1
  111. package/lib/cjs/components/form/Radio/index.js +52 -34
  112. package/lib/cjs/components/form/Radio/index.js.map +1 -1
  113. package/lib/cjs/components/form/SearchInput/Input.stories.js +67 -47
  114. package/lib/cjs/components/form/SearchInput/Input.stories.js.map +1 -1
  115. package/lib/cjs/components/form/SearchInput/index.js +59 -41
  116. package/lib/cjs/components/form/SearchInput/index.js.map +1 -1
  117. package/lib/cjs/components/form/SelectInput/Control.js +64 -45
  118. package/lib/cjs/components/form/SelectInput/Control.js.map +1 -1
  119. package/lib/cjs/components/form/SelectInput/DropdownIndicator.js +48 -31
  120. package/lib/cjs/components/form/SelectInput/DropdownIndicator.js.map +1 -1
  121. package/lib/cjs/components/form/SelectInput/IndicatorsContainer.js +29 -18
  122. package/lib/cjs/components/form/SelectInput/IndicatorsContainer.js.map +1 -1
  123. package/lib/cjs/components/form/SelectInput/MenuList.js +15 -10
  124. package/lib/cjs/components/form/SelectInput/MenuList.js.map +1 -1
  125. package/lib/cjs/components/form/SelectInput/Option.js +48 -31
  126. package/lib/cjs/components/form/SelectInput/Option.js.map +1 -1
  127. package/lib/cjs/components/form/SelectInput/Select.stories.js +102 -74
  128. package/lib/cjs/components/form/SelectInput/Select.stories.js.map +1 -1
  129. package/lib/cjs/components/form/SelectInput/ValueContainer.js +48 -31
  130. package/lib/cjs/components/form/SelectInput/ValueContainer.js.map +1 -1
  131. package/lib/cjs/components/form/SelectInput/index.js +94 -68
  132. package/lib/cjs/components/form/SelectInput/index.js.map +1 -1
  133. package/lib/cjs/components/form/SplitInput/SplitInput.stories.js +117 -86
  134. package/lib/cjs/components/form/SplitInput/SplitInput.stories.js.map +1 -1
  135. package/lib/cjs/components/form/SplitInput/index.js +63 -44
  136. package/lib/cjs/components/form/SplitInput/index.js.map +1 -1
  137. package/lib/cjs/components/form/Switch/Switch.js +53 -33
  138. package/lib/cjs/components/form/Switch/Switch.js.map +1 -1
  139. package/lib/cjs/components/form/Switch/Switch.stories.js +55 -35
  140. package/lib/cjs/components/form/Switch/Switch.stories.js.map +1 -1
  141. package/lib/cjs/components/form/Switch/index.js +56 -35
  142. package/lib/cjs/components/form/Switch/index.js.map +1 -1
  143. package/lib/cjs/components/form/TabSelector/TabSelector.stories.js +56 -36
  144. package/lib/cjs/components/form/TabSelector/TabSelector.stories.js.map +1 -1
  145. package/lib/cjs/components/form/TabSelector/index.js +48 -30
  146. package/lib/cjs/components/form/TabSelector/index.js.map +1 -1
  147. package/lib/cjs/components/form/index.js +138 -103
  148. package/lib/cjs/components/form/index.js.map +1 -1
  149. package/lib/cjs/components/helpers.js +15 -9
  150. package/lib/cjs/components/helpers.js.map +1 -1
  151. package/lib/cjs/components/index.js +398 -282
  152. package/lib/cjs/components/index.js.map +1 -1
  153. package/lib/cjs/components/layout/Banner/BannerCard/BannerCard.stories.js +90 -62
  154. package/lib/cjs/components/layout/Banner/BannerCard/BannerCard.stories.js.map +1 -1
  155. package/lib/cjs/components/layout/Banner/BannerCard/index.js +72 -49
  156. package/lib/cjs/components/layout/Banner/BannerCard/index.js.map +1 -1
  157. package/lib/cjs/components/layout/Banner/NotificationCard/NotificationCard.stories.js +78 -51
  158. package/lib/cjs/components/layout/Banner/NotificationCard/NotificationCard.stories.js.map +1 -1
  159. package/lib/cjs/components/layout/Banner/NotificationCard/index.js +61 -39
  160. package/lib/cjs/components/layout/Banner/NotificationCard/index.js.map +1 -1
  161. package/lib/cjs/components/layout/Box/Box.stories.js +27 -17
  162. package/lib/cjs/components/layout/Box/Box.stories.js.map +1 -1
  163. package/lib/cjs/components/layout/Box/index.js +25 -15
  164. package/lib/cjs/components/layout/Box/index.js.map +1 -1
  165. package/lib/cjs/components/layout/Carousel/Carousel.stories.js +117 -80
  166. package/lib/cjs/components/layout/Carousel/Carousel.stories.js.map +1 -1
  167. package/lib/cjs/components/layout/Carousel/ChevronArrow.js +14 -9
  168. package/lib/cjs/components/layout/Carousel/ChevronArrow.js.map +1 -1
  169. package/lib/cjs/components/layout/Carousel/Footer/Pagination/bullets.js +14 -9
  170. package/lib/cjs/components/layout/Carousel/Footer/Pagination/bullets.js.map +1 -1
  171. package/lib/cjs/components/layout/Carousel/Footer/Pagination/index.js +26 -17
  172. package/lib/cjs/components/layout/Carousel/Footer/Pagination/index.js.map +1 -1
  173. package/lib/cjs/components/layout/Carousel/Footer/Pagination/types.js +14 -9
  174. package/lib/cjs/components/layout/Carousel/Footer/Pagination/types.js.map +1 -1
  175. package/lib/cjs/components/layout/Carousel/Footer/Pagination/utils.js +19 -12
  176. package/lib/cjs/components/layout/Carousel/Footer/Pagination/utils.js.map +1 -1
  177. package/lib/cjs/components/layout/Carousel/Footer/index.js +41 -26
  178. package/lib/cjs/components/layout/Carousel/Footer/index.js.map +1 -1
  179. package/lib/cjs/components/layout/Carousel/Footer/variantContentCard.js +31 -20
  180. package/lib/cjs/components/layout/Carousel/Footer/variantContentCard.js.map +1 -1
  181. package/lib/cjs/components/layout/Carousel/Footer/variantDefault.js +31 -20
  182. package/lib/cjs/components/layout/Carousel/Footer/variantDefault.js.map +1 -1
  183. package/lib/cjs/components/layout/Carousel/index.js +45 -29
  184. package/lib/cjs/components/layout/Carousel/index.js.map +1 -1
  185. package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/PortfolioContentCard.stories.js +81 -56
  186. package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/PortfolioContentCard.stories.js.map +1 -1
  187. package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/index.js +73 -50
  188. package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/index.js.map +1 -1
  189. package/lib/cjs/components/layout/Drawer/Drawer.stories.js +78 -52
  190. package/lib/cjs/components/layout/Drawer/Drawer.stories.js.map +1 -1
  191. package/lib/cjs/components/layout/Drawer/index.js +76 -50
  192. package/lib/cjs/components/layout/Drawer/index.js.map +1 -1
  193. package/lib/cjs/components/layout/Flex/Flex.stories.js +27 -17
  194. package/lib/cjs/components/layout/Flex/Flex.stories.js.map +1 -1
  195. package/lib/cjs/components/layout/Flex/index.js +25 -15
  196. package/lib/cjs/components/layout/Flex/index.js.map +1 -1
  197. package/lib/cjs/components/layout/Grid/Grid.stories.js +55 -35
  198. package/lib/cjs/components/layout/Grid/Grid.stories.js.map +1 -1
  199. package/lib/cjs/components/layout/Grid/index.js +25 -15
  200. package/lib/cjs/components/layout/Grid/index.js.map +1 -1
  201. package/lib/cjs/components/layout/List/NumberedList/NumberedList.stories.js +66 -43
  202. package/lib/cjs/components/layout/List/NumberedList/NumberedList.stories.js.map +1 -1
  203. package/lib/cjs/components/layout/List/NumberedList/index.js +55 -36
  204. package/lib/cjs/components/layout/List/NumberedList/index.js.map +1 -1
  205. package/lib/cjs/components/layout/List/VerticalTimeline/TimelineIndicator.js +25 -15
  206. package/lib/cjs/components/layout/List/VerticalTimeline/TimelineIndicator.js.map +1 -1
  207. package/lib/cjs/components/layout/List/VerticalTimeline/TimelineItem.js +63 -41
  208. package/lib/cjs/components/layout/List/VerticalTimeline/TimelineItem.js.map +1 -1
  209. package/lib/cjs/components/layout/List/VerticalTimeline/VerticalTimeline.stories.js +86 -58
  210. package/lib/cjs/components/layout/List/VerticalTimeline/VerticalTimeline.stories.js.map +1 -1
  211. package/lib/cjs/components/layout/List/VerticalTimeline/index.js +63 -41
  212. package/lib/cjs/components/layout/List/VerticalTimeline/index.js.map +1 -1
  213. package/lib/cjs/components/layout/Popin/Popin.stories.js +74 -50
  214. package/lib/cjs/components/layout/Popin/Popin.stories.js.map +1 -1
  215. package/lib/cjs/components/layout/Popin/index.js +60 -40
  216. package/lib/cjs/components/layout/Popin/index.js.map +1 -1
  217. package/lib/cjs/components/layout/Side/Provider.js +18 -12
  218. package/lib/cjs/components/layout/Side/Provider.js.map +1 -1
  219. package/lib/cjs/components/layout/Side/Side.stories.js +99 -65
  220. package/lib/cjs/components/layout/Side/Side.stories.js.map +1 -1
  221. package/lib/cjs/components/layout/Side/index.js +86 -56
  222. package/lib/cjs/components/layout/Side/index.js.map +1 -1
  223. package/lib/cjs/components/layout/index.js +174 -117
  224. package/lib/cjs/components/layout/index.js.map +1 -1
  225. package/lib/cjs/components/loaders/InfiniteLoader/InfiniteLoader.stories.js +20 -13
  226. package/lib/cjs/components/loaders/InfiniteLoader/InfiniteLoader.stories.js.map +1 -1
  227. package/lib/cjs/components/loaders/InfiniteLoader/index.js +14 -9
  228. package/lib/cjs/components/loaders/InfiniteLoader/index.js.map +1 -1
  229. package/lib/cjs/components/loaders/ProgressLoader/ProgressLoader.stories.js +53 -34
  230. package/lib/cjs/components/loaders/ProgressLoader/ProgressLoader.stories.js.map +1 -1
  231. package/lib/cjs/components/loaders/ProgressLoader/index.js +47 -30
  232. package/lib/cjs/components/loaders/ProgressLoader/index.js.map +1 -1
  233. package/lib/cjs/components/loaders/index.js +56 -37
  234. package/lib/cjs/components/loaders/index.js.map +1 -1
  235. package/lib/cjs/components/message/Alert/Alert.stories.js +69 -48
  236. package/lib/cjs/components/message/Alert/Alert.stories.js.map +1 -1
  237. package/lib/cjs/components/message/Alert/index.js +48 -30
  238. package/lib/cjs/components/message/Alert/index.js.map +1 -1
  239. package/lib/cjs/components/message/ContinueOnDevice/ContinueOnDevice.stories.js +59 -37
  240. package/lib/cjs/components/message/ContinueOnDevice/ContinueOnDevice.stories.js.map +1 -1
  241. package/lib/cjs/components/message/ContinueOnDevice/index.js +53 -33
  242. package/lib/cjs/components/message/ContinueOnDevice/index.js.map +1 -1
  243. package/lib/cjs/components/message/Log/Brackets.js +31 -19
  244. package/lib/cjs/components/message/Log/Brackets.js.map +1 -1
  245. package/lib/cjs/components/message/Log/Log.stories.js +65 -41
  246. package/lib/cjs/components/message/Log/Log.stories.js.map +1 -1
  247. package/lib/cjs/components/message/Log/index.js +59 -37
  248. package/lib/cjs/components/message/Log/index.js.map +1 -1
  249. package/lib/cjs/components/message/Notification/Badge.js +14 -9
  250. package/lib/cjs/components/message/Notification/Badge.js.map +1 -1
  251. package/lib/cjs/components/message/Notification/Badge.stories.js +40 -25
  252. package/lib/cjs/components/message/Notification/Badge.stories.js.map +1 -1
  253. package/lib/cjs/components/message/Notification/Notification.stories.js +73 -47
  254. package/lib/cjs/components/message/Notification/Notification.stories.js.map +1 -1
  255. package/lib/cjs/components/message/Notification/index.js +62 -40
  256. package/lib/cjs/components/message/Notification/index.js.map +1 -1
  257. package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js +75 -47
  258. package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js.map +1 -1
  259. package/lib/cjs/components/message/StatusNotification/index.js +64 -40
  260. package/lib/cjs/components/message/StatusNotification/index.js.map +1 -1
  261. package/lib/cjs/components/message/Tip/Tip.stories.js +54 -34
  262. package/lib/cjs/components/message/Tip/Tip.stories.js.map +1 -1
  263. package/lib/cjs/components/message/Tip/index.js +48 -30
  264. package/lib/cjs/components/message/Tip/index.js.map +1 -1
  265. package/lib/cjs/components/message/Tooltip/Tooltip.stories.js +56 -36
  266. package/lib/cjs/components/message/Tooltip/Tooltip.stories.js.map +1 -1
  267. package/lib/cjs/components/message/Tooltip/index.js +43 -27
  268. package/lib/cjs/components/message/Tooltip/index.js.map +1 -1
  269. package/lib/cjs/components/message/Tooltip/styles.js +15 -9
  270. package/lib/cjs/components/message/Tooltip/styles.js.map +1 -1
  271. package/lib/cjs/components/message/index.js +87 -57
  272. package/lib/cjs/components/message/index.js.map +1 -1
  273. package/lib/cjs/components/navigation/Aside/Aside.stories.js +71 -46
  274. package/lib/cjs/components/navigation/Aside/Aside.stories.js.map +1 -1
  275. package/lib/cjs/components/navigation/Aside/index.js +29 -18
  276. package/lib/cjs/components/navigation/Aside/index.js.map +1 -1
  277. package/lib/cjs/components/navigation/Aside/stories.helper.js +16 -10
  278. package/lib/cjs/components/navigation/Aside/stories.helper.js.map +1 -1
  279. package/lib/cjs/components/navigation/Breadcrumb/Breadcrumb.stories.js +100 -72
  280. package/lib/cjs/components/navigation/Breadcrumb/Breadcrumb.stories.js.map +1 -1
  281. package/lib/cjs/components/navigation/Breadcrumb/index.js +94 -68
  282. package/lib/cjs/components/navigation/Breadcrumb/index.js.map +1 -1
  283. package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js +91 -61
  284. package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js.map +1 -1
  285. package/lib/cjs/components/navigation/FlowStepper/index.js +53 -33
  286. package/lib/cjs/components/navigation/FlowStepper/index.js.map +1 -1
  287. package/lib/cjs/components/navigation/Header/Header.stories.js +63 -40
  288. package/lib/cjs/components/navigation/Header/Header.stories.js.map +1 -1
  289. package/lib/cjs/components/navigation/Header/index.js +29 -18
  290. package/lib/cjs/components/navigation/Header/index.js.map +1 -1
  291. package/lib/cjs/components/navigation/index.js +149 -103
  292. package/lib/cjs/components/navigation/index.js.map +1 -1
  293. package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.js +48 -30
  294. package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.js.map +1 -1
  295. package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.stories.js +54 -34
  296. package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.stories.js.map +1 -1
  297. package/lib/cjs/components/navigation/progress/ProgressBar/index.js +51 -32
  298. package/lib/cjs/components/navigation/progress/ProgressBar/index.js.map +1 -1
  299. package/lib/cjs/components/navigation/progress/Stepper/Item.stories.js +54 -34
  300. package/lib/cjs/components/navigation/progress/Stepper/Item.stories.js.map +1 -1
  301. package/lib/cjs/components/navigation/progress/Stepper/ProgressSteps.stories.js +54 -34
  302. package/lib/cjs/components/navigation/progress/Stepper/ProgressSteps.stories.js.map +1 -1
  303. package/lib/cjs/components/navigation/progress/Stepper/index.js +48 -30
  304. package/lib/cjs/components/navigation/progress/Stepper/index.js.map +1 -1
  305. package/lib/cjs/components/navigation/progress/index.js +53 -33
  306. package/lib/cjs/components/navigation/progress/index.js.map +1 -1
  307. package/lib/cjs/components/navigation/sideBar/Item/Item.js +64 -40
  308. package/lib/cjs/components/navigation/sideBar/Item/Item.js.map +1 -1
  309. package/lib/cjs/components/navigation/sideBar/Item/Item.stories.js +67 -43
  310. package/lib/cjs/components/navigation/sideBar/Item/Item.stories.js.map +1 -1
  311. package/lib/cjs/components/navigation/sideBar/Item/index.js +66 -41
  312. package/lib/cjs/components/navigation/sideBar/Item/index.js.map +1 -1
  313. package/lib/cjs/components/navigation/sideBar/Logo/Logo.js +35 -21
  314. package/lib/cjs/components/navigation/sideBar/Logo/Logo.js.map +1 -1
  315. package/lib/cjs/components/navigation/sideBar/Logo/index.js +38 -23
  316. package/lib/cjs/components/navigation/sideBar/Logo/index.js.map +1 -1
  317. package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.js +85 -53
  318. package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.js.map +1 -1
  319. package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.stories.js +87 -55
  320. package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.stories.js.map +1 -1
  321. package/lib/cjs/components/navigation/sideBar/SideBar/index.js +88 -55
  322. package/lib/cjs/components/navigation/sideBar/SideBar/index.js.map +1 -1
  323. package/lib/cjs/components/navigation/sideBar/Toggle/Toggle.js +20 -12
  324. package/lib/cjs/components/navigation/sideBar/Toggle/Toggle.js.map +1 -1
  325. package/lib/cjs/components/navigation/sideBar/Toggle/index.js +24 -15
  326. package/lib/cjs/components/navigation/sideBar/Toggle/index.js.map +1 -1
  327. package/lib/cjs/components/navigation/sideBar/index.js +15 -9
  328. package/lib/cjs/components/navigation/sideBar/index.js.map +1 -1
  329. package/lib/cjs/components/styled.js +21 -13
  330. package/lib/cjs/components/styled.js.map +1 -1
  331. package/lib/cjs/components/styled.stories.js +22 -14
  332. package/lib/cjs/components/styled.stories.js.map +1 -1
  333. package/lib/cjs/components/tabs/Bar/Bar.stories.js +58 -37
  334. package/lib/cjs/components/tabs/Bar/Bar.stories.js.map +1 -1
  335. package/lib/cjs/components/tabs/Bar/index.js +29 -18
  336. package/lib/cjs/components/tabs/Bar/index.js.map +1 -1
  337. package/lib/cjs/components/tabs/Chip/Chip.stories.js +58 -37
  338. package/lib/cjs/components/tabs/Chip/Chip.stories.js.map +1 -1
  339. package/lib/cjs/components/tabs/Chip/index.js +29 -18
  340. package/lib/cjs/components/tabs/Chip/index.js.map +1 -1
  341. package/lib/cjs/components/tabs/Pill/Pill.stories.js +63 -40
  342. package/lib/cjs/components/tabs/Pill/Pill.stories.js.map +1 -1
  343. package/lib/cjs/components/tabs/Pill/index.js +29 -18
  344. package/lib/cjs/components/tabs/Pill/index.js.map +1 -1
  345. package/lib/cjs/components/tabs/Tabs/Tabs.stories.js +62 -40
  346. package/lib/cjs/components/tabs/Tabs/Tabs.stories.js.map +1 -1
  347. package/lib/cjs/components/tabs/Tabs/index.js +56 -36
  348. package/lib/cjs/components/tabs/Tabs/index.js.map +1 -1
  349. package/lib/cjs/components/tabs/index.js +75 -51
  350. package/lib/cjs/components/tabs/index.js.map +1 -1
  351. package/lib/cjs/components/transitions/TransitionInOut.js +15 -9
  352. package/lib/cjs/components/transitions/TransitionInOut.js.map +1 -1
  353. package/lib/cjs/components/transitions/TransitionScale.js +15 -9
  354. package/lib/cjs/components/transitions/TransitionScale.js.map +1 -1
  355. package/lib/cjs/components/transitions/TransitionSlide.js +15 -9
  356. package/lib/cjs/components/transitions/TransitionSlide.js.map +1 -1
  357. package/lib/cjs/components/transitions/index.js +31 -20
  358. package/lib/cjs/components/transitions/index.js.map +1 -1
  359. package/lib/cjs/helpers.js +15 -9
  360. package/lib/cjs/helpers.js.map +1 -1
  361. package/lib/cjs/index.js +409 -291
  362. package/lib/cjs/index.js.map +1 -1
  363. package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.js +106 -73
  364. package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.js.map +1 -1
  365. package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.stories.js +111 -78
  366. package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.stories.js.map +1 -1
  367. package/lib/cjs/pre-ldls/components/AccountList/AccountList.js +117 -81
  368. package/lib/cjs/pre-ldls/components/AccountList/AccountList.js.map +1 -1
  369. package/lib/cjs/pre-ldls/components/AccountList/AccountList.stories.js +119 -83
  370. package/lib/cjs/pre-ldls/components/AccountList/AccountList.stories.js.map +1 -1
  371. package/lib/cjs/pre-ldls/components/Address/Address.js +80 -54
  372. package/lib/cjs/pre-ldls/components/Address/Address.js.map +1 -1
  373. package/lib/cjs/pre-ldls/components/Address/Address.stories.js +85 -60
  374. package/lib/cjs/pre-ldls/components/Address/Address.stories.js.map +1 -1
  375. package/lib/cjs/pre-ldls/components/Address/formatAddress.js +15 -9
  376. package/lib/cjs/pre-ldls/components/Address/formatAddress.js.map +1 -1
  377. package/lib/cjs/pre-ldls/components/Address/tests/formatAddress.test.js +15 -9
  378. package/lib/cjs/pre-ldls/components/Address/tests/formatAddress.test.js.map +1 -1
  379. package/lib/cjs/pre-ldls/components/CardButton/CardButton.js +24 -16
  380. package/lib/cjs/pre-ldls/components/CardButton/CardButton.js.map +1 -1
  381. package/lib/cjs/pre-ldls/components/CardButton/CardButton.stories.js +28 -20
  382. package/lib/cjs/pre-ldls/components/CardButton/CardButton.stories.js.map +1 -1
  383. package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.js +19 -13
  384. package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.js.map +1 -1
  385. package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.stories.js +27 -19
  386. package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.stories.js.map +1 -1
  387. package/lib/cjs/pre-ldls/components/Tag/Tag.js +57 -37
  388. package/lib/cjs/pre-ldls/components/Tag/Tag.js.map +1 -1
  389. package/lib/cjs/pre-ldls/components/Tag/Tag.stories.js +58 -38
  390. package/lib/cjs/pre-ldls/components/Tag/Tag.stories.js.map +1 -1
  391. package/lib/cjs/pre-ldls/components/TextInput/TextInput.js +34 -22
  392. package/lib/cjs/pre-ldls/components/TextInput/TextInput.js.map +1 -1
  393. package/lib/cjs/pre-ldls/components/TextInput/TextInput.stories.js +47 -33
  394. package/lib/cjs/pre-ldls/components/TextInput/TextInput.stories.js.map +1 -1
  395. package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.js +29 -18
  396. package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.js.map +1 -1
  397. package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.stories.js +35 -24
  398. package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.stories.js.map +1 -1
  399. package/lib/cjs/pre-ldls/components/index.js +136 -611
  400. package/lib/cjs/pre-ldls/components/index.js.map +1 -1
  401. package/lib/cjs/pre-ldls/components/sharedStoryBook.js +64 -42
  402. package/lib/cjs/pre-ldls/components/sharedStoryBook.js.map +1 -1
  403. package/lib/cjs/pre-ldls/index.js +137 -619
  404. package/lib/cjs/pre-ldls/index.js.map +1 -1
  405. package/lib/cjs/pre-ldls/libs/design-tokens.js +19 -13
  406. package/lib/cjs/pre-ldls/libs/design-tokens.js.map +1 -1
  407. package/lib/cjs/pre-ldls/libs/index.js +17 -11
  408. package/lib/cjs/pre-ldls/libs/index.js.map +1 -1
  409. package/lib/cjs/styles/InvertTheme.js +15 -9
  410. package/lib/cjs/styles/InvertTheme.js.map +1 -1
  411. package/lib/cjs/styles/Spacing.stories.js +54 -34
  412. package/lib/cjs/styles/Spacing.stories.js.map +1 -1
  413. package/lib/cjs/styles/StyleProvider.js +33 -21
  414. package/lib/cjs/styles/StyleProvider.js.map +1 -1
  415. package/lib/cjs/styles/breakpoints.stories.js +54 -34
  416. package/lib/cjs/styles/breakpoints.stories.js.map +1 -1
  417. package/lib/cjs/styles/global.js +28 -18
  418. package/lib/cjs/styles/global.js.map +1 -1
  419. package/lib/cjs/styles/helpers.js +18 -12
  420. package/lib/cjs/styles/helpers.js.map +1 -1
  421. package/lib/cjs/styles/index.js +37 -25
  422. package/lib/cjs/styles/index.js.map +1 -1
  423. package/lib/cjs/styles/palettes/colors.stories.js +54 -34
  424. package/lib/cjs/styles/palettes/colors.stories.js.map +1 -1
  425. package/lib/cjs/styles/styled/fontFamily.js +23 -15
  426. package/lib/cjs/styles/styled/fontFamily.js.map +1 -1
  427. package/lib/cjs/styles/system/gaps.js +15 -9
  428. package/lib/cjs/styles/system/gaps.js.map +1 -1
  429. package/lib/cjs/styles/theme.js +22 -16
  430. package/lib/cjs/styles/theme.js.map +1 -1
  431. package/lib/pre-ldls/components/index.d.ts +0 -8
  432. package/lib/pre-ldls/components/index.d.ts.map +1 -1
  433. package/lib/pre-ldls/components/index.js +0 -8
  434. package/lib/pre-ldls/components/index.js.map +1 -1
  435. package/package.json +15 -15
  436. package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.js +0 -1835
  437. package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.js.map +0 -1
  438. package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.stories.js +0 -1999
  439. package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.stories.js.map +0 -1
  440. package/lib/cjs/pre-ldls/components/AssetList/AssetList.js +0 -2109
  441. package/lib/cjs/pre-ldls/components/AssetList/AssetList.js.map +0 -1
  442. package/lib/cjs/pre-ldls/components/AssetList/AssetList.stories.js +0 -2297
  443. package/lib/cjs/pre-ldls/components/AssetList/AssetList.stories.js.map +0 -1
  444. package/lib/cjs/pre-ldls/components/Input/Input.js +0 -1183
  445. package/lib/cjs/pre-ldls/components/Input/Input.js.map +0 -1
  446. package/lib/cjs/pre-ldls/components/Input/Input.stories.js +0 -1241
  447. package/lib/cjs/pre-ldls/components/Input/Input.stories.js.map +0 -1
  448. package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.js +0 -1794
  449. package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.js.map +0 -1
  450. package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.stories.js +0 -1849
  451. package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.stories.js.map +0 -1
  452. package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.js +0 -1793
  453. package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.js.map +0 -1
  454. package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.stories.js +0 -1852
  455. package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.stories.js.map +0 -1
  456. package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.js +0 -1788
  457. package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.js.map +0 -1
  458. package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.stories.js +0 -1924
  459. package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.stories.js.map +0 -1
  460. package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.js +0 -2057
  461. package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.js.map +0 -1
  462. package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.stories.js +0 -2116
  463. package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.stories.js.map +0 -1
  464. package/lib/cjs/pre-ldls/components/Search/Search.js +0 -1288
  465. package/lib/cjs/pre-ldls/components/Search/Search.js.map +0 -1
  466. package/lib/cjs/pre-ldls/components/Search/Search.stories.js +0 -1350
  467. package/lib/cjs/pre-ldls/components/Search/Search.stories.js.map +0 -1
  468. package/lib/cjs/pre-ldls/hooks/index.js +0 -110
  469. package/lib/cjs/pre-ldls/hooks/index.js.map +0 -1
  470. package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.js +0 -101
  471. package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.js.map +0 -1
  472. package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.stories.js +0 -184
  473. package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.stories.js.map +0 -1
  474. package/lib/pre-ldls/components/AssetItem/AssetItem.d.ts +0 -17
  475. package/lib/pre-ldls/components/AssetItem/AssetItem.d.ts.map +0 -1
  476. package/lib/pre-ldls/components/AssetItem/AssetItem.js +0 -76
  477. package/lib/pre-ldls/components/AssetItem/AssetItem.js.map +0 -1
  478. package/lib/pre-ldls/components/AssetList/AssetList.d.ts +0 -11
  479. package/lib/pre-ldls/components/AssetList/AssetList.d.ts.map +0 -1
  480. package/lib/pre-ldls/components/AssetList/AssetList.js +0 -8
  481. package/lib/pre-ldls/components/AssetList/AssetList.js.map +0 -1
  482. package/lib/pre-ldls/components/Input/Input.d.ts +0 -5
  483. package/lib/pre-ldls/components/Input/Input.d.ts.map +0 -1
  484. package/lib/pre-ldls/components/Input/Input.js +0 -31
  485. package/lib/pre-ldls/components/Input/Input.js.map +0 -1
  486. package/lib/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.d.ts +0 -5
  487. package/lib/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.d.ts.map +0 -1
  488. package/lib/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.js +0 -34
  489. package/lib/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.js.map +0 -1
  490. package/lib/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.stories.d.ts +0 -10
  491. package/lib/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.stories.d.ts.map +0 -1
  492. package/lib/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.stories.js +0 -20
  493. package/lib/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.stories.js.map +0 -1
  494. package/lib/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.d.ts +0 -6
  495. package/lib/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.d.ts.map +0 -1
  496. package/lib/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.js +0 -32
  497. package/lib/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.js.map +0 -1
  498. package/lib/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.stories.d.ts +0 -10
  499. package/lib/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.stories.d.ts.map +0 -1
  500. package/lib/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.stories.js +0 -20
  501. package/lib/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.stories.js.map +0 -1
  502. package/lib/pre-ldls/components/NetworkItem/NetworkItem.d.ts +0 -14
  503. package/lib/pre-ldls/components/NetworkItem/NetworkItem.d.ts.map +0 -1
  504. package/lib/pre-ldls/components/NetworkItem/NetworkItem.js +0 -43
  505. package/lib/pre-ldls/components/NetworkItem/NetworkItem.js.map +0 -1
  506. package/lib/pre-ldls/components/NetworkList/NetworkList.d.ts +0 -7
  507. package/lib/pre-ldls/components/NetworkList/NetworkList.d.ts.map +0 -1
  508. package/lib/pre-ldls/components/NetworkList/NetworkList.js +0 -8
  509. package/lib/pre-ldls/components/NetworkList/NetworkList.js.map +0 -1
  510. package/lib/pre-ldls/components/Search/Search.d.ts +0 -10
  511. package/lib/pre-ldls/components/Search/Search.d.ts.map +0 -1
  512. package/lib/pre-ldls/components/Search/Search.js +0 -47
  513. package/lib/pre-ldls/components/Search/Search.js.map +0 -1
  514. package/lib/pre-ldls/hooks/index.d.ts +0 -2
  515. package/lib/pre-ldls/hooks/index.d.ts.map +0 -1
  516. package/lib/pre-ldls/hooks/index.js +0 -2
  517. package/lib/pre-ldls/hooks/index.js.map +0 -1
  518. package/lib/pre-ldls/hooks/useDebouncedCallback.d.ts +0 -2
  519. package/lib/pre-ldls/hooks/useDebouncedCallback.d.ts.map +0 -1
  520. package/lib/pre-ldls/hooks/useDebouncedCallback.js +0 -16
  521. package/lib/pre-ldls/hooks/useDebouncedCallback.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"components/styled.js","sources":["webpack://@ledgerhq/react-ui/./src/styles/system/gaps.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/styled.ts"],"sourcesContent":["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","// 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 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"],"names":["system","gaps","styled","compose","flexbox","space","position","color","layout","overflow","border","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property"],"mappings":";;;;;;;;;AAAuC;AAEvC,MAAMC,OAAOD,yCAAMA,CAAC;IAClB,QAAQ;QAAE,UAAU;QAAU,OAAO;IAAQ;IAC7C,WAAW;QAAE,UAAU;QAAa,OAAO;IAAQ;AACrD;AAEA,sDAAeC,IAAIA,EAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACPpB;AACA;AACA;AACA;AACA;AACA,iCAAiC,WAAW;AAC5C;AACA;;;;;ACPA;AACA;AACA;AACA,kDAAkD,wCAAwC;AAC1F;AACA;AACA,E;;;;ACNA,wF;;;;ACAA;AACA;AACA;AACA,uDAAuD,iBAAiB;AACxE;AACA,gDAAgD,aAAa;AAC7D,E;;;;;;;;;;;;;;;ACLyC;AAC0C;AAiB5D;AAqBhB,MAAMU,aAA6CR,0CAAOA,CAC/DC,sCAAOA,EACPC,oCAAKA,EACLC,uCAAQA,EACRC,oCAAKA,EACLC,qCAAMA,EACNC,uCAAQA,EACRR,+CAAIA,EACJS,qCAAMA,EACN;AAEF,MAAME,cAAc,IAAIC,MAAMX,8CAAMA,EAAE;IACpC,OAAMY,MAAqB,EAAEC,OAAO,EAAEC,aAAwC;QAC5E,OAAOd,4CAAMA,CAACY,OAAO,KAAK,CAACC,SAASC,eAAeL;IACrD;IACA,KAAIG,MAAM,EAAEG,QAA6B;QACvC,IAAI,OAAOH,MAAM,CAACG,SAAS,KAAK,YAAY;YAC1C,OAAOf,4CAAMA,CAACY,MAAM,CAACG,SAAS,CAAC,KAAK,CAACf,8CAAMA,EAAE;gBAACS;aAAW;QAC3D;QACA,OAAOG,MAAM,CAACG,SAAS;IACzB;AACF;AAEA,sDAAgCL,WAAWA,EAAC"}
1
+ {"version":3,"file":"components/styled.js","sources":["webpack://@ledgerhq/react-ui/./src/styles/system/gaps.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/styled.ts"],"sourcesContent":["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","// 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, getters, values) => {\n\tvar define = (defs, kind) => {\n\t\tfor(var key in defs) {\n\t\t\tif(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {\n\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });\n\t\t\t}\n\t\t}\n\t};\n\tdefine(getters, \"get\");\n\tdefine(values, \"value\");\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 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"],"names":["system","gaps","styled","compose","flexbox","space","position","color","layout","overflow","border","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property"],"mappings":";;;;;;AAAuC;AAEvC,MAAMC,OAAOD,yCAAMA,CAAC;IAClB,QAAQ;QAAE,UAAU;QAAU,OAAO;IAAQ;IAC7C,WAAW;QAAE,UAAU;QAAa,OAAO;IAAQ;AACrD;AAEA,sDAAeC,IAAIA,EAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACPpB;AACA;AACA;AACA;AACA;AACA,iCAAiC,WAAW;AAC5C;AACA;;;;;ACPA;AACA;AACA;AACA;AACA,0CAA0C,qCAAqC;AAC/E;AACA;AACA;AACA;AACA;AACA,E;;;;ACVA,wF;;;;ACAA;AACA;AACA;AACA,uDAAuD,iBAAiB;AACxE;AACA,gDAAgD,aAAa;AAC7D,E;;;;;;;;;;;ACLyC;AAC0C;AAiB5D;AAqBhB,MAAMU,aAA6CR,0CAAOA,CAC/DC,sCAAOA,EACPC,oCAAKA,EACLC,uCAAQA,EACRC,oCAAKA,EACLC,qCAAMA,EACNC,uCAAQA,EACRR,+CAAIA,EACJS,qCAAMA,EACN;AAEF,MAAME,cAAc,IAAIC,MAAMX,8CAAMA,EAAE;IACpC,OAAMY,MAAqB,EAAEC,OAAO,EAAEC,aAAwC;QAC5E,OAAOd,4CAAMA,CAACY,OAAO,KAAK,CAACC,SAASC,eAAeL;IACrD;IACA,KAAIG,MAAM,EAAEG,QAA6B;QACvC,IAAI,OAAOH,MAAM,CAACG,SAAS,KAAK,YAAY;YAC1C,OAAOf,4CAAMA,CAACY,MAAM,CAACG,SAAS,CAAC,KAAK,CAACf,8CAAMA,EAAE;gBAACS;aAAW;QAC3D;QACA,OAAOG,MAAM,CAACG,SAAS;IACzB;AACF;AAEA,sDAAgCL,WAAWA,EAAC"}
@@ -2,9 +2,6 @@
2
2
  "use strict";
3
3
  var __webpack_modules__ = ({
4
4
  7680(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
5
- __webpack_require__.d(__webpack_exports__, {
6
- "default": () => (__rspack_default_export)
7
- });
8
5
  /* import */ var _styles_system_gaps__rspack_import_2 = __webpack_require__(4182);
9
6
  /* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
10
7
  /* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
@@ -29,12 +26,14 @@ const proxyStyled = new Proxy((styled_components__rspack_import_0_default()), {
29
26
  });
30
27
  /* export default */ const __rspack_default_export = (proxyStyled);
31
28
 
29
+ __webpack_require__.d(__webpack_exports__, {
30
+ }, {
31
+ "default": __rspack_default_export
32
+ });
33
+
32
34
 
33
35
  },
34
36
  4182(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
35
- __webpack_require__.d(__webpack_exports__, {
36
- "default": () => (__rspack_default_export)
37
- });
38
37
  /* import */ var styled_system__rspack_import_0 = __webpack_require__(9351);
39
38
  /* import */ var styled_system__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_0);
40
39
 
@@ -50,6 +49,11 @@ const gaps = (0,styled_system__rspack_import_0.system)({
50
49
  });
51
50
  /* export default */ const __rspack_default_export = (gaps);
52
51
 
52
+ __webpack_require__.d(__webpack_exports__, {
53
+ }, {
54
+ "default": __rspack_default_export
55
+ });
56
+
53
57
 
54
58
  },
55
59
  2770(module) {
@@ -99,12 +103,16 @@ __webpack_require__.n = (module) => {
99
103
  })();
100
104
  // webpack/runtime/define_property_getters
101
105
  (() => {
102
- __webpack_require__.d = (exports, definition) => {
103
- for(var key in definition) {
104
- if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
105
- Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
106
- }
107
- }
106
+ __webpack_require__.d = (exports, getters, values) => {
107
+ var define = (defs, kind) => {
108
+ for(var key in defs) {
109
+ if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
110
+ Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
111
+ }
112
+ }
113
+ };
114
+ define(getters, "get");
115
+ define(values, "value");
108
116
  };
109
117
  })();
110
118
  // webpack/runtime/has_own_property
@@ -129,8 +137,8 @@ __webpack_require__.r(__webpack_exports__);
129
137
 
130
138
  // EXPORTS
131
139
  __webpack_require__.d(__webpack_exports__, {
132
- "default": () => (/* binding */ styled_stories),
133
- Styled: () => (/* binding */ Styled)
140
+ Styled: () => (/* binding */ Styled),
141
+ "default": () => (/* binding */ styled_stories)
134
142
  });
135
143
 
136
144
  ;// CONCATENATED MODULE: external "react"
@@ -1 +1 @@
1
- {"version":3,"file":"components/styled.stories.js","sources":["webpack://@ledgerhq/react-ui/./src/components/styled.ts","webpack://@ledgerhq/react-ui/./src/styles/system/gaps.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/styled.stories.tsx"],"sourcesContent":["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 { 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","// 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 baseStyled, { BaseStyledProps } from \"./styled\";\n\nexport default {\n title: \"Styled/BaseStyled\",\n argTypes: {\n backgroundColor: {\n type: \"text\",\n control: \"color\",\n description:\n \"This property defines the backgroundColor of the box. This property any color format.\",\n },\n width: {\n type: \"text\",\n description: \"Width of the box.\",\n },\n py: {\n type: \"text\",\n description: \"Padding top and bottom.\",\n },\n mx: {\n type: \"text\",\n description: \"Margin left and right.\",\n },\n },\n args: {\n backgroundColor: \"#0EBDCD\",\n width: \"200px\",\n py: \"20px\",\n px: \"20px\",\n mx: \"20px\",\n },\n parameters: {\n docs: {\n description: {\n component: `The baseStyled function is a wrapper to \"styled\" from [styled-components](https://styled-components.com/) that lets you write these common css properties to your component more succinctly and inline.\n \nIt acts like a drop-in remplacement of styled. In your styled component, just replace styled with baseStyled, and the component will includes all the style props exported by the color, layout, position, shadow and flexbox utilities from the [styled-system](https://styled-system.com) library.\n \n[See more about styled-system utilities](https://styled-system.com/api)`,\n },\n },\n },\n};\n\nconst Block = baseStyled.div``;\n\nexport const Styled = (args: BaseStyledProps) => (\n <Block {...args}>\n A plain good ol'block with fixed width, backgroundColor, padding and margin, all by using inline\n props\n </Block>\n);\n"],"names":["gaps","styled","compose","flexbox","space","position","color","layout","overflow","border","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property","system","React","baseStyled","Block","Styled","args"],"mappings":";;;;;;;;;;;;AACyC;AAC0C;AAiB5D;AAqBhB,MAAMU,aAA6CR,0CAAOA,CAC/DC,sCAAOA,EACPC,oCAAKA,EACLC,uCAAQA,EACRC,oCAAKA,EACLC,qCAAMA,EACNC,uCAAQA,EACRR,+CAAIA,EACJS,qCAAMA,EACN;AAEF,MAAME,cAAc,IAAIC,MAAMX,8CAAMA,EAAE;IACpC,OAAMY,MAAqB,EAAEC,OAAO,EAAEC,aAAwC;QAC5E,OAAOd,4CAAMA,CAACY,OAAO,KAAK,CAACC,SAASC,eAAeL;IACrD;IACA,KAAIG,MAAM,EAAEG,QAA6B;QACvC,IAAI,OAAOH,MAAM,CAACG,SAAS,KAAK,YAAY;YAC1C,OAAOf,4CAAMA,CAACY,MAAM,CAACG,SAAS,CAAC,KAAK,CAACf,8CAAMA,EAAE;gBAACS;aAAW;QAC3D;QACA,OAAOG,MAAM,CAACG,SAAS;IACzB;AACF;AAEA,sDAAgCL,WAAWA,EAAC;;;;;;;;;;AC/DL;AAEvC,MAAMX,OAAOiB,yCAAMA,CAAC;IAClB,QAAQ;QAAE,UAAU;QAAU,OAAO;IAAQ;IAC7C,WAAW;QAAE,UAAU;QAAa,OAAO;IAAQ;AACrD;AAEA,sDAAejB,IAAIA,EAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACPpB;AACA;AACA;AACA;AACA;AACA,iCAAiC,WAAW;AAC5C;AACA;;;;;ACPA;AACA;AACA;AACA,kDAAkD,wCAAwC;AAC1F;AACA;AACA,E;;;;ACNA,wF;;;;ACAA;AACA;AACA;AACA,uDAAuD,iBAAiB;AACxE;AACA,gDAAgD,aAAa;AAC7D,E;;;;;;;;;;;;;;;;;;;;ACN0B;AAC6B;AAEvD,6CAAe;IACb,OAAO;IACP,UAAU;QACR,iBAAiB;YACf,MAAM;YACN,SAAS;YACT,aACE;QACJ;QACA,OAAO;YACL,MAAM;YACN,aAAa;QACf;QACA,IAAI;YACF,MAAM;YACN,aAAa;QACf;QACA,IAAI;YACF,MAAM;YACN,aAAa;QACf;IACF;IACA,MAAM;QACJ,iBAAiB;QACjB,OAAO;QACP,IAAI;QACJ,IAAI;QACJ,IAAI;IACN;IACA,YAAY;QACV,MAAM;YACJ,aAAa;gBACX,WAAW,CAAC;;;;uEAImD,CAAC;YAClE;QACF;IACF;AACF,CAAC,EAAC;AAEF,MAAMoB,QAAQD,qBAAc,CAAC,CAAC;AAEvB,MAAME,SAAS,CAACC,qBACrB,uCAACF,OAAUE,MAAM,0GAIjB"}
1
+ {"version":3,"file":"components/styled.stories.js","sources":["webpack://@ledgerhq/react-ui/./src/components/styled.ts","webpack://@ledgerhq/react-ui/./src/styles/system/gaps.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/styled.stories.tsx"],"sourcesContent":["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 { 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","// 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, getters, values) => {\n\tvar define = (defs, kind) => {\n\t\tfor(var key in defs) {\n\t\t\tif(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {\n\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });\n\t\t\t}\n\t\t}\n\t};\n\tdefine(getters, \"get\");\n\tdefine(values, \"value\");\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 baseStyled, { BaseStyledProps } from \"./styled\";\n\nexport default {\n title: \"Styled/BaseStyled\",\n argTypes: {\n backgroundColor: {\n type: \"text\",\n control: \"color\",\n description:\n \"This property defines the backgroundColor of the box. This property any color format.\",\n },\n width: {\n type: \"text\",\n description: \"Width of the box.\",\n },\n py: {\n type: \"text\",\n description: \"Padding top and bottom.\",\n },\n mx: {\n type: \"text\",\n description: \"Margin left and right.\",\n },\n },\n args: {\n backgroundColor: \"#0EBDCD\",\n width: \"200px\",\n py: \"20px\",\n px: \"20px\",\n mx: \"20px\",\n },\n parameters: {\n docs: {\n description: {\n component: `The baseStyled function is a wrapper to \"styled\" from [styled-components](https://styled-components.com/) that lets you write these common css properties to your component more succinctly and inline.\n \nIt acts like a drop-in remplacement of styled. In your styled component, just replace styled with baseStyled, and the component will includes all the style props exported by the color, layout, position, shadow and flexbox utilities from the [styled-system](https://styled-system.com) library.\n \n[See more about styled-system utilities](https://styled-system.com/api)`,\n },\n },\n },\n};\n\nconst Block = baseStyled.div``;\n\nexport const Styled = (args: BaseStyledProps) => (\n <Block {...args}>\n A plain good ol'block with fixed width, backgroundColor, padding and margin, all by using inline\n props\n </Block>\n);\n"],"names":["gaps","styled","compose","flexbox","space","position","color","layout","overflow","border","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property","system","React","baseStyled","Block","Styled","args"],"mappings":";;;;;;;;;AACyC;AAC0C;AAiB5D;AAqBhB,MAAMU,aAA6CR,0CAAOA,CAC/DC,sCAAOA,EACPC,oCAAKA,EACLC,uCAAQA,EACRC,oCAAKA,EACLC,qCAAMA,EACNC,uCAAQA,EACRR,+CAAIA,EACJS,qCAAMA,EACN;AAEF,MAAME,cAAc,IAAIC,MAAMX,8CAAMA,EAAE;IACpC,OAAMY,MAAqB,EAAEC,OAAO,EAAEC,aAAwC;QAC5E,OAAOd,4CAAMA,CAACY,OAAO,KAAK,CAACC,SAASC,eAAeL;IACrD;IACA,KAAIG,MAAM,EAAEG,QAA6B;QACvC,IAAI,OAAOH,MAAM,CAACG,SAAS,KAAK,YAAY;YAC1C,OAAOf,4CAAMA,CAACY,MAAM,CAACG,SAAS,CAAC,KAAK,CAACf,8CAAMA,EAAE;gBAACS;aAAW;QAC3D;QACA,OAAOG,MAAM,CAACG,SAAS;IACzB;AACF;AAEA,sDAAgCL,WAAWA,EAAC;;;;;;;;;;;;AC/DL;AAEvC,MAAMX,OAAOiB,yCAAMA,CAAC;IAClB,QAAQ;QAAE,UAAU;QAAU,OAAO;IAAQ;IAC7C,WAAW;QAAE,UAAU;QAAa,OAAO;IAAQ;AACrD;AAEA,sDAAejB,IAAIA,EAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACPpB;AACA;AACA;AACA;AACA;AACA,iCAAiC,WAAW;AAC5C;AACA;;;;;ACPA;AACA;AACA;AACA;AACA,0CAA0C,qCAAqC;AAC/E;AACA;AACA;AACA;AACA;AACA,E;;;;ACVA,wF;;;;ACAA;AACA;AACA;AACA,uDAAuD,iBAAiB;AACxE;AACA,gDAAgD,aAAa;AAC7D,E;;;;;;;;;;;;;;;;;;;;ACN0B;AAC6B;AAEvD,6CAAe;IACb,OAAO;IACP,UAAU;QACR,iBAAiB;YACf,MAAM;YACN,SAAS;YACT,aACE;QACJ;QACA,OAAO;YACL,MAAM;YACN,aAAa;QACf;QACA,IAAI;YACF,MAAM;YACN,aAAa;QACf;QACA,IAAI;YACF,MAAM;YACN,aAAa;QACf;IACF;IACA,MAAM;QACJ,iBAAiB;QACjB,OAAO;QACP,IAAI;QACJ,IAAI;QACJ,IAAI;IACN;IACA,YAAY;QACV,MAAM;YACJ,aAAa;gBACX,WAAW,CAAC;;;;uEAImD,CAAC;YAClE;QACF;IACF;AACF,CAAC,EAAC;AAEF,MAAMoB,QAAQD,qBAAc,CAAC,CAAC;AAEvB,MAAME,SAAS,CAACC,qBACrB,uCAACF,OAAUE,MAAM,0GAIjB"}
@@ -2,9 +2,6 @@
2
2
  "use strict";
3
3
  var __webpack_modules__ = ({
4
4
  348(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
5
- __webpack_require__.d(__webpack_exports__, {
6
- "default": () => (__rspack_default_export)
7
- });
8
5
  /* import */ var react__rspack_import_0 = __webpack_require__(2015);
9
6
  /* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
10
7
  /* import */ var _styled__rspack_import_2 = __webpack_require__(7680);
@@ -37,12 +34,14 @@ const Text = _styled__rspack_import_2["default"].span.attrs(({ variant = "body",
37
34
  `;
38
35
  /* export default */ const __rspack_default_export = (Text);
39
36
 
37
+ __webpack_require__.d(__webpack_exports__, {
38
+ }, {
39
+ "default": __rspack_default_export
40
+ });
41
+
40
42
 
41
43
  },
42
44
  4368(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
43
- __webpack_require__.d(__webpack_exports__, {
44
- textVariantStyle: () => (textVariantStyle)
45
- });
46
45
  /* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
47
46
  /* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
48
47
 
@@ -189,12 +188,14 @@ const textVariantStyle = {
189
188
  }
190
189
  };
191
190
 
191
+ __webpack_require__.d(__webpack_exports__, {
192
+ }, {
193
+ textVariantStyle: textVariantStyle
194
+ });
195
+
192
196
 
193
197
  },
194
198
  3696(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
195
- __webpack_require__.d(__webpack_exports__, {
196
- "default": () => (__rspack_default_export)
197
- });
198
199
  /* import */ var _styled__rspack_import_0 = __webpack_require__(7680);
199
200
 
200
201
  const FlexBox = _styled__rspack_import_0["default"].div.attrs({
@@ -203,12 +204,14 @@ const FlexBox = _styled__rspack_import_0["default"].div.attrs({
203
204
  })``;
204
205
  /* export default */ const __rspack_default_export = (FlexBox);
205
206
 
207
+ __webpack_require__.d(__webpack_exports__, {
208
+ }, {
209
+ "default": __rspack_default_export
210
+ });
211
+
206
212
 
207
213
  },
208
214
  7680(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
209
- __webpack_require__.d(__webpack_exports__, {
210
- "default": () => (__rspack_default_export)
211
- });
212
215
  /* import */ var _styles_system_gaps__rspack_import_2 = __webpack_require__(4182);
213
216
  /* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
214
217
  /* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
@@ -233,12 +236,14 @@ const proxyStyled = new Proxy((styled_components__rspack_import_0_default()), {
233
236
  });
234
237
  /* export default */ const __rspack_default_export = (proxyStyled);
235
238
 
239
+ __webpack_require__.d(__webpack_exports__, {
240
+ }, {
241
+ "default": __rspack_default_export
242
+ });
243
+
236
244
 
237
245
  },
238
246
  8530(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
239
- __webpack_require__.d(__webpack_exports__, {
240
- "default": () => (BarTabs)
241
- });
242
247
  /* import */ var react__rspack_import_0 = __webpack_require__(2015);
243
248
  /* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
244
249
  /* import */ var styled_components__rspack_import_1 = __webpack_require__(2770);
@@ -276,16 +281,20 @@ function BarTabs({ children, onTabChange, initialActiveIndex }) {
276
281
  }, child)));
277
282
  }
278
283
 
284
+ __webpack_require__.d(__webpack_exports__, {
285
+ "default": () => (BarTabs)
286
+ });
287
+
279
288
 
280
289
  },
281
- 4336(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
290
+ 205(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
282
291
 
283
292
  // EXPORTS
284
293
  __webpack_require__.d(__webpack_exports__, {
285
294
  ff: () => (/* binding */ ff)
286
295
  });
287
296
 
288
- // UNUSED EXPORTS: darken, ensureContrast, mix, rgba, lighten
297
+ // UNUSED EXPORTS: darken, ensureContrast, lighten, mix, rgba
289
298
 
290
299
  ;// CONCATENATED MODULE: external "color"
291
300
  const external_color_namespaceObject = require("color");
@@ -323,10 +332,7 @@ const ensureContrast = (color1, color2)=>{
323
332
 
324
333
  },
325
334
  3364(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
326
- __webpack_require__.d(__webpack_exports__, {
327
- "default": () => (__rspack_default_export)
328
- });
329
- /* import */ var _helpers__rspack_import_0 = __webpack_require__(4336);
335
+ /* import */ var _helpers__rspack_import_0 = __webpack_require__(205);
330
336
 
331
337
  /* export default */ const __rspack_default_export = ((props)=>{
332
338
  const prop = props.ff;
@@ -336,12 +342,14 @@ __webpack_require__.d(__webpack_exports__, {
336
342
  return (0,_helpers__rspack_import_0.ff)(prop);
337
343
  });
338
344
 
345
+ __webpack_require__.d(__webpack_exports__, {
346
+ }, {
347
+ "default": __rspack_default_export
348
+ });
349
+
339
350
 
340
351
  },
341
352
  4182(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
342
- __webpack_require__.d(__webpack_exports__, {
343
- "default": () => (__rspack_default_export)
344
- });
345
353
  /* import */ var styled_system__rspack_import_0 = __webpack_require__(9351);
346
354
  /* import */ var styled_system__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_0);
347
355
 
@@ -357,12 +365,14 @@ const gaps = (0,styled_system__rspack_import_0.system)({
357
365
  });
358
366
  /* export default */ const __rspack_default_export = (gaps);
359
367
 
368
+ __webpack_require__.d(__webpack_exports__, {
369
+ }, {
370
+ "default": __rspack_default_export
371
+ });
372
+
360
373
 
361
374
  },
362
375
  5548(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
363
- __webpack_require__.d(__webpack_exports__, {
364
- fontFamilies: () => (fontFamilies)
365
- });
366
376
  /* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
367
377
  /* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
368
378
  /* import */ var _ledgerhq_ui_shared__rspack_import_1 = __webpack_require__(2993);
@@ -631,6 +641,11 @@ const theme = {
631
641
  };
632
642
  /* unused export default */ var __rspack_default_export = ((/* unused pure expression or super */ null && (theme)));
633
643
 
644
+ __webpack_require__.d(__webpack_exports__, {
645
+ }, {
646
+ fontFamilies: fontFamilies
647
+ });
648
+
634
649
 
635
650
  },
636
651
  2993(module) {
@@ -688,12 +703,16 @@ __webpack_require__.n = (module) => {
688
703
  })();
689
704
  // webpack/runtime/define_property_getters
690
705
  (() => {
691
- __webpack_require__.d = (exports, definition) => {
692
- for(var key in definition) {
693
- if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
694
- Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
695
- }
696
- }
706
+ __webpack_require__.d = (exports, getters, values) => {
707
+ var define = (defs, kind) => {
708
+ for(var key in defs) {
709
+ if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
710
+ Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
711
+ }
712
+ }
713
+ };
714
+ define(getters, "get");
715
+ define(values, "value");
697
716
  };
698
717
  })();
699
718
  // webpack/runtime/has_own_property
@@ -714,10 +733,6 @@ var __webpack_exports__ = {};
714
733
  // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
715
734
  (() => {
716
735
  __webpack_require__.r(__webpack_exports__);
717
- __webpack_require__.d(__webpack_exports__, {
718
- Graph: () => (Graph),
719
- "default": () => (__rspack_default_export)
720
- });
721
736
  /* import */ var react__rspack_import_0 = __webpack_require__(2015);
722
737
  /* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
723
738
  /* import */ var _index__rspack_import_1 = __webpack_require__(8530);
@@ -779,6 +794,12 @@ Graph.args = {
779
794
  initialActiveIndex: 1
780
795
  };
781
796
 
797
+ __webpack_require__.d(__webpack_exports__, {
798
+ }, {
799
+ Graph: Graph,
800
+ "default": __rspack_default_export
801
+ });
802
+
782
803
  })();
783
804
 
784
805
  module.exports = __webpack_exports__;
@@ -1 +1 @@
1
- {"version":3,"file":"components/tabs/Bar/Bar.stories.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/styled.ts","webpack://@ledgerhq/react-ui/./src/components/tabs/Bar/index.tsx","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/tabs/Bar/Bar.stories.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>({\n display: \"flex\",\n minWidth: 0,\n})``;\nexport type FlexBoxProps = BaseStyledProps & React.HTMLAttributes<HTMLDivElement>;\n\nexport default FlexBox;\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, { useState } from \"react\";\nimport styled from \"styled-components\";\nimport Flex from \"../../layout/Flex\";\n\nexport type Props = React.PropsWithChildren<{\n /**\n * An optional callback that will be called when the active tab changes.\n */\n onTabChange?: (activeIndex: number) => void;\n /**\n * The tab index to mark as active when rendering for the first time.\n * If omitted, then initially no tabs will be selected.\n */\n initialActiveIndex?: number;\n}>;\ntype ItemProps = {\n active: boolean;\n};\n\nconst Bar = styled.div`\n display: inline-flex;\n border: 1px solid ${p => p.theme.colors.neutral.c40};\n border-radius: 33px;\n padding: 2px;\n`;\n\nconst Item = styled(Flex).attrs({\n flex: 1,\n justifyContent: \"center\",\n alignItems: \"center\",\n})<ItemProps>`\n cursor: pointer;\n padding: 8px 12px 8px 12px;\n border-radius: 33px;\n color: ${p => (p.active ? p.theme.colors.neutral.c00 : p.theme.colors.neutral.c80)};\n background-color: ${p => (p.active ? p.theme.colors.neutral.c100 : \"unset\")};\n`;\n\nexport default function BarTabs({\n children,\n onTabChange,\n initialActiveIndex,\n}: Props): React.JSX.Element {\n const [activeIndex, setActiveIndex] = useState(initialActiveIndex);\n return (\n <Bar>\n {React.Children.toArray(children).map((child, index) => (\n <Item\n key={index}\n active={index === activeIndex}\n onClick={() => {\n setActiveIndex(index);\n onTabChange && onTabChange(index);\n }}\n >\n {child}\n </Item>\n ))}\n </Bar>\n );\n}\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,\n 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, { useState } from \"react\";\n\nimport BarTabs, { Props } from \"./index\";\nimport Text from \"../../asorted/Text\";\n\nexport default {\n title: \"Tabs/Graph\",\n component: BarTabs,\n argTypes: {\n initialActiveIndex: {\n control: { type: \"number\" },\n },\n },\n};\n\nconst navItems = [\"One\", \"Two\", \"Three\", \"Four\", \"Five\"];\n\nfunction Sample({ children, ...args }: Props) {\n const [activeIndex, setActiveIndex] = useState(args.initialActiveIndex);\n return (\n <div style={{ marginBottom: \"10px\" }}>\n <div style={{ width: \"100px\" }}>\n <BarTabs {...args} onTabChange={setActiveIndex}>\n {children}\n </BarTabs>\n </div>\n <Text variant=\"subtitle\">Active index: {activeIndex}</Text>\n <hr />\n </div>\n );\n}\n\nexport const Graph = (args: Props): React.ReactNode[] =>\n navItems.reduce<React.ReactNode[]>((acc, _, index) => {\n const labels = [\n navItems.slice(0, index + 1).map(label => (\n <Text color=\"inherit\" variant=\"small\">\n {label}\n </Text>\n )),\n ];\n return [\n ...acc,\n <Sample {...args} key={index}>\n {labels}\n </Sample>,\n ];\n }, []);\n\nGraph.args = {\n initialActiveIndex: 1,\n};\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","gaps","styled","flexbox","space","position","layout","overflow","border","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property","useState","Flex","Bar","Item","BarTabs","children","onTabChange","initialActiveIndex","activeIndex","setActiveIndex","child","index","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","navItems","Sample","args","Graph","acc","_","labels","label"],"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,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,4CAAaA,EACbC,yCAAMA,CAAC;IACL,cAAc;AAChB,IACA;EACF,EAAES,CAAAA,IAAMA,EAAE,aAAa,GAAG,CAAC,gBAAgB,EAAEA,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,GAAI;AACxE,CAAC;AAED,sDAAeJ,IAAIA,EAAC;;;;;;;;;;ACxEoB;AAGxC,MAAMM,gBAAgB,CAACC,OAAiB,CAACJ;QACvC,MAAMK,YAAYL,MAAM,SAAS,IAAI;QACrC,MAAMM,WAAYN,MAAM,YAAY,IAAIA,MAAM,YAAY,CAACI,SAAU,GAAGA,KAAK,MAAM,CAAC;QACpF,OAAO,CAAC,KAAK,EAAEC,UAAU,CAAC,EAAEC,SAAS,kBAAkB,CAAC;IAC1D;AAEO,MAAMC,aAAaL,0CAAG,CAAC;;;SAGrB,EAAEC,cAAc,yBAAyB;;;;;;;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AW,kBAAemC,4BACxC,+CAAC;AAGP;AAEO,MAAMkD,QAAQ,CAACD,OACpBF,SAAS,MAAM,CAAoB,CAACI,KAAKC,GAAGjD;QAC1C,MAAMkD,SAAS;YACbN,SAAS,KAAK,CAAC,GAAG5C,QAAQ,GAAG,GAAG,CAACmD,CAAAA,sBAC/B,+CAACzF,yCAAIA;oBAAC,OAAM;oBAAU,SAAQ;mBAC3ByF;SAGN;QACD,OAAO;eACFH;0BACH,+CAACH;gBAAQ,GAAGC,IAAI;gBAAE,KAAK9C;eACpBkD;SAEJ;IACH,GAAG,EAAE,EAAE;AAETH,MAAM,IAAI,GAAG;IACX,oBAAoB;AACtB"}
1
+ {"version":3,"file":"components/tabs/Bar/Bar.stories.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/styled.ts","webpack://@ledgerhq/react-ui/./src/components/tabs/Bar/index.tsx","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/tabs/Bar/Bar.stories.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>({\n display: \"flex\",\n minWidth: 0,\n})``;\nexport type FlexBoxProps = BaseStyledProps & React.HTMLAttributes<HTMLDivElement>;\n\nexport default FlexBox;\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, { useState } from \"react\";\nimport styled from \"styled-components\";\nimport Flex from \"../../layout/Flex\";\n\nexport type Props = React.PropsWithChildren<{\n /**\n * An optional callback that will be called when the active tab changes.\n */\n onTabChange?: (activeIndex: number) => void;\n /**\n * The tab index to mark as active when rendering for the first time.\n * If omitted, then initially no tabs will be selected.\n */\n initialActiveIndex?: number;\n}>;\ntype ItemProps = {\n active: boolean;\n};\n\nconst Bar = styled.div`\n display: inline-flex;\n border: 1px solid ${p => p.theme.colors.neutral.c40};\n border-radius: 33px;\n padding: 2px;\n`;\n\nconst Item = styled(Flex).attrs({\n flex: 1,\n justifyContent: \"center\",\n alignItems: \"center\",\n})<ItemProps>`\n cursor: pointer;\n padding: 8px 12px 8px 12px;\n border-radius: 33px;\n color: ${p => (p.active ? p.theme.colors.neutral.c00 : p.theme.colors.neutral.c80)};\n background-color: ${p => (p.active ? p.theme.colors.neutral.c100 : \"unset\")};\n`;\n\nexport default function BarTabs({\n children,\n onTabChange,\n initialActiveIndex,\n}: Props): React.JSX.Element {\n const [activeIndex, setActiveIndex] = useState(initialActiveIndex);\n return (\n <Bar>\n {React.Children.toArray(children).map((child, index) => (\n <Item\n key={index}\n active={index === activeIndex}\n onClick={() => {\n setActiveIndex(index);\n onTabChange && onTabChange(index);\n }}\n >\n {child}\n </Item>\n ))}\n </Bar>\n );\n}\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,\n 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, getters, values) => {\n\tvar define = (defs, kind) => {\n\t\tfor(var key in defs) {\n\t\t\tif(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {\n\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });\n\t\t\t}\n\t\t}\n\t};\n\tdefine(getters, \"get\");\n\tdefine(values, \"value\");\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, { useState } from \"react\";\n\nimport BarTabs, { Props } from \"./index\";\nimport Text from \"../../asorted/Text\";\n\nexport default {\n title: \"Tabs/Graph\",\n component: BarTabs,\n argTypes: {\n initialActiveIndex: {\n control: { type: \"number\" },\n },\n },\n};\n\nconst navItems = [\"One\", \"Two\", \"Three\", \"Four\", \"Five\"];\n\nfunction Sample({ children, ...args }: Props) {\n const [activeIndex, setActiveIndex] = useState(args.initialActiveIndex);\n return (\n <div style={{ marginBottom: \"10px\" }}>\n <div style={{ width: \"100px\" }}>\n <BarTabs {...args} onTabChange={setActiveIndex}>\n {children}\n </BarTabs>\n </div>\n <Text variant=\"subtitle\">Active index: {activeIndex}</Text>\n <hr />\n </div>\n );\n}\n\nexport const Graph = (args: Props): React.ReactNode[] =>\n navItems.reduce<React.ReactNode[]>((acc, _, index) => {\n const labels = [\n navItems.slice(0, index + 1).map(label => (\n <Text color=\"inherit\" variant=\"small\">\n {label}\n </Text>\n )),\n ];\n return [\n ...acc,\n <Sample {...args} key={index}>\n {labels}\n </Sample>,\n ];\n }, []);\n\nGraph.args = {\n initialActiveIndex: 1,\n};\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","gaps","styled","flexbox","space","position","layout","overflow","border","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property","useState","Flex","Bar","Item","BarTabs","children","onTabChange","initialActiveIndex","activeIndex","setActiveIndex","child","index","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","navItems","Sample","args","Graph","acc","_","labels","label"],"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,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,4CAAaA,EACbC,yCAAMA,CAAC;IACL,cAAc;AAChB,IACA;EACF,EAAES,CAAAA,IAAMA,EAAE,aAAa,GAAG,CAAC,gBAAgB,EAAEA,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,GAAI;AACxE,CAAC;AAED,sDAAeJ,IAAIA,EAAC;;;;;;;;;;;;ACxEoB;AAGxC,MAAMM,gBAAgB,CAACC,OAAiB,CAACJ;QACvC,MAAMK,YAAYL,MAAM,SAAS,IAAI;QACrC,MAAMM,WAAYN,MAAM,YAAY,IAAIA,MAAM,YAAY,CAACI,SAAU,GAAGA,KAAK,MAAM,CAAC;QACpF,OAAO,CAAC,KAAK,EAAEC,UAAU,CAAC,EAAEC,SAAS,kBAAkB,CAA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QAAQ;qBAC3B,+CAACrD,kCAAOA;QAAE,GAAGqD,IAAI;QAAE,aAAahD;OAC7BJ,0BAGL,+CAAChC,yCAAIA;QAAC,SAAQ;OAAW,kBAAemC,4BACxC,+CAAC;AAGP;AAEO,MAAMkD,QAAQ,CAACD,OACpBF,SAAS,MAAM,CAAoB,CAACI,KAAKC,GAAGjD;QAC1C,MAAMkD,SAAS;YACbN,SAAS,KAAK,CAAC,GAAG5C,QAAQ,GAAG,GAAG,CAACmD,CAAAA,sBAC/B,+CAACzF,yCAAIA;oBAAC,OAAM;oBAAU,SAAQ;mBAC3ByF;SAGN;QACD,OAAO;eACFH;0BACH,+CAACH;gBAAQ,GAAGC,IAAI;gBAAE,KAAK9C;eACpBkD;SAEJ;IACH,GAAG,EAAE,EAAE;AAETH,MAAM,IAAI,GAAG;IACX,oBAAoB;AACtB"}
@@ -2,9 +2,6 @@
2
2
  "use strict";
3
3
  var __webpack_modules__ = ({
4
4
  3696(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
5
- __webpack_require__.d(__webpack_exports__, {
6
- "default": () => (__rspack_default_export)
7
- });
8
5
  /* import */ var _styled__rspack_import_0 = __webpack_require__(7680);
9
6
 
10
7
  const FlexBox = _styled__rspack_import_0["default"].div.attrs({
@@ -13,12 +10,14 @@ const FlexBox = _styled__rspack_import_0["default"].div.attrs({
13
10
  })``;
14
11
  /* export default */ const __rspack_default_export = (FlexBox);
15
12
 
13
+ __webpack_require__.d(__webpack_exports__, {
14
+ }, {
15
+ "default": __rspack_default_export
16
+ });
17
+
16
18
 
17
19
  },
18
20
  7680(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
19
- __webpack_require__.d(__webpack_exports__, {
20
- "default": () => (__rspack_default_export)
21
- });
22
21
  /* import */ var _styles_system_gaps__rspack_import_2 = __webpack_require__(4182);
23
22
  /* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
24
23
  /* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
@@ -43,12 +42,14 @@ const proxyStyled = new Proxy((styled_components__rspack_import_0_default()), {
43
42
  });
44
43
  /* export default */ const __rspack_default_export = (proxyStyled);
45
44
 
45
+ __webpack_require__.d(__webpack_exports__, {
46
+ }, {
47
+ "default": __rspack_default_export
48
+ });
49
+
46
50
 
47
51
  },
48
52
  4182(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
49
- __webpack_require__.d(__webpack_exports__, {
50
- "default": () => (__rspack_default_export)
51
- });
52
53
  /* import */ var styled_system__rspack_import_0 = __webpack_require__(9351);
53
54
  /* import */ var styled_system__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_0);
54
55
 
@@ -64,6 +65,11 @@ const gaps = (0,styled_system__rspack_import_0.system)({
64
65
  });
65
66
  /* export default */ const __rspack_default_export = (gaps);
66
67
 
68
+ __webpack_require__.d(__webpack_exports__, {
69
+ }, {
70
+ "default": __rspack_default_export
71
+ });
72
+
67
73
 
68
74
  },
69
75
  2015(module) {
@@ -117,12 +123,16 @@ __webpack_require__.n = (module) => {
117
123
  })();
118
124
  // webpack/runtime/define_property_getters
119
125
  (() => {
120
- __webpack_require__.d = (exports, definition) => {
121
- for(var key in definition) {
122
- if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
123
- Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
124
- }
125
- }
126
+ __webpack_require__.d = (exports, getters, values) => {
127
+ var define = (defs, kind) => {
128
+ for(var key in defs) {
129
+ if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
130
+ Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
131
+ }
132
+ }
133
+ };
134
+ define(getters, "get");
135
+ define(values, "value");
126
136
  };
127
137
  })();
128
138
  // webpack/runtime/has_own_property
@@ -143,9 +153,6 @@ var __webpack_exports__ = {};
143
153
  // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
144
154
  (() => {
145
155
  __webpack_require__.r(__webpack_exports__);
146
- __webpack_require__.d(__webpack_exports__, {
147
- "default": () => (BarTabs)
148
- });
149
156
  /* import */ var react__rspack_import_0 = __webpack_require__(2015);
150
157
  /* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
151
158
  /* import */ var styled_components__rspack_import_1 = __webpack_require__(2770);
@@ -183,6 +190,10 @@ function BarTabs({ children, onTabChange, initialActiveIndex }) {
183
190
  }, child)));
184
191
  }
185
192
 
193
+ __webpack_require__.d(__webpack_exports__, {
194
+ "default": () => (BarTabs)
195
+ });
196
+
186
197
  })();
187
198
 
188
199
  module.exports = __webpack_exports__;