@bosonprotocol/react-kit 0.33.0-alpha.2 → 0.33.0-alpha.20

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 (346) hide show
  1. package/dist/cjs/components/buttons/BaseButton.d.ts +1 -0
  2. package/dist/cjs/components/buttons/BaseButton.d.ts.map +1 -1
  3. package/dist/cjs/components/buttons/BaseButton.js +1 -0
  4. package/dist/cjs/components/buttons/BaseButton.js.map +1 -1
  5. package/dist/cjs/components/error/SimpleError.d.ts +2 -2
  6. package/dist/cjs/components/error/SimpleError.d.ts.map +1 -1
  7. package/dist/cjs/components/error/SimpleError.js.map +1 -1
  8. package/dist/cjs/components/form/BaseCheckbox.d.ts +5 -0
  9. package/dist/cjs/components/form/BaseCheckbox.d.ts.map +1 -0
  10. package/dist/cjs/components/form/BaseCheckbox.js +69 -0
  11. package/dist/cjs/components/form/BaseCheckbox.js.map +1 -0
  12. package/dist/cjs/components/form/Checkbox.d.ts +13 -2
  13. package/dist/cjs/components/form/Checkbox.d.ts.map +1 -1
  14. package/dist/cjs/components/form/Checkbox.js +18 -61
  15. package/dist/cjs/components/form/Checkbox.js.map +1 -1
  16. package/dist/cjs/components/form/CountrySelect.d.ts +26 -11
  17. package/dist/cjs/components/form/CountrySelect.d.ts.map +1 -1
  18. package/dist/cjs/components/form/CountrySelect.js +64 -31
  19. package/dist/cjs/components/form/CountrySelect.js.map +1 -1
  20. package/dist/cjs/components/form/Field.styles.d.ts +36 -2
  21. package/dist/cjs/components/form/Field.styles.d.ts.map +1 -1
  22. package/dist/cjs/components/form/Field.styles.js +83 -24
  23. package/dist/cjs/components/form/Field.styles.js.map +1 -1
  24. package/dist/cjs/components/form/FormField.d.ts +2 -1
  25. package/dist/cjs/components/form/FormField.d.ts.map +1 -1
  26. package/dist/cjs/components/form/FormField.js +14 -2
  27. package/dist/cjs/components/form/FormField.js.map +1 -1
  28. package/dist/cjs/components/form/Select.d.ts +2 -1
  29. package/dist/cjs/components/form/Select.d.ts.map +1 -1
  30. package/dist/cjs/components/form/Select.js +32 -20
  31. package/dist/cjs/components/form/Select.js.map +1 -1
  32. package/dist/cjs/components/form/Upload/BaseUpload.d.ts +71 -0
  33. package/dist/cjs/components/form/Upload/BaseUpload.d.ts.map +1 -0
  34. package/dist/cjs/components/form/Upload/BaseUpload.js +264 -0
  35. package/dist/cjs/components/form/Upload/BaseUpload.js.map +1 -0
  36. package/dist/cjs/components/form/Upload/Upload.d.ts +3 -41
  37. package/dist/cjs/components/form/Upload/Upload.d.ts.map +1 -1
  38. package/dist/cjs/components/form/Upload/Upload.js +7 -258
  39. package/dist/cjs/components/form/Upload/Upload.js.map +1 -1
  40. package/dist/cjs/components/form/Upload/UploadedFile.js +2 -2
  41. package/dist/cjs/components/form/Upload/UploadedFile.js.map +1 -1
  42. package/dist/cjs/components/form/Upload/WithUploadToIpfs.d.ts.map +1 -1
  43. package/dist/cjs/components/form/Upload/WithUploadToIpfs.js +9 -12
  44. package/dist/cjs/components/form/Upload/WithUploadToIpfs.js.map +1 -1
  45. package/dist/cjs/components/form/index.d.ts +6 -4
  46. package/dist/cjs/components/form/index.d.ts.map +1 -1
  47. package/dist/cjs/components/form/index.js +7 -3
  48. package/dist/cjs/components/form/index.js.map +1 -1
  49. package/dist/cjs/components/form/types.d.ts +31 -3
  50. package/dist/cjs/components/form/types.d.ts.map +1 -1
  51. package/dist/cjs/components/image/Image.js +2 -2
  52. package/dist/cjs/components/image/Image.js.map +1 -1
  53. package/dist/cjs/components/image/Image.styles.d.ts +2 -1
  54. package/dist/cjs/components/image/Image.styles.d.ts.map +1 -1
  55. package/dist/cjs/components/image/Image.styles.js +2 -2
  56. package/dist/cjs/components/image/Image.styles.js.map +1 -1
  57. package/dist/cjs/components/modal/components/Commit/DetailView/InnerCommitDetailView.js +3 -3
  58. package/dist/cjs/components/modal/components/Commit/DetailView/InnerCommitDetailView.js.map +1 -1
  59. package/dist/cjs/components/modal/components/Redeem/ExchangeView/RedeemSuccess.js +3 -3
  60. package/dist/cjs/components/modal/components/Redeem/ExchangeView/RedeemSuccess.js.map +1 -1
  61. package/dist/cjs/components/modal/components/common/OfferFullDescription/DigitalProductData.js +2 -2
  62. package/dist/cjs/components/modal/components/common/OfferFullDescription/DigitalProductData.js.map +1 -1
  63. package/dist/cjs/components/modal/components/common/detail/DetailSlider.js +2 -2
  64. package/dist/cjs/components/modal/components/common/detail/DetailSlider.js.map +1 -1
  65. package/dist/cjs/components/modal/components/common/detail/PhygitalProduct.js +2 -2
  66. package/dist/cjs/components/modal/components/common/detail/PhygitalProduct.js.map +1 -1
  67. package/dist/cjs/components/modal/components/common/detail/SlickSlider.js +2 -2
  68. package/dist/cjs/components/modal/components/common/detail/SlickSlider.js.map +1 -1
  69. package/dist/cjs/components/ui/CardCTA.d.ts +21 -0
  70. package/dist/cjs/components/ui/CardCTA.d.ts.map +1 -0
  71. package/dist/cjs/components/ui/CardCTA.js +77 -0
  72. package/dist/cjs/components/ui/CardCTA.js.map +1 -0
  73. package/dist/cjs/components/ui/Grid.d.ts.map +1 -1
  74. package/dist/cjs/components/ui/Grid.js +22 -21
  75. package/dist/cjs/components/ui/Grid.js.map +1 -1
  76. package/dist/cjs/components/ui/IpfsImage.d.ts +5 -4
  77. package/dist/cjs/components/ui/IpfsImage.d.ts.map +1 -1
  78. package/dist/cjs/components/ui/IpfsImage.js +4 -3
  79. package/dist/cjs/components/ui/IpfsImage.js.map +1 -1
  80. package/dist/cjs/components/ui/Typography.d.ts.map +1 -1
  81. package/dist/cjs/components/ui/Typography.js +29 -28
  82. package/dist/cjs/components/ui/Typography.js.map +1 -1
  83. package/dist/cjs/components/ui/Video.d.ts +3 -3
  84. package/dist/cjs/components/ui/Video.d.ts.map +1 -1
  85. package/dist/cjs/components/ui/Video.js +26 -14
  86. package/dist/cjs/components/ui/Video.js.map +1 -1
  87. package/dist/cjs/components/ui/common.d.ts +2 -0
  88. package/dist/cjs/components/ui/common.d.ts.map +1 -0
  89. package/dist/cjs/components/ui/common.js +6 -0
  90. package/dist/cjs/components/ui/common.js.map +1 -0
  91. package/dist/cjs/components/wallet/ConnectButton.js +2 -2
  92. package/dist/cjs/components/wallet/ConnectButton.js.map +1 -1
  93. package/dist/cjs/components/widgets/finance/convertion-rate/ConvertionRateContext.js +2 -2
  94. package/dist/cjs/components/widgets/finance/convertion-rate/ConvertionRateContext.js.map +1 -1
  95. package/dist/cjs/components/widgets/finance/convertion-rate/ConvertionRateProvider.js +2 -2
  96. package/dist/cjs/components/widgets/finance/convertion-rate/ConvertionRateProvider.js.map +1 -1
  97. package/dist/cjs/components/widgets/finance/useOffersBacked.js +1 -1
  98. package/dist/cjs/components/widgets/finance/useOffersBacked.js.map +1 -1
  99. package/dist/cjs/hooks/core-sdk/useCoreSdk.d.ts.map +1 -1
  100. package/dist/cjs/hooks/core-sdk/useCoreSdk.js +2 -2
  101. package/dist/cjs/hooks/core-sdk/useCoreSdk.js.map +1 -1
  102. package/dist/cjs/hooks/form/useForm.d.ts +55 -0
  103. package/dist/cjs/hooks/form/useForm.d.ts.map +1 -0
  104. package/dist/cjs/hooks/form/useForm.js +11 -0
  105. package/dist/cjs/hooks/form/useForm.js.map +1 -0
  106. package/dist/cjs/hooks/index.d.ts +5 -0
  107. package/dist/cjs/hooks/index.d.ts.map +1 -1
  108. package/dist/cjs/hooks/index.js +5 -0
  109. package/dist/cjs/hooks/index.js.map +1 -1
  110. package/dist/cjs/hooks/ipfs/useIpfsStorage.d.ts +2 -0
  111. package/dist/cjs/hooks/ipfs/useIpfsStorage.d.ts.map +1 -0
  112. package/dist/cjs/hooks/ipfs/useIpfsStorage.js +14 -0
  113. package/dist/cjs/hooks/ipfs/useIpfsStorage.js.map +1 -0
  114. package/dist/cjs/hooks/location/buildUseSearchParams.d.ts +12 -0
  115. package/dist/cjs/hooks/location/buildUseSearchParams.d.ts.map +1 -0
  116. package/dist/cjs/hooks/location/buildUseSearchParams.js +36 -0
  117. package/dist/cjs/hooks/location/buildUseSearchParams.js.map +1 -0
  118. package/dist/cjs/{components/widgets/finance/storage/useLocalStorage.d.ts → hooks/storage/useBosonLocalStorage.d.ts} +3 -3
  119. package/dist/cjs/hooks/storage/useBosonLocalStorage.d.ts.map +1 -0
  120. package/dist/cjs/hooks/storage/useBosonLocalStorage.js +22 -0
  121. package/dist/cjs/hooks/storage/useBosonLocalStorage.js.map +1 -0
  122. package/dist/cjs/hooks/storage/useLocalStorage.d.ts +6 -0
  123. package/dist/cjs/hooks/storage/useLocalStorage.d.ts.map +1 -0
  124. package/dist/cjs/hooks/storage/useLocalStorage.js.map +1 -0
  125. package/dist/cjs/hooks/useIpfsMetadataStorage.d.ts.map +1 -1
  126. package/dist/cjs/hooks/useIpfsMetadataStorage.js +1 -1
  127. package/dist/cjs/hooks/useIpfsMetadataStorage.js.map +1 -1
  128. package/dist/cjs/index.d.ts +6 -0
  129. package/dist/cjs/index.d.ts.map +1 -1
  130. package/dist/cjs/index.js +8 -1
  131. package/dist/cjs/index.js.map +1 -1
  132. package/dist/cjs/lib/bytes/bytesToSize.d.ts +1 -1
  133. package/dist/cjs/lib/bytes/bytesToSize.d.ts.map +1 -1
  134. package/dist/cjs/lib/bytes/bytesToSize.js +2 -1
  135. package/dist/cjs/lib/bytes/bytesToSize.js.map +1 -1
  136. package/dist/cjs/lib/const/chainInfo.d.ts.map +1 -1
  137. package/dist/cjs/lib/const/chainInfo.js +10 -0
  138. package/dist/cjs/lib/const/chainInfo.js.map +1 -1
  139. package/dist/cjs/lib/url/url.d.ts +1 -0
  140. package/dist/cjs/lib/url/url.d.ts.map +1 -1
  141. package/dist/cjs/lib/url/url.js +2 -1
  142. package/dist/cjs/lib/url/url.js.map +1 -1
  143. package/dist/cjs/types/helpers.d.ts +3 -0
  144. package/dist/cjs/types/helpers.d.ts.map +1 -1
  145. package/dist/cjs/types/helpers.js.map +1 -1
  146. package/dist/esm/components/buttons/BaseButton.d.ts +1 -0
  147. package/dist/esm/components/buttons/BaseButton.d.ts.map +1 -1
  148. package/dist/esm/components/buttons/BaseButton.js +1 -0
  149. package/dist/esm/components/buttons/BaseButton.js.map +1 -1
  150. package/dist/esm/components/error/SimpleError.d.ts +2 -2
  151. package/dist/esm/components/error/SimpleError.d.ts.map +1 -1
  152. package/dist/esm/components/error/SimpleError.js.map +1 -1
  153. package/dist/esm/components/form/BaseCheckbox.d.ts +5 -0
  154. package/dist/esm/components/form/BaseCheckbox.d.ts.map +1 -0
  155. package/dist/esm/components/form/BaseCheckbox.js +27 -0
  156. package/dist/esm/components/form/BaseCheckbox.js.map +1 -0
  157. package/dist/esm/components/form/Checkbox.d.ts +13 -2
  158. package/dist/esm/components/form/Checkbox.d.ts.map +1 -1
  159. package/dist/esm/components/form/Checkbox.js +16 -25
  160. package/dist/esm/components/form/Checkbox.js.map +1 -1
  161. package/dist/esm/components/form/CountrySelect.d.ts +26 -11
  162. package/dist/esm/components/form/CountrySelect.d.ts.map +1 -1
  163. package/dist/esm/components/form/CountrySelect.js +97 -67
  164. package/dist/esm/components/form/CountrySelect.js.map +1 -1
  165. package/dist/esm/components/form/Field.styles.d.ts +36 -2
  166. package/dist/esm/components/form/Field.styles.d.ts.map +1 -1
  167. package/dist/esm/components/form/Field.styles.js +58 -20
  168. package/dist/esm/components/form/Field.styles.js.map +1 -1
  169. package/dist/esm/components/form/FormField.d.ts +2 -1
  170. package/dist/esm/components/form/FormField.d.ts.map +1 -1
  171. package/dist/esm/components/form/FormField.js +2 -2
  172. package/dist/esm/components/form/FormField.js.map +1 -1
  173. package/dist/esm/components/form/Select.d.ts +2 -1
  174. package/dist/esm/components/form/Select.d.ts.map +1 -1
  175. package/dist/esm/components/form/Select.js +52 -30
  176. package/dist/esm/components/form/Select.js.map +1 -1
  177. package/dist/esm/components/form/Upload/BaseUpload.d.ts +71 -0
  178. package/dist/esm/components/form/Upload/BaseUpload.d.ts.map +1 -0
  179. package/dist/esm/components/form/Upload/BaseUpload.js +226 -0
  180. package/dist/esm/components/form/Upload/BaseUpload.js.map +1 -0
  181. package/dist/esm/components/form/Upload/Upload.d.ts +3 -41
  182. package/dist/esm/components/form/Upload/Upload.d.ts.map +1 -1
  183. package/dist/esm/components/form/Upload/Upload.js +5 -225
  184. package/dist/esm/components/form/Upload/Upload.js.map +1 -1
  185. package/dist/esm/components/form/Upload/UploadedFile.js +1 -1
  186. package/dist/esm/components/form/Upload/UploadedFile.js.map +1 -1
  187. package/dist/esm/components/form/Upload/WithUploadToIpfs.d.ts.map +1 -1
  188. package/dist/esm/components/form/Upload/WithUploadToIpfs.js +8 -11
  189. package/dist/esm/components/form/Upload/WithUploadToIpfs.js.map +1 -1
  190. package/dist/esm/components/form/index.d.ts +6 -4
  191. package/dist/esm/components/form/index.d.ts.map +1 -1
  192. package/dist/esm/components/form/index.js +4 -2
  193. package/dist/esm/components/form/index.js.map +1 -1
  194. package/dist/esm/components/form/types.d.ts +31 -3
  195. package/dist/esm/components/form/types.d.ts.map +1 -1
  196. package/dist/esm/components/image/Image.js +2 -2
  197. package/dist/esm/components/image/Image.js.map +1 -1
  198. package/dist/esm/components/image/Image.styles.d.ts +2 -1
  199. package/dist/esm/components/image/Image.styles.d.ts.map +1 -1
  200. package/dist/esm/components/image/Image.styles.js +2 -2
  201. package/dist/esm/components/image/Image.styles.js.map +1 -1
  202. package/dist/esm/components/modal/components/Commit/DetailView/InnerCommitDetailView.js +1 -1
  203. package/dist/esm/components/modal/components/Commit/DetailView/InnerCommitDetailView.js.map +1 -1
  204. package/dist/esm/components/modal/components/Redeem/ExchangeView/RedeemSuccess.js +1 -1
  205. package/dist/esm/components/modal/components/Redeem/ExchangeView/RedeemSuccess.js.map +1 -1
  206. package/dist/esm/components/modal/components/common/OfferFullDescription/DigitalProductData.js +1 -1
  207. package/dist/esm/components/modal/components/common/OfferFullDescription/DigitalProductData.js.map +1 -1
  208. package/dist/esm/components/modal/components/common/detail/DetailSlider.js +1 -1
  209. package/dist/esm/components/modal/components/common/detail/DetailSlider.js.map +1 -1
  210. package/dist/esm/components/modal/components/common/detail/PhygitalProduct.js +1 -1
  211. package/dist/esm/components/modal/components/common/detail/PhygitalProduct.js.map +1 -1
  212. package/dist/esm/components/modal/components/common/detail/SlickSlider.js +1 -1
  213. package/dist/esm/components/modal/components/common/detail/SlickSlider.js.map +1 -1
  214. package/dist/esm/components/ui/CardCTA.d.ts +21 -0
  215. package/dist/esm/components/ui/CardCTA.d.ts.map +1 -0
  216. package/dist/esm/components/ui/CardCTA.js +35 -0
  217. package/dist/esm/components/ui/CardCTA.js.map +1 -0
  218. package/dist/esm/components/ui/Grid.d.ts.map +1 -1
  219. package/dist/esm/components/ui/Grid.js +22 -21
  220. package/dist/esm/components/ui/Grid.js.map +1 -1
  221. package/dist/esm/components/ui/IpfsImage.d.ts +5 -4
  222. package/dist/esm/components/ui/IpfsImage.d.ts.map +1 -1
  223. package/dist/esm/components/ui/IpfsImage.js +3 -4
  224. package/dist/esm/components/ui/IpfsImage.js.map +1 -1
  225. package/dist/esm/components/ui/Typography.d.ts.map +1 -1
  226. package/dist/esm/components/ui/Typography.js +29 -28
  227. package/dist/esm/components/ui/Typography.js.map +1 -1
  228. package/dist/esm/components/ui/Video.d.ts +3 -3
  229. package/dist/esm/components/ui/Video.d.ts.map +1 -1
  230. package/dist/esm/components/ui/Video.js +24 -14
  231. package/dist/esm/components/ui/Video.js.map +1 -1
  232. package/dist/esm/components/ui/common.d.ts +2 -0
  233. package/dist/esm/components/ui/common.d.ts.map +1 -0
  234. package/dist/esm/components/ui/common.js +2 -0
  235. package/dist/esm/components/ui/common.js.map +1 -0
  236. package/dist/esm/components/wallet/ConnectButton.js +1 -1
  237. package/dist/esm/components/wallet/ConnectButton.js.map +1 -1
  238. package/dist/esm/components/widgets/finance/convertion-rate/ConvertionRateContext.js +1 -1
  239. package/dist/esm/components/widgets/finance/convertion-rate/ConvertionRateContext.js.map +1 -1
  240. package/dist/esm/components/widgets/finance/convertion-rate/ConvertionRateProvider.js +1 -1
  241. package/dist/esm/components/widgets/finance/convertion-rate/ConvertionRateProvider.js.map +1 -1
  242. package/dist/esm/components/widgets/finance/useOffersBacked.js +1 -1
  243. package/dist/esm/components/widgets/finance/useOffersBacked.js.map +1 -1
  244. package/dist/esm/hooks/core-sdk/useCoreSdk.d.ts.map +1 -1
  245. package/dist/esm/hooks/core-sdk/useCoreSdk.js +3 -3
  246. package/dist/esm/hooks/core-sdk/useCoreSdk.js.map +1 -1
  247. package/dist/esm/hooks/form/useForm.d.ts +55 -0
  248. package/dist/esm/hooks/form/useForm.d.ts.map +1 -0
  249. package/dist/esm/hooks/form/useForm.js +10 -0
  250. package/dist/esm/hooks/form/useForm.js.map +1 -0
  251. package/dist/esm/hooks/index.d.ts +5 -0
  252. package/dist/esm/hooks/index.d.ts.map +1 -1
  253. package/dist/esm/hooks/index.js +5 -0
  254. package/dist/esm/hooks/index.js.map +1 -1
  255. package/dist/esm/hooks/ipfs/useIpfsStorage.d.ts +2 -0
  256. package/dist/esm/hooks/ipfs/useIpfsStorage.d.ts.map +1 -0
  257. package/dist/esm/hooks/ipfs/useIpfsStorage.js +10 -0
  258. package/dist/esm/hooks/ipfs/useIpfsStorage.js.map +1 -0
  259. package/dist/esm/hooks/location/buildUseSearchParams.d.ts +12 -0
  260. package/dist/esm/hooks/location/buildUseSearchParams.d.ts.map +1 -0
  261. package/dist/esm/hooks/location/buildUseSearchParams.js +32 -0
  262. package/dist/esm/hooks/location/buildUseSearchParams.js.map +1 -0
  263. package/dist/esm/{components/widgets/finance/storage/useLocalStorage.d.ts → hooks/storage/useBosonLocalStorage.d.ts} +3 -3
  264. package/dist/esm/hooks/storage/useBosonLocalStorage.d.ts.map +1 -0
  265. package/dist/esm/hooks/storage/useBosonLocalStorage.js +15 -0
  266. package/dist/esm/hooks/storage/useBosonLocalStorage.js.map +1 -0
  267. package/dist/esm/hooks/storage/useLocalStorage.d.ts +6 -0
  268. package/dist/esm/hooks/storage/useLocalStorage.d.ts.map +1 -0
  269. package/dist/esm/hooks/storage/useLocalStorage.js.map +1 -0
  270. package/dist/esm/hooks/useIpfsMetadataStorage.d.ts.map +1 -1
  271. package/dist/esm/hooks/useIpfsMetadataStorage.js +2 -2
  272. package/dist/esm/hooks/useIpfsMetadataStorage.js.map +1 -1
  273. package/dist/esm/index.d.ts +6 -0
  274. package/dist/esm/index.d.ts.map +1 -1
  275. package/dist/esm/index.js +6 -0
  276. package/dist/esm/index.js.map +1 -1
  277. package/dist/esm/lib/bytes/bytesToSize.d.ts +1 -1
  278. package/dist/esm/lib/bytes/bytesToSize.d.ts.map +1 -1
  279. package/dist/esm/lib/bytes/bytesToSize.js +1 -1
  280. package/dist/esm/lib/bytes/bytesToSize.js.map +1 -1
  281. package/dist/esm/lib/const/chainInfo.d.ts.map +1 -1
  282. package/dist/esm/lib/const/chainInfo.js +10 -0
  283. package/dist/esm/lib/const/chainInfo.js.map +1 -1
  284. package/dist/esm/lib/url/url.d.ts +1 -0
  285. package/dist/esm/lib/url/url.d.ts.map +1 -1
  286. package/dist/esm/lib/url/url.js +1 -0
  287. package/dist/esm/lib/url/url.js.map +1 -1
  288. package/dist/esm/types/helpers.d.ts +3 -0
  289. package/dist/esm/types/helpers.d.ts.map +1 -1
  290. package/dist/esm/types/helpers.js.map +1 -1
  291. package/package.json +5 -5
  292. package/src/components/buttons/BaseButton.tsx +4 -0
  293. package/src/components/error/SimpleError.tsx +2 -2
  294. package/src/components/form/BaseCheckbox.tsx +50 -0
  295. package/src/components/form/Checkbox.tsx +17 -40
  296. package/src/components/form/CountrySelect.tsx +178 -130
  297. package/src/components/form/Field.styles.ts +113 -24
  298. package/src/components/form/FormField.tsx +4 -1
  299. package/src/components/form/Select.tsx +65 -34
  300. package/src/components/form/Upload/BaseUpload.tsx +367 -0
  301. package/src/components/form/Upload/Upload.tsx +8 -360
  302. package/src/components/form/Upload/UploadedFile.tsx +1 -1
  303. package/src/components/form/Upload/WithUploadToIpfs.tsx +8 -11
  304. package/src/components/form/index.ts +6 -4
  305. package/src/components/form/types.ts +31 -3
  306. package/src/components/image/Image.styles.ts +7 -5
  307. package/src/components/image/Image.tsx +2 -2
  308. package/src/components/modal/components/Commit/DetailView/InnerCommitDetailView.tsx +1 -1
  309. package/src/components/modal/components/Redeem/ExchangeView/RedeemSuccess.tsx +1 -1
  310. package/src/components/modal/components/common/OfferFullDescription/DigitalProductData.tsx +1 -1
  311. package/src/components/modal/components/common/detail/DetailSlider.tsx +1 -1
  312. package/src/components/modal/components/common/detail/PhygitalProduct.tsx +1 -1
  313. package/src/components/modal/components/common/detail/SlickSlider.tsx +1 -1
  314. package/src/components/ui/CardCTA.tsx +77 -0
  315. package/src/components/ui/Grid.tsx +33 -21
  316. package/src/components/ui/IpfsImage.tsx +14 -7
  317. package/src/components/ui/Typography.tsx +39 -29
  318. package/src/components/ui/Video.tsx +32 -18
  319. package/src/components/ui/common.ts +2 -0
  320. package/src/components/wallet/ConnectButton.tsx +1 -1
  321. package/src/components/widgets/finance/convertion-rate/ConvertionRateContext.tsx +1 -1
  322. package/src/components/widgets/finance/convertion-rate/ConvertionRateProvider.tsx +1 -1
  323. package/src/components/widgets/finance/useOffersBacked.ts +1 -1
  324. package/src/hooks/core-sdk/useCoreSdk.tsx +4 -3
  325. package/src/hooks/form/useForm.ts +12 -0
  326. package/src/hooks/index.ts +5 -0
  327. package/src/hooks/ipfs/useIpfsStorage.ts +16 -0
  328. package/src/hooks/location/buildUseSearchParams.tsx +45 -0
  329. package/src/hooks/storage/useBosonLocalStorage.ts +40 -0
  330. package/src/{components/widgets/finance → hooks}/storage/useLocalStorage.ts +5 -17
  331. package/src/hooks/useIpfsMetadataStorage.tsx +6 -2
  332. package/src/index.tsx +6 -0
  333. package/src/lib/bytes/bytesToSize.ts +1 -1
  334. package/src/lib/const/chainInfo.ts +10 -1
  335. package/src/lib/url/url.ts +3 -0
  336. package/src/stories/buttons/Upload.stories.tsx +8 -0
  337. package/src/stories/form/BaseCheckbox.stories.tsx +113 -0
  338. package/src/stories/selects/CountrySelect.stories.tsx +49 -11
  339. package/src/stories/selects/Select.stories.tsx +117 -0
  340. package/src/types/helpers.ts +4 -0
  341. package/dist/cjs/components/widgets/finance/storage/useLocalStorage.d.ts.map +0 -1
  342. package/dist/cjs/components/widgets/finance/storage/useLocalStorage.js.map +0 -1
  343. package/dist/esm/components/widgets/finance/storage/useLocalStorage.d.ts.map +0 -1
  344. package/dist/esm/components/widgets/finance/storage/useLocalStorage.js.map +0 -1
  345. /package/dist/cjs/{components/widgets/finance → hooks}/storage/useLocalStorage.js +0 -0
  346. /package/dist/esm/{components/widgets/finance → hooks}/storage/useLocalStorage.js +0 -0
