@ledgerhq/react-ui 0.53.0 → 0.53.1-nightly.20260902021544

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 (294) hide show
  1. package/README.md +3 -6
  2. package/lib/assets/logos/LedgerLiveAltRegular.d.ts.map +1 -1
  3. package/lib/assets/logos/LedgerLiveRegular.d.ts.map +1 -1
  4. package/lib/cjs/components/animations/GlitchText/index.js +16 -42
  5. package/lib/cjs/components/animations/GlitchText/index.js.map +1 -1
  6. package/lib/cjs/components/form/Radio/RadioElement.js +2 -2
  7. package/lib/cjs/components/form/Radio/RadioElement.js.map +1 -1
  8. package/lib/cjs/components/form/Radio/RadioListElement.js +2 -2
  9. package/lib/cjs/components/form/Radio/RadioListElement.js.map +1 -1
  10. package/lib/cjs/components/form/Radio/index.js +2 -2
  11. package/lib/cjs/components/form/Radio/index.js.map +1 -1
  12. package/lib/cjs/components/form/index.js +2 -2
  13. package/lib/cjs/components/form/index.js.map +1 -1
  14. package/lib/cjs/components/index.js +2 -2
  15. package/lib/cjs/components/index.js.map +1 -1
  16. package/lib/cjs/components/layout/Carousel/Footer/Pagination/bullets.js.map +1 -1
  17. package/lib/cjs/components/layout/Carousel/Footer/Pagination/index.js.map +1 -1
  18. package/lib/cjs/components/layout/Carousel/Footer/Pagination/types.js.map +1 -1
  19. package/lib/cjs/components/layout/Carousel/Footer/Pagination/utils.js.map +1 -1
  20. package/lib/cjs/components/layout/Carousel/Footer/index.js.map +1 -1
  21. package/lib/cjs/components/layout/Carousel/Footer/variantContentCard.js.map +1 -1
  22. package/lib/cjs/components/layout/Carousel/Footer/variantDefault.js.map +1 -1
  23. package/lib/cjs/components/layout/Carousel/index.js.map +1 -1
  24. package/lib/cjs/components/layout/index.js.map +1 -1
  25. package/lib/cjs/index.js +2 -2
  26. package/lib/cjs/index.js.map +1 -1
  27. package/lib/components/Table/index.d.ts +5 -11
  28. package/lib/components/Table/index.d.ts.map +1 -1
  29. package/lib/components/asorted/Divider/index.d.ts.map +1 -1
  30. package/lib/components/asorted/Icon/BoxedIcon.d.ts.map +1 -1
  31. package/lib/components/asorted/Icon/Icon.d.ts.map +1 -1
  32. package/lib/components/asorted/Text/index.d.ts.map +1 -1
  33. package/lib/components/cta/Button/index.d.ts.map +1 -1
  34. package/lib/components/cta/Link/index.d.ts.map +1 -1
  35. package/lib/components/cta/Toggle/index.d.ts.map +1 -1
  36. package/lib/components/form/BaseInput/index.d.ts +2 -2
  37. package/lib/components/form/BaseInput/index.d.ts.map +1 -1
  38. package/lib/components/form/Checkbox/Checkbox.d.ts.map +1 -1
  39. package/lib/components/form/LegendInput/index.d.ts +2 -2
  40. package/lib/components/form/LegendInput/index.d.ts.map +1 -1
  41. package/lib/components/form/NumberInput/index.d.ts +2 -2
  42. package/lib/components/form/NumberInput/index.d.ts.map +1 -1
  43. package/lib/components/form/QrCodeInput/index.d.ts +2 -2
  44. package/lib/components/form/QrCodeInput/index.d.ts.map +1 -1
  45. package/lib/components/form/QuantityInput/index.d.ts +2 -2
  46. package/lib/components/form/QuantityInput/index.d.ts.map +1 -1
  47. package/lib/components/form/Radio/RadioElement.d.ts +6 -5
  48. package/lib/components/form/Radio/RadioElement.d.ts.map +1 -1
  49. package/lib/components/form/Radio/RadioElement.js +1 -1
  50. package/lib/components/form/Radio/RadioElement.js.map +1 -1
  51. package/lib/components/form/Radio/RadioListElement.d.ts +5 -5
  52. package/lib/components/form/Radio/RadioListElement.d.ts.map +1 -1
  53. package/lib/components/form/Radio/RadioListElement.js +1 -1
  54. package/lib/components/form/Radio/RadioListElement.js.map +1 -1
  55. package/lib/components/form/Radio/index.d.ts +7 -16
  56. package/lib/components/form/Radio/index.d.ts.map +1 -1
  57. package/lib/components/form/SearchInput/index.d.ts +2 -2
  58. package/lib/components/form/SearchInput/index.d.ts.map +1 -1
  59. package/lib/components/form/SelectInput/index.d.ts.map +1 -1
  60. package/lib/components/form/Switch/Switch.d.ts.map +1 -1
  61. package/lib/components/layout/Box/index.d.ts.map +1 -1
  62. package/lib/components/layout/Carousel/Footer/Pagination/bullets.d.ts.map +1 -1
  63. package/lib/components/layout/Carousel/Footer/Pagination/index.d.ts.map +1 -1
  64. package/lib/components/layout/Carousel/Footer/Pagination/types.d.ts +4 -4
  65. package/lib/components/layout/Carousel/Footer/Pagination/types.d.ts.map +1 -1
  66. package/lib/components/layout/Carousel/Footer/Pagination/types.js.map +1 -1
  67. package/lib/components/layout/Carousel/Footer/Pagination/utils.d.ts.map +1 -1
  68. package/lib/components/layout/Carousel/Footer/index.d.ts.map +1 -1
  69. package/lib/components/layout/Carousel/Footer/variantContentCard.d.ts.map +1 -1
  70. package/lib/components/layout/Carousel/Footer/variantDefault.d.ts.map +1 -1
  71. package/lib/components/layout/Carousel/index.d.ts.map +1 -1
  72. package/lib/components/layout/Drawer/index.d.ts.map +1 -1
  73. package/lib/components/layout/Flex/index.d.ts +1 -1
  74. package/lib/components/layout/Flex/index.d.ts.map +1 -1
  75. package/lib/components/layout/Grid/index.d.ts.map +1 -1
  76. package/lib/components/layout/List/VerticalTimeline/TimelineIndicator.d.ts +0 -3
  77. package/lib/components/layout/List/VerticalTimeline/TimelineIndicator.d.ts.map +1 -1
  78. package/lib/components/layout/List/VerticalTimeline/TimelineItem.d.ts.map +1 -1
  79. package/lib/components/layout/List/VerticalTimeline/index.d.ts.map +1 -1
  80. package/lib/components/layout/Popin/index.d.ts +26 -23
  81. package/lib/components/layout/Popin/index.d.ts.map +1 -1
  82. package/lib/components/layout/Side/Provider.d.ts.map +1 -1
  83. package/lib/components/layout/Side/index.d.ts.map +1 -1
  84. package/lib/components/message/Alert/index.d.ts +12 -10
  85. package/lib/components/message/Alert/index.d.ts.map +1 -1
  86. package/lib/components/message/ContinueOnDevice/index.d.ts.map +1 -1
  87. package/lib/components/message/Log/index.d.ts.map +1 -1
  88. package/lib/components/message/Notification/index.d.ts.map +1 -1
  89. package/lib/components/message/StatusNotification/index.d.ts.map +1 -1
  90. package/lib/components/message/Tooltip/styles.d.ts.map +1 -1
  91. package/lib/components/navigation/Aside/index.d.ts +1 -1
  92. package/lib/components/navigation/Breadcrumb/index.d.ts.map +1 -1
  93. package/lib/components/navigation/FlowStepper/index.d.ts +3 -6
  94. package/lib/components/navigation/FlowStepper/index.d.ts.map +1 -1
  95. package/lib/components/navigation/progress/ProgressBar/Onboarding.d.ts.map +1 -1
  96. package/lib/components/navigation/progress/Stepper/index.d.ts.map +1 -1
  97. package/lib/components/navigation/sideBar/Item/Item.d.ts.map +1 -1
  98. package/lib/components/navigation/sideBar/Logo/Logo.d.ts.map +1 -1
  99. package/lib/components/navigation/sideBar/SideBar/SideBar.d.ts +5 -4
  100. package/lib/components/navigation/sideBar/SideBar/SideBar.d.ts.map +1 -1
  101. package/lib/components/navigation/sideBar/Toggle/Toggle.d.ts.map +1 -1
  102. package/lib/components/navigation/sideBar/index.d.ts.map +1 -1
  103. package/lib/components/styled.d.ts.map +1 -1
  104. package/lib/components/transitions/TransitionInOut.d.ts.map +1 -1
  105. package/lib/components/transitions/TransitionScale.d.ts.map +1 -1
  106. package/lib/components/transitions/TransitionSlide.d.ts.map +1 -1
  107. package/lib/helpers.d.ts.map +1 -1
  108. package/lib/pre-ldls/components/AccountItem/AccountItem.d.ts.map +1 -1
  109. package/lib/pre-ldls/components/AccountList/AccountList.d.ts.map +1 -1
  110. package/lib/pre-ldls/components/Address/Address.d.ts.map +1 -1
  111. package/lib/pre-ldls/components/Address/formatAddress.d.ts.map +1 -1
  112. package/lib/pre-ldls/components/Address/formatAddress.js.map +1 -1
  113. package/lib/pre-ldls/components/CardButton/CardButton.d.ts.map +1 -1
  114. package/lib/pre-ldls/components/Checkbox/Checkbox.d.ts.map +1 -1
  115. package/lib/pre-ldls/components/Tag/Tag.d.ts.map +1 -1
  116. package/lib/pre-ldls/components/Tag/Tag.js +1 -1
  117. package/lib/pre-ldls/components/Tag/Tag.js.map +1 -1
  118. package/lib/pre-ldls/components/VirtualList/VirtualList.d.ts.map +1 -1
  119. package/lib/pre-ldls/libs/design-tokens.d.ts.map +1 -1
  120. package/lib/pre-ldls/libs/index.d.ts.map +1 -1
  121. package/lib/styles/InvertTheme.d.ts.map +1 -1
  122. package/lib/styles/StyleProvider.d.ts.map +1 -1
  123. package/lib/styles/helpers.d.ts.map +1 -1
  124. package/lib/styles/styled/fontFamily.d.ts +3 -3
  125. package/lib/styles/styled/fontFamily.d.ts.map +1 -1
  126. package/lib/styles/system/gaps.d.ts.map +1 -1
  127. package/lib/styles/theme.d.ts.map +1 -1
  128. package/package.json +14 -24
  129. package/lib/cjs/components/Table/Table.stories.js +0 -1985
  130. package/lib/cjs/components/Table/Table.stories.js.map +0 -1
  131. package/lib/cjs/components/Table/stories.helper.js +0 -1188
  132. package/lib/cjs/components/Table/stories.helper.js.map +0 -1
  133. package/lib/cjs/components/Tag/Tag.stories.js +0 -918
  134. package/lib/cjs/components/Tag/Tag.stories.js.map +0 -1
  135. package/lib/cjs/components/animations/GlitchText/GlitchText.stories.js +0 -905
  136. package/lib/cjs/components/animations/GlitchText/GlitchText.stories.js.map +0 -1
  137. package/lib/cjs/components/asorted/Divider/Divider.stories.js +0 -794
  138. package/lib/cjs/components/asorted/Divider/Divider.stories.js.map +0 -1
  139. package/lib/cjs/components/asorted/Icon/BoxedIcon.stories.js +0 -393
  140. package/lib/cjs/components/asorted/Icon/BoxedIcon.stories.js.map +0 -1
  141. package/lib/cjs/components/asorted/Icon/Icons.stories.js +0 -789
  142. package/lib/cjs/components/asorted/Icon/Icons.stories.js.map +0 -1
  143. package/lib/cjs/components/asorted/Icon/IconsLegacy.stories.js +0 -1472
  144. package/lib/cjs/components/asorted/Icon/IconsLegacy.stories.js.map +0 -1
  145. package/lib/cjs/components/asorted/Icon/NotificationIcon.stories.js +0 -348
  146. package/lib/cjs/components/asorted/Icon/NotificationIcon.stories.js.map +0 -1
  147. package/lib/cjs/components/asorted/Text/Text.stories.js +0 -836
  148. package/lib/cjs/components/asorted/Text/Text.stories.js.map +0 -1
  149. package/lib/cjs/components/cta/Button/Button.stories.js +0 -1286
  150. package/lib/cjs/components/cta/Button/Button.stories.js.map +0 -1
  151. package/lib/cjs/components/cta/Link/Link.stories.js +0 -911
  152. package/lib/cjs/components/cta/Link/Link.stories.js.map +0 -1
  153. package/lib/cjs/components/cta/Toggle/Toggle.stories.js +0 -873
  154. package/lib/cjs/components/cta/Toggle/Toggle.stories.js.map +0 -1
  155. package/lib/cjs/components/form/BaseInput/Input.stories.js +0 -1310
  156. package/lib/cjs/components/form/BaseInput/Input.stories.js.map +0 -1
  157. package/lib/cjs/components/form/Checkbox/Checkbox.stories.js +0 -909
  158. package/lib/cjs/components/form/Checkbox/Checkbox.stories.js.map +0 -1
  159. package/lib/cjs/components/form/Dropdown/Dropdown.stories.js +0 -1758
  160. package/lib/cjs/components/form/Dropdown/Dropdown.stories.js.map +0 -1
  161. package/lib/cjs/components/form/LegendInput/Input.stories.js +0 -1283
  162. package/lib/cjs/components/form/LegendInput/Input.stories.js.map +0 -1
  163. package/lib/cjs/components/form/NumberInput/Input.stories.js +0 -1341
  164. package/lib/cjs/components/form/NumberInput/Input.stories.js.map +0 -1
  165. package/lib/cjs/components/form/QrCodeInput/Input.stories.js +0 -1305
  166. package/lib/cjs/components/form/QrCodeInput/Input.stories.js.map +0 -1
  167. package/lib/cjs/components/form/QuantityInput/Input.stories.js +0 -1332
  168. package/lib/cjs/components/form/QuantityInput/Input.stories.js.map +0 -1
  169. package/lib/cjs/components/form/Radio/Radio.stories.js +0 -1196
  170. package/lib/cjs/components/form/Radio/Radio.stories.js.map +0 -1
  171. package/lib/cjs/components/form/Radio/RadioElement.stories.js +0 -1084
  172. package/lib/cjs/components/form/Radio/RadioElement.stories.js.map +0 -1
  173. package/lib/cjs/components/form/Radio/RadioListElement.stories.js +0 -1052
  174. package/lib/cjs/components/form/Radio/RadioListElement.stories.js.map +0 -1
  175. package/lib/cjs/components/form/SearchInput/Input.stories.js +0 -1278
  176. package/lib/cjs/components/form/SearchInput/Input.stories.js.map +0 -1
  177. package/lib/cjs/components/form/SelectInput/Select.stories.js +0 -2175
  178. package/lib/cjs/components/form/SelectInput/Select.stories.js.map +0 -1
  179. package/lib/cjs/components/form/SplitInput/SplitInput.stories.js +0 -2020
  180. package/lib/cjs/components/form/SplitInput/SplitInput.stories.js.map +0 -1
  181. package/lib/cjs/components/form/Switch/Switch.stories.js +0 -940
  182. package/lib/cjs/components/form/Switch/Switch.stories.js.map +0 -1
  183. package/lib/cjs/components/form/TabSelector/TabSelector.stories.js +0 -837
  184. package/lib/cjs/components/form/TabSelector/TabSelector.stories.js.map +0 -1
  185. package/lib/cjs/components/layout/Banner/BannerCard/BannerCard.stories.js +0 -1625
  186. package/lib/cjs/components/layout/Banner/BannerCard/BannerCard.stories.js.map +0 -1
  187. package/lib/cjs/components/layout/Banner/NotificationCard/NotificationCard.stories.js +0 -1110
  188. package/lib/cjs/components/layout/Banner/NotificationCard/NotificationCard.stories.js.map +0 -1
  189. package/lib/cjs/components/layout/Box/Box.stories.js +0 -221
  190. package/lib/cjs/components/layout/Box/Box.stories.js.map +0 -1
  191. package/lib/cjs/components/layout/Carousel/Carousel.stories.js +0 -2064
  192. package/lib/cjs/components/layout/Carousel/Carousel.stories.js.map +0 -1
  193. package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/PortfolioContentCard.stories.js +0 -1514
  194. package/lib/cjs/components/layout/ContentCard/PortfolioContentCard/PortfolioContentCard.stories.js.map +0 -1
  195. package/lib/cjs/components/layout/Drawer/Drawer.stories.js +0 -1482
  196. package/lib/cjs/components/layout/Drawer/Drawer.stories.js.map +0 -1
  197. package/lib/cjs/components/layout/Flex/Flex.stories.js +0 -491
  198. package/lib/cjs/components/layout/Flex/Flex.stories.js.map +0 -1
  199. package/lib/cjs/components/layout/Grid/Grid.stories.js +0 -959
  200. package/lib/cjs/components/layout/Grid/Grid.stories.js.map +0 -1
  201. package/lib/cjs/components/layout/List/NumberedList/NumberedList.stories.js +0 -928
  202. package/lib/cjs/components/layout/List/NumberedList/NumberedList.stories.js.map +0 -1
  203. package/lib/cjs/components/layout/List/VerticalTimeline/VerticalTimeline.stories.js +0 -1884
  204. package/lib/cjs/components/layout/List/VerticalTimeline/VerticalTimeline.stories.js.map +0 -1
  205. package/lib/cjs/components/layout/Popin/Popin.stories.js +0 -1478
  206. package/lib/cjs/components/layout/Popin/Popin.stories.js.map +0 -1
  207. package/lib/cjs/components/layout/Side/Side.stories.js +0 -1623
  208. package/lib/cjs/components/layout/Side/Side.stories.js.map +0 -1
  209. package/lib/cjs/components/loaders/InfiniteLoader/InfiniteLoader.stories.js +0 -262
  210. package/lib/cjs/components/loaders/InfiniteLoader/InfiniteLoader.stories.js.map +0 -1
  211. package/lib/cjs/components/loaders/ProgressLoader/ProgressLoader.stories.js +0 -862
  212. package/lib/cjs/components/loaders/ProgressLoader/ProgressLoader.stories.js.map +0 -1
  213. package/lib/cjs/components/message/Alert/Alert.stories.js +0 -1345
  214. package/lib/cjs/components/message/Alert/Alert.stories.js.map +0 -1
  215. package/lib/cjs/components/message/ContinueOnDevice/ContinueOnDevice.stories.js +0 -854
  216. package/lib/cjs/components/message/ContinueOnDevice/ContinueOnDevice.stories.js.map +0 -1
  217. package/lib/cjs/components/message/Log/Log.stories.js +0 -839
  218. package/lib/cjs/components/message/Log/Log.stories.js.map +0 -1
  219. package/lib/cjs/components/message/Notification/Badge.stories.js +0 -319
  220. package/lib/cjs/components/message/Notification/Badge.stories.js.map +0 -1
  221. package/lib/cjs/components/message/Notification/Notification.stories.js +0 -1085
  222. package/lib/cjs/components/message/Notification/Notification.stories.js.map +0 -1
  223. package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js +0 -977
  224. package/lib/cjs/components/message/StatusNotification/StatusNotification.stories.js.map +0 -1
  225. package/lib/cjs/components/message/Tip/Tip.stories.js +0 -812
  226. package/lib/cjs/components/message/Tip/Tip.stories.js.map +0 -1
  227. package/lib/cjs/components/message/Tooltip/Tooltip.stories.js +0 -853
  228. package/lib/cjs/components/message/Tooltip/Tooltip.stories.js.map +0 -1
  229. package/lib/cjs/components/navigation/Aside/Aside.stories.js +0 -961
  230. package/lib/cjs/components/navigation/Aside/Aside.stories.js.map +0 -1
  231. package/lib/cjs/components/navigation/Aside/stories.helper.js +0 -48
  232. package/lib/cjs/components/navigation/Aside/stories.helper.js.map +0 -1
  233. package/lib/cjs/components/navigation/Breadcrumb/Breadcrumb.stories.js +0 -1953
  234. package/lib/cjs/components/navigation/Breadcrumb/Breadcrumb.stories.js.map +0 -1
  235. package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js +0 -2054
  236. package/lib/cjs/components/navigation/FlowStepper/FlowStepper.stories.js.map +0 -1
  237. package/lib/cjs/components/navigation/Header/Header.stories.js +0 -815
  238. package/lib/cjs/components/navigation/Header/Header.stories.js.map +0 -1
  239. package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.stories.js +0 -822
  240. package/lib/cjs/components/navigation/progress/ProgressBar/Onboarding.stories.js.map +0 -1
  241. package/lib/cjs/components/navigation/progress/Stepper/Item.stories.js +0 -907
  242. package/lib/cjs/components/navigation/progress/Stepper/Item.stories.js.map +0 -1
  243. package/lib/cjs/components/navigation/progress/Stepper/ProgressSteps.stories.js +0 -927
  244. package/lib/cjs/components/navigation/progress/Stepper/ProgressSteps.stories.js.map +0 -1
  245. package/lib/cjs/components/navigation/sideBar/Item/Item.stories.js +0 -1030
  246. package/lib/cjs/components/navigation/sideBar/Item/Item.stories.js.map +0 -1
  247. package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.stories.js +0 -1318
  248. package/lib/cjs/components/navigation/sideBar/SideBar/SideBar.stories.js.map +0 -1
  249. package/lib/cjs/components/styled.stories.js +0 -200
  250. package/lib/cjs/components/styled.stories.js.map +0 -1
  251. package/lib/cjs/components/tabs/Bar/Bar.stories.js +0 -808
  252. package/lib/cjs/components/tabs/Bar/Bar.stories.js.map +0 -1
  253. package/lib/cjs/components/tabs/Chip/Chip.stories.js +0 -818
  254. package/lib/cjs/components/tabs/Chip/Chip.stories.js.map +0 -1
  255. package/lib/cjs/components/tabs/Pill/Pill.stories.js +0 -873
  256. package/lib/cjs/components/tabs/Pill/Pill.stories.js.map +0 -1
  257. package/lib/cjs/components/tabs/Tabs/Tabs.stories.js +0 -1061
  258. package/lib/cjs/components/tabs/Tabs/Tabs.stories.js.map +0 -1
  259. package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.stories.js +0 -2372
  260. package/lib/cjs/pre-ldls/components/AccountItem/AccountItem.stories.js.map +0 -1
  261. package/lib/cjs/pre-ldls/components/AccountList/AccountList.stories.js +0 -2513
  262. package/lib/cjs/pre-ldls/components/AccountList/AccountList.stories.js.map +0 -1
  263. package/lib/cjs/pre-ldls/components/Address/Address.stories.js +0 -1873
  264. package/lib/cjs/pre-ldls/components/Address/Address.stories.js.map +0 -1
  265. package/lib/cjs/pre-ldls/components/CardButton/CardButton.stories.js +0 -1282
  266. package/lib/cjs/pre-ldls/components/CardButton/CardButton.stories.js.map +0 -1
  267. package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.stories.js +0 -1263
  268. package/lib/cjs/pre-ldls/components/Checkbox/Checkbox.stories.js.map +0 -1
  269. package/lib/cjs/pre-ldls/components/Tag/Tag.stories.js +0 -1834
  270. package/lib/cjs/pre-ldls/components/Tag/Tag.stories.js.map +0 -1
  271. package/lib/cjs/pre-ldls/components/TextInput/TextInput.stories.js +0 -1498
  272. package/lib/cjs/pre-ldls/components/TextInput/TextInput.stories.js.map +0 -1
  273. package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.stories.js +0 -606
  274. package/lib/cjs/pre-ldls/components/VirtualList/VirtualList.stories.js.map +0 -1
  275. package/lib/cjs/pre-ldls/components/sharedStoryBook.js +0 -1819
  276. package/lib/cjs/pre-ldls/components/sharedStoryBook.js.map +0 -1
  277. package/lib/cjs/styles/Spacing.stories.js +0 -759
  278. package/lib/cjs/styles/Spacing.stories.js.map +0 -1
  279. package/lib/cjs/styles/breakpoints.stories.js +0 -823
  280. package/lib/cjs/styles/breakpoints.stories.js.map +0 -1
  281. package/lib/cjs/styles/palettes/colors.stories.js +0 -785
  282. package/lib/cjs/styles/palettes/colors.stories.js.map +0 -1
  283. package/lib/components/Table/stories.helper.d.ts +0 -30
  284. package/lib/components/Table/stories.helper.d.ts.map +0 -1
  285. package/lib/components/Table/stories.helper.js +0 -185
  286. package/lib/components/Table/stories.helper.js.map +0 -1
  287. package/lib/components/navigation/Aside/stories.helper.d.ts +0 -3
  288. package/lib/components/navigation/Aside/stories.helper.d.ts.map +0 -1
  289. package/lib/components/navigation/Aside/stories.helper.js +0 -3
  290. package/lib/components/navigation/Aside/stories.helper.js.map +0 -1
  291. package/lib/pre-ldls/components/sharedStoryBook.d.ts +0 -5
  292. package/lib/pre-ldls/components/sharedStoryBook.d.ts.map +0 -1
  293. package/lib/pre-ldls/components/sharedStoryBook.js +0 -15
  294. package/lib/pre-ldls/components/sharedStoryBook.js.map +0 -1
