@ledgerhq/react-ui 0.45.0 → 0.46.0-nightly.20260217030329

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 (482) hide show
  1. package/README.md +2 -2
  2. package/lib/cjs/assets/fonts.js +60 -9
  3. package/lib/cjs/assets/fonts.js.map +1 -7
  4. package/lib/cjs/assets/images/images.d.js +6 -2
  5. package/lib/cjs/assets/index.js +175 -35
  6. package/lib/cjs/assets/index.js.map +1 -7
  7. package/lib/cjs/assets/logos/LedgerLiveAltRegular.js +91 -52
  8. package/lib/cjs/assets/logos/LedgerLiveAltRegular.js.map +1 -7
  9. package/lib/cjs/assets/logos/LedgerLiveRegular.js +103 -70
  10. package/lib/cjs/assets/logos/LedgerLiveRegular.js.map +1 -7
  11. package/lib/cjs/assets/logos/index.js +147 -33
  12. package/lib/cjs/assets/logos/index.js.map +1 -7
  13. package/lib/cjs/components/Table/Columns.js +767 -83
  14. package/lib/cjs/components/Table/Columns.js.map +1 -7
  15. package/lib/cjs/components/Table/Table.stories.js +1640 -174
  16. package/lib/cjs/components/Table/Table.stories.js.map +1 -7
  17. package/lib/cjs/components/Table/index.js +888 -104
  18. package/lib/cjs/components/Table/index.js.map +1 -7
  19. package/lib/cjs/components/Table/stories.helper.js +1127 -234
  20. package/lib/cjs/components/Table/stories.helper.js.map +1 -7
  21. package/lib/cjs/components/Tag/Tag.stories.js +875 -77
  22. package/lib/cjs/components/Tag/Tag.stories.js.map +1 -7
  23. package/lib/cjs/components/Tag/index.js +744 -102
  24. package/lib/cjs/components/Tag/index.js.map +1 -7
  25. package/lib/cjs/components/animations/GlitchText/GlitchText.stories.js +872 -55
  26. package/lib/cjs/components/animations/GlitchText/GlitchText.stories.js.map +1 -7
  27. package/lib/cjs/components/animations/GlitchText/index.js +116 -62
  28. package/lib/cjs/components/animations/GlitchText/index.js.map +1 -7
  29. package/lib/cjs/components/asorted/Divider/Divider.stories.js +764 -57
  30. package/lib/cjs/components/asorted/Divider/Divider.stories.js.map +1 -7
  31. package/lib/cjs/components/asorted/Divider/index.js +712 -48
  32. package/lib/cjs/components/asorted/Divider/index.js.map +1 -7
  33. package/lib/cjs/components/asorted/Icon/BoxedIcon.js +204 -83
  34. package/lib/cjs/components/asorted/Icon/BoxedIcon.js.map +1 -7
  35. package/lib/cjs/components/asorted/Icon/BoxedIcon.stories.js +365 -113
  36. package/lib/cjs/components/asorted/Icon/BoxedIcon.stories.js.map +1 -7
  37. package/lib/cjs/components/asorted/Icon/Icon.js +104 -52
  38. package/lib/cjs/components/asorted/Icon/Icon.js.map +1 -7
  39. package/lib/cjs/components/asorted/Icon/Icons.stories.js +752 -69
  40. package/lib/cjs/components/asorted/Icon/Icons.stories.js.map +1 -7
  41. package/lib/cjs/components/asorted/Icon/IconsLegacy.stories.js +1422 -131
  42. package/lib/cjs/components/asorted/Icon/IconsLegacy.stories.js.map +1 -7
  43. package/lib/cjs/components/asorted/Icon/NotificationIcon.js +247 -58
  44. package/lib/cjs/components/asorted/Icon/NotificationIcon.js.map +1 -7
  45. package/lib/cjs/components/asorted/Icon/NotificationIcon.stories.js +329 -51
  46. package/lib/cjs/components/asorted/Icon/NotificationIcon.stories.js.map +1 -7
  47. package/lib/cjs/components/asorted/Icon/index.js +434 -40
  48. package/lib/cjs/components/asorted/Icon/index.js.map +1 -7
  49. package/lib/cjs/components/asorted/Text/Text.stories.js +804 -84
  50. package/lib/cjs/components/asorted/Text/Text.stories.js.map +1 -7
  51. package/lib/cjs/components/asorted/Text/index.js +647 -60
  52. package/lib/cjs/components/asorted/Text/index.js.map +1 -7
  53. package/lib/cjs/components/asorted/Text/styles.js +173 -113
  54. package/lib/cjs/components/asorted/Text/styles.js.map +1 -7
  55. package/lib/cjs/components/asorted/index.js +964 -41
  56. package/lib/cjs/components/asorted/index.js.map +1 -7
  57. package/lib/cjs/components/cta/Button/Button.stories.js +1243 -121
  58. package/lib/cjs/components/cta/Button/Button.stories.js.map +1 -7
  59. package/lib/cjs/components/cta/Button/index.js +644 -160
  60. package/lib/cjs/components/cta/Button/index.js.map +1 -7
  61. package/lib/cjs/components/cta/Link/Link.stories.js +882 -82
  62. package/lib/cjs/components/cta/Link/Link.stories.js.map +1 -7
  63. package/lib/cjs/components/cta/Link/getLinkStyle.js +53 -38
  64. package/lib/cjs/components/cta/Link/getLinkStyle.js.map +1 -7
  65. package/lib/cjs/components/cta/Link/index.js +760 -73
  66. package/lib/cjs/components/cta/Link/index.js.map +1 -7
  67. package/lib/cjs/components/cta/Toggle/Toggle.stories.js +853 -55
  68. package/lib/cjs/components/cta/Toggle/Toggle.stories.js.map +1 -7
  69. package/lib/cjs/components/cta/Toggle/index.js +800 -44
  70. package/lib/cjs/components/cta/Toggle/index.js.map +1 -7
  71. package/lib/cjs/components/cta/getCtaStyle.js +42 -27
  72. package/lib/cjs/components/cta/getCtaStyle.js.map +1 -7
  73. package/lib/cjs/components/cta/index.js +1125 -38
  74. package/lib/cjs/components/cta/index.js.map +1 -7
  75. package/lib/cjs/components/form/BaseInput/Input.stories.js +1274 -104
  76. package/lib/cjs/components/form/BaseInput/Input.stories.js.map +1 -7
  77. package/lib/cjs/components/form/BaseInput/index.js +1124 -144
  78. package/lib/cjs/components/form/BaseInput/index.js.map +1 -7
  79. package/lib/cjs/components/form/Checkbox/Checkbox.js +728 -77
  80. package/lib/cjs/components/form/Checkbox/Checkbox.js.map +1 -7
  81. package/lib/cjs/components/form/Checkbox/Checkbox.stories.js +879 -92
  82. package/lib/cjs/components/form/Checkbox/Checkbox.stories.js.map +1 -7
  83. package/lib/cjs/components/form/Checkbox/index.js +795 -34
  84. package/lib/cjs/components/form/Checkbox/index.js.map +1 -7
  85. package/lib/cjs/components/form/Dropdown/Dropdown.stories.js +1718 -65
  86. package/lib/cjs/components/form/Dropdown/Dropdown.stories.js.map +1 -7
  87. package/lib/cjs/components/form/Dropdown/index.js +1632 -87
  88. package/lib/cjs/components/form/Dropdown/index.js.map +1 -7
  89. package/lib/cjs/components/form/LegendInput/Input.stories.js +1256 -57
  90. package/lib/cjs/components/form/LegendInput/Input.stories.js.map +1 -7
  91. package/lib/cjs/components/form/LegendInput/index.js +1211 -49
  92. package/lib/cjs/components/form/LegendInput/index.js.map +1 -7
  93. package/lib/cjs/components/form/NumberInput/Input.stories.js +1310 -84
  94. package/lib/cjs/components/form/NumberInput/Input.stories.js.map +1 -7
  95. package/lib/cjs/components/form/NumberInput/index.js +1240 -77
  96. package/lib/cjs/components/form/NumberInput/index.js.map +1 -7
  97. package/lib/cjs/components/form/QrCodeInput/Input.stories.js +1280 -53
  98. package/lib/cjs/components/form/QrCodeInput/Input.stories.js.map +1 -7
  99. package/lib/cjs/components/form/QrCodeInput/index.js +1229 -53
  100. package/lib/cjs/components/form/QrCodeInput/index.js.map +1 -7
  101. package/lib/cjs/components/form/QuantityInput/Input.stories.js +1305 -90
  102. package/lib/cjs/components/form/QuantityInput/Input.stories.js.map +1 -7
  103. package/lib/cjs/components/form/QuantityInput/index.js +1230 -60
  104. package/lib/cjs/components/form/QuantityInput/index.js.map +1 -7
  105. package/lib/cjs/components/form/Radio/Radio.stories.js +1164 -123
  106. package/lib/cjs/components/form/Radio/Radio.stories.js.map +1 -7
  107. package/lib/cjs/components/form/Radio/RadioElement.js +869 -104
  108. package/lib/cjs/components/form/Radio/RadioElement.js.map +1 -7
  109. package/lib/cjs/components/form/Radio/RadioElement.stories.js +1057 -49
  110. package/lib/cjs/components/form/Radio/RadioElement.stories.js.map +1 -7
  111. package/lib/cjs/components/form/Radio/RadioListElement.js +979 -81
  112. package/lib/cjs/components/form/Radio/RadioListElement.js.map +1 -7
  113. package/lib/cjs/components/form/Radio/RadioListElement.stories.js +1025 -42
  114. package/lib/cjs/components/form/Radio/RadioListElement.stories.js.map +1 -7
  115. package/lib/cjs/components/form/Radio/index.js +995 -55
  116. package/lib/cjs/components/form/Radio/index.js.map +1 -7
  117. package/lib/cjs/components/form/SearchInput/Input.stories.js +1253 -53
  118. package/lib/cjs/components/form/SearchInput/Input.stories.js.map +1 -7
  119. package/lib/cjs/components/form/SearchInput/index.js +1217 -52
  120. package/lib/cjs/components/form/SearchInput/index.js.map +1 -7
  121. package/lib/cjs/components/form/SelectInput/Control.js +1217 -51
  122. package/lib/cjs/components/form/SelectInput/Control.js.map +1 -7
  123. package/lib/cjs/components/form/SelectInput/DropdownIndicator.js +704 -47
  124. package/lib/cjs/components/form/SelectInput/DropdownIndicator.js.map +1 -7
  125. package/lib/cjs/components/form/SelectInput/IndicatorsContainer.js +167 -36
  126. package/lib/cjs/components/form/SelectInput/IndicatorsContainer.js.map +1 -7
  127. package/lib/cjs/components/form/SelectInput/MenuList.js +103 -47
  128. package/lib/cjs/components/form/SelectInput/MenuList.js.map +1 -7
  129. package/lib/cjs/components/form/SelectInput/Option.js +713 -72
  130. package/lib/cjs/components/form/SelectInput/Option.js.map +1 -7
  131. package/lib/cjs/components/form/SelectInput/Select.stories.js +1985 -343
  132. package/lib/cjs/components/form/SelectInput/Select.stories.js.map +1 -7
  133. package/lib/cjs/components/form/SelectInput/ValueContainer.js +691 -51
  134. package/lib/cjs/components/form/SelectInput/ValueContainer.js.map +1 -7
  135. package/lib/cjs/components/form/SelectInput/index.js +1542 -122
  136. package/lib/cjs/components/form/SelectInput/index.js.map +1 -7
  137. package/lib/cjs/components/form/SplitInput/SplitInput.stories.js +1977 -203
  138. package/lib/cjs/components/form/SplitInput/SplitInput.stories.js.map +1 -7
  139. package/lib/cjs/components/form/SplitInput/index.js +1247 -68
  140. package/lib/cjs/components/form/SplitInput/index.js.map +1 -7
  141. package/lib/cjs/components/form/Switch/Switch.js +736 -88
  142. package/lib/cjs/components/form/Switch/Switch.js.map +1 -7
  143. package/lib/cjs/components/form/Switch/Switch.stories.js +908 -87
  144. package/lib/cjs/components/form/Switch/Switch.stories.js.map +1 -7
  145. package/lib/cjs/components/form/Switch/index.js +822 -34
  146. package/lib/cjs/components/form/Switch/index.js.map +1 -7
  147. package/lib/cjs/components/form/TabSelector/TabSelector.stories.js +809 -53
  148. package/lib/cjs/components/form/TabSelector/TabSelector.stories.js.map +1 -7
  149. package/lib/cjs/components/form/TabSelector/index.js +758 -101
  150. package/lib/cjs/components/form/TabSelector/index.js.map +1 -7
  151. package/lib/cjs/components/form/index.js +2756 -58
  152. package/lib/cjs/components/form/index.js.map +1 -7
  153. package/lib/cjs/components/helpers.js +36 -20
  154. package/lib/cjs/components/helpers.js.map +1 -7
  155. package/lib/cjs/components/index.js +7545 -46
  156. package/lib/cjs/components/index.js.map +1 -7
  157. package/lib/cjs/components/layout/Banner/BannerCard/BannerCard.stories.js +1580 -73
  158. package/lib/cjs/components/layout/Banner/BannerCard/BannerCard.stories.js.map +1 -7
  159. package/lib/cjs/components/layout/Banner/BannerCard/index.js +1362 -74
  160. package/lib/cjs/components/layout/Banner/BannerCard/index.js.map +1 -7
  161. package/lib/cjs/components/layout/Banner/NotificationCard/NotificationCard.stories.js +1072 -76
  162. package/lib/cjs/components/layout/Banner/NotificationCard/NotificationCard.stories.js.map +1 -7
  163. package/lib/cjs/components/layout/Banner/NotificationCard/index.js +865 -57
  164. package/lib/cjs/components/layout/Banner/NotificationCard/index.js.map +1 -7
  165. package/lib/cjs/components/layout/Box/Box.stories.js +200 -74
  166. package/lib/cjs/components/layout/Box/Box.stories.js.map +1 -7
  167. package/lib/cjs/components/layout/Box/index.js +137 -33
  168. package/lib/cjs/components/layout/Box/index.js.map +1 -7
  169. package/lib/cjs/components/layout/Carousel/Carousel.stories.js +2012 -111
  170. package/lib/cjs/components/layout/Carousel/Carousel.stories.js.map +1 -7
  171. package/lib/cjs/components/layout/Carousel/ChevronArrow.js +104 -42
  172. package/lib/cjs/components/layout/Carousel/ChevronArrow.js.map +1 -7
  173. package/lib/cjs/components/layout/Carousel/Footer/Pagination/bullets.js +150 -68
  174. package/lib/cjs/components/layout/Carousel/Footer/Pagination/bullets.js.map +1 -7
  175. package/lib/cjs/components/layout/Carousel/Footer/Pagination/index.js +202 -40
  176. package/lib/cjs/components/layout/Carousel/Footer/Pagination/index.js.map +1 -7
  177. package/lib/cjs/components/layout/Carousel/Footer/Pagination/types.js +42 -27
  178. package/lib/cjs/components/layout/Carousel/Footer/Pagination/types.js.map +1 -7
  179. package/lib/cjs/components/layout/Carousel/Footer/Pagination/utils.js +91 -32
  180. package/lib/cjs/components/layout/Carousel/Footer/Pagination/utils.js.map +1 -7
  181. package/lib/cjs/components/layout/Carousel/Footer/index.js +309 -44
  182. package/lib/cjs/components/layout/Carousel/Footer/index.js.map +1 -7
  183. package/lib/cjs/components/layout/Carousel/Footer/variantContentCard.js +246 -49
  184. package/lib/cjs/components/layout/Carousel/Footer/variantContentCard.js.map +1 -7
  185. package/lib/cjs/components/layout/Carousel/Footer/variantDefault.js +225 -39
  186. package/lib/cjs/components/layout/Carousel/Footer/variantDefault.js.map +1 -7
  187. package/lib/cjs/components/layout/Carousel/index.js +551 -168
  188. package/lib/cjs/components/layout/Carousel/index.js.map +1 -7
  189. package/lib/cjs/components/layout/Carousel/types.js +23 -15
  190. package/lib/cjs/components/layout/Carousel/types.js.map +1 -7
  191. package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/PortfolioContentCard.stories.js +1477 -70
  192. package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/PortfolioContentCard.stories.js.map +1 -7
  193. package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/index.js +1428 -58
  194. package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/index.js.map +1 -7
  195. package/lib/cjs/components/layout/Drawer/Drawer.stories.js +1431 -103
  196. package/lib/cjs/components/layout/Drawer/Drawer.stories.js.map +1 -7
  197. package/lib/cjs/components/layout/Drawer/index.js +1288 -163
  198. package/lib/cjs/components/layout/Drawer/index.js.map +1 -7
  199. package/lib/cjs/components/layout/Flex/Flex.stories.js +467 -306
  200. package/lib/cjs/components/layout/Flex/Flex.stories.js.map +1 -7
  201. package/lib/cjs/components/layout/Flex/index.js +139 -33
  202. package/lib/cjs/components/layout/Flex/index.js.map +1 -7
  203. package/lib/cjs/components/layout/Grid/Grid.stories.js +905 -244
  204. package/lib/cjs/components/layout/Grid/Grid.stories.js.map +1 -7
  205. package/lib/cjs/components/layout/Grid/index.js +145 -39
  206. package/lib/cjs/components/layout/Grid/index.js.map +1 -7
  207. package/lib/cjs/components/layout/List/NumberedList/NumberedList.stories.js +868 -96
  208. package/lib/cjs/components/layout/List/NumberedList/NumberedList.stories.js.map +1 -7
  209. package/lib/cjs/components/layout/List/NumberedList/index.js +719 -56
  210. package/lib/cjs/components/layout/List/NumberedList/index.js.map +1 -7
  211. package/lib/cjs/components/layout/List/VerticalTimeline/TimelineIndicator.js +209 -69
  212. package/lib/cjs/components/layout/List/VerticalTimeline/TimelineIndicator.js.map +1 -7
  213. package/lib/cjs/components/layout/List/VerticalTimeline/TimelineItem.js +1046 -92
  214. package/lib/cjs/components/layout/List/VerticalTimeline/TimelineItem.js.map +1 -7
  215. package/lib/cjs/components/layout/List/VerticalTimeline/VerticalTimeline.stories.js +1804 -147
  216. package/lib/cjs/components/layout/List/VerticalTimeline/VerticalTimeline.stories.js.map +1 -7
  217. package/lib/cjs/components/layout/List/VerticalTimeline/index.js +1111 -51
  218. package/lib/cjs/components/layout/List/VerticalTimeline/index.js.map +1 -7
  219. package/lib/cjs/components/layout/Popin/Popin.stories.js +1398 -165
  220. package/lib/cjs/components/layout/Popin/Popin.stories.js.map +1 -7
  221. package/lib/cjs/components/layout/Popin/index.js +991 -93
  222. package/lib/cjs/components/layout/Popin/index.js.map +1 -7
  223. package/lib/cjs/components/layout/Side/Provider.js +121 -69
  224. package/lib/cjs/components/layout/Side/Provider.js.map +1 -7
  225. package/lib/cjs/components/layout/Side/Side.stories.js +1566 -120
  226. package/lib/cjs/components/layout/Side/Side.stories.js.map +1 -7
  227. package/lib/cjs/components/layout/Side/index.js +1451 -86
  228. package/lib/cjs/components/layout/Side/index.js.map +1 -7
  229. package/lib/cjs/components/layout/index.js +3197 -56
  230. package/lib/cjs/components/layout/index.js.map +1 -7
  231. package/lib/cjs/components/loaders/InfiniteLoader/InfiniteLoader.stories.js +229 -65
  232. package/lib/cjs/components/loaders/InfiniteLoader/InfiniteLoader.stories.js.map +1 -7
  233. package/lib/cjs/components/loaders/InfiniteLoader/index.js +136 -85
  234. package/lib/cjs/components/loaders/InfiniteLoader/index.js.map +1 -7
  235. package/lib/cjs/components/loaders/ProgressLoader/ProgressLoader.stories.js +833 -100
  236. package/lib/cjs/components/loaders/ProgressLoader/ProgressLoader.stories.js.map +1 -7
  237. package/lib/cjs/components/loaders/ProgressLoader/index.js +727 -109
  238. package/lib/cjs/components/loaders/ProgressLoader/index.js.map +1 -7
  239. package/lib/cjs/components/loaders/index.js +864 -36
  240. package/lib/cjs/components/loaders/index.js.map +1 -7
  241. package/lib/cjs/components/message/Alert/Alert.stories.js +1312 -82
  242. package/lib/cjs/components/message/Alert/Alert.stories.js.map +1 -7
  243. package/lib/cjs/components/message/Alert/index.js +796 -108
  244. package/lib/cjs/components/message/Alert/index.js.map +1 -7
  245. package/lib/cjs/components/message/ContinueOnDevice/ContinueOnDevice.stories.js +804 -75
  246. package/lib/cjs/components/message/ContinueOnDevice/ContinueOnDevice.stories.js.map +1 -7
  247. package/lib/cjs/components/message/ContinueOnDevice/index.js +752 -51
  248. package/lib/cjs/components/message/ContinueOnDevice/index.js.map +1 -7
  249. package/lib/cjs/components/message/Log/Brackets.js +195 -60
  250. package/lib/cjs/components/message/Log/Brackets.js.map +1 -7
  251. package/lib/cjs/components/message/Log/Log.stories.js +810 -51
  252. package/lib/cjs/components/message/Log/Log.stories.js.map +1 -7
  253. package/lib/cjs/components/message/Log/index.js +771 -56
  254. package/lib/cjs/components/message/Log/index.js.map +1 -7
  255. package/lib/cjs/components/message/Notification/Badge.js +107 -45
  256. package/lib/cjs/components/message/Notification/Badge.js.map +1 -7
  257. package/lib/cjs/components/message/Notification/Badge.stories.js +295 -64
  258. package/lib/cjs/components/message/Notification/Badge.stories.js.map +1 -7
  259. package/lib/cjs/components/message/Notification/Notification.stories.js +1049 -94
  260. package/lib/cjs/components/message/Notification/Notification.stories.js.map +1 -7
  261. package/lib/cjs/components/message/Notification/index.js +904 -58
  262. package/lib/cjs/components/message/Notification/index.js.map +1 -7
  263. package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js +937 -58
  264. package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js.map +1 -7
  265. package/lib/cjs/components/message/StatusNotification/index.js +813 -53
  266. package/lib/cjs/components/message/StatusNotification/index.js.map +1 -7
  267. package/lib/cjs/components/message/Tip/Tip.stories.js +783 -55
  268. package/lib/cjs/components/message/Tip/Tip.stories.js.map +1 -7
  269. package/lib/cjs/components/message/Tip/index.js +724 -52
  270. package/lib/cjs/components/message/Tip/index.js.map +1 -7
  271. package/lib/cjs/components/message/Tooltip/Tooltip.stories.js +825 -90
  272. package/lib/cjs/components/message/Tooltip/Tooltip.stories.js.map +1 -7
  273. package/lib/cjs/components/message/Tooltip/index.js +720 -60
  274. package/lib/cjs/components/message/Tooltip/index.js.map +1 -7
  275. package/lib/cjs/components/message/Tooltip/styles.js +86 -26
  276. package/lib/cjs/components/message/Tooltip/styles.js.map +1 -7
  277. package/lib/cjs/components/message/index.js +1449 -48
  278. package/lib/cjs/components/message/index.js.map +1 -7
  279. package/lib/cjs/components/navigation/Aside/Aside.stories.js +926 -63
  280. package/lib/cjs/components/navigation/Aside/Aside.stories.js.map +1 -7
  281. package/lib/cjs/components/navigation/Aside/index.js +176 -40
  282. package/lib/cjs/components/navigation/Aside/index.js.map +1 -7
  283. package/lib/cjs/components/navigation/Aside/stories.helper.js +36 -21
  284. package/lib/cjs/components/navigation/Aside/stories.helper.js.map +1 -7
  285. package/lib/cjs/components/navigation/Breadcrumb/Breadcrumb.stories.js +1910 -118
  286. package/lib/cjs/components/navigation/Breadcrumb/Breadcrumb.stories.js.map +1 -7
  287. package/lib/cjs/components/navigation/Breadcrumb/index.js +1729 -89
  288. package/lib/cjs/components/navigation/Breadcrumb/index.js.map +1 -7
  289. package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js +1868 -225
  290. package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js.map +1 -7
  291. package/lib/cjs/components/navigation/FlowStepper/index.js +951 -88
  292. package/lib/cjs/components/navigation/FlowStepper/index.js.map +1 -7
  293. package/lib/cjs/components/navigation/Header/Header.stories.js +786 -47
  294. package/lib/cjs/components/navigation/Header/Header.stories.js.map +1 -7
  295. package/lib/cjs/components/navigation/Header/index.js +163 -35
  296. package/lib/cjs/components/navigation/Header/index.js.map +1 -7
  297. package/lib/cjs/components/navigation/index.js +2661 -44
  298. package/lib/cjs/components/navigation/index.js.map +1 -7
  299. package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.js +703 -49
  300. package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.js.map +1 -7
  301. package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.stories.js +788 -72
  302. package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.stories.js.map +1 -7
  303. package/lib/cjs/components/navigation/progress/ProgressBar/index.js +743 -34
  304. package/lib/cjs/components/navigation/progress/ProgressBar/index.js.map +1 -7
  305. package/lib/cjs/components/navigation/progress/Stepper/Item.stories.js +879 -44
  306. package/lib/cjs/components/navigation/progress/Stepper/Item.stories.js.map +1 -7
  307. package/lib/cjs/components/navigation/progress/Stepper/ProgressSteps.stories.js +898 -56
  308. package/lib/cjs/components/navigation/progress/Stepper/ProgressSteps.stories.js.map +1 -7
  309. package/lib/cjs/components/navigation/progress/Stepper/index.js +825 -132
  310. package/lib/cjs/components/navigation/progress/Stepper/index.js.map +1 -7
  311. package/lib/cjs/components/navigation/progress/index.js +942 -36
  312. package/lib/cjs/components/navigation/progress/index.js.map +1 -7
  313. package/lib/cjs/components/navigation/sideBar/Item/Item.js +808 -106
  314. package/lib/cjs/components/navigation/sideBar/Item/Item.js.map +1 -7
  315. package/lib/cjs/components/navigation/sideBar/Item/Item.stories.js +978 -94
  316. package/lib/cjs/components/navigation/sideBar/Item/Item.stories.js.map +1 -7
  317. package/lib/cjs/components/navigation/sideBar/Item/index.js +868 -34
  318. package/lib/cjs/components/navigation/sideBar/Item/index.js.map +1 -7
  319. package/lib/cjs/components/navigation/sideBar/Logo/Logo.js +243 -61
  320. package/lib/cjs/components/navigation/sideBar/Logo/Logo.js.map +1 -7
  321. package/lib/cjs/components/navigation/sideBar/Logo/index.js +257 -31
  322. package/lib/cjs/components/navigation/sideBar/Logo/index.js.map +1 -7
  323. package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.js +1107 -73
  324. package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.js.map +1 -7
  325. package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.stories.js +1269 -68
  326. package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.stories.js.map +1 -7
  327. package/lib/cjs/components/navigation/sideBar/SideBar/index.js +1140 -34
  328. package/lib/cjs/components/navigation/sideBar/SideBar/index.js.map +1 -7
  329. package/lib/cjs/components/navigation/sideBar/Toggle/Toggle.js +188 -55
  330. package/lib/cjs/components/navigation/sideBar/Toggle/Toggle.js.map +1 -7
  331. package/lib/cjs/components/navigation/sideBar/Toggle/index.js +209 -30
  332. package/lib/cjs/components/navigation/sideBar/Toggle/index.js.map +1 -7
  333. package/lib/cjs/components/navigation/sideBar/index.js +82 -22
  334. package/lib/cjs/components/navigation/sideBar/index.js.map +1 -7
  335. package/lib/cjs/components/styled.js +125 -54
  336. package/lib/cjs/components/styled.js.map +1 -7
  337. package/lib/cjs/components/styled.stories.js +181 -68
  338. package/lib/cjs/components/styled.stories.js.map +1 -7
  339. package/lib/cjs/components/tabs/Bar/Bar.stories.js +774 -55
  340. package/lib/cjs/components/tabs/Bar/Bar.stories.js.map +1 -7
  341. package/lib/cjs/components/tabs/Bar/index.js +175 -54
  342. package/lib/cjs/components/tabs/Bar/index.js.map +1 -7
  343. package/lib/cjs/components/tabs/Chip/Chip.stories.js +784 -55
  344. package/lib/cjs/components/tabs/Chip/Chip.stories.js.map +1 -7
  345. package/lib/cjs/components/tabs/Chip/index.js +183 -60
  346. package/lib/cjs/components/tabs/Chip/index.js.map +1 -7
  347. package/lib/cjs/components/tabs/Pill/Pill.stories.js +841 -58
  348. package/lib/cjs/components/tabs/Pill/Pill.stories.js.map +1 -7
  349. package/lib/cjs/components/tabs/Pill/index.js +184 -61
  350. package/lib/cjs/components/tabs/Pill/index.js.map +1 -7
  351. package/lib/cjs/components/tabs/Tabs/Tabs.stories.js +1024 -104
  352. package/lib/cjs/components/tabs/Tabs/Tabs.stories.js.map +1 -7
  353. package/lib/cjs/components/tabs/Tabs/index.js +879 -112
  354. package/lib/cjs/components/tabs/Tabs/index.js.map +1 -7
  355. package/lib/cjs/components/tabs/index.js +1102 -40
  356. package/lib/cjs/components/tabs/index.js.map +1 -7
  357. package/lib/cjs/components/transitions/TransitionInOut.js +106 -42
  358. package/lib/cjs/components/transitions/TransitionInOut.js.map +1 -7
  359. package/lib/cjs/components/transitions/TransitionScale.js +103 -41
  360. package/lib/cjs/components/transitions/TransitionScale.js.map +1 -7
  361. package/lib/cjs/components/transitions/TransitionSlide.js +108 -45
  362. package/lib/cjs/components/transitions/TransitionSlide.js.map +1 -7
  363. package/lib/cjs/components/transitions/index.js +253 -35
  364. package/lib/cjs/components/transitions/index.js.map +1 -7
  365. package/lib/cjs/helpers.types.js +32 -15
  366. package/lib/cjs/helpers.types.js.map +1 -7
  367. package/lib/cjs/index.js +7712 -29
  368. package/lib/cjs/index.js.map +1 -7
  369. package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.js +2073 -114
  370. package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.js.map +1 -7
  371. package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.stories.js +2315 -171
  372. package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.stories.js.map +1 -7
  373. package/lib/cjs/pre-ldls/components/AccountList/AccountList.js +2406 -55
  374. package/lib/cjs/pre-ldls/components/AccountList/AccountList.js.map +1 -7
  375. package/lib/cjs/pre-ldls/components/AccountList/AccountList.stories.js +2466 -66
  376. package/lib/cjs/pre-ldls/components/AccountList/AccountList.stories.js.map +1 -7
  377. package/lib/cjs/pre-ldls/components/Address/Address.js +1782 -59
  378. package/lib/cjs/pre-ldls/components/Address/Address.js.map +1 -7
  379. package/lib/cjs/pre-ldls/components/Address/Address.stories.js +1836 -47
  380. package/lib/cjs/pre-ldls/components/Address/Address.stories.js.map +1 -7
  381. package/lib/cjs/pre-ldls/components/Address/formatAddress.js +51 -31
  382. package/lib/cjs/pre-ldls/components/Address/formatAddress.js.map +1 -7
  383. package/lib/cjs/pre-ldls/components/Address/tests/formatAddress.test.js +133 -47
  384. package/lib/cjs/pre-ldls/components/Address/tests/formatAddress.test.js.map +1 -7
  385. package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.js +1771 -37
  386. package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.js.map +1 -7
  387. package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.stories.js +1827 -42
  388. package/lib/cjs/pre-ldls/components/ApyIndicator/ApyIndicator.stories.js.map +1 -7
  389. package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.js +1789 -114
  390. package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.js.map +1 -7
  391. package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.stories.js +1980 -74
  392. package/lib/cjs/pre-ldls/components/AssetItem/AssetItem.stories.js.map +1 -7
  393. package/lib/cjs/pre-ldls/components/AssetList/AssetList.js +2104 -60
  394. package/lib/cjs/pre-ldls/components/AssetList/AssetList.js.map +1 -7
  395. package/lib/cjs/pre-ldls/components/AssetList/AssetList.stories.js +2279 -95
  396. package/lib/cjs/pre-ldls/components/AssetList/AssetList.stories.js.map +1 -7
  397. package/lib/cjs/pre-ldls/components/CardButton/CardButton.js +1162 -58
  398. package/lib/cjs/pre-ldls/components/CardButton/CardButton.js.map +1 -7
  399. package/lib/cjs/pre-ldls/components/CardButton/CardButton.stories.js +1261 -71
  400. package/lib/cjs/pre-ldls/components/CardButton/CardButton.stories.js.map +1 -7
  401. package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.js +1199 -71
  402. package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.js.map +1 -7
  403. package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.stories.js +1248 -26
  404. package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.stories.js.map +1 -7
  405. package/lib/cjs/pre-ldls/components/Input/Input.js +1160 -47
  406. package/lib/cjs/pre-ldls/components/Input/Input.js.map +1 -7
  407. package/lib/cjs/pre-ldls/components/Input/Input.stories.js +1229 -54
  408. package/lib/cjs/pre-ldls/components/Input/Input.stories.js.map +1 -7
  409. package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.js +1779 -82
  410. package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.js.map +1 -7
  411. package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.stories.js +1840 -42
  412. package/lib/cjs/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.stories.js.map +1 -7
  413. package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.js +1774 -79
  414. package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.js.map +1 -7
  415. package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.stories.js +1843 -42
  416. package/lib/cjs/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.stories.js.map +1 -7
  417. package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.js +1759 -69
  418. package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.js.map +1 -7
  419. package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.stories.js +1910 -55
  420. package/lib/cjs/pre-ldls/components/NetworkItem/NetworkItem.stories.js.map +1 -7
  421. package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.js +2052 -46
  422. package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.js.map +1 -7
  423. package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.stories.js +2105 -59
  424. package/lib/cjs/pre-ldls/components/NetworkList/NetworkList.stories.js.map +1 -7
  425. package/lib/cjs/pre-ldls/components/Search/Search.js +1277 -85
  426. package/lib/cjs/pre-ldls/components/Search/Search.js.map +1 -7
  427. package/lib/cjs/pre-ldls/components/Search/Search.stories.js +1343 -56
  428. package/lib/cjs/pre-ldls/components/Search/Search.stories.js.map +1 -7
  429. package/lib/cjs/pre-ldls/components/Tag/Tag.js +1749 -61
  430. package/lib/cjs/pre-ldls/components/Tag/Tag.js.map +1 -7
  431. package/lib/cjs/pre-ldls/components/Tag/Tag.stories.js +1804 -39
  432. package/lib/cjs/pre-ldls/components/Tag/Tag.stories.js.map +1 -7
  433. package/lib/cjs/pre-ldls/components/TextInput/TextInput.js +1321 -138
  434. package/lib/cjs/pre-ldls/components/TextInput/TextInput.js.map +1 -7
  435. package/lib/cjs/pre-ldls/components/TextInput/TextInput.stories.js +1467 -76
  436. package/lib/cjs/pre-ldls/components/TextInput/TextInput.stories.js.map +1 -7
  437. package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.js +356 -142
  438. package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.js.map +1 -7
  439. package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.stories.js +575 -166
  440. package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.stories.js.map +1 -7
  441. package/lib/cjs/pre-ldls/components/index.js +3221 -33
  442. package/lib/cjs/pre-ldls/components/index.js.map +1 -7
  443. package/lib/cjs/pre-ldls/components/sharedStoryBook.js +1787 -60
  444. package/lib/cjs/pre-ldls/components/sharedStoryBook.js.map +1 -7
  445. package/lib/cjs/pre-ldls/hooks/index.js +108 -17
  446. package/lib/cjs/pre-ldls/hooks/index.js.map +1 -7
  447. package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.js +95 -33
  448. package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.js.map +1 -7
  449. package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.stories.js +175 -82
  450. package/lib/cjs/pre-ldls/hooks/useDebouncedCallback.stories.js.map +1 -7
  451. package/lib/cjs/pre-ldls/index.js +3245 -18
  452. package/lib/cjs/pre-ldls/index.js.map +1 -7
  453. package/lib/cjs/pre-ldls/libs/design-tokens.js +990 -974
  454. package/lib/cjs/pre-ldls/libs/design-tokens.js.map +1 -7
  455. package/lib/cjs/pre-ldls/libs/index.js +1126 -90
  456. package/lib/cjs/pre-ldls/libs/index.js.map +1 -7
  457. package/lib/cjs/styles/InvertTheme.js +407 -68
  458. package/lib/cjs/styles/InvertTheme.js.map +1 -7
  459. package/lib/cjs/styles/Spacing.stories.js +725 -58
  460. package/lib/cjs/styles/Spacing.stories.js.map +1 -7
  461. package/lib/cjs/styles/StyleProvider.js +756 -58
  462. package/lib/cjs/styles/StyleProvider.js.map +1 -7
  463. package/lib/cjs/styles/breakpoints.stories.js +746 -69
  464. package/lib/cjs/styles/breakpoints.stories.js.map +1 -7
  465. package/lib/cjs/styles/global.js +385 -38
  466. package/lib/cjs/styles/global.js.map +1 -7
  467. package/lib/cjs/styles/helpers.js +396 -58
  468. package/lib/cjs/styles/helpers.js.map +1 -7
  469. package/lib/cjs/styles/index.js +849 -43
  470. package/lib/cjs/styles/index.js.map +1 -7
  471. package/lib/cjs/styles/override.js +22 -1
  472. package/lib/cjs/styles/override.js.map +1 -7
  473. package/lib/cjs/styles/palettes/colors.stories.js +756 -66
  474. package/lib/cjs/styles/palettes/colors.stories.js.map +1 -7
  475. package/lib/cjs/styles/styled/fontFamily.js +411 -30
  476. package/lib/cjs/styles/styled/fontFamily.js.map +1 -7
  477. package/lib/cjs/styles/system/gaps.js +91 -25
  478. package/lib/cjs/styles/system/gaps.js.map +1 -7
  479. package/lib/cjs/styles/theme.js +259 -172
  480. package/lib/cjs/styles/theme.js.map +1 -7
  481. package/package.json +12 -16
  482. package/lib/cjs/assets/images/images.d.js.map +0 -7
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../src/components/layout/Banner/NotificationCard/index.tsx"],
4
- "sourcesContent": ["import React, { type ReactEventHandler, type ReactNode } from \"react\";\nimport styled from \"styled-components\";\n\nimport * as Icons from \"@ledgerhq/icons-ui/react\";\nimport { NotificationIcon } from \"../../../asorted\";\nimport Text from \"../../../asorted/Text\";\nimport type { Props as GridBoxProps } from \"../../Grid\";\nimport { Grid, Flex } from \"../..\";\n\ntype IconKey = keyof typeof Icons;\n\ntype Props = GridBoxProps & {\n title?: string;\n cta?: ReactNode;\n description?: ReactNode;\n icon: IconKey;\n isHighlighted?: boolean;\n\n onClick: ReactEventHandler;\n};\n\nexport default function NotificationCard({\n title,\n cta,\n icon,\n description,\n isHighlighted,\n onClick,\n ...boxProps\n}: Props) {\n const handleCTAClick: ReactEventHandler = event => {\n event.stopPropagation();\n onClick(event);\n };\n\n return (\n <Wrapper {...boxProps} isHighlighted={isHighlighted} onClick={handleCTAClick}>\n <NotificationIcon icon={icon} variant={isHighlighted ? \"square\" : \"round\"} />\n <Flex flexDirection=\"column\" rowGap={isHighlighted ? \"4px\" : \"8px\"}>\n {title && (\n <Text variant=\"h4Inter\" fontSize={16}>\n {title}\n </Text>\n )}\n {description && (\n <Desc color={isHighlighted ? \"neutral.c100\" : \"neutral.c80\"}>{description}</Desc>\n )}\n {cta}\n </Flex>\n </Wrapper>\n );\n}\n\nconst Desc = styled(Text).attrs({ variant: \"small\" })`\n font-family: Inter;\n font-size: 13px;\n font-style: normal;\n font-weight: 500;\n`;\n\nconst Wrapper = styled(Grid)<Pick<Props, \"isHighlighted\">>`\n background-color: ${({ isHighlighted, theme: { colors } }) => {\n if (!isHighlighted) return \"transparent\";\n return colors.type === \"dark\" ? colors.opacityDefault.c05 : colors.neutral.c00;\n }};\n\n cursor: pointer;\n padding: 12px;\n grid-template-columns: auto 1fr;\n gap: ${p => (p.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text", "styled"]
7
- }
1
+ {"version":3,"file":"components/layout/Banner/NotificationCard/index.js","sources":["webpack://@ledgerhq/react-ui/./src/components/asorted/Icon/NotificationIcon.tsx","webpack://@ledgerhq/react-ui/./src/components/asorted/Text/index.tsx","webpack://@ledgerhq/react-ui/./src/components/asorted/Text/styles.ts","webpack://@ledgerhq/react-ui/./src/components/layout/Box/index.ts","webpack://@ledgerhq/react-ui/./src/components/layout/Flex/index.ts","webpack://@ledgerhq/react-ui/./src/components/layout/Grid/index.ts","webpack://@ledgerhq/react-ui/./src/components/styled.ts","webpack://@ledgerhq/react-ui/./src/styles/helpers.ts","webpack://@ledgerhq/react-ui/./src/styles/styled/fontFamily.ts","webpack://@ledgerhq/react-ui/./src/styles/system/gaps.ts","webpack://@ledgerhq/react-ui/./src/styles/theme.ts","webpack://@ledgerhq/react-ui/webpack/runtime/compat_get_default_export","webpack://@ledgerhq/react-ui/webpack/runtime/define_property_getters","webpack://@ledgerhq/react-ui/webpack/runtime/has_own_property","webpack://@ledgerhq/react-ui/webpack/runtime/make_namespace_object","webpack://@ledgerhq/react-ui/./src/components/layout/Banner/NotificationCard/index.tsx"],"sourcesContent":["import React from \"react\";\nimport styled, { css, useTheme } from \"styled-components\";\n\nimport * as Icons from \"@ledgerhq/icons-ui/react\";\nimport { Box } from \"../../layout\";\nimport { type ColorPalette, rgba } from \"../../../styles\";\n\ntype IconKey = keyof typeof Icons;\ntype WrapperType = \"round\" | \"square\";\n\ntype IconPallet = { fg: string; bg: string };\n\nfunction getColorsByIcon(\n colors: ColorPalette,\n): Partial<Record<IconKey, Partial<Record<WrapperType, Partial<IconPallet>>>>> {\n const { warning } = colors;\n\n return {\n Warning: {\n round: { fg: warning.c80, bg: warning.c30 },\n square: { fg: warning.c80, bg: warning.c30 },\n },\n };\n}\n\nfunction getDefaultDefaultColors({ primary }: ColorPalette): Record<WrapperType, IconPallet> {\n return {\n round: { fg: primary.c90, bg: primary.c30 },\n square: { fg: primary.c80, bg: rgba(primary.c80, 0.08) },\n };\n}\n\ntype Props = Readonly<{\n icon: IconKey;\n variant: WrapperType;\n}>;\n\nexport default function NotificationIcon({ icon, variant = \"round\" }: Props) {\n const { colors } = useTheme();\n const defaultColors = getDefaultDefaultColors(colors)[variant];\n const safeIcon: IconKey = icon in Icons ? icon : \"Information\";\n const Icon = Icons[safeIcon];\n const { fg: iconColor = defaultColors.fg, bg: iconBgColor = defaultColors.bg } =\n getColorsByIcon(colors)[safeIcon]?.[variant] ?? {};\n\n return (\n <Wrapper backgroundColor={iconBgColor} variant={variant}>\n <Icon color={iconColor} />\n </Wrapper>\n );\n}\n\nconst Wrapper = styled(Box)<{ variant: WrapperType }>`\n display: inline-flex;\n padding: 8px;\n ${p => (p.variant === \"square\" ? squareWrapper : roundWrapper)}\n`;\n\nconst roundWrapper = css`\n border-radius: 50%;\n`;\n\nconst squareWrapper = css`\n border-radius: 13.5px;\n background-clip: padding-box;\n border-width: 7px;\n border-style: solid;\n border-color: transparent;\n position: relative;\n\n ${p => css`\n &::before,\n &::after {\n content: \"\";\n position: absolute;\n inset: -7px;\n border-radius: 13.5px;\n rotate: ${p.theme.colors.type === \"dark\" ? \"0deg\" : \"180deg\"};\n }\n &::before {\n background: linear-gradient(\n ${p.theme.colors.type === \"dark\" ? \"rgba(255, 255, 255, 0.05)\" : \"rgba(29, 28, 31, 0.05)\"}\n 0%,\n rgba(29, 28, 31, 0) 100%\n );\n }\n &::after {\n content: ${p.theme.colors.type};\n border: solid 0.5px ${p.theme.colors.type === \"dark\" ? \"#fff\" : \"rgba(0, 0, 0, 0.5)\"};\n mask-image: linear-gradient(\n rgba(255, 255, 255, 0.15) 0%,\n rgba(255, 255, 255, 0.01) 60%,\n rgba(255, 255, 255, 0) 100%\n );\n }\n `};\n`;\n","import baseStyled, { BaseStyledProps } from \"../../styled\";\nimport {\n compose,\n fontSize,\n fontWeight,\n textAlign,\n lineHeight,\n letterSpacing,\n system,\n} from \"styled-system\";\nimport fontFamily from \"../../../styles/styled/fontFamily\";\nimport { TextVariants } from \"../../../styles/theme\";\nimport { textVariantStyle } from \"./styles\";\n\nconst uppercase = system({\n uppercase: {\n property: \"textTransform\",\n transform: value => (value ? \"uppercase\" : \"none\"),\n },\n});\n\ntype FontFamilies =\n | \"Inter|ExtraLight\"\n | \"Inter|Light\"\n | \"Inter|Regular\"\n | \"Inter|Medium\"\n | \"Inter|SemiBold\"\n | \"Inter|Bold\"\n | \"Inter|ExtraBold\"\n | \"Alpha|Medium\";\n\ntype WhiteSpace = \"normal\" | \"nowrap\" | \"pre\" | \"pre-line\" | \"pre-wrap\";\n\nexport interface TextProps extends BaseStyledProps {\n fontFamily?: string;\n ff?: FontFamilies;\n fontSize?: number | string | TextVariants;\n variant?: TextVariants;\n textAlign?: string;\n fontWeight?: string;\n lineHeight?: string;\n textTransform?: string;\n textOverflow?: string;\n uppercase?: boolean;\n whiteSpace?: WhiteSpace;\n}\n\nconst Text = baseStyled.span.attrs<TextProps, TextProps>(\n ({ variant = \"body\", fontSize, color }) => ({\n fontSize: fontSize ? fontSize : variant,\n color: color || \"neutral.c100\",\n }),\n)`\n font-weight: 500;\n white-space: ${props => props.whiteSpace ?? \"normal\"};\n ${(p: TextProps) => textVariantStyle[p.variant || \"body\"]}\n ${compose(\n uppercase,\n lineHeight,\n fontFamily,\n fontSize,\n textAlign,\n fontWeight,\n letterSpacing,\n system({\n textOverflow: true,\n }),\n )}\n ${p => (p.textTransform ? `text-transform: ${p.textTransform};` : \"\")}\n`;\n\nexport default Text;\n","import { GlobalStyleProps } from \"../../../styles/global\";\nimport { css } from \"styled-components\";\nimport { TextVariants } from \"../../../styles/theme\";\n\nconst getFontSource = (name: string) => (props: GlobalStyleProps) => {\n const fontsPath = props.fontsPath ?? \"assets/fonts\";\n const fontName = (props.fontMappings && props.fontMappings(name)) || `${name}.woff2`;\n return `url(\"${fontsPath}/${fontName}\") format(\"woff2\")`;\n};\n\nexport const fontStyles = css`\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-ExtraLight-BETA\")};\n font-weight: 100;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Light-BETA\")};\n font-weight: 300;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Regular\")};\n font-weight: 400;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Medium\")};\n font-weight: 500;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-SemiBold\")};\n font-weight: 600;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-ExtraBold\")};\n font-weight: 900;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Alpha\";\n src: ${getFontSource(\"HMAlphaMono-Medium\")};\n font-weight: 500;\n font-style: normal;\n }\n`;\n\nexport const textVariantStyle: Record<\n TextVariants,\n {\n fontFamily: string;\n lineHeight?: string | number;\n fontWeight?: number;\n \"text-transform\"?: string;\n }\n> = {\n h1: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h1Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h2: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h2Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h3: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h3Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n },\n h4: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h4Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 600,\n },\n h5: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h5Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n },\n large: {\n fontFamily: \"Inter, Sans\",\n },\n largeLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n body: {\n fontFamily: \"Inter, Sans\",\n },\n bodyLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n paragraph: {\n fontFamily: \"Inter, Sans\",\n },\n paragraphLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n small: {\n fontFamily: \"Inter, Sans\",\n },\n extraSmall: {\n fontFamily: \"Inter, Sans\",\n },\n tiny: {\n fontFamily: \"Inter, Sans\",\n },\n micro: {\n fontFamily: \"Inter, Sans\",\n },\n subtitle: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 600,\n \"text-transform\": \"uppercase\",\n },\n};\n","import baseStyled, { BaseStyledProps } from \"../../styled\";\n\nexport type BoxProps = BaseStyledProps;\n\nconst Box = baseStyled.div<BaseStyledProps>``;\n\nexport default Box;\n","import baseStyled, { BaseStyledProps } from \"../../styled\";\n\nconst FlexBox = baseStyled.div.attrs<BaseStyledProps, BaseStyledProps>({ display: \"flex\" })``;\nexport type FlexBoxProps = BaseStyledProps & React.HTMLAttributes<HTMLDivElement>;\n\nexport default FlexBox;\n","import { grid, GridProps } from \"styled-system\";\nimport baseStyled, { BaseStyledProps } from \"../../styled\";\n\nexport interface Props extends GridProps, BaseStyledProps {\n columns?: number | string;\n rows?: number | string;\n}\n\nfunction getColumns(props: Props) {\n const { columns } = props;\n return columns === \"none\" ? columns : `repeat(${columns || 12}, minmax(0, 1fr));`;\n}\n\nfunction getRows(props: Props) {\n const { rows } = props;\n return !rows ? \"initial\" : rows === \"none\" ? rows : `repeat(${rows}, minmax(0, 1fr));`;\n}\n\nconst Grid = baseStyled.div<Props>`\n display: grid;\n grid-template-columns: ${getColumns};\n grid-template-rows: ${getRows};\n ${grid};\n`;\nexport default Grid;\n","import gaps from \"../styles/system/gaps\";\nimport styled, { StyledInterface, InterpolationFunction } from \"styled-components\";\nimport {\n compose,\n flexbox,\n FlexboxProps,\n space,\n SpaceProps,\n position,\n PositionProps,\n color,\n ColorProps,\n layout,\n LayoutProps,\n overflow,\n OverflowProps,\n border,\n BorderProps,\n} from \"styled-system\";\n\nexport type BaseStyledProps = SpaceProps &\n FlexboxProps &\n PositionProps &\n ColorProps &\n LayoutProps &\n BorderProps &\n OverflowProps & {\n /**\n * The columnGap CSS property sets the size of the gap (gutter) between an element's grid columns.\n */\n columnGap?: string | number;\n /**\n * The rowGap CSS property sets the size of the gap (gutter) between an element's grid rows.\n */\n rowGap?: string | number;\n color?: string;\n };\n\nexport const baseStyles: InterpolationFunction<unknown> = compose(\n flexbox,\n space,\n position,\n color,\n layout,\n overflow,\n gaps,\n border,\n);\n\nconst proxyStyled = new Proxy(styled, {\n apply(target: typeof styled, thisArg, argumentsList: Parameters<typeof styled>) {\n return styled(target.apply(thisArg, argumentsList)(baseStyles));\n },\n get(target, property: keyof typeof styled) {\n if (typeof target[property] === \"function\") {\n return styled(target[property].apply(styled, [baseStyles]));\n }\n return target[property];\n },\n});\n\nexport default <StyledInterface>proxyStyled;\n","import Color from \"color\";\n\nimport { fontFamilies } from \"./theme\";\n\nexport const rgba = (c: string, a: number): string => Color(c).alpha(a).rgb().toString();\n\nexport const darken = (c: string, a: number): string => Color(c).darken(a).toString();\n\nexport const lighten = (c: string, a: number): string => Color(c).lighten(a).toString();\n\nexport const mix = (c: string, b: string, a: number): string =>\n Color(c).mix(Color(b), a).toString();\n\nexport const ff = (v: string) => {\n const [font, type = \"Regular\"] = v.split(\"|\");\n // @ts-expect-error FIXME\n const { style, weight } = fontFamilies[font][type];\n // @ts-expect-error FIXME\n const fallback: string = fontFamilies[font].fallback ?? \"Arial\";\n\n return {\n fontFamily: `${font}, ${fallback}`,\n fontWeight: weight,\n fontStyle: style,\n };\n};\n\nexport const ensureContrast = (color1: string, color2: string) => {\n const colorL1 = Color(color1).luminosity() + 0.05;\n const colorL2 = Color(color2).luminosity() + 0.05;\n\n const lRatio = colorL1 > colorL2 ? colorL1 / colorL2 : colorL2 / colorL1;\n\n if (lRatio < 1.5) {\n return Color(color1).rotate(180).negate().string();\n }\n return color1;\n};\n","import { ff } from \"../helpers\";\n\nexport default (props: { ff?: string }) => {\n const prop = props.ff;\n\n if (prop == null) {\n return null;\n }\n\n return ff(prop);\n};\n","import { system } from \"styled-system\";\n\nconst gaps = system({\n rowGap: { property: \"rowGap\", scale: \"space\" },\n columnGap: { property: \"columnGap\", scale: \"space\" },\n});\n\nexport default gaps;\n","import { keyframes, css, Font } from \"styled-components\";\nimport { palettes, ColorPalette } from \"@ledgerhq/ui-shared\";\n\nexport type screensBreakpoints = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\";\n\nexport const breakpoints = {\n sm: \"640px\",\n md: \"768px\",\n lg: \"1024px\",\n xl: \"1280px\",\n xxl: \"1536px\",\n} as Record<screensBreakpoints, string>;\n\nexport const space = [\n /* space indexes:\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 */\n 0, 2, 4, 8, 10, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76,\n];\n\nexport type TextVariants =\n | \"h1\"\n | \"h1Inter\"\n | \"h2\"\n | \"h2Inter\"\n | \"h3\"\n | \"h3Inter\"\n | \"h4\"\n | \"h4Inter\"\n | \"h5\"\n | \"h5Inter\"\n | \"large\"\n | \"largeLineHeight\"\n | \"body\"\n | \"bodyLineHeight\"\n | \"paragraph\"\n | \"paragraphLineHeight\"\n | \"small\"\n | \"extraSmall\"\n | \"tiny\"\n | \"micro\"\n | \"subtitle\";\n\nexport type ThemeScale<Type, Aliases extends string> = Array<Type> & Record<Aliases, Type>;\n\nexport const fontSizes = [8, 10, 11, 12, 13, 14, 16, 20, 24, 28, 32, 36] as ThemeScale<\n number,\n TextVariants\n>;\n\n[\n fontSizes.micro,\n fontSizes.tiny,\n fontSizes.extraSmall,\n fontSizes.small,\n fontSizes.paragraph,\n fontSizes.body,\n fontSizes.large,\n fontSizes.h5,\n fontSizes.h4,\n fontSizes.h3,\n fontSizes.h2,\n fontSizes.h1,\n] = fontSizes;\nfontSizes.largeLineHeight = fontSizes.large;\nfontSizes.bodyLineHeight = fontSizes.body;\nfontSizes.paragraphLineHeight = fontSizes.paragraph;\nfontSizes.subtitle = fontSizes.extraSmall;\nfontSizes.h1Inter = fontSizes.h1;\nfontSizes.h2Inter = fontSizes.h2;\nfontSizes.h3Inter = fontSizes.h3;\nfontSizes.h4Inter = fontSizes.h4;\nfontSizes.h5Inter = fontSizes.h5;\n\nconst fontWeights = {\n extraLight: \"100\",\n light: \"300\",\n regular: \"400\",\n medium: \"500\",\n semiBold: \"600\",\n bold: \"700\",\n extraBold: \"800\",\n};\n\nexport const radii = [0, 4, 8, 12, 16, 20];\nexport const shadows = [\"0 4px 8px 0 rgba(0, 0, 0, 0.03)\"];\nexport const zIndexes = [-1, 0, 1, 9, 10, 90, 100, 900, 1000];\n\n// Those fonts are now defined in global.css, this is just a mapping for styled-system\nexport const fontFamilies = {\n Inter: {\n ExtraLight: {\n weight: 100,\n style: \"normal\",\n },\n Light: {\n weight: 300,\n style: \"normal\",\n },\n Regular: {\n weight: 400,\n style: \"normal\",\n },\n Medium: {\n weight: 500,\n style: \"normal\",\n },\n SemiBold: {\n weight: 600,\n style: \"normal\",\n },\n Bold: {\n weight: 700,\n style: \"normal\",\n },\n ExtraBold: {\n weight: 800,\n style: \"normal\",\n },\n },\n Alpha: {\n Medium: {\n weight: 500,\n style: \"normal\",\n },\n },\n};\n\nconst animationDuration = \"0.33s\";\nconst easings = {\n outQuadratic: \"cubic-bezier(0.25, 0.46, 0.45, 0.94)\",\n};\n\nconst transition = (\n properties = [\"all\"],\n duration = animationDuration,\n easing = easings.outQuadratic,\n) => css`\n transition-property: ${properties.join(\",\")};\n transition-duration: ${duration};\n transition-timing-function: ${easing};\n`;\n\nconst fadeIn = keyframes`\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n `;\nconst fadeOut = keyframes`\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n `;\nconst fadeInGrowX = keyframes`\n 0% {\n opacity: 0;\n transform: scaleX(0);\n }\n 100% {\n opacity: 1;\n transform: scaleX(1);\n }\n`;\nconst fadeInUp = keyframes`\n 0% {\n opacity: 0;\n transform: translateY(66%);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n `;\nconst animations = {\n fadeIn: () => css`\n ${fadeIn} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n fadeOut: () => css`\n ${fadeOut} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n fadeInGrowX: () => css`\n ${fadeInGrowX} 0.6s ${easings.outQuadratic} forwards\n `,\n fadeInUp: () => css`\n ${fadeInUp} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n};\nconst overflow = {\n x: css`\n overflow-y: hidden;\n overflow-x: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n y: css`\n overflow-x: hidden;\n overflow-y: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n yAuto: css`\n overflow-x: hidden;\n overflow-y: auto;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n xy: css`\n overflow: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n trackSize: 12,\n};\n\ninterface DefaultTheme {\n theme: \"dark\" | \"light\";\n animations: typeof animations;\n transition: typeof transition;\n overflow: typeof overflow;\n sizes: {\n topBarHeight: number;\n sideBarWidth: number;\n drawer: {\n side: {\n big: {\n width: number;\n };\n small: {\n width: number;\n };\n };\n popin: {\n min: {\n height: number;\n width: number;\n };\n max: {\n height: number;\n width: number;\n };\n };\n };\n };\n radii: number[];\n fontFamilies: Record<string, Record<string, Font>>;\n fontSizes: number[];\n space: number[];\n shadows: string[];\n colors: ColorPalette;\n fontWeights: Record<string, string>;\n breakpoints: Record<screensBreakpoints, string>;\n zIndexes: number[];\n}\n\nconst theme: DefaultTheme = {\n theme: \"light\",\n sizes: {\n drawer: {\n side: {\n big: {\n width: 580,\n },\n small: {\n width: 420,\n },\n },\n popin: {\n min: {\n height: 158,\n width: 462,\n },\n max: {\n height: 522,\n width: 622,\n },\n },\n },\n topBarHeight: 58,\n sideBarWidth: 230,\n },\n radii,\n fontFamilies,\n fontSizes,\n fontWeights,\n space,\n shadows,\n colors: palettes.light,\n animations,\n overflow,\n transition,\n zIndexes,\n breakpoints,\n};\n\nexport default theme;\nexport type Theme = DefaultTheme;\n","// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import React, { type ReactEventHandler, type ReactNode } from \"react\";\nimport styled from \"styled-components\";\n\nimport * as Icons from \"@ledgerhq/icons-ui/react\";\nimport { NotificationIcon } from \"../../../asorted\";\nimport Text from \"../../../asorted/Text\";\nimport type { Props as GridBoxProps } from \"../../Grid\";\nimport { Grid, Flex } from \"../..\";\n\ntype IconKey = keyof typeof Icons;\n\ntype Props = GridBoxProps & {\n title?: string;\n cta?: ReactNode;\n description?: ReactNode;\n icon: IconKey;\n isHighlighted?: boolean;\n\n onClick: ReactEventHandler;\n};\n\nexport default function NotificationCard({\n title,\n cta,\n icon,\n description,\n isHighlighted,\n onClick,\n ...boxProps\n}: Props) {\n const handleCTAClick: ReactEventHandler = event => {\n event.stopPropagation();\n onClick(event);\n };\n\n return (\n <Wrapper {...boxProps} isHighlighted={isHighlighted} onClick={handleCTAClick}>\n <NotificationIcon icon={icon} variant={isHighlighted ? \"square\" : \"round\"} />\n <Flex flexDirection=\"column\" rowGap={isHighlighted ? \"4px\" : \"8px\"}>\n {title && (\n <Text variant=\"h4Inter\" fontSize={16}>\n {title}\n </Text>\n )}\n {description && (\n <Desc color={isHighlighted ? \"neutral.c100\" : \"neutral.c80\"}>{description}</Desc>\n )}\n {cta}\n </Flex>\n </Wrapper>\n );\n}\n\nconst Desc = styled(Text).attrs({ variant: \"small\" })`\n font-family: Inter;\n font-size: 13px;\n font-style: normal;\n font-weight: 500;\n`;\n\nconst Wrapper = styled(Grid)<Pick<Props, \"isHighlighted\">>`\n background-color: ${({ isHighlighted, theme: { colors } }) => {\n if (!isHighlighted) return \"transparent\";\n return colors.type === \"dark\" ? colors.opacityDefault.c05 : colors.neutral.c00;\n }};\n\n cursor: pointer;\n padding: 12px;\n grid-template-columns: auto 1fr;\n gap: ${p => (p.isHighlighted ? \"12px\" : \"24px\")};\n border-radius: 12px;\n\n align-items: center;\n justify-content: start;\n`;\n"],"names":["React","styled","css","useTheme","Icons","Box","rgba","getColorsByIcon","colors","warning","getDefaultDefaultColors","primary","NotificationIcon","icon","variant","defaultColors","safeIcon","Icon","iconColor","iconBgColor","Wrapper","p","squareWrapper","roundWrapper","baseStyled","compose","fontSize","fontWeight","textAlign","lineHeight","letterSpacing","system","fontFamily","textVariantStyle","uppercase","value","Text","color","props","getFontSource","name","fontsPath","fontName","fontStyles","FlexBox","grid","getColumns","columns","getRows","rows","Grid","gaps","flexbox","space","position","layout","overflow","border","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property","Color","fontFamilies","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","Flex","NotificationCard","title","cta","description","isHighlighted","onClick","boxProps","handleCTAClick","event","Desc"],"mappings":";;;;;;;;;;;;;;;AAA0B;AACgC;AAER;AACf;AACuB;AAO1D,SAASO,gBACPC,MAAoB;IAEpB,MAAM,EAAEC,OAAO,EAAE,GAAGD;IAEpB,OAAO;QACL,SAAS;YACP,OAAO;gBAAE,IAAIC,QAAQ,GAAG;gBAAE,IAAIA,QAAQ,GAAG;YAAC;YAC1C,QAAQ;gBAAE,IAAIA,QAAQ,GAAG;gBAAE,IAAIA,QAAQ,GAAG;YAAC;QAC7C;IACF;AACF;AAEA,SAASC,wBAAwB,EAAEC,OAAO,EAAgB;IACxD,OAAO;QACL,OAAO;YAAE,IAAIA,QAAQ,GAAG;YAAE,IAAIA,QAAQ,GAAG;QAAC;QAC1C,QAAQ;YAAE,IAAIA,QAAQ,GAAG;YAAE,IAAIL,iCAAIA,CAACK,QAAQ,GAAG,EAAE;QAAM;IACzD;AACF;AAOe,SAASC,iBAAiB,EAAEC,IAAI,EAAEC,UAAU,OAAO,EAAS;IACzE,MAAM,EAAEN,MAAM,EAAE,GAAGL,+CAAQA;IAC3B,MAAMY,gBAAgBL,wBAAwBF,OAAO,CAACM,QAAQ;IAC9D,MAAME,WAAoBH,QAAQT,yCAAKA,GAAGS,OAAO;IACjD,MAAMI,OAAOb,yCAAK,CAACY,SAAS;IAC5B,MAAM,EAAE,IAAIE,YAAYH,cAAc,EAAE,EAAE,IAAII,cAAcJ,cAAc,EAAE,EAAE,GAC5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eAAe;QACrBH,QAAQG;IACV;IAEA,qBACE,+CAAChG;QAAS,GAAG8F,QAAQ;QAAE,eAAeF;QAAe,SAASG;qBAC5D,+CAACvG,oCAAgBA;QAAC,MAAMC;QAAM,SAASmG,gBAAgB,WAAW;sBAClE,+CAACL,6BAAIA;QAAC,eAAc;QAAS,QAAQK,gBAAgB,QAAQ;OAC1DH,uBACC,+CAACzE,yCAAIA;QAAC,SAAQ;QAAU,UAAU;OAC/ByE,QAGJE,6BACC,+CAACM;QAAK,OAAOL,gBAAgB,iBAAiB;OAAgBD,cAE/DD;AAIT;AAEA,MAAMO,OAAOpH,4CAAMA,CAACmC,6CAAIA,EAAE,KAAK,CAAC;IAAE,SAAS;AAAQ,EAAE,CAAC;;;;;AAKtD,CAAC;AAED,MAAMhB,UAAUnB,4CAAMA,CAACiD,iCAAIA,CAA+B,CAAC;oBACvC,EAAE,CAAC,EAAE8D,aAAa,EAAE,OAAO,EAAExG,MAAM,EAAE,EAAE;IACvD,IAAI,CAACwG,eAAe,OAAO;IAC3B,OAAOxG,OAAO,IAAI,KAAK,SAASA,OAAO,cAAc,CAAC,GAAG,GAAGA,OAAO,OAAO,CAAC,GAAG;AAChF,EAAE;;;;;OAKG,EAAEa,CAAAA,IAAMA,EAAE,aAAa,GAAG,SAAS,OAAQ;;;;;AAKlD,CAAC"}
@@ -1,85 +1,211 @@
1
+ (() => {
1
2
  "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var Box_stories_exports = {};
30
- __export(Box_stories_exports, {
31
- Default: () => Default,
32
- default: () => Box_stories_default
3
+ var __webpack_modules__ = ({
4
+ 3832(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
5
+ __webpack_require__.d(__webpack_exports__, {
6
+ "default": () => (__rspack_default_export)
7
+ });
8
+ /* import */ var _styled__rspack_import_0 = __webpack_require__(7680);
9
+
10
+ const Box = _styled__rspack_import_0["default"].div``;
11
+ /* export default */ const __rspack_default_export = (Box);
12
+
13
+
14
+ },
15
+ 7680(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
16
+ __webpack_require__.d(__webpack_exports__, {
17
+ "default": () => (__rspack_default_export)
33
18
  });
34
- module.exports = __toCommonJS(Box_stories_exports);
35
- var import_react = __toESM(require("react"));
36
- var import__ = __toESM(require("."));
37
- var Box_stories_default = {
38
- title: "Layout/Box",
39
- component: import__.default,
40
- argTypes: {
41
- backgroundColor: {
42
- type: "text",
43
- control: "color",
44
- description: "This property defines the backgroundColor of the box. This property any color format."
19
+ /* import */ var _styles_system_gaps__rspack_import_2 = __webpack_require__(4182);
20
+ /* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
21
+ /* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
22
+ /* import */ var styled_system__rspack_import_1 = __webpack_require__(9351);
23
+ /* import */ var styled_system__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_1);
24
+
25
+
26
+
27
+ const baseStyles = (0,styled_system__rspack_import_1.compose)(styled_system__rspack_import_1.flexbox, styled_system__rspack_import_1.space, styled_system__rspack_import_1.position, styled_system__rspack_import_1.color, styled_system__rspack_import_1.layout, styled_system__rspack_import_1.overflow, _styles_system_gaps__rspack_import_2["default"], styled_system__rspack_import_1.border);
28
+ const proxyStyled = new Proxy((styled_components__rspack_import_0_default()), {
29
+ apply (target, thisArg, argumentsList) {
30
+ return styled_components__rspack_import_0_default()(target.apply(thisArg, argumentsList)(baseStyles));
45
31
  },
46
- width: {
47
- type: "text",
48
- description: "Width of the box."
32
+ get (target, property) {
33
+ if (typeof target[property] === "function") {
34
+ return styled_components__rspack_import_0_default()(target[property].apply((styled_components__rspack_import_0_default()), [
35
+ baseStyles
36
+ ]));
37
+ }
38
+ return target[property];
39
+ }
40
+ });
41
+ /* export default */ const __rspack_default_export = (proxyStyled);
42
+
43
+
44
+ },
45
+ 4182(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
46
+ __webpack_require__.d(__webpack_exports__, {
47
+ "default": () => (__rspack_default_export)
48
+ });
49
+ /* import */ var styled_system__rspack_import_0 = __webpack_require__(9351);
50
+ /* import */ var styled_system__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_0);
51
+
52
+ const gaps = (0,styled_system__rspack_import_0.system)({
53
+ rowGap: {
54
+ property: "rowGap",
55
+ scale: "space"
49
56
  },
50
- py: {
51
- type: "text",
52
- description: "Padding top and bottom."
57
+ columnGap: {
58
+ property: "columnGap",
59
+ scale: "space"
60
+ }
61
+ });
62
+ /* export default */ const __rspack_default_export = (gaps);
63
+
64
+
65
+ },
66
+ 2770(module) {
67
+ module.exports = require("styled-components");
68
+
69
+ },
70
+ 9351(module) {
71
+ module.exports = require("styled-system");
72
+
73
+ },
74
+
75
+ });
76
+ // The module cache
77
+ var __webpack_module_cache__ = {};
78
+
79
+ // The require function
80
+ function __webpack_require__(moduleId) {
81
+
82
+ // Check if module is in cache
83
+ var cachedModule = __webpack_module_cache__[moduleId];
84
+ if (cachedModule !== undefined) {
85
+ return cachedModule.exports;
86
+ }
87
+ // Create a new module (and put it into the cache)
88
+ var module = (__webpack_module_cache__[moduleId] = {
89
+ exports: {}
90
+ });
91
+ // Execute the module function
92
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
93
+
94
+ // Return the exports of the module
95
+ return module.exports;
96
+
97
+ }
98
+
99
+ // webpack/runtime/compat_get_default_export
100
+ (() => {
101
+ // getDefaultExport function for compatibility with non-ESM modules
102
+ __webpack_require__.n = (module) => {
103
+ var getter = module && module.__esModule ?
104
+ () => (module['default']) :
105
+ () => (module);
106
+ __webpack_require__.d(getter, { a: getter });
107
+ return getter;
108
+ };
109
+
110
+ })();
111
+ // webpack/runtime/define_property_getters
112
+ (() => {
113
+ __webpack_require__.d = (exports, definition) => {
114
+ for(var key in definition) {
115
+ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
116
+ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
117
+ }
118
+ }
119
+ };
120
+ })();
121
+ // webpack/runtime/has_own_property
122
+ (() => {
123
+ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
124
+ })();
125
+ // webpack/runtime/make_namespace_object
126
+ (() => {
127
+ // define __esModule on exports
128
+ __webpack_require__.r = (exports) => {
129
+ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
130
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
131
+ }
132
+ Object.defineProperty(exports, '__esModule', { value: true });
133
+ };
134
+ })();
135
+ var __webpack_exports__ = {};
136
+ // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
137
+ (() => {
138
+ // ESM COMPAT FLAG
139
+ __webpack_require__.r(__webpack_exports__);
140
+
141
+ // EXPORTS
142
+ __webpack_require__.d(__webpack_exports__, {
143
+ "default": () => (/* binding */ Box_stories),
144
+ Default: () => (/* binding */ Default)
145
+ });
146
+
147
+ ;// CONCATENATED MODULE: external "react"
148
+ const external_react_namespaceObject = require("react");
149
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
150
+ // EXTERNAL MODULE: ./src/components/layout/Box/index.ts
151
+ var Box = __webpack_require__(3832);
152
+ ;// CONCATENATED MODULE: ./src/components/layout/Box/Box.stories.tsx
153
+
154
+
155
+ /* export default */ const Box_stories = ({
156
+ title: "Layout/Box",
157
+ component: Box["default"],
158
+ argTypes: {
159
+ backgroundColor: {
160
+ type: "text",
161
+ control: "color",
162
+ description: "This property defines the backgroundColor of the box. This property any color format."
163
+ },
164
+ width: {
165
+ type: "text",
166
+ description: "Width of the box."
167
+ },
168
+ py: {
169
+ type: "text",
170
+ description: "Padding top and bottom."
171
+ },
172
+ px: {
173
+ type: "text",
174
+ description: "Padding left and right."
175
+ },
176
+ mx: {
177
+ type: "text",
178
+ description: "Margin left and right."
179
+ }
53
180
  },
54
- px: {
55
- type: "text",
56
- description: "Padding left and right."
181
+ args: {
182
+ backgroundColor: "#0EBDCD",
183
+ width: "200px",
184
+ py: "20px",
185
+ px: "20px",
186
+ mx: "20px"
57
187
  },
58
- mx: {
59
- type: "text",
60
- description: "Margin left and right."
61
- }
62
- },
63
- args: {
64
- backgroundColor: "#0EBDCD",
65
- width: "200px",
66
- py: "20px",
67
- px: "20px",
68
- mx: "20px"
69
- },
70
- parameters: {
71
- docs: {
72
- description: {
73
- component: `The Box component is a helper component that lets you write these common css properties more succinctly and inline.
188
+ parameters: {
189
+ docs: {
190
+ description: {
191
+ component: `The Box component is a helper component that lets you write these common css properties more succinctly and inline.
74
192
 
75
193
  It include all the style props exported by the color, layout, position, shadow utilities, and some of the flexbox utility, from the [styled-system](https://styled-system.com) library.
76
194
 
77
195
  [See more about styled-system utilities](https://styled-system.com/api)`
78
- }
79
- },
80
- actions: { argTypesRegex: false }
81
- }
82
- };
83
- const Template = (args) => /* @__PURE__ */ import_react.default.createElement(import__.default, { ...args }, "A plain good ol'box with fixed width, backgroundColor, padding and margin, all by using inline props");
196
+ }
197
+ },
198
+ actions: {
199
+ argTypesRegex: false
200
+ }
201
+ }
202
+ });
203
+ const Template = (args)=>/*#__PURE__*/ external_react_default().createElement(Box["default"], args, "A plain good ol'box with fixed width, backgroundColor, padding and margin, all by using inline props");
84
204
  const Default = Template.bind({});
85
- //# sourceMappingURL=Box.stories.js.map
205
+
206
+ })();
207
+
208
+ module.exports = __webpack_exports__;
209
+ })()
210
+ ;
211
+ //# sourceMappingURL=Box.stories.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../src/components/layout/Box/Box.stories.tsx"],
4
- "sourcesContent": ["import React from \"react\";\nimport Box, { BoxProps } from \".\";\nexport default {\n title: \"Layout/Box\",\n component: Box,\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 px: {\n type: \"text\",\n description: \"Padding left and right.\",\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 Box component is a helper component that lets you write these common css properties more succinctly and inline.\n \nIt include all the style props exported by the color, layout, position, shadow utilities, and some of the flexbox utility, 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 actions: { argTypesRegex: false },\n },\n};\n\nconst Template = (args: BoxProps) => (\n <Box {...args}>\n A plain good ol'box with fixed width, backgroundColor, padding and margin, all by using inline\n props\n </Box>\n);\n\nexport const Default = Template.bind({});\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,eAA8B;AAC9B,IAAO,sBAAQ;AAAA,EACb,OAAO;AAAA,EACP,WAAW,SAAAA;AAAA,EACX,UAAU;AAAA,IACR,iBAAiB;AAAA,MACf,MAAM;AAAA,MACN,SAAS;AAAA,MACT,aACE;AAAA,IACJ;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,IAAI;AAAA,MACF,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,IAAI;AAAA,MACF,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,IAAI;AAAA,MACF,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,EACF;AAAA,EACA,MAAM;AAAA,IACJ,iBAAiB;AAAA,IACjB,OAAO;AAAA,IACP,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,EACN;AAAA,EACA,YAAY;AAAA,IACV,MAAM;AAAA,MACJ,aAAa;AAAA,QACX,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA,MAKb;AAAA,IACF;AAAA,IACA,SAAS,EAAE,eAAe,MAAM;AAAA,EAClC;AACF;AAEA,MAAM,WAAW,CAAC,SAChB,6BAAAC,QAAA,cAAC,SAAAD,SAAA,EAAK,GAAG,QAAM,sGAGf;AAGK,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;",
6
- "names": ["Box", "React"]
7
- }
1
+ {"version":3,"file":"components/layout/Box/Box.stories.js","sources":["webpack://@ledgerhq/react-ui/./src/components/layout/Box/index.ts","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/layout/Box/Box.stories.tsx"],"sourcesContent":["import baseStyled, { BaseStyledProps } from \"../../styled\";\n\nexport type BoxProps = BaseStyledProps;\n\nconst Box = baseStyled.div<BaseStyledProps>``;\n\nexport default Box;\n","import gaps from \"../styles/system/gaps\";\nimport styled, { StyledInterface, InterpolationFunction } from \"styled-components\";\nimport {\n compose,\n flexbox,\n FlexboxProps,\n space,\n SpaceProps,\n position,\n PositionProps,\n color,\n ColorProps,\n layout,\n LayoutProps,\n overflow,\n OverflowProps,\n border,\n BorderProps,\n} from \"styled-system\";\n\nexport type BaseStyledProps = SpaceProps &\n FlexboxProps &\n PositionProps &\n ColorProps &\n LayoutProps &\n BorderProps &\n OverflowProps & {\n /**\n * The columnGap CSS property sets the size of the gap (gutter) between an element's grid columns.\n */\n columnGap?: string | number;\n /**\n * The rowGap CSS property sets the size of the gap (gutter) between an element's grid rows.\n */\n rowGap?: string | number;\n color?: string;\n };\n\nexport const baseStyles: InterpolationFunction<unknown> = compose(\n flexbox,\n space,\n position,\n color,\n layout,\n overflow,\n gaps,\n border,\n);\n\nconst proxyStyled = new Proxy(styled, {\n apply(target: typeof styled, thisArg, argumentsList: Parameters<typeof styled>) {\n return styled(target.apply(thisArg, argumentsList)(baseStyles));\n },\n get(target, property: keyof typeof styled) {\n if (typeof target[property] === \"function\") {\n return styled(target[property].apply(styled, [baseStyles]));\n }\n return target[property];\n },\n});\n\nexport default <StyledInterface>proxyStyled;\n","import { 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 Box, { BoxProps } from \".\";\nexport default {\n title: \"Layout/Box\",\n component: Box,\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 px: {\n type: \"text\",\n description: \"Padding left and right.\",\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 Box component is a helper component that lets you write these common css properties more succinctly and inline.\n \nIt include all the style props exported by the color, layout, position, shadow utilities, and some of the flexbox utility, 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 actions: { argTypesRegex: false },\n },\n};\n\nconst Template = (args: BoxProps) => (\n <Box {...args}>\n A plain good ol'box with fixed width, backgroundColor, padding and margin, all by using inline\n props\n </Box>\n);\n\nexport const Default = Template.bind({});\n"],"names":["baseStyled","Box","gaps","styled","compose","flexbox","space","position","color","layout","overflow","border","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property","system","React","Template","args","Default"],"mappings":";;;;;;;;AAA2D;AAI3D,MAAMC,MAAMD,uCA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O;YACL,MAAM;YACN,aAAa;QACf;QACA,IAAI;YACF,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;QACA,SAAS;YAAE,eAAe;QAAM;IAClC;AACF,CAAC,EAAC;AAEF,MAAMoB,WAAW,CAACC,qBAChB,uCAACrB,cAAGA,EAAKqB,MAAM;AAMV,MAAMC,UAAUF,SAAS,IAAI,CAAC,CAAC,GAAG"}
@@ -1,37 +1,141 @@
1
+ (() => {
1
2
  "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
3
+ var __webpack_modules__ = ({
4
+ 7680(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
5
+ __webpack_require__.d(__webpack_exports__, {
6
+ "default": () => (__rspack_default_export)
7
+ });
8
+ /* import */ var _styles_system_gaps__rspack_import_2 = __webpack_require__(4182);
9
+ /* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
10
+ /* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
11
+ /* import */ var styled_system__rspack_import_1 = __webpack_require__(9351);
12
+ /* import */ var styled_system__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_1);
13
+
14
+
15
+
16
+ const baseStyles = (0,styled_system__rspack_import_1.compose)(styled_system__rspack_import_1.flexbox, styled_system__rspack_import_1.space, styled_system__rspack_import_1.position, styled_system__rspack_import_1.color, styled_system__rspack_import_1.layout, styled_system__rspack_import_1.overflow, _styles_system_gaps__rspack_import_2["default"], styled_system__rspack_import_1.border);
17
+ const proxyStyled = new Proxy((styled_components__rspack_import_0_default()), {
18
+ apply (target, thisArg, argumentsList) {
19
+ return styled_components__rspack_import_0_default()(target.apply(thisArg, argumentsList)(baseStyles));
20
+ },
21
+ get (target, property) {
22
+ if (typeof target[property] === "function") {
23
+ return styled_components__rspack_import_0_default()(target[property].apply((styled_components__rspack_import_0_default()), [
24
+ baseStyles
25
+ ]));
26
+ }
27
+ return target[property];
28
+ }
29
+ });
30
+ /* export default */ const __rspack_default_export = (proxyStyled);
31
+
32
+
33
+ },
34
+ 4182(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
35
+ __webpack_require__.d(__webpack_exports__, {
36
+ "default": () => (__rspack_default_export)
37
+ });
38
+ /* import */ var styled_system__rspack_import_0 = __webpack_require__(9351);
39
+ /* import */ var styled_system__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_0);
40
+
41
+ const gaps = (0,styled_system__rspack_import_0.system)({
42
+ rowGap: {
43
+ property: "rowGap",
44
+ scale: "space"
45
+ },
46
+ columnGap: {
47
+ property: "columnGap",
48
+ scale: "space"
49
+ }
50
+ });
51
+ /* export default */ const __rspack_default_export = (gaps);
52
+
53
+
54
+ },
55
+ 2770(module) {
56
+ module.exports = require("styled-components");
57
+
58
+ },
59
+ 9351(module) {
60
+ module.exports = require("styled-system");
61
+
62
+ },
63
+
64
+ });
65
+ // The module cache
66
+ var __webpack_module_cache__ = {};
67
+
68
+ // The require function
69
+ function __webpack_require__(moduleId) {
70
+
71
+ // Check if module is in cache
72
+ var cachedModule = __webpack_module_cache__[moduleId];
73
+ if (cachedModule !== undefined) {
74
+ return cachedModule.exports;
75
+ }
76
+ // Create a new module (and put it into the cache)
77
+ var module = (__webpack_module_cache__[moduleId] = {
78
+ exports: {}
79
+ });
80
+ // Execute the module function
81
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
82
+
83
+ // Return the exports of the module
84
+ return module.exports;
85
+
86
+ }
87
+
88
+ // webpack/runtime/compat_get_default_export
89
+ (() => {
90
+ // getDefaultExport function for compatibility with non-ESM modules
91
+ __webpack_require__.n = (module) => {
92
+ var getter = module && module.__esModule ?
93
+ () => (module['default']) :
94
+ () => (module);
95
+ __webpack_require__.d(getter, { a: getter });
96
+ return getter;
97
+ };
98
+
99
+ })();
100
+ // webpack/runtime/define_property_getters
101
+ (() => {
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
+ }
11
108
  };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
109
+ })();
110
+ // webpack/runtime/has_own_property
111
+ (() => {
112
+ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
113
+ })();
114
+ // webpack/runtime/make_namespace_object
115
+ (() => {
116
+ // define __esModule on exports
117
+ __webpack_require__.r = (exports) => {
118
+ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
119
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
120
+ }
121
+ Object.defineProperty(exports, '__esModule', { value: true });
19
122
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var Box_exports = {};
30
- __export(Box_exports, {
31
- default: () => Box_default
123
+ })();
124
+ var __webpack_exports__ = {};
125
+ // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
126
+ (() => {
127
+ __webpack_require__.r(__webpack_exports__);
128
+ __webpack_require__.d(__webpack_exports__, {
129
+ "default": () => (__rspack_default_export)
32
130
  });
33
- module.exports = __toCommonJS(Box_exports);
34
- var import_styled = __toESM(require("../../styled"));
35
- const Box = import_styled.default.div``;
36
- var Box_default = Box;
37
- //# sourceMappingURL=index.js.map
131
+ /* import */ var _styled__rspack_import_0 = __webpack_require__(7680);
132
+
133
+ const Box = _styled__rspack_import_0["default"].div``;
134
+ /* export default */ const __rspack_default_export = (Box);
135
+
136
+ })();
137
+
138
+ module.exports = __webpack_exports__;
139
+ })()
140
+ ;
141
+ //# sourceMappingURL=index.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../src/components/layout/Box/index.ts"],
4
- "sourcesContent": ["import baseStyled, { BaseStyledProps } from \"../../styled\";\n\nexport type BoxProps = BaseStyledProps;\n\nconst Box = baseStyled.div<BaseStyledProps>``;\n\nexport default Box;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA4C;AAI5C,MAAM,MAAM,cAAAA,QAAW;AAEvB,IAAO,cAAQ;",
6
- "names": ["baseStyled"]
7
- }
1
+ {"version":3,"file":"components/layout/Box/index.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/layout/Box/index.ts"],"sourcesContent":["import gaps from \"../styles/system/gaps\";\nimport styled, { StyledInterface, InterpolationFunction } from \"styled-components\";\nimport {\n compose,\n flexbox,\n FlexboxProps,\n space,\n SpaceProps,\n position,\n PositionProps,\n color,\n ColorProps,\n layout,\n LayoutProps,\n overflow,\n OverflowProps,\n border,\n BorderProps,\n} from \"styled-system\";\n\nexport type BaseStyledProps = SpaceProps &\n FlexboxProps &\n PositionProps &\n ColorProps &\n LayoutProps &\n BorderProps &\n OverflowProps & {\n /**\n * The columnGap CSS property sets the size of the gap (gutter) between an element's grid columns.\n */\n columnGap?: string | number;\n /**\n * The rowGap CSS property sets the size of the gap (gutter) between an element's grid rows.\n */\n rowGap?: string | number;\n color?: string;\n };\n\nexport const baseStyles: InterpolationFunction<unknown> = compose(\n flexbox,\n space,\n position,\n color,\n layout,\n overflow,\n gaps,\n border,\n);\n\nconst proxyStyled = new Proxy(styled, {\n apply(target: typeof styled, thisArg, argumentsList: Parameters<typeof styled>) {\n return styled(target.apply(thisArg, argumentsList)(baseStyles));\n },\n get(target, property: keyof typeof styled) {\n if (typeof target[property] === \"function\") {\n return styled(target[property].apply(styled, [baseStyles]));\n }\n return target[property];\n },\n});\n\nexport default <StyledInterface>proxyStyled;\n","import { 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 baseStyled, { BaseStyledProps } from \"../../styled\";\n\nexport type BoxProps = BaseStyledProps;\n\nconst Box = baseStyled.div<BaseStyledProps>``;\n\nexport default Box;\n"],"names":["gaps","styled","compose","flexbox","space","position","color","layout","overflow","border","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property","system","baseStyled","Box"],"mappings":";;;;;;;;;;;;AAAyC;AAC0C;AAiB5D;AAoBhB,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;;;;;;;;;;AC7DL;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;;;;;;;;;;ACN2D;AAI3D,MAAMmB,MAAMD,uCAA+B,CAAC,CAAC;AAE7C,sDAAeC,GAAGA,EAAC"}