@@ -1,360 +1,8 @@
1
- import * as Sentry from "@sentry/browser";
2
- import { useField } from "formik";
3
- import { Image, Trash, VideoCamera } from "phosphor-react";
4
- import React, { useCallback, useEffect, useRef, useState } from "react";
5
- import { loadAndSetMedia } from "../../../lib/base64/base64";
6
- import bytesToSize from "../../../lib/bytes/bytesToSize";
7
- import { theme } from "../../../theme";
8
-
9
- import Loading from "../../ui/loading/LoadingWrapper";
10
- import ThemedButton from "../../ui/ThemedButton";
11
- import { Typography } from "../../ui/Typography";
12
- import Error from "../Error";
13
- import {
14
- FieldFileUploadWrapper,
15
- FieldInput,
16
- FileUploadWrapper,
17
- ImagePreview,
18
- VideoPreview
19
- } from "../Field.styles";
20
- import type { UploadFileType, UploadProps, FileProps } from "../types";
21
- import UploadedFiles from "./UploadedFiles";
22
- import { WithUploadToIpfs, WithUploadToIpfsProps } from "./WithUploadToIpfs";
23
- import { useModal } from "../../modal/useModal";
24
- import { ImageEditorModal } from "./ImageEditorModal/ImageEditorModal";
25
- const colors = theme.colors.light;
26
-
27
- function Upload({
28
- name,
29
- accept = "image/*",
30
- disabled,
31
- maxSize,
32
- multiple = false,
33
- trigger,
34
- onFilesSelect,
35
- placeholder,
36
- wrapperProps,
37
- onLoadSinglePreviewImage,
38
- withUpload,
39
- withEditor,
40
- saveToIpfs,
41
- loadMedia,
42
- onLoading,
43
- width,
44
- height,
45
- borderRadius,
46
- imgPreviewStyle,
47
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
48
- removeFile,
49
- saveButtonTheme,
50
- ...props
51
- }: UploadProps & WithUploadToIpfsProps) {
52
- const { updateProps, store } = useModal();
53
- const [showEditor, setShowEditor] = useState<boolean>(false);
54
- const [isLoading, setIsLoading] = useState<boolean>(false);
55
- const [preview, setPreview] = useState<string | null>();
56
- const [field, meta, helpers] = useField(name);
57
-
58
- const handleLoading = useCallback(
59
- (loadingValue: boolean) => {
60
- onLoading?.(loadingValue);
61
- setIsLoading(loadingValue);
62
- },
63
- [onLoading]
64
- );
65
-
66
- const errorMessage = meta.error && meta.touched ? meta.error : "";
67
- const displayError = typeof errorMessage === "string" && errorMessage !== "";
68
-
69
- const inputRef = useRef<HTMLInputElement | null>(null);
70
- const [nativeFiles, setNativeFiles] = useState<File[] | null>(null);
71
- const setFiles = useCallback(
72
- (value: unknown) => {
73
- helpers.setValue(value);
74
- },
75
- [helpers]
76
- );
77
-
78
- const files = field.value as UploadFileType[];
79
- const mimetypes = accept.split(",").map((acc) => acc.trim());
80
- const isImageOnly = mimetypes.every((mimetype) =>
81
- mimetype.startsWith("image/")
82
- );
83
- const isVideoOnly = mimetypes.every((mimetype) =>
84
- mimetype.startsWith("video/")
85
- );
86
-
87
- useEffect(() => {
88
- onFilesSelect?.(files);
89
- helpers.setValue(files);
90
-
91
- if (!multiple && files && files?.length !== 0) {
92
- if (isImageOnly) {
93
- if (withUpload) {
94
- loadIpfsImagePreview(files[0] as FileProps);
95
- } else {
96
- loadAndSetMedia(files[0] as File, (base64Uri) => {
97
- setPreview(base64Uri);
98
- onLoadSinglePreviewImage?.(base64Uri);
99
- });
100
- }
101
- } else if (isVideoOnly) {
102
- if (withUpload) {
103
- loadIpfsVideo(files[0] as FileProps);
104
- } else {
105
- loadAndSetMedia(files[0] as File, (base64Uri) => {
106
- setPreview(base64Uri);
107
- });
108
- }
109
- }
110
- }
111
- }, [files]); // eslint-disable-line
112
-
113
- const loadIpfsVideo = async (file: FileProps) => {
114
- const fileSrc = file && file?.src ? file?.src : false;
115
- if (!fileSrc) {
116
- return false;
117
- }
118
- handleLoading(true);
119
- try {
120
- const imagePreview = await loadMedia(fileSrc || "");
121
- if (imagePreview) {
122
- setPreview(imagePreview);
123
- } else {
124
- console.warn(
125
- `imagePreview ${imagePreview} is falsy in loadIpfsImagePreview`
126
- );
127
- }
128
- } catch (error) {
129
- console.error(error);
130
- Sentry.captureException(error);
131
- } finally {
132
- handleLoading(false);
133
- }
134
- };
135
-
136
- const loadIpfsImagePreview = async (file: FileProps) => {
137
- const fileSrc = file && file?.src ? file?.src : false;
138
- if (!fileSrc) {
139
- return false;
140
- }
141
- try {
142
- handleLoading(true);
143
- const imagePreview = await loadMedia(fileSrc || "");
144
- if (imagePreview) {
145
- setPreview(imagePreview);
146
- onLoadSinglePreviewImage?.(imagePreview);
147
- } else {
148
- console.warn(
149
- `imagePreview ${imagePreview} is falsy in loadIpfsImagePreview`
150
- );
151
- }
152
- } catch (error) {
153
- console.error(error);
154
- Sentry.captureException(error);
155
- } finally {
156
- handleLoading(false);
157
- }
158
- };
159
-
160
- const handleChooseFile = () => {
161
- const input = inputRef.current;
162
- if (input) {
163
- input.click();
164
- }
165
- };
166
-
167
- const handleRemoveAllFiles = () => {
168
- if (disabled) {
169
- return;
170
- }
171
- setFiles([]);
172
- setPreview(null);
173
- };
174
-
175
- const handleRemoveFile = (index: number) => {
176
- const newArray = files.filter(
177
- (i: File | FileProps, k: number) => k !== index
178
- );
179
- setFiles(newArray);
180
- };
181
-
182
- const handleChange = useCallback(
183
- async (filesArray: File[] | null) => {
184
- if (!meta.touched) {
185
- helpers.setTouched(true);
186
- }
187
-
188
- if (!filesArray) {
189
- return;
190
- }
191
- for (const file of filesArray) {
192
- if (maxSize) {
193
- if (file.size > maxSize) {
194
- const error = `File size cannot exceed more than ${bytesToSize(
195
- maxSize
196
- )}`;
197
- // TODO: change to notification
198
- console.error(error);
199
- }
200
- }
201
- }
202
- setFiles(filesArray);
203
- },
204
- [helpers, maxSize, meta.touched, setFiles]
205
- );
206
-
207
- const handleSave = useCallback(
208
- async (efiles: File[] | null) => {
209
- if (!meta.touched) {
210
- helpers.setTouched(true);
211
- }
212
- handleLoading(true);
213
- const files = await saveToIpfs(efiles);
214
- if (files) {
215
- setFiles(files);
216
- } else {
217
- setFiles([]);
218
- console.warn(
219
- `There has been an error because 'files' ${files} is falsy in handleSave`
220
- );
221
- }
222
- handleLoading(false);
223
- },
224
- [meta.touched, handleLoading, saveToIpfs, helpers, setFiles]
225
- );
226
- const saveFn = withUpload ? handleSave : handleChange;
227
- const style = {
228
- borderRadius: borderRadius ? `${borderRadius}%` : "",
229
- width: width ? `100%` : ""
230
- };
231
- return (
232
- <>
233
- {withEditor && showEditor && (
234
- <ImageEditorModal
235
- saveButtonTheme={saveButtonTheme}
236
- files={nativeFiles}
237
- borderRadius={borderRadius}
238
- width={width}
239
- height={height}
240
- hideModal={async (fileList) => {
241
- if (fileList) {
242
- await saveFn(fileList);
243
- }
244
-
245
- setShowEditor(false);
246
- updateProps({
247
- ...store,
248
- modalType: store.modalType,
249
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
250
- // @ts-ignore
251
- modalProps: {
252
- ...store.modalProps,
253
- hidden: false
254
- }
255
- });
256
- }}
257
- />
258
- )}
259
- <FieldFileUploadWrapper {...wrapperProps} $disabled={!!disabled}>
260
- <FieldInput
261
- {...props}
262
- hidden
263
- type="file"
264
- accept={accept}
265
- multiple={multiple}
266
- onChange={async (e) => {
267
- const files = e.target.files
268
- ? Object.values(e.target.files)
269
- : e.target.files;
270
-
271
- if (files && withEditor) {
272
- setNativeFiles(files);
273
- setShowEditor(true);
274
- updateProps({
275
- ...store,
276
- modalType: store.modalType,
277
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
278
- // @ts-ignore
279
- modalProps: {
280
- ...store.modalProps,
281
- hidden: true
282
- }
283
- });
284
- } else {
285
- await saveFn(files);
286
- }
287
- e.target.value = ""; // allow user to select the same file again
288
- }}
289
- ref={(ref) => {
290
- inputRef.current = ref;
291
- }}
292
- disabled={disabled}
293
- />
294
- {trigger ? (
295
- <ThemedButton onClick={handleChooseFile} type="button">
296
- <>{trigger}</>
297
- </ThemedButton>
298
- ) : (
299
- <FileUploadWrapper
300
- data-disabled={disabled}
301
- onClick={handleChooseFile}
302
- error={errorMessage}
303
- style={style}
304
- >
305
- {isLoading ? (
306
- <Loading size={2} />
307
- ) : (
308
- <>
309
- {field.value && field.value?.length !== 0 && preview ? (
310
- <>
311
- {isVideoOnly ? (
312
- <VideoPreview
313
- src={
314
- preview?.startsWith("http")
315
- ? preview
316
- : "data:video/mp4;base64," +
317
- preview?.substring(
318
- "data:application/octet-stream;base64,".length
319
- )
320
- }
321
- autoPlay
322
- muted
323
- loop
324
- />
325
- ) : (
326
- <ImagePreview
327
- style={{ ...imgPreviewStyle }}
328
- src={preview}
329
- />
330
- )}
331
- </>
332
- ) : isVideoOnly ? (
333
- <VideoCamera size={24} />
334
- ) : (
335
- <Image size={24} />
336
- )}
337
- {placeholder && (
338
- <Typography tag="p" style={{ marginBottom: "0" }}>
339
- {placeholder}
340
- </Typography>
341
- )}
342
- </>
343
- )}
344
- </FileUploadWrapper>
345
- )}
346
- {!disabled && field.value && field.value?.length !== 0 && preview && (
347
- <div onClick={handleRemoveAllFiles} data-remove style={style}>
348
- <Trash size={24} color={colors.white} />
349
- </div>
350
- )}
351
- {multiple && (
352
- <UploadedFiles files={files} handleRemoveFile={handleRemoveFile} />
353
- )}
354
- </FieldFileUploadWrapper>
355
- <Error display={displayError} message={errorMessage} />
356
- </>
357
- );
358
- }
359
-
360
- export default WithUploadToIpfs(Upload);
1
+ import { UploadProps } from "../types";
2
+ import BaseUpload from "./BaseUpload";
3
+ import React from "react";
4
+ export type { UploadProps } from "../types";
5
+
6
+ export const Upload = (props: UploadProps) => {
7
+ return <BaseUpload {...props} />;
8
+ };
@@ -1,7 +1,7 @@
1
1
  import { ImageSquare, X } from "phosphor-react";