@@ -1,959 +0,0 @@
1
- (() => {
2
- "use strict";
3
- var __webpack_modules__ = ({
4
- 348(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
5
- /* import */ var react__rspack_import_0 = __webpack_require__(2015);
6
- /* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
7
- /* import */ var _styled__rspack_import_2 = __webpack_require__(7680);
8
- /* import */ var styled_system__rspack_import_1 = __webpack_require__(9351);
9
- /* import */ var styled_system__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_1);
10
- /* import */ var _styles_styled_fontFamily__rspack_import_4 = __webpack_require__(3364);
11
- /* import */ var _styles__rspack_import_3 = __webpack_require__(4368);
12
-
13
-
14
-
15
-
16
-
17
- const uppercase = (0,styled_system__rspack_import_1.system)({
18
- uppercase: {
19
- property: "textTransform",
20
- transform: (value)=>value ? "uppercase" : "none"
21
- }
22
- });
23
- const Text = _styled__rspack_import_2["default"].span.attrs(({ variant = "body", fontSize, color })=>({
24
- fontSize: fontSize ? fontSize : variant,
25
- color: color || "neutral.c100"
26
- }))`
27
- font-weight: 500;
28
- white-space: ${(props)=>props.whiteSpace ?? "normal"};
29
- ${(p)=>_styles__rspack_import_3.textVariantStyle[p.variant || "body"]}
30
- ${(0,styled_system__rspack_import_1.compose)(uppercase, styled_system__rspack_import_1.lineHeight, _styles_styled_fontFamily__rspack_import_4["default"], styled_system__rspack_import_1.fontSize, styled_system__rspack_import_1.textAlign, styled_system__rspack_import_1.fontWeight, styled_system__rspack_import_1.letterSpacing, (0,styled_system__rspack_import_1.system)({
31
- textOverflow: true
32
- }))}
33
- ${(p)=>p.textTransform ? `text-transform: ${p.textTransform};` : ""}
34
- `;
35
- /* export default */ const __rspack_default_export = (Text);
36
-
37
- __webpack_require__.d(__webpack_exports__, {
38
- }, {
39
- "default": __rspack_default_export
40
- });
41
-
42
-
43
- },
44
- 4368(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
45
- /* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
46
- /* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
47
-
48
- const getFontSource = (name)=>(props)=>{
49
- const fontsPath = props.fontsPath ?? "assets/fonts";
50
- const fontName = props.fontMappings && props.fontMappings(name) || `${name}.woff2`;
51
- return `url("${fontsPath}/${fontName}") format("woff2")`;
52
- };
53
- const fontStyles = (0,styled_components__rspack_import_0.css)`
54
- @font-face {
55
- font-family: "Inter";
56
- src: ${getFontSource("Inter-ExtraLight-BETA")};
57
- font-weight: 100;
58
- font-style: normal;
59
- }
60
-
61
- @font-face {
62
- font-family: "Inter";
63
- src: ${getFontSource("Inter-Light-BETA")};
64
- font-weight: 300;
65
- font-style: normal;
66
- }
67
-
68
- @font-face {
69
- font-family: "Inter";
70
- src: ${getFontSource("Inter-Regular")};
71
- font-weight: 400;
72
- font-style: normal;
73
- }
74
-
75
- @font-face {
76
- font-family: "Inter";
77
- src: ${getFontSource("Inter-Medium")};
78
- font-weight: 500;
79
- font-style: normal;
80
- }
81
-
82
- @font-face {
83
- font-family: "Inter";
84
- src: ${getFontSource("Inter-SemiBold")};
85
- font-weight: 600;
86
- font-style: normal;
87
- }
88
-
89
- @font-face {
90
- font-family: "Inter";
91
- src: ${getFontSource("Inter-ExtraBold")};
92
- font-weight: 900;
93
- font-style: normal;
94
- }
95
-
96
- @font-face {
97
- font-family: "Alpha";
98
- src: ${getFontSource("HMAlphaMono-Medium")};
99
- font-weight: 500;
100
- font-style: normal;
101
- }
102
- `;
103
- const textVariantStyle = {
104
- h1: {
105
- fontFamily: "Alpha, Inter, Sans",
106
- fontWeight: 500,
107
- "text-transform": "uppercase"
108
- },
109
- h1Inter: {
110
- fontFamily: "Inter, Sans",
111
- fontWeight: 500,
112
- "text-transform": "uppercase"
113
- },
114
- h2: {
115
- fontFamily: "Alpha, Inter, Sans",
116
- fontWeight: 500,
117
- "text-transform": "uppercase"
118
- },
119
- h2Inter: {
120
- fontFamily: "Inter, Sans",
121
- fontWeight: 500,
122
- "text-transform": "uppercase"
123
- },
124
- h3: {
125
- fontFamily: "Alpha, Inter, Sans",
126
- fontWeight: 500,
127
- "text-transform": "uppercase"
128
- },
129
- h3Inter: {
130
- fontFamily: "Inter, Sans",
131
- fontWeight: 500
132
- },
133
- h4: {
134
- fontFamily: "Alpha, Inter, Sans",
135
- fontWeight: 500,
136
- "text-transform": "uppercase"
137
- },
138
- h4Inter: {
139
- fontFamily: "Inter, Sans",
140
- fontWeight: 600
141
- },
142
- h5: {
143
- fontFamily: "Alpha, Inter, Sans",
144
- fontWeight: 500,
145
- "text-transform": "uppercase"
146
- },
147
- h5Inter: {
148
- fontFamily: "Inter, Sans",
149
- fontWeight: 500
150
- },
151
- large: {
152
- fontFamily: "Inter, Sans"
153
- },
154
- largeLineHeight: {
155
- fontFamily: "Inter, Sans",
156
- lineHeight: 1.7
157
- },
158
- body: {
159
- fontFamily: "Inter, Sans"
160
- },
161
- bodyLineHeight: {
162
- fontFamily: "Inter, Sans",
163
- lineHeight: 1.7
164
- },
165
- paragraph: {
166
- fontFamily: "Inter, Sans"
167
- },
168
- paragraphLineHeight: {
169
- fontFamily: "Inter, Sans",
170
- lineHeight: 1.7
171
- },
172
- small: {
173
- fontFamily: "Inter, Sans"
174
- },
175
- extraSmall: {
176
- fontFamily: "Inter, Sans"
177
- },
178
- tiny: {
179
- fontFamily: "Inter, Sans"
180
- },
181
- micro: {
182
- fontFamily: "Inter, Sans"
183
- },
184
- subtitle: {
185
- fontFamily: "Inter, Sans",
186
- fontWeight: 600,
187
- "text-transform": "uppercase"
188
- }
189
- };
190
-
191
- __webpack_require__.d(__webpack_exports__, {
192
- }, {
193
- textVariantStyle: textVariantStyle
194
- });
195
-
196
-
197
- },
198
- 2843(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
199
- /* import */ var styled_system__rspack_import_0 = __webpack_require__(9351);
200
- /* import */ var styled_system__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_0);
201
- /* import */ var _styled__rspack_import_1 = __webpack_require__(7680);
202
-
203
-
204
- function getColumns(props) {
205
- const { columns } = props;
206
- return columns === "none" ? columns : `repeat(${columns || 12}, minmax(0, 1fr));`;
207
- }
208
- function getRows(props) {
209
- const { rows } = props;
210
- return !rows ? "initial" : rows === "none" ? rows : `repeat(${rows}, minmax(0, 1fr));`;
211
- }
212
- const Grid = _styled__rspack_import_1["default"].div`
213
- display: grid;
214
- grid-template-columns: ${getColumns};
215
- grid-template-rows: ${getRows};
216
- ${styled_system__rspack_import_0.grid};
217
- `;
218
- /* export default */ const __rspack_default_export = (Grid);
219
-
220
- __webpack_require__.d(__webpack_exports__, {
221
- }, {
222
- "default": __rspack_default_export
223
- });
224
-
225
-
226
- },
227
- 7680(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
228
- /* import */ var _styles_system_gaps__rspack_import_2 = __webpack_require__(4182);
229
- /* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
230
- /* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
231
- /* import */ var styled_system__rspack_import_1 = __webpack_require__(9351);
232
- /* import */ var styled_system__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_1);
233
-
234
-
235
-
236
- 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);
237
- const proxyStyled = new Proxy((styled_components__rspack_import_0_default()), {
238
- apply (target, thisArg, argumentsList) {
239
- return styled_components__rspack_import_0_default()(target.apply(thisArg, argumentsList)(baseStyles));
240
- },
241
- get (target, property) {
242
- if (typeof target[property] === "function") {
243
- return styled_components__rspack_import_0_default()(target[property].apply((styled_components__rspack_import_0_default()), [
244
- baseStyles
245
- ]));
246
- }
247
- return target[property];
248
- }
249
- });
250
- /* export default */ const __rspack_default_export = (proxyStyled);
251
-
252
- __webpack_require__.d(__webpack_exports__, {
253
- }, {
254
- "default": __rspack_default_export
255
- });
256
-
257
-
258
- },
259
- 205(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
260
-
261
- // EXPORTS
262
- __webpack_require__.d(__webpack_exports__, {
263
- ff: () => (/* binding */ ff)
264
- });
265
-
266
- // UNUSED EXPORTS: darken, ensureContrast, lighten, mix, rgba
267
-
268
- ;// CONCATENATED MODULE: external "color"
269
- const external_color_namespaceObject = require("color");
270
- // EXTERNAL MODULE: ./src/styles/theme.ts
271
- var theme = __webpack_require__(5548);
272
- ;// CONCATENATED MODULE: ./src/styles/helpers.ts
273
-
274
-
275
- const rgba = (c, a)=>Color(c).alpha(a).rgb().toString();
276
- const darken = (c, a)=>Color(c).darken(a).toString();
277
- const lighten = (c, a)=>Color(c).lighten(a).toString();
278
- const mix = (c, b, a)=>Color(c).mix(Color(b), a).toString();
279
- const ff = (v)=>{
280
- const [font, type = "Regular"] = v.split("|");
281
- // @ts-expect-error FIXME
282
- const { style, weight } = theme.fontFamilies[font][type];
283
- // @ts-expect-error FIXME
284
- const fallback = theme.fontFamilies[font].fallback ?? "Arial";
285
- return {
286
- fontFamily: `${font}, ${fallback}`,
287
- fontWeight: weight,
288
- fontStyle: style
289
- };
290
- };
291
- const ensureContrast = (color1, color2)=>{
292
- const colorL1 = Color(color1).luminosity() + 0.05;
293
- const colorL2 = Color(color2).luminosity() + 0.05;
294
- const lRatio = colorL1 > colorL2 ? colorL1 / colorL2 : colorL2 / colorL1;
295
- if (lRatio < 1.5) {
296
- return Color(color1).rotate(180).negate().string();
297
- }
298
- return color1;
299
- };
300
-
301
-
302
- },
303
- 3364(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
304
- /* import */ var _helpers__rspack_import_0 = __webpack_require__(205);
305
-
306
- /* export default */ const __rspack_default_export = ((props)=>{
307
- const prop = props.ff;
308
- if (prop == null) {
309
- return null;
310
- }
311
- return (0,_helpers__rspack_import_0.ff)(prop);
312
- });
313
-
314
- __webpack_require__.d(__webpack_exports__, {
315
- }, {
316
- "default": __rspack_default_export
317
- });
318
-
319
-
320
- },
321
- 4182(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
322
- /* import */ var styled_system__rspack_import_0 = __webpack_require__(9351);
323
- /* import */ var styled_system__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_0);
324
-
325
- const gaps = (0,styled_system__rspack_import_0.system)({
326
- rowGap: {
327
- property: "rowGap",
328
- scale: "space"
329
- },
330
- columnGap: {
331
- property: "columnGap",
332
- scale: "space"
333
- }
334
- });
335
- /* export default */ const __rspack_default_export = (gaps);
336
-
337
- __webpack_require__.d(__webpack_exports__, {
338
- }, {
339
- "default": __rspack_default_export
340
- });
341
-
342
-
343
- },
344
- 5548(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
345
- /* import */ var styled_components__rspack_import_0 = __webpack_require__(2770);
346
- /* import */ var styled_components__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_0);
347
- /* import */ var _ledgerhq_ui_shared__rspack_import_1 = __webpack_require__(2993);
348
- /* import */ var _ledgerhq_ui_shared__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(_ledgerhq_ui_shared__rspack_import_1);
349
-
350
-
351
- const breakpoints = {
352
- sm: "640px",
353
- md: "768px",
354
- lg: "1024px",
355
- xl: "1280px",
356
- xxl: "1536px"
357
- };
358
- const space = [
359
- /* space indexes:
360
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 */ 0,
361
- 2,
362
- 4,
363
- 8,
364
- 10,
365
- 12,
366
- 16,
367
- 20,
368
- 24,
369
- 28,
370
- 32,
371
- 36,
372
- 40,
373
- 44,
374
- 48,
375
- 52,
376
- 56,
377
- 60,
378
- 64,
379
- 68,
380
- 72,
381
- 76
382
- ];
383
- const fontSizes = [
384
- 8,
385
- 10,
386
- 11,
387
- 12,
388
- 13,
389
- 14,
390
- 16,
391
- 20,
392
- 24,
393
- 28,
394
- 32,
395
- 36
396
- ];
397
- [fontSizes.micro, fontSizes.tiny, fontSizes.extraSmall, fontSizes.small, fontSizes.paragraph, fontSizes.body, fontSizes.large, fontSizes.h5, fontSizes.h4, fontSizes.h3, fontSizes.h2, fontSizes.h1] = fontSizes;
398
- fontSizes.largeLineHeight = fontSizes.large;
399
- fontSizes.bodyLineHeight = fontSizes.body;
400
- fontSizes.paragraphLineHeight = fontSizes.paragraph;
401
- fontSizes.subtitle = fontSizes.extraSmall;
402
- fontSizes.h1Inter = fontSizes.h1;
403
- fontSizes.h2Inter = fontSizes.h2;
404
- fontSizes.h3Inter = fontSizes.h3;
405
- fontSizes.h4Inter = fontSizes.h4;
406
- fontSizes.h5Inter = fontSizes.h5;
407
- const fontWeights = {
408
- extraLight: "100",
409
- light: "300",
410
- regular: "400",
411
- medium: "500",
412
- semiBold: "600",
413
- bold: "700",
414
- extraBold: "800"
415
- };
416
- const radii = [
417
- 0,
418
- 4,
419
- 8,
420
- 12,
421
- 16,
422
- 20
423
- ];
424
- const shadows = [
425
- "0 4px 8px 0 rgba(0, 0, 0, 0.03)"
426
- ];
427
- const zIndexes = [
428
- -1,
429
- 0,
430
- 1,
431
- 9,
432
- 10,
433
- 90,
434
- 100,
435
- 900,
436
- 1000
437
- ];
438
- // Those fonts are now defined in global.css, this is just a mapping for styled-system
439
- const fontFamilies = {
440
- Inter: {
441
- ExtraLight: {
442
- weight: 100,
443
- style: "normal"
444
- },
445
- Light: {
446
- weight: 300,
447
- style: "normal"
448
- },
449
- Regular: {
450
- weight: 400,
451
- style: "normal"
452
- },
453
- Medium: {
454
- weight: 500,
455
- style: "normal"
456
- },
457
- SemiBold: {
458
- weight: 600,
459
- style: "normal"
460
- },
461
- Bold: {
462
- weight: 700,
463
- style: "normal"
464
- },
465
- ExtraBold: {
466
- weight: 800,
467
- style: "normal"
468
- }
469
- },
470
- Alpha: {
471
- Medium: {
472
- weight: 500,
473
- style: "normal"
474
- }
475
- }
476
- };
477
- const animationDuration = "0.33s";
478
- const easings = {
479
- outQuadratic: "cubic-bezier(0.25, 0.46, 0.45, 0.94)"
480
- };
481
- const transition = (properties = [
482
- "all"
483
- ], duration = animationDuration, easing = easings.outQuadratic)=>(0,styled_components__rspack_import_0.css)`
484
- transition-property: ${properties.join(",")};
485
- transition-duration: ${duration};
486
- transition-timing-function: ${easing};
487
- `;
488
- const fadeIn = (0,styled_components__rspack_import_0.keyframes)`
489
- 0% {
490
- opacity: 0;
491
- }
492
- 100% {
493
- opacity: 1;
494
- }
495
- `;
496
- const fadeOut = (0,styled_components__rspack_import_0.keyframes)`
497
- 0% {
498
- opacity: 1;
499
- }
500
- 100% {
501
- opacity: 0;
502
- }
503
- `;
504
- const fadeInGrowX = (0,styled_components__rspack_import_0.keyframes)`
505
- 0% {
506
- opacity: 0;
507
- transform: scaleX(0);
508
- }
509
- 100% {
510
- opacity: 1;
511
- transform: scaleX(1);
512
- }
513
- `;
514
- const fadeInUp = (0,styled_components__rspack_import_0.keyframes)`
515
- 0% {
516
- opacity: 0;
517
- transform: translateY(66%);
518
- }
519
- 100% {
520
- opacity: 1;
521
- transform: translateY(0%);
522
- }
523
- `;
524
- const animations = {
525
- fadeIn: ()=>(0,styled_components__rspack_import_0.css)`
526
- ${fadeIn} ${animationDuration} ${easings.outQuadratic} forwards
527
- `,
528
- fadeOut: ()=>(0,styled_components__rspack_import_0.css)`
529
- ${fadeOut} ${animationDuration} ${easings.outQuadratic} forwards
530
- `,
531
- fadeInGrowX: ()=>(0,styled_components__rspack_import_0.css)`
532
- ${fadeInGrowX} 0.6s ${easings.outQuadratic} forwards
533
- `,
534
- fadeInUp: ()=>(0,styled_components__rspack_import_0.css)`
535
- ${fadeInUp} ${animationDuration} ${easings.outQuadratic} forwards
536
- `
537
- };
538
- const overflow = {
539
- x: (0,styled_components__rspack_import_0.css)`
540
- overflow-y: hidden;
541
- overflow-x: scroll;
542
- will-change: transform;
543
- &:hover {
544
- --track-color: ${(p)=>p.theme.colors.neutral.c30};
545
- }
546
- `,
547
- y: (0,styled_components__rspack_import_0.css)`
548
- overflow-x: hidden;
549
- overflow-y: scroll;
550
- will-change: transform;
551
- &:hover {
552
- --track-color: ${(p)=>p.theme.colors.neutral.c30};
553
- }
554
- `,
555
- yAuto: (0,styled_components__rspack_import_0.css)`
556
- overflow-x: hidden;
557
- overflow-y: auto;
558
- will-change: transform;
559
- &:hover {
560
- --track-color: ${(p)=>p.theme.colors.neutral.c30};
561
- }
562
- `,
563
- xy: (0,styled_components__rspack_import_0.css)`
564
- overflow: scroll;
565
- will-change: transform;
566
- &:hover {
567
- --track-color: ${(p)=>p.theme.colors.neutral.c30};
568
- }
569
- `,
570
- trackSize: 12
571
- };
572
- const theme = {
573
- theme: "light",
574
- sizes: {
575
- drawer: {
576
- side: {
577
- big: {
578
- width: 580
579
- },
580
- small: {
581
- width: 420
582
- }
583
- },
584
- popin: {
585
- min: {
586
- height: 158,
587
- width: 462
588
- },
589
- max: {
590
- height: 522,
591
- width: 622
592
- }
593
- }
594
- },
595
- topBarHeight: 58,
596
- sideBarWidth: 230
597
- },
598
- radii,
599
- fontFamilies,
600
- fontSizes,
601
- fontWeights,
602
- space,
603
- shadows,
604
- colors: _ledgerhq_ui_shared__rspack_import_1.palettes.light,
605
- animations,
606
- overflow,
607
- transition,
608
- zIndexes,
609
- breakpoints
610
- };
611
- /* unused export default */ var __rspack_default_export = ((/* unused pure expression or super */ null && (theme)));
612
-
613
- __webpack_require__.d(__webpack_exports__, {
614
- }, {
615
- fontFamilies: fontFamilies
616
- });
617
-
618
-
619
- },
620
- 2993(module) {
621
- module.exports = require("@ledgerhq/ui-shared");
622
-
623
- },
624
- 2015(module) {
625
- module.exports = require("react");
626
-
627
- },
628
- 2770(module) {
629
- module.exports = require("styled-components");
630
-
631
- },
632
- 9351(module) {
633
- module.exports = require("styled-system");
634
-
635
- },
636
-
637
- });
638
- // The module cache
639
- var __webpack_module_cache__ = {};
640
-
641
- // The require function
642
- function __webpack_require__(moduleId) {
643
-
644
- // Check if module is in cache
645
- var cachedModule = __webpack_module_cache__[moduleId];
646
- if (cachedModule !== undefined) {
647
- return cachedModule.exports;
648
- }
649
- // Create a new module (and put it into the cache)
650
- var module = (__webpack_module_cache__[moduleId] = {
651
- exports: {}
652
- });
653
- // Execute the module function
654
- __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
655
-
656
- // Return the exports of the module
657
- return module.exports;
658
-
659
- }
660
-
661
- // webpack/runtime/compat_get_default_export
662
- (() => {
663
- // getDefaultExport function for compatibility with non-ESM modules
664
- __webpack_require__.n = (module) => {
665
- var getter = module && module.__esModule ?
666
- () => (module['default']) :
667
- () => (module);
668
- __webpack_require__.d(getter, { a: getter });
669
- return getter;
670
- };
671
-
672
- })();
673
- // webpack/runtime/define_property_getters
674
- (() => {
675
- __webpack_require__.d = (exports, getters, values) => {
676
- var define = (defs, kind) => {
677
- for(var key in defs) {
678
- if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
679
- Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
680
- }
681
- }
682
- };
683
- define(getters, "get");
684
- define(values, "value");
685
- };
686
- })();
687
- // webpack/runtime/has_own_property
688
- (() => {
689
- __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
690
- })();
691
- // webpack/runtime/make_namespace_object
692
- (() => {
693
- // define __esModule on exports
694
- __webpack_require__.r = (exports) => {
695
- if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
696
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
697
- }
698
- Object.defineProperty(exports, '__esModule', { value: true });
699
- };
700
- })();
701
- var __webpack_exports__ = {};
702
- // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
703
- (() => {
704
- __webpack_require__.r(__webpack_exports__);
705
- /* import */ var react__rspack_import_0 = __webpack_require__(2015);
706
- /* import */ var react__rspack_import_0_default = /*#__PURE__*/__webpack_require__.n(react__rspack_import_0);
707
- /* import */ var styled_components__rspack_import_1 = __webpack_require__(2770);
708
- /* import */ var styled_components__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(styled_components__rspack_import_1);
709
- /* import */ var styled_system__rspack_import_2 = __webpack_require__(9351);
710
- /* import */ var styled_system__rspack_import_2_default = /*#__PURE__*/__webpack_require__.n(styled_system__rspack_import_2);
711
- /* import */ var _index__rspack_import_3 = __webpack_require__(2843);
712
- /* import */ var _asorted_Text__rspack_import_4 = __webpack_require__(348);
713
-
714
-
715
-
716
-
717
-
718
- // Just a stylable div used as a base grid element for the purpose of this story.
719
- const Cell = (styled_components__rspack_import_1_default().div)`
720
- // Make the div semi-opaque to show grid composition.
721
- opacity: 0.7;
722
- ${styled_system__rspack_import_2.color}
723
- ${styled_system__rspack_import_2.space}
724
- ${styled_system__rspack_import_2.grid}
725
- `;
726
- /* export default */ const __rspack_default_export = ({
727
- title: "Layout/Grid",
728
- component: _index__rspack_import_3["default"],
729
- argTypes: {
730
- columns: {
731
- type: "number",
732
- description: "The number of columns set with a `repeat(N, minmax(0, 1fr))` pattern or `none` to disable.",
733
- table: {
734
- category: "Container",
735
- defaultValue: {
736
- summary: 12
737
- }
738
- }
739
- },
740
- rows: {
741
- type: "number",
742
- description: "The number of rows set with a `repeat(N, minmax(0, 1fr))` pattern or `none` to disable.",
743
- table: {
744
- category: "Container",
745
- defaultValue: {
746
- summary: "initial"
747
- }
748
- }
749
- },
750
- gridTemplateColumns: {
751
- type: "string",
752
- description: "The grid-template-columns CSS property defines the line names and track sizing functions of the grid columns.",
753
- table: {
754
- category: "Container"
755
- }
756
- },
757
- gridTemplateRows: {
758
- type: "string",
759
- description: "The grid-template-rows CSS property defines the line names and track sizing functions of the grid rows.",
760
- table: {
761
- category: "Container"
762
- }
763
- },
764
- gridTemplateAreas: {
765
- type: "string",
766
- description: "The grid-template-areas CSS property specifies named grid areas, establishing the cells in the grid and assigning them names.",
767
- table: {
768
- category: "Container"
769
- }
770
- },
771
- gridAutoColumns: {
772
- type: "string",
773
- description: "The grid-auto-columns CSS property specifies the size of an implicitly-created grid column track or pattern of tracks.",
774
- table: {
775
- category: "Container"
776
- }
777
- },
778
- gridAutoRows: {
779
- type: "string",
780
- description: "The grid-auto-rows CSS property specifies the size of an implicitly-created grid row track or pattern of tracks.",
781
- table: {
782
- category: "Container"
783
- }
784
- },
785
- gridAutoFlow: {
786
- type: "string",
787
- description: "The grid-auto-flow CSS property controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the grid.",
788
- options: [
789
- "row",
790
- "column",
791
- "dense",
792
- "row dense",
793
- "column dense"
794
- ],
795
- control: {
796
- type: "select"
797
- },
798
- table: {
799
- category: "Container"
800
- }
801
- },
802
- gridGap: {
803
- type: "number",
804
- description: "The gap CSS property sets the gaps (gutters) between rows and columns. It is a shorthand for row-gap and column-gap.",
805
- table: {
806
- category: "Container"
807
- }
808
- },
809
- gridRowGap: {
810
- type: "number",
811
- description: "The row-gap CSS property sets the size of the gap (gutter) between an element's grid rows.",
812
- table: {
813
- category: "Container"
814
- }
815
- },
816
- gridColumnGap: {
817
- type: "number",
818
- description: "The column-gap CSS property sets the size of the gap (gutter) between an element's columns.",
819
- table: {
820
- category: "Container"
821
- }
822
- },
823
- gridColumn: {
824
- type: "string",
825
- description: "The grid-column CSS shorthand property specifies a grid item's size and location within a grid column by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the inline-start and inline-end edge of its grid area.",
826
- table: {
827
- category: "Cell"
828
- }
829
- },
830
- gridRow: {
831
- type: "string",
832
- description: "The grid-row CSS shorthand property specifies a grid item’s size and location within the grid row by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the inline-start and inline-end edge of its grid area.",
833
- table: {
834
- category: "Cell"
835
- }
836
- },
837
- gridArea: {
838
- type: "string",
839
- description: "The grid-area CSS shorthand property specifies a grid item’s size and location within a grid by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the edges of its grid area.",
840
- table: {
841
- category: "Cell"
842
- }
843
- }
844
- }
845
- });
846
- const cells = Array.from({
847
- length: 47
848
- }, (_, i)=>{
849
- // Apply some span to showoff the grid system a bit.
850
- const colSpan = i % 7 === 0 ? 4 : i % 5 === 0 ? 3 : i % 3 === 0 ? 2 : 0;
851
- const rowSpan = i % 14 === 0 ? 2 : i % 6 === 0 ? 4 : 0;
852
- return /*#__PURE__*/ react__rspack_import_0_default().createElement(Cell, {
853
- key: i,
854
- backgroundColor: "aliceBlue",
855
- padding: 1,
856
- opacity: 1,
857
- gridColumn: colSpan > 0 ? `span ${colSpan}` : "initial",
858
- gridRow: colSpan > 0 ? `span ${rowSpan}` : "initial"
859
- }, i + 2, /*#__PURE__*/ react__rspack_import_0_default().createElement("div", {
860
- style: {
861
- fontSize: "10px"
862
- }
863
- }, colSpan > 0 ? `(column span ${colSpan})` : ""), /*#__PURE__*/ react__rspack_import_0_default().createElement("div", {
864
- style: {
865
- fontSize: "10px"
866
- }
867
- }, rowSpan > 0 ? `(row span ${rowSpan})` : ""));
868
- });
869
- // oxlint-disable-next-line typescript/no-explicit-any
870
- const DefaultTemplate = ({ gridColumn, gridRow, gridArea, ...args })=>{
871
- return /*#__PURE__*/ react__rspack_import_0_default().createElement((react__rspack_import_0_default().Fragment), null, /*#__PURE__*/ react__rspack_import_0_default().createElement(_asorted_Text__rspack_import_4["default"], {
872
- style: {
873
- marginBottom: "1em"
874
- }
875
- }, "A 12 columns grid using default props and containing cells with various span values."), /*#__PURE__*/ react__rspack_import_0_default().createElement(_index__rspack_import_3["default"], args, /*#__PURE__*/ react__rspack_import_0_default().createElement(Cell, {
876
- key: "-1",
877
- backgroundColor: "aliceBlue",
878
- padding: 1,
879
- opacity: 1,
880
- gridColumn: gridColumn,
881
- gridRow: gridRow,
882
- gridArea: gridArea
883
- }, "1"), cells));
884
- };
885
- const Default = DefaultTemplate;
886
- // @ts-expect-error FIXME
887
- Default.args = {
888
- gridGap: 1
889
- };
890
- // oxlint-disable-next-line typescript/no-explicit-any
891
- const FixedTemplate = ({ gridColumn, gridRow, gridArea, ...args })=>/*#__PURE__*/ react__rspack_import_0_default().createElement((react__rspack_import_0_default().Fragment), null, /*#__PURE__*/ react__rspack_import_0_default().createElement(_asorted_Text__rspack_import_4["default"], {
892
- style: {
893
- marginBottom: "1em"
894
- }
895
- }, "This example with fixed cells is taken from the", " ", /*#__PURE__*/ react__rspack_import_0_default().createElement("a", {
896
- href: "https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout",
897
- style: {
898
- cursor: "pointer"
899
- }
900
- }, "MDN"), " ", "documentation."), /*#__PURE__*/ react__rspack_import_0_default().createElement(_index__rspack_import_3["default"], args, /*#__PURE__*/ react__rspack_import_0_default().createElement((react__rspack_import_0_default().Fragment), null, /*#__PURE__*/ react__rspack_import_0_default().createElement(Cell, {
901
- color: "white",
902
- padding: "2",
903
- gridColumn: gridColumn,
904
- gridRow: gridRow,
905
- gridArea: gridArea,
906
- backgroundColor: "red"
907
- }, "Control me using ", `"Cell"`, " props."), /*#__PURE__*/ react__rspack_import_0_default().createElement(Cell, {
908
- gridColumn: "2 / 4",
909
- gridRow: "1 / 3",
910
- backgroundColor: "blue"
911
- }), /*#__PURE__*/ react__rspack_import_0_default().createElement(Cell, {
912
- gridColumn: "1",
913
- gridRow: "2 / 5",
914
- backgroundColor: "green"
915
- }), /*#__PURE__*/ react__rspack_import_0_default().createElement(Cell, {
916
- gridColumn: "3",
917
- gridRow: "3",
918
- backgroundColor: "purple"
919
- }), /*#__PURE__*/ react__rspack_import_0_default().createElement(Cell, {
920
- gridColumn: "2",
921
- gridRow: "4",
922
- backgroundColor: "teal"
923
- }), /*#__PURE__*/ react__rspack_import_0_default().createElement(Cell, {
924
- gridColumn: "3",
925
- gridRow: "4",
926
- backgroundColor: "brown"
927
- }))));
928
- const Fixed = FixedTemplate;
929
- // @ts-expect-error FIXME
930
- Fixed.args = {
931
- columns: 3,
932
- rows: undefined,
933
- gridAutoRows: "100px",
934
- gridGap: 1,
935
- gridTemplateColumns: undefined,
936
- gridTemplateRows: undefined,
937
- gridTemplateAreas: undefined,
938
- gridRowGap: undefined,
939
- gridColumnGap: undefined,
940
- gridColumn: "1/3",
941
- gridRow: "1",
942
- gridArea: undefined,
943
- gridAutoFlow: undefined,
944
- gridAutoColumns: undefined
945
- };
946
-
947
- __webpack_require__.d(__webpack_exports__, {
948
- }, {
949
- Default: Default,
950
- Fixed: Fixed,
951
- "default": __rspack_default_export
952
- });
953
-
954
- })();
955
-
956
- module.exports = __webpack_exports__;
957
- })()
958
- ;
959
- //# sourceMappingURL=Grid.stories.js.map