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

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,67 +1,264 @@
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
+ 3831(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
5
+
6
+ // EXPORTS
7
+ __webpack_require__.d(__webpack_exports__, {
8
+ "default": () => (/* binding */ bullets)
9
+ });
10
+
11
+ // EXTERNAL MODULE: external "react"
12
+ var external_react_ = __webpack_require__(2015);
13
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
14
+ ;// CONCATENATED MODULE: external "react-spring"
15
+ const external_react_spring_namespaceObject = require("react-spring");
16
+ // EXTERNAL MODULE: external "styled-components"
17
+ var external_styled_components_ = __webpack_require__(2770);
18
+ // EXTERNAL MODULE: ./src/components/layout/Carousel/Footer/Pagination/types.ts
19
+ var types = __webpack_require__(6287);
20
+ ;// CONCATENATED MODULE: ./src/components/layout/Carousel/Footer/Pagination/bullets.tsx
21
+
22
+
23
+
24
+
25
+ const defaultBulletStyle = {
26
+ height: "6px",
27
+ borderRadius: "1000px",
28
+ marginRight: "4px",
29
+ opacity: 1
30
+ };
31
+ const useBulletStyles = ()=>{
32
+ const { colors } = (0,external_styled_components_.useTheme)();
33
+ const BulletStyle = {
34
+ [types.ItemStatus.active]: {
35
+ ...defaultBulletStyle,
36
+ width: "16px",
37
+ backgroundColor: colors.opacityDefault.c80
38
+ },
39
+ [types.ItemStatus.nearby]: {
40
+ ...defaultBulletStyle,
41
+ width: "8px",
42
+ backgroundColor: colors.opacityDefault.c30
43
+ },
44
+ [types.ItemStatus.far]: {
45
+ ...defaultBulletStyle,
46
+ width: "4px",
47
+ backgroundColor: colors.opacityDefault.c10
48
+ },
49
+ [types.ItemStatus.none]: {
50
+ ...defaultBulletStyle,
51
+ width: "0px",
52
+ opacity: 0,
53
+ backgroundColor: colors.opacityDefault.c10,
54
+ marginRight: "0px"
55
+ }
56
+ };
57
+ return BulletStyle;
58
+ };
59
+ const Bullet = ({ type })=>{
60
+ return /*#__PURE__*/ external_react_default().createElement(external_react_spring_namespaceObject.animated.div, {
61
+ style: (0,external_react_spring_namespaceObject.useSpring)(useBulletStyles()[type])
62
+ });
11
63
  };
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;
64
+ /* export default */ const bullets = (Bullet);
65
+
66
+
67
+ },
68
+ 2378(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
69
+ __webpack_require__.d(__webpack_exports__, {
70
+ "default": () => (__rspack_default_export)
71
+ });
72
+ /* import */ var react__rspack_import_0 = __webpack_require__(2015);
73
+ /* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
74
+ /* import */ var styled_components__rspack_import_1 = __webpack_require__(2770);
75
+ /* import */ var styled_components__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_1);
76
+ /* import */ var _bullets__rspack_import_2 = __webpack_require__(3831);
77
+ /* import */ var _utils__rspack_import_3 = __webpack_require__(8139);
78
+
79
+
80
+
81
+
82
+ const FooterCarouselBullets = (styled_components__rspack_import_1_default().div)`
83
+ display: flex;
84
+ align-items: center;
85
+ `;
86
+ const Pagination = ({ children, currentIndex })=>{
87
+ return /*#__PURE__*/ react__rspack_import_0_default().createElement(FooterCarouselBullets, null, children.map((child, index)=>/*#__PURE__*/ react__rspack_import_0_default().createElement(_bullets__rspack_import_2["default"], {
88
+ key: child.key,
89
+ type: (0,_utils__rspack_import_3.getItemStatus)(index, currentIndex, children.length)
90
+ })));
19
91
  };
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 variantContentCard_exports = {};
30
- __export(variantContentCard_exports, {
31
- default: () => variantContentCard_default
92
+ /* export default */ const __rspack_default_export = (Pagination);
93
+
94
+
95
+ },
96
+ 6287(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
97
+ __webpack_require__.d(__webpack_exports__, {
98
+ ItemStatus: () => (ItemStatus)
99
+ });
100
+ var ItemStatus = /*#__PURE__*/ function(ItemStatus) {
101
+ ItemStatus[ItemStatus["active"] = 0] = "active";
102
+ ItemStatus[ItemStatus["nearby"] = 1] = "nearby";
103
+ ItemStatus[ItemStatus["far"] = 2] = "far";
104
+ ItemStatus[ItemStatus["none"] = 3] = "none";
105
+ return ItemStatus;
106
+ }({});
107
+
108
+
109
+ },
110
+ 8139(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
111
+ __webpack_require__.d(__webpack_exports__, {
112
+ getItemStatus: () => (getItemStatus)
32
113
  });
33
- module.exports = __toCommonJS(variantContentCard_exports);
34
- var import_react = require("@ledgerhq/icons-ui/react");
35
- var import_react2 = __toESM(require("react"));
36
- var import_styled_components = __toESM(require("styled-components"));
37
- var import_Pagination = __toESM(require("./Pagination"));
38
- const FooterContainer = import_styled_components.default.div`
114
+ /* import */ var _types__rspack_import_0 = __webpack_require__(6287);
115
+
116
+ /**
117
+ * Returns the status of an indexed item from the carousel index.
118
+ */ const getItemStatus = (itemIndex, activeIndex, itemCount)=>{
119
+ const isActive = itemIndex === activeIndex;
120
+ if (isActive) {
121
+ return _types__rspack_import_0.ItemStatus.active;
122
+ }
123
+ const isAdjacent = Math.abs(itemIndex - activeIndex) === 1;
124
+ if (isAdjacent) {
125
+ return _types__rspack_import_0.ItemStatus.nearby;
126
+ }
127
+ const isEdge = itemIndex === 0 || itemIndex === itemCount - 1;
128
+ return isEdge ? _types__rspack_import_0.ItemStatus.far : _types__rspack_import_0.ItemStatus.nearby;
129
+ };
130
+
131
+
132
+ },
133
+ 7304(module) {
134
+ module.exports = require("@ledgerhq/icons-ui/react");
135
+
136
+ },
137
+ 2015(module) {
138
+ module.exports = require("react");
139
+
140
+ },
141
+ 2770(module) {
142
+ module.exports = require("styled-components");
143
+
144
+ },
145
+
146
+ });
147
+ // The module cache
148
+ var __webpack_module_cache__ = {};
149
+
150
+ // The require function
151
+ function __webpack_require__(moduleId) {
152
+
153
+ // Check if module is in cache
154
+ var cachedModule = __webpack_module_cache__[moduleId];
155
+ if (cachedModule !== undefined) {
156
+ return cachedModule.exports;
157
+ }
158
+ // Create a new module (and put it into the cache)
159
+ var module = (__webpack_module_cache__[moduleId] = {
160
+ exports: {}
161
+ });
162
+ // Execute the module function
163
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
164
+
165
+ // Return the exports of the module
166
+ return module.exports;
167
+
168
+ }
169
+
170
+ // webpack/runtime/compat_get_default_export
171
+ (() => {
172
+ // getDefaultExport function for compatibility with non-ESM modules
173
+ __webpack_require__.n = (module) => {
174
+ var getter = module && module.__esModule ?
175
+ () => (module['default']) :
176
+ () => (module);
177
+ __webpack_require__.d(getter, { a: getter });
178
+ return getter;
179
+ };
180
+
181
+ })();
182
+ // webpack/runtime/define_property_getters
183
+ (() => {
184
+ __webpack_require__.d = (exports, definition) => {
185
+ for(var key in definition) {
186
+ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
187
+ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
188
+ }
189
+ }
190
+ };
191
+ })();
192
+ // webpack/runtime/has_own_property
193
+ (() => {
194
+ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
195
+ })();
196
+ // webpack/runtime/make_namespace_object
197
+ (() => {
198
+ // define __esModule on exports
199
+ __webpack_require__.r = (exports) => {
200
+ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
201
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
202
+ }
203
+ Object.defineProperty(exports, '__esModule', { value: true });
204
+ };
205
+ })();
206
+ var __webpack_exports__ = {};
207
+ // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
208
+ (() => {
209
+ __webpack_require__.r(__webpack_exports__);
210
+ __webpack_require__.d(__webpack_exports__, {
211
+ "default": () => (__rspack_default_export)
212
+ });
213
+ /* import */ var _ledgerhq_icons_ui_react__rspack_import_0 = __webpack_require__(7304);
214
+ /* import */ var _ledgerhq_icons_ui_react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(_ledgerhq_icons_ui_react__rspack_import_0);
215
+ /* import */ var react__rspack_import_1 = __webpack_require__(2015);
216
+ /* import */ var react__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_1);
217
+ /* import */ var styled_components__rspack_import_2 = __webpack_require__(2770);
218
+ /* import */ var styled_components__rspack_import_2_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_2);
219
+ /* import */ var _Pagination__rspack_import_3 = __webpack_require__(2378);
220
+
221
+
222
+
223
+
224
+ const FooterContainer = (styled_components__rspack_import_2_default().div)`
39
225
  height: 32px;
40
- border-top: 1px solid ${(p) => p.theme.colors.opacityDefault.c10};
226
+ border-top: 1px solid ${(p)=>p.theme.colors.opacityDefault.c10};
41
227
  display: flex;
42
228
  justify-content: space-between;
43
229
  padding: 6px 16px 6px 16px;
44
230
  `;
45
- const FooterArrowsContainer = import_styled_components.default.div`
231
+ const FooterArrowsContainer = (styled_components__rspack_import_2_default().div)`
46
232
  display: flex;
47
233
  gap: 8px;
48
234
  align-items: center;
49
235
  `;
50
- const FooterArrowContainer = import_styled_components.default.div`
236
+ const FooterArrowContainer = (styled_components__rspack_import_2_default().div)`
51
237
  display: flex;
52
238
  align-items: center;
53
239
  cursor: pointer;
54
240
  `;
55
- const FooterContentCard = ({ children, emblaApi, currentIndex, variant }) => {
56
- return /* @__PURE__ */ import_react2.default.createElement(FooterContainer, null, /* @__PURE__ */ import_react2.default.createElement(
57
- import_Pagination.default,
58
- {
59
- variant,
60
- children,
61
- emblaApi,
62
- currentIndex
63
- }
64
- ), /* @__PURE__ */ import_react2.default.createElement(FooterArrowsContainer, null, /* @__PURE__ */ import_react2.default.createElement(FooterArrowContainer, { onClick: () => emblaApi == null ? void 0 : emblaApi.scrollPrev() }, /* @__PURE__ */ import_react2.default.createElement(import_react.ArrowLeft, { size: "S" })), /* @__PURE__ */ import_react2.default.createElement(FooterArrowContainer, { onClick: () => emblaApi == null ? void 0 : emblaApi.scrollNext() }, /* @__PURE__ */ import_react2.default.createElement(import_react.ArrowRight, { size: "S" }))));
241
+ const FooterContentCard = ({ children, emblaApi, currentIndex, variant })=>{
242
+ return /*#__PURE__*/ react__rspack_import_1_default().createElement(FooterContainer, null, /*#__PURE__*/ react__rspack_import_1_default().createElement(_Pagination__rspack_import_3["default"], {
243
+ variant: variant,
244
+ children: children,
245
+ emblaApi: emblaApi,
246
+ currentIndex: currentIndex
247
+ }), /*#__PURE__*/ react__rspack_import_1_default().createElement(FooterArrowsContainer, null, /*#__PURE__*/ react__rspack_import_1_default().createElement(FooterArrowContainer, {
248
+ onClick: ()=>emblaApi?.scrollPrev()
249
+ }, /*#__PURE__*/ react__rspack_import_1_default().createElement(_ledgerhq_icons_ui_react__rspack_import_0.ArrowLeft, {
250
+ size: "S"
251
+ })), /*#__PURE__*/ react__rspack_import_1_default().createElement(FooterArrowContainer, {
252
+ onClick: ()=>emblaApi?.scrollNext()
253
+ }, /*#__PURE__*/ react__rspack_import_1_default().createElement(_ledgerhq_icons_ui_react__rspack_import_0.ArrowRight, {
254
+ size: "S"
255
+ }))));
65
256
  };
66
- var variantContentCard_default = FooterContentCard;
67
- //# sourceMappingURL=variantContentCard.js.map
257
+ /* export default */ const __rspack_default_export = (FooterContentCard);
258
+
259
+ })();
260
+
261
+ module.exports = __webpack_exports__;
262
+ })()
263
+ ;
264
+ //# sourceMappingURL=variantContentCard.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../src/components/layout/Carousel/Footer/variantContentCard.tsx"],
4
- "sourcesContent": ["import { ArrowLeft, ArrowRight } from \"@ledgerhq/icons-ui/react\";\nimport React from \"react\";\nimport styled from \"styled-components\";\nimport Pagination from \"./Pagination\";\nimport { SubProps } from \"../types\";\n\nconst FooterContainer = styled.div`\n height: 32px;\n border-top: 1px solid ${p => p.theme.colors.opacityDefault.c10};\n display: flex;\n justify-content: space-between;\n padding: 6px 16px 6px 16px;\n`;\n\nconst FooterArrowsContainer = styled.div`\n display: flex;\n gap: 8px;\n align-items: center;\n`;\n\nconst FooterArrowContainer = styled.div`\n display: flex;\n align-items: center;\n cursor: pointer;\n`;\n\nconst FooterContentCard = ({ children, emblaApi, currentIndex, variant }: SubProps) => {\n return (\n <FooterContainer>\n <Pagination\n variant={variant}\n children={children}\n emblaApi={emblaApi}\n currentIndex={currentIndex}\n />\n\n <FooterArrowsContainer>\n <FooterArrowContainer onClick={() => emblaApi?.scrollPrev()}>\n <ArrowLeft size=\"S\" />\n </FooterArrowContainer>\n <FooterArrowContainer onClick={() => emblaApi?.scrollNext()}>\n <ArrowRight size=\"S\" />\n </FooterArrowContainer>\n </FooterArrowsContainer>\n </FooterContainer>\n );\n};\n\nexport default FooterContentCard;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAsC;AACtC,IAAAA,gBAAkB;AAClB,+BAAmB;AACnB,wBAAuB;AAGvB,MAAM,kBAAkB,yBAAAC,QAAO;AAAA;AAAA,0BAEL,OAAK,EAAE,MAAM,OAAO,eAAe,GAAG;AAAA;AAAA;AAAA;AAAA;AAMhE,MAAM,wBAAwB,yBAAAA,QAAO;AAAA;AAAA;AAAA;AAAA;AAMrC,MAAM,uBAAuB,yBAAAA,QAAO;AAAA;AAAA;AAAA;AAAA;AAMpC,MAAM,oBAAoB,CAAC,EAAE,UAAU,UAAU,cAAc,QAAQ,MAAgB;AACrF,SACE,8BAAAC,QAAA,cAAC,uBACC,8BAAAA,QAAA;AAAA,IAAC,kBAAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,EACF,GAEA,8BAAAD,QAAA,cAAC,6BACC,8BAAAA,QAAA,cAAC,wBAAqB,SAAS,MAAM,qCAAU,gBAC7C,8BAAAA,QAAA,cAAC,0BAAU,MAAK,KAAI,CACtB,GACA,8BAAAA,QAAA,cAAC,wBAAqB,SAAS,MAAM,qCAAU,gBAC7C,8BAAAA,QAAA,cAAC,2BAAW,MAAK,KAAI,CACvB,CACF,CACF;AAEJ;AAEA,IAAO,6BAAQ;",
6
- "names": ["import_react", "styled", "React", "Pagination"]
7
- }
1
+ {"version":3,"file":"components/layout/Carousel/Footer/variantContentCard.js","sources":["webpack://@ledgerhq/react-ui/./src/components/layout/Carousel/Footer/Pagination/bullets.tsx","webpack://@ledgerhq/react-ui/./src/components/layout/Carousel/Footer/Pagination/index.tsx","webpack://@ledgerhq/react-ui/./src/components/layout/Carousel/Footer/Pagination/types.ts","webpack://@ledgerhq/react-ui/./src/components/layout/Carousel/Footer/Pagination/utils.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/Carousel/Footer/variantContentCard.tsx"],"sourcesContent":["import React from \"react\";\nimport { animated, useSpring } from \"react-spring\";\nimport { useTheme } from \"styled-components\";\nimport { ItemStatus } from \"./types\";\n\nconst defaultBulletStyle = {\n height: \"6px\",\n borderRadius: \"1000px\",\n marginRight: \"4px\",\n opacity: 1,\n};\n\nconst useBulletStyles = () => {\n const { colors } = useTheme();\n\n const BulletStyle: {\n [key in ItemStatus]: {\n width: string;\n height: string;\n backgroundColor: string;\n borderRadius: string;\n opacity?: number;\n marginRight: string;\n };\n } = {\n [ItemStatus.active]: {\n ...defaultBulletStyle,\n width: \"16px\",\n backgroundColor: colors.opacityDefault.c80,\n },\n [ItemStatus.nearby]: {\n ...defaultBulletStyle,\n width: \"8px\",\n backgroundColor: colors.opacityDefault.c30,\n },\n [ItemStatus.far]: {\n ...defaultBulletStyle,\n width: \"4px\",\n backgroundColor: colors.opacityDefault.c10,\n },\n [ItemStatus.none]: {\n ...defaultBulletStyle,\n width: \"0px\",\n opacity: 0,\n backgroundColor: colors.opacityDefault.c10,\n marginRight: \"0px\",\n },\n };\n\n return BulletStyle;\n};\n\nconst Bullet = ({ type }: { type: ItemStatus }) => {\n return <animated.div style={useSpring(useBulletStyles()[type])} />;\n};\n\nexport default Bullet;\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { SubProps } from \"../../types\";\nimport Bullet from \"./bullets\";\nimport { getItemStatus } from \"./utils\";\n\nconst FooterCarouselBullets = styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst Pagination = ({ children, currentIndex }: SubProps) => {\n return (\n <FooterCarouselBullets>\n {children.map((child, index) => (\n <Bullet key={child.key} type={getItemStatus(index, currentIndex, children.length)} />\n ))}\n </FooterCarouselBullets>\n );\n};\n\nexport default Pagination;\n","export enum ItemStatus {\n \"active\",\n \"nearby\",\n \"far\",\n \"none\",\n}\n","import { ItemStatus } from \"./types\";\n\n/**\n * Returns the status of an indexed item from the carousel index.\n */\nexport const getItemStatus = (itemIndex: number, activeIndex: number, itemCount: number) => {\n const isActive = itemIndex === activeIndex;\n if (isActive) {\n return ItemStatus.active;\n }\n\n const isAdjacent = Math.abs(itemIndex - activeIndex) === 1;\n if (isAdjacent) {\n return ItemStatus.nearby;\n }\n\n const isEdge = itemIndex === 0 || itemIndex === itemCount - 1;\n return isEdge ? ItemStatus.far : ItemStatus.nearby;\n};\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 { ArrowLeft, ArrowRight } from \"@ledgerhq/icons-ui/react\";\nimport React from \"react\";\nimport styled from \"styled-components\";\nimport Pagination from \"./Pagination\";\nimport { SubProps } from \"../types\";\n\nconst FooterContainer = styled.div`\n height: 32px;\n border-top: 1px solid ${p => p.theme.colors.opacityDefault.c10};\n display: flex;\n justify-content: space-between;\n padding: 6px 16px 6px 16px;\n`;\n\nconst FooterArrowsContainer = styled.div`\n display: flex;\n gap: 8px;\n align-items: center;\n`;\n\nconst FooterArrowContainer = styled.div`\n display: flex;\n align-items: center;\n cursor: pointer;\n`;\n\nconst FooterContentCard = ({ children, emblaApi, currentIndex, variant }: SubProps) => {\n return (\n <FooterContainer>\n <Pagination\n variant={variant}\n children={children}\n emblaApi={emblaApi}\n currentIndex={currentIndex}\n />\n\n <FooterArrowsContainer>\n <FooterArrowContainer onClick={() => emblaApi?.scrollPrev()}>\n <ArrowLeft size=\"S\" />\n </FooterArrowContainer>\n <FooterArrowContainer onClick={() => emblaApi?.scrollNext()}>\n <ArrowRight size=\"S\" />\n </FooterArrowContainer>\n </FooterArrowsContainer>\n </FooterContainer>\n );\n};\n\nexport default FooterContentCard;\n"],"names":["React","animated","useSpring","useTheme","ItemStatus","defaultBulletStyle","useBulletStyles","colors","BulletStyle","Bullet","type","styled","getItemStatus","FooterCarouselBullets","Pagination","children","currentIndex","child","index","itemIndex","activeIndex","itemCount","isActive","isAdjacent","Math","isEdge","ArrowLeft","ArrowRight","FooterContainer","p","FooterArrowsContainer","FooterArrowContainer","FooterContentCard","emblaApi","variant"],"mappings":";;;;;;;;;;;;;;;;;;;;AAA0B;AACyB;AACN;AACR;AAErC,MAAMK,qBAAqB;IACzB,QAAQ;IACR,cAAc;IACd,aAAa;IACb,SAAS;AACX;AAEA,MAAMC,kBAAkB;IACtB,MAAM,EAAEC,MAAM,EAAE,GAAGJ,wCAAQA;IAE3B,MAAMK,cASF;QACF,CAACJ,uBAAiB,CAAC,EAAE;YACnB,GAAGC,kBAAkB;YACrB,OAAO;YACP,iBAAiBE,OAAO,cAAc,CAAC,GAAG;QAC5C;QACA,CAACH,uBAAiB,CAAC,EAAE;YACnB,GAAGC,kBAAkB;YACrB,OAAO;YACP,iBAAiBE,OAAO,cAAc,CAAC,GAAG;QAC5C;QACA,CAACH,oBAAc,CAAC,EAAE;YAChB,GAAGC,kBAAkB;YACrB,OAAO;YACP,iBAAiBE,OAAO,cAAc,CAAC,GAAG;QAC5C;QACA,CAACH,qBAAe,CAAC,EAAE;YACjB,GAAGC,kBAAkB;YACrB,OAAO;YACP,SAAS;YACT,iBAAiBE,OAAO,cAAc,CAAC,GAAG;YAC1C,aAAa;QACf;IACF;IAEA,OAAOC;AACT;AAEA,MAAMC,SAAS,CAAC,EAAEC,IAAI,EAAwB;IAC5C,qBAAO,uCAACT,kDAAY;QAAC,OAAOC,mDAASA,CAACI,iBAAiB,CAACI,KAAK;;AAC/D;AAEA,sCAAeD,MAAMA,EAAC;;;;;;;;;;;;;;ACxDI;AACa;AAER;AACS;AAExC,MAAMI,wBAAwBF,kDAAU,CAAC;;;AAGzC,CAAC;AAED,MAAMG,aAAa,CAAC,EAAEC,QAAQ,EAAEC,YAAY,EAAY;IACtD,qBACE,+CAACH,6BACEE,SAAS,GAAG,CAAC,CAACE,OAAOC,sBACpB,+CAACT,oCAAMA;YAAC,KAAKQ,MAAM,GAAG;YAAE,MAAML,yCAAaA,CAACM,OAAOF,cAAcD,SAAS,MAAM;;AAIxF;AAEA,sDAAeD,UAAUA,EAAC;;;;;;;;ACrBnB,IAAKV,oCAAAA;;;;;WAAAA;MAKX;;;;;;;;;ACLoC;AAErC;;CAEC,GACM,MAAMQ,gBAAgB,CAACO,WAAmBC,aAAqBC;IACpE,MAAMC,WAAWH,cAAcC;IAC/B,IAAIE,UAAU;QACZ,OAAOlB,yCAAiB;IAC1B;IAEA,MAAMmB,aAAaC,KAAK,GAAG,CAACL,YAAYC,iBAAiB;IACzD,IAAIG,YAAY;QACd,OAAOnB,yCAAiB;IAC1B;IAEA,MAAMqB,SAASN,cAAc,KAAKA,cAAcE,YAAY;IAC5D,OAAOI,SAASrB,sCAAc,GAAGA,yCAAiB;AACpD,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AClBF;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;;;;;;;;;;;;;;;;ACNiE;AACvC;AACa;AACD;AAGtC,MAAMwB,kBAAkBjB,kDAAU,CAAC;;wBAEX,EAAEkB,CAAAA,IAAKA,EAAE,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC;;;;AAIjE,CAAC;AAED,MAAMC,wBAAwBnB,kDAAU,CAAC;;;;AAIzC,CAAC;AAED,MAAMoB,uBAAuBpB,kDAAU,CAAC;;;;AAIxC,CAAC;AAED,MAAMqB,oBAAoB,CAAC,EAAEjB,QAAQ,EAAEkB,QAAQ,EAAEjB,YAAY,EAAEkB,OAAO,EAAY;IAChF,qBACE,+CAACN,qCACC,+CAACd,uCAAUA;QACT,SAASoB;QACT,UAAUnB;QACV,UAAUkB;QACV,cAAcjB;sBAGhB,+CAACc,2CACC,+CAACC;QAAqB,SAAS,IAAME,UAAU;qBAC7C,+CAACP,mDAASA;QAAC,MAAK;uBAElB,+CAACK;QAAqB,SAAS,IAAME,UAAU;qBAC7C,+CAACN,oDAAUA;QAAC,MAAK;;AAK3B;AAEA,sDAAeK,iBAAiBA,EAAC"}
@@ -1,47 +1,233 @@
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 variantDefault_exports = {};
30
- __export(variantDefault_exports, {
31
- default: () => variantDefault_default
3
+ var __webpack_modules__ = ({
4
+ 3831(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
5
+
6
+ // EXPORTS
7
+ __webpack_require__.d(__webpack_exports__, {
8
+ "default": () => (/* binding */ bullets)
32
9
  });
33
- module.exports = __toCommonJS(variantDefault_exports);
34
- var import_react = __toESM(require("react"));
35
- var import_styled_components = __toESM(require("styled-components"));
36
- var import_Pagination = __toESM(require("./Pagination"));
37
- const FooterContainer = import_styled_components.default.div`
10
+
11
+ // EXTERNAL MODULE: external "react"
12
+ var external_react_ = __webpack_require__(2015);
13
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
14
+ ;// CONCATENATED MODULE: external "react-spring"
15
+ const external_react_spring_namespaceObject = require("react-spring");
16
+ // EXTERNAL MODULE: external "styled-components"
17
+ var external_styled_components_ = __webpack_require__(2770);
18
+ // EXTERNAL MODULE: ./src/components/layout/Carousel/Footer/Pagination/types.ts
19
+ var types = __webpack_require__(6287);
20
+ ;// CONCATENATED MODULE: ./src/components/layout/Carousel/Footer/Pagination/bullets.tsx
21
+
22
+
23
+
24
+
25
+ const defaultBulletStyle = {
26
+ height: "6px",
27
+ borderRadius: "1000px",
28
+ marginRight: "4px",
29
+ opacity: 1
30
+ };
31
+ const useBulletStyles = ()=>{
32
+ const { colors } = (0,external_styled_components_.useTheme)();
33
+ const BulletStyle = {
34
+ [types.ItemStatus.active]: {
35
+ ...defaultBulletStyle,
36
+ width: "16px",
37
+ backgroundColor: colors.opacityDefault.c80
38
+ },
39
+ [types.ItemStatus.nearby]: {
40
+ ...defaultBulletStyle,
41
+ width: "8px",
42
+ backgroundColor: colors.opacityDefault.c30
43
+ },
44
+ [types.ItemStatus.far]: {
45
+ ...defaultBulletStyle,
46
+ width: "4px",
47
+ backgroundColor: colors.opacityDefault.c10
48
+ },
49
+ [types.ItemStatus.none]: {
50
+ ...defaultBulletStyle,
51
+ width: "0px",
52
+ opacity: 0,
53
+ backgroundColor: colors.opacityDefault.c10,
54
+ marginRight: "0px"
55
+ }
56
+ };
57
+ return BulletStyle;
58
+ };
59
+ const Bullet = ({ type })=>{
60
+ return /*#__PURE__*/ external_react_default().createElement(external_react_spring_namespaceObject.animated.div, {
61
+ style: (0,external_react_spring_namespaceObject.useSpring)(useBulletStyles()[type])
62
+ });
63
+ };
64
+ /* export default */ const bullets = (Bullet);
65
+
66
+
67
+ },
68
+ 2378(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
69
+ __webpack_require__.d(__webpack_exports__, {
70
+ "default": () => (__rspack_default_export)
71
+ });
72
+ /* import */ var react__rspack_import_0 = __webpack_require__(2015);
73
+ /* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
74
+ /* import */ var styled_components__rspack_import_1 = __webpack_require__(2770);
75
+ /* import */ var styled_components__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_1);
76
+ /* import */ var _bullets__rspack_import_2 = __webpack_require__(3831);
77
+ /* import */ var _utils__rspack_import_3 = __webpack_require__(8139);
78
+
79
+
80
+
81
+
82
+ const FooterCarouselBullets = (styled_components__rspack_import_1_default().div)`
83
+ display: flex;
84
+ align-items: center;
85
+ `;
86
+ const Pagination = ({ children, currentIndex })=>{
87
+ return /*#__PURE__*/ react__rspack_import_0_default().createElement(FooterCarouselBullets, null, children.map((child, index)=>/*#__PURE__*/ react__rspack_import_0_default().createElement(_bullets__rspack_import_2["default"], {
88
+ key: child.key,
89
+ type: (0,_utils__rspack_import_3.getItemStatus)(index, currentIndex, children.length)
90
+ })));
91
+ };
92
+ /* export default */ const __rspack_default_export = (Pagination);
93
+
94
+
95
+ },
96
+ 6287(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
97
+ __webpack_require__.d(__webpack_exports__, {
98
+ ItemStatus: () => (ItemStatus)
99
+ });
100
+ var ItemStatus = /*#__PURE__*/ function(ItemStatus) {
101
+ ItemStatus[ItemStatus["active"] = 0] = "active";
102
+ ItemStatus[ItemStatus["nearby"] = 1] = "nearby";
103
+ ItemStatus[ItemStatus["far"] = 2] = "far";
104
+ ItemStatus[ItemStatus["none"] = 3] = "none";
105
+ return ItemStatus;
106
+ }({});
107
+
108
+
109
+ },
110
+ 8139(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
111
+ __webpack_require__.d(__webpack_exports__, {
112
+ getItemStatus: () => (getItemStatus)
113
+ });
114
+ /* import */ var _types__rspack_import_0 = __webpack_require__(6287);
115
+
116
+ /**
117
+ * Returns the status of an indexed item from the carousel index.
118
+ */ const getItemStatus = (itemIndex, activeIndex, itemCount)=>{
119
+ const isActive = itemIndex === activeIndex;
120
+ if (isActive) {
121
+ return _types__rspack_import_0.ItemStatus.active;
122
+ }
123
+ const isAdjacent = Math.abs(itemIndex - activeIndex) === 1;
124
+ if (isAdjacent) {
125
+ return _types__rspack_import_0.ItemStatus.nearby;
126
+ }
127
+ const isEdge = itemIndex === 0 || itemIndex === itemCount - 1;
128
+ return isEdge ? _types__rspack_import_0.ItemStatus.far : _types__rspack_import_0.ItemStatus.nearby;
129
+ };
130
+
131
+
132
+ },
133
+ 2015(module) {
134
+ module.exports = require("react");
135
+
136
+ },
137
+ 2770(module) {
138
+ module.exports = require("styled-components");
139
+
140
+ },
141
+
142
+ });
143
+ // The module cache
144
+ var __webpack_module_cache__ = {};
145
+
146
+ // The require function
147
+ function __webpack_require__(moduleId) {
148
+
149
+ // Check if module is in cache
150
+ var cachedModule = __webpack_module_cache__[moduleId];
151
+ if (cachedModule !== undefined) {
152
+ return cachedModule.exports;
153
+ }
154
+ // Create a new module (and put it into the cache)
155
+ var module = (__webpack_module_cache__[moduleId] = {
156
+ exports: {}
157
+ });
158
+ // Execute the module function
159
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
160
+
161
+ // Return the exports of the module
162
+ return module.exports;
163
+
164
+ }
165
+
166
+ // webpack/runtime/compat_get_default_export
167
+ (() => {
168
+ // getDefaultExport function for compatibility with non-ESM modules
169
+ __webpack_require__.n = (module) => {
170
+ var getter = module && module.__esModule ?
171
+ () => (module['default']) :
172
+ () => (module);
173
+ __webpack_require__.d(getter, { a: getter });
174
+ return getter;
175
+ };
176
+
177
+ })();
178
+ // webpack/runtime/define_property_getters
179
+ (() => {
180
+ __webpack_require__.d = (exports, definition) => {
181
+ for(var key in definition) {
182
+ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
183
+ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
184
+ }
185
+ }
186
+ };
187
+ })();
188
+ // webpack/runtime/has_own_property
189
+ (() => {
190
+ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
191
+ })();
192
+ // webpack/runtime/make_namespace_object
193
+ (() => {
194
+ // define __esModule on exports
195
+ __webpack_require__.r = (exports) => {
196
+ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
197
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
198
+ }
199
+ Object.defineProperty(exports, '__esModule', { value: true });
200
+ };
201
+ })();
202
+ var __webpack_exports__ = {};
203
+ // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
204
+ (() => {
205
+ __webpack_require__.r(__webpack_exports__);
206
+ __webpack_require__.d(__webpack_exports__, {
207
+ "default": () => (__rspack_default_export)
208
+ });
209
+ /* import */ var react__rspack_import_0 = __webpack_require__(2015);
210
+ /* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
211
+ /* import */ var styled_components__rspack_import_1 = __webpack_require__(2770);
212
+ /* import */ var styled_components__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_1);
213
+ /* import */ var _Pagination__rspack_import_2 = __webpack_require__(2378);
214
+
215
+
216
+
217
+ const FooterContainer = (styled_components__rspack_import_1_default().div)`
38
218
  height: 32px;
39
219
  display: flex;
40
220
  justify-content: center;
41
221
  align-items: center;
42
222
  `;
43
- const FooterDefault = (props) => {
44
- return /* @__PURE__ */ import_react.default.createElement(FooterContainer, null, /* @__PURE__ */ import_react.default.createElement(import_Pagination.default, { ...props }));
223
+ const FooterDefault = (props)=>{
224
+ return /*#__PURE__*/ react__rspack_import_0_default().createElement(FooterContainer, null, /*#__PURE__*/ react__rspack_import_0_default().createElement(_Pagination__rspack_import_2["default"], props));
45
225
  };
46
- var variantDefault_default = FooterDefault;
47
- //# sourceMappingURL=variantDefault.js.map
226
+ /* export default */ const __rspack_default_export = (FooterDefault);
227
+
228
+ })();
229
+
230
+ module.exports = __webpack_exports__;
231
+ })()
232
+ ;
233
+ //# sourceMappingURL=variantDefault.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../src/components/layout/Carousel/Footer/variantDefault.tsx"],
4
- "sourcesContent": ["import React from \"react\";\nimport styled from \"styled-components\";\nimport Pagination from \"./Pagination\";\nimport { SubProps } from \"../types\";\n\nconst FooterContainer = styled.div`\n height: 32px;\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nconst FooterDefault = (props: SubProps) => {\n return (\n <FooterContainer>\n <Pagination {...props} />\n </FooterContainer>\n );\n};\n\nexport default FooterDefault;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,+BAAmB;AACnB,wBAAuB;AAGvB,MAAM,kBAAkB,yBAAAA,QAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAO/B,MAAM,gBAAgB,CAAC,UAAoB;AACzC,SACE,6BAAAC,QAAA,cAAC,uBACC,6BAAAA,QAAA,cAAC,kBAAAC,SAAA,EAAY,GAAG,OAAO,CACzB;AAEJ;AAEA,IAAO,yBAAQ;",
6
- "names": ["styled", "React", "Pagination"]
7
- }
1
+ {"version":3,"file":"components/layout/Carousel/Footer/variantDefault.js","sources":["webpack://@ledgerhq/react-ui/./src/components/layout/Carousel/Footer/Pagination/bullets.tsx","webpack://@ledgerhq/react-ui/./src/components/layout/Carousel/Footer/Pagination/index.tsx","webpack://@ledgerhq/react-ui/./src/components/layout/Carousel/Footer/Pagination/types.ts","webpack://@ledgerhq/react-ui/./src/components/layout/Carousel/Footer/Pagination/utils.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/Carousel/Footer/variantDefault.tsx"],"sourcesContent":["import React from \"react\";\nimport { animated, useSpring } from \"react-spring\";\nimport { useTheme } from \"styled-components\";\nimport { ItemStatus } from \"./types\";\n\nconst defaultBulletStyle = {\n height: \"6px\",\n borderRadius: \"1000px\",\n marginRight: \"4px\",\n opacity: 1,\n};\n\nconst useBulletStyles = () => {\n const { colors } = useTheme();\n\n const BulletStyle: {\n [key in ItemStatus]: {\n width: string;\n height: string;\n backgroundColor: string;\n borderRadius: string;\n opacity?: number;\n marginRight: string;\n };\n } = {\n [ItemStatus.active]: {\n ...defaultBulletStyle,\n width: \"16px\",\n backgroundColor: colors.opacityDefault.c80,\n },\n [ItemStatus.nearby]: {\n ...defaultBulletStyle,\n width: \"8px\",\n backgroundColor: colors.opacityDefault.c30,\n },\n [ItemStatus.far]: {\n ...defaultBulletStyle,\n width: \"4px\",\n backgroundColor: colors.opacityDefault.c10,\n },\n [ItemStatus.none]: {\n ...defaultBulletStyle,\n width: \"0px\",\n opacity: 0,\n backgroundColor: colors.opacityDefault.c10,\n marginRight: \"0px\",\n },\n };\n\n return BulletStyle;\n};\n\nconst Bullet = ({ type }: { type: ItemStatus }) => {\n return <animated.div style={useSpring(useBulletStyles()[type])} />;\n};\n\nexport default Bullet;\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { SubProps } from \"../../types\";\nimport Bullet from \"./bullets\";\nimport { getItemStatus } from \"./utils\";\n\nconst FooterCarouselBullets = styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst Pagination = ({ children, currentIndex }: SubProps) => {\n return (\n <FooterCarouselBullets>\n {children.map((child, index) => (\n <Bullet key={child.key} type={getItemStatus(index, currentIndex, children.length)} />\n ))}\n </FooterCarouselBullets>\n );\n};\n\nexport default Pagination;\n","export enum ItemStatus {\n \"active\",\n \"nearby\",\n \"far\",\n \"none\",\n}\n","import { ItemStatus } from \"./types\";\n\n/**\n * Returns the status of an indexed item from the carousel index.\n */\nexport const getItemStatus = (itemIndex: number, activeIndex: number, itemCount: number) => {\n const isActive = itemIndex === activeIndex;\n if (isActive) {\n return ItemStatus.active;\n }\n\n const isAdjacent = Math.abs(itemIndex - activeIndex) === 1;\n if (isAdjacent) {\n return ItemStatus.nearby;\n }\n\n const isEdge = itemIndex === 0 || itemIndex === itemCount - 1;\n return isEdge ? ItemStatus.far : ItemStatus.nearby;\n};\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 styled from \"styled-components\";\nimport Pagination from \"./Pagination\";\nimport { SubProps } from \"../types\";\n\nconst FooterContainer = styled.div`\n height: 32px;\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nconst FooterDefault = (props: SubProps) => {\n return (\n <FooterContainer>\n <Pagination {...props} />\n </FooterContainer>\n );\n};\n\nexport default FooterDefault;\n"],"names":["React","animated","useSpring","useTheme","ItemStatus","defaultBulletStyle","useBulletStyles","colors","BulletStyle","Bullet","type","styled","getItemStatus","FooterCarouselBullets","Pagination","children","currentIndex","child","index","itemIndex","activeIndex","itemCount","isActive","isAdjacent","Math","isEdge","FooterContainer","FooterDefault","props"],"mappings":";;;;;;;;;;;;;;;;;;;;AAA0B;AACyB;AACN;AACR;AAErC,MAAMK,qBAAqB;IACzB,QAAQ;IACR,cAAc;IACd,aAAa;IACb,SAAS;AACX;AAEA,MAAMC,kBAAkB;IACtB,MAAM,EAAEC,MAAM,EAAE,GAAGJ,wCAAQA;IAE3B,MAAMK,cASF;QACF,CAACJ,uBAAiB,CAAC,EAAE;YACnB,GAAGC,kBAAkB;YACrB,OAAO;YACP,iBAAiBE,OAAO,cAAc,CAAC,GAAG;QAC5C;QACA,CAACH,uBAAiB,CAAC,EAAE;YACnB,GAAGC,kBAAkB;YACrB,OAAO;YACP,iBAAiBE,OAAO,cAAc,CAAC,GAAG;QAC5C;QACA,CAACH,oBAAc,CAAC,EAAE;YAChB,GAAGC,kBAAkB;YACrB,OAAO;YACP,iBAAiBE,OAAO,cAAc,CAAC,GAAG;QAC5C;QACA,CAACH,qBAAe,CAAC,EAAE;YACjB,GAAGC,kBAAkB;YACrB,OAAO;YACP,SAAS;YACT,iBAAiBE,OAAO,cAAc,CAAC,GAAG;YAC1C,aAAa;QACf;IACF;IAEA,OAAOC;AACT;AAEA,MAAMC,SAAS,CAAC,EAAEC,IAAI,EAAwB;IAC5C,qBAAO,uCAACT,kDAAY;QAAC,OAAOC,mDAASA,CAACI,iBAAiB,CAACI,KAAK;;AAC/D;AAEA,sCAAeD,MAAMA,EAAC;;;;;;;;;;;;;;ACxDI;AACa;AAER;AACS;AAExC,MAAMI,wBAAwBF,kDAAU,CAAC;;;AAGzC,CAAC;AAED,MAAMG,aAAa,CAAC,EAAEC,QAAQ,EAAEC,YAAY,EAAY;IACtD,qBACE,+CAACH,6BACEE,SAAS,GAAG,CAAC,CAACE,OAAOC,sBACpB,+CAACT,oCAAMA;YAAC,KAAKQ,MAAM,GAAG;YAAE,MAAML,yCAAaA,CAACM,OAAOF,cAAcD,SAAS,MAAM;;AAIxF;AAEA,sDAAeD,UAAUA,EAAC;;;;;;;;ACrBnB,IAAKV,oCAAAA;;;;;WAAAA;MAKX;;;;;;;;;ACLoC;AAErC;;CAEC,GACM,MAAMQ,gBAAgB,CAACO,WAAmBC,aAAqBC;IACpE,MAAMC,WAAWH,cAAcC;IAC/B,IAAIE,UAAU;QACZ,OAAOlB,yCAAiB;IAC1B;IAEA,MAAMmB,aAAaC,KAAK,GAAG,CAACL,YAAYC,iBAAiB;IACzD,IAAIG,YAAY;QACd,OAAOnB,yCAAiB;IAC1B;IAEA,MAAMqB,SAASN,cAAc,KAAKA,cAAcE,YAAY;IAC5D,OAAOI,SAASrB,sCAAc,GAAGA,yCAAiB;AACpD,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AClBF;AACA;AACA;AACA;AACA;AACA,iCAAiC,WAAW;AAC5C;AACA;;;;;ACPA;AACA;AACA;AACA,kDAAkD,wCAAwC;AAC1F;AACA;AACA,E;;;;ACNA,wF;;;;ACAA;AACA;AACA;AACA,uDAAuD,iBAAiB;AACxE;AACA,gDAAgD,aAAa;AAC7D,E;;;;;;;;;;;;;;ACN0B;AACa;AACD;AAGtC,MAAMsB,kBAAkBf,kDAAU,CAAC;;;;;AAKnC,CAAC;AAED,MAAMgB,gBAAgB,CAACC;IACrB,qBACE,+CAACF,qCACC,+CAACZ,uCAAUA,EAAKc;AAGtB;AAEA,sDAAeD,aAAaA,EAAC"}