2
2
  import React, { useCallback } from "react";
3
3
  import styled from "styled-components";
4
- import bytesToSize from "../../../lib/bytes/bytesToSize";
4
+ import { bytesToSize } from "../../../lib/bytes/bytesToSize";
5
5
  import { theme } from "../../../theme";
6
6
 
7
7
  import { Grid } from "../../ui/Grid";
@@ -8,7 +8,7 @@ import ErrorToast from "../../toasts/common/ErrorToast";
8
8
  import { Typography } from "../../ui/Typography";
9
9
  import { FileProps, UploadProps } from "../types";
10
10
  import { useSaveImageToIpfs } from "../../../hooks/ipfs/useSaveImageToIpfs";
11
- import bytesToSize from "../../../lib/bytes/bytesToSize";
11
+ import { bytesToSize } from "../../../lib/bytes/bytesToSize";
12
12
 
13
13
  const colors = theme.colors.light;
14
14
 
@@ -34,9 +34,8 @@ export function WithUploadToIpfs<P extends WithUploadToIpfsProps>(
34
34
  props: Omit<P & UploadProps, keyof WithUploadToIpfsProps>
35
35
  ) => {
36
36
  const withUpload = props?.withUpload || false;
37
- const accept: string = props.accept
38
- ? props.accept
39
- : SUPPORTED_FORMATS.join(",");
37
+ const accept: string = props.accept || SUPPORTED_FORMATS.join(",");
38
+ const maxSize = Number(props.maxSize) || MAX_FILE_SIZE;
40
39
  const { saveFile, loadMedia, removeFile } = useSaveImageToIpfs();
41
40
 
42
41
  const saveToIpfs: WithUploadToIpfsProps["saveToIpfs"] = useCallback(
@@ -47,10 +46,8 @@ export function WithUploadToIpfs<P extends WithUploadToIpfsProps>(
47
46
  const filesErrors: string[] = [];
48
47
 
49
48
  for (const file of filesArray) {
50
- const sizeValidation = Number(props.maxSize) || MAX_FILE_SIZE;
51
- const formatValidation = props.accept
52
- ? props.accept.split(",").map((acc) => acc.trim())
53
- : SUPPORTED_FORMATS;
49
+ const sizeValidation = maxSize;
50
+ const formatValidation = accept.split(",").map((acc) => acc.trim());
54
51
 
55
52
  if (file?.size > sizeValidation) {
56
53
  const err = `File ${
@@ -101,18 +98,18 @@ export function WithUploadToIpfs<P extends WithUploadToIpfsProps>(
101
98
 
102
99
  return ipfsArray as FileProps[];
103
100
  },
104
- [props.accept, props.maxSize, saveFile]
101
+ [accept, maxSize, saveFile]
105
102
  );
106
103
 
107
104
  const newProps = useMemo(
108
105
  () => ({
109
- maxSize: MAX_FILE_SIZE,
106
+ maxSize,
110
107
  accept,
111
108
  saveToIpfs,
112
109
  loadMedia,
113
110
  removeFile
114
111
  }),
115
- [saveToIpfs, loadMedia, removeFile, accept]
112
+ [saveToIpfs, loadMedia, removeFile, accept, maxSize]
116
113
  );
117
114
 
118
115
  if (withUpload) {
@@ -1,12 +1,14 @@
1
- export { default as Checkbox } from "./Checkbox";
1
+ export { Checkbox, CheckboxProps } from "./Checkbox";
2
+ export { BaseCheckbox, BaseCheckboxProps } from "./BaseCheckbox";
2
3
  export { default as Datepicker } from "./Datepicker";
3
4
  export { default as Error } from "./Error";
4
- export { FormField } from "./FormField";
5
+ export { FormField, FormFieldProps } from "./FormField";
5
6
  export * from "./BaseInput";
6
7
  export { default as Input, InputProps } from "./Input";
7
8
  export { default as Phone } from "./Phone";
8
- export { default as Select } from "./Select";
9
+ export { default as Select, SelectProps } from "./Select";
9
10
  export * from "./CountrySelect";
10
11
  export * from "./BaseTagsInput";
11
12
  export * from "./BaseTextArea";
12
- export { default as Upload } from "./Upload/Upload";
13
+ export { default as BaseUpload, BaseUploadProps } from "./Upload/BaseUpload";
14
+ export { Upload, UploadProps } from "./Upload/Upload";
@@ -1,8 +1,13 @@
1
1
  import { ReactNode } from "react";
2
- import { SingleValue } from "react-select";
2
+ import { CSSObjectWithLabel, SingleValue } from "react-select";
3
3
  import { CSSProperties } from "styled-components";
4
4
  import { ImageEditorModalProps } from "./Upload/ImageEditorModal/ImageEditorModal";
5
- import type { TextAreaTheme } from "./Field.styles";
5
+ import type {
6
+ CheckboxTheme,
7
+ FileUploadWrapperTheme,
8
+ TextAreaTheme
9
+ } from "./Field.styles";
10
+ import type { GridProps } from "../ui/Grid";
6
11
 
7
12
  export interface BaseProps {
8
13
  name: string;
@@ -20,6 +25,7 @@ export interface DatepickerProps extends BaseProps {
20
25
 
21
26
  export interface CheckboxProps extends BaseProps {
22
27
  text?: string;
28
+ theme?: CheckboxTheme;
23
29
  }
24
30
 
25
31
  export type TextareaProps = BaseProps &
@@ -30,7 +36,7 @@ export interface ErrorProps {
30
36
  message?: string;
31
37
  }
32
38
 
33
- export interface FormFieldProps {
39
+ export interface FormFieldProps extends GridProps {
34
40
  title: string;
35
41
  titleIcon?: ReactNode;
36
42
  subTitle?: string | false;
@@ -89,6 +95,26 @@ export interface SelectProps extends BaseProps {
89
95
  errorMessage?: string;
90
96
  onChange?: (option: SelectDataProps<string>) => void;
91
97
  label?: string;
98
+ theme?: Partial<{
99
+ control: Partial<CSSProperties> &
100
+ Partial<{
101
+ hover: Partial<CSSProperties>;
102
+ focus: Partial<CSSProperties>;
103
+ error: Partial<CSSProperties>;
104
+ }>;
105
+ option: Partial<CSSProperties> &
106
+ Partial<{
107
+ selected: Partial<CSSProperties>;
108
+ disabled: Partial<CSSProperties>;
109
+ focus: Partial<CSSProperties>;
110
+ error: Partial<CSSObjectWithLabel>;
111
+ }>;
112
+ placeholder: Partial<CSSProperties> &
113
+ Partial<{ error: CSSObjectWithLabel }>;
114
+ input: Partial<CSSProperties> & Partial<{ error: CSSObjectWithLabel }>;
115
+ singleValue: Partial<CSSProperties> &
116
+ Partial<{ error: CSSObjectWithLabel }>;
117
+ }>;
92
118
  }
93
119
 
94
120
  export type UploadProps = BaseProps & {
@@ -103,9 +129,11 @@ export type UploadProps = BaseProps & {
103
129
  withUpload?: boolean;
104
130
  onLoading?: (loading: boolean) => void;
105
131
  borderRadius?: number;
132
+ borderRadiusUnit?: "px" | "%";
106
133
  width?: number;
107
134
  height?: number;
108
135
  imgPreviewStyle?: Pick<CSSProperties, "objectFit">;
136
+ theme?: Partial<{ triggerTheme: FileUploadWrapperTheme }>;
109
137
  } & (
110
138
  | {
111
139
  withEditor: true;
@@ -1,4 +1,4 @@
1
- import styled, { css } from "styled-components";
1
+ import styled, { CSSProperties, css } from "styled-components";
2
2
  import { theme } from "../../theme";
3
3
 
4
4
  export const ImageWrapper = styled.div<{ $hide?: boolean }>`
@@ -27,11 +27,13 @@ const buttonText = css`
27
27
  line-height: 24px;
28
28
  `;
29
29
 
30
- export const ImagePlaceholder = styled.div<{ position?: string }>`
31
- ${({ position }) =>
32
- position
30
+ export const ImagePlaceholder = styled.div<{
31
+ $position?: CSSProperties["position"];
32
+ }>`
33
+ ${({ $position }) =>
34
+ $position
33
35
  ? css`
34
- position: ${position};
36
+ position: ${$position};
35
37
  `
36
38
  : css`
37
39
  position: absolute;
@@ -48,7 +48,7 @@ export const Image: React.FC<IBaseImage> = ({
48
48
  return (
49
49
  <>
50
50
  <ImageWrapper {...rest} data-image-wrapper $hide={!isError}>
51
- <ImagePlaceholder data-image-placeholder position="static">
51
+ <ImagePlaceholder data-image-placeholder $position="static">
52
52
  {errorConfig.errorIcon ?? null}
53
53
  <ImageErrorText>
54
54
  {errorConfig.errorImageText || "Failed to load image"}
@@ -56,7 +56,7 @@ export const Image: React.FC<IBaseImage> = ({
56
56
  </ImagePlaceholder>
57
57
  </ImageWrapper>
58
58
  <ImageWrapper {...rest} data-image-wrapper $hide={!isLoading}>
59
- <ImagePlaceholder data-image-placeholder position="static">
59
+ <ImagePlaceholder data-image-placeholder $position="static">
60
60
  <Loading />
61
61
  </ImagePlaceholder>
62
62
  </ImageWrapper>
@@ -28,7 +28,7 @@ import { Typography } from "../../../../ui/Typography";
28
28
  import {
29
29
  getItemFromStorage,
30
30
  saveItemInStorage
31
- } from "../../../../widgets/finance/storage/useLocalStorage";
31
+ } from "../../../../../hooks/storage/useBosonLocalStorage";
32
32
  import { useModal } from "../../../useModal";
33
33
  import { InnerDetailViewWithPortal } from "../../common/detail/InnerDetailViewWithPortal";
34
34
  import { BuyOrSwapContainer } from "../../common/detail/BuyOrSwapContainer";
@@ -4,7 +4,7 @@ import styled from "styled-components";
4
4
  import { useExchanges } from "../../../../../hooks/useExchanges";
5
5
  import { getOfferDetails } from "../../../../../lib/offer/getOfferDetails";
6
6
  import { Grid } from "../../../../ui/Grid";
7
- import IpfsImage from "../../../../ui/IpfsImage";
7
+ import { IpfsImage } from "../../../../ui/IpfsImage";
8
8
  import Loading from "../../../../ui/loading/LoadingWrapper";
9
9
  import { Typography } from "../../../../ui/Typography";
10
10
  import DetailOpenSea from "../../common/DetailOpenSea";
@@ -19,7 +19,7 @@ import { useCoreSDKWithContext } from "../../../../../hooks/core-sdk/useCoreSdkW
19
19
  import { isNftItem } from "../../../../../lib/bundle/filter";
20
20
  import { isTruthy } from "../../../../../types/helpers";
21
21
  import Video from "../../../../ui/Video";
22
- import IpfsImage from "../../../../ui/IpfsImage";
22
+ import { IpfsImage } from "../../../../ui/IpfsImage";
23
23
 
24
24
  const StyledDetailsSummary = styled(DetailsSummary)`
25
25
  .icon-wrapper {
@@ -13,7 +13,7 @@ import styled, { css } from "styled-components";
13
13
  import { breakpointNumbers } from "../../../../../lib/ui/breakpoint";
14
14
  import { theme } from "../../../../../theme";
15
15
  import { Grid } from "../../../../ui/Grid";
16
- import IpfsImage from "../../../../ui/IpfsImage";
16
+ import { IpfsImage } from "../../../../ui/IpfsImage";
17
17
  import Video from "../../../../ui/Video";
18
18
  import { zIndex } from "../../../../ui/zIndex";
19
19
  import { GlideSlide } from "./Detail.style";
@@ -12,7 +12,7 @@ import { theme } from "../../../../../theme";
12
12
  import { Offer } from "../../../../../types/offer";
13
13
  import { Tooltip } from "../../../../tooltip/Tooltip";
14
14
  import { Grid } from "../../../../ui/Grid";
15
- import IpfsImage from "../../../../ui/IpfsImage";
15
+ import { IpfsImage } from "../../../../ui/IpfsImage";
16
16
  import ThemedButton from "../../../../ui/ThemedButton";
17
17
  import { Typography } from "../../../../ui/Typography";
18
18
  import Video from "../../../../ui/Video";
@@ -3,7 +3,7 @@ import "slick-carousel/slick/slick.css";
3
3
  import "slick-carousel/slick/slick-theme.css";
4
4
  import _Slider, { Settings } from "react-slick";
5
5
 
6
- import IpfsImage from "../../../../ui/IpfsImage";
6
+ import { IpfsImage } from "../../../../ui/IpfsImage";
7
7
  import Video from "../../../../ui/Video";
8
8
  import styled, { CSSProperties, css } from "styled-components";
9
9
  import { theme } from "../../../../../theme";