@bosonprotocol/react-kit 0.34.0-alpha.2 → 0.34.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 (199) hide show
  1. package/dist/cjs/components/connection/utils.d.ts.map +1 -1
  2. package/dist/cjs/components/connection/utils.js +0 -1
  3. package/dist/cjs/components/connection/utils.js.map +1 -1
  4. package/dist/cjs/components/currencyDisplay/CurrencyDisplay.d.ts +5 -2
  5. package/dist/cjs/components/currencyDisplay/CurrencyDisplay.d.ts.map +1 -1
  6. package/dist/cjs/components/currencyDisplay/CurrencyDisplay.js +6 -7
  7. package/dist/cjs/components/currencyDisplay/CurrencyDisplay.js.map +1 -1
  8. package/dist/cjs/components/exchangeCard/ExchangeCard.d.ts +1 -1
  9. package/dist/cjs/components/image/Image.styles.d.ts.map +1 -1
  10. package/dist/cjs/components/image/Image.styles.js +0 -2
  11. package/dist/cjs/components/image/Image.styles.js.map +1 -1
  12. package/dist/cjs/components/modal/components/Redeem/MyItems/Exchange.js +1 -1
  13. package/dist/cjs/components/modal/components/Redeem/MyItems/Exchange.js.map +1 -1
  14. package/dist/cjs/components/productCard/ProductCard.d.ts +5 -2
  15. package/dist/cjs/components/productCard/ProductCard.d.ts.map +1 -1
  16. package/dist/cjs/components/productCard/ProductCard.js +42 -34
  17. package/dist/cjs/components/productCard/ProductCard.js.map +1 -1
  18. package/dist/cjs/components/productCard/ProductCard.styles.d.ts +111 -4
  19. package/dist/cjs/components/productCard/ProductCard.styles.d.ts.map +1 -1
  20. package/dist/cjs/components/productCard/ProductCard.styles.js +51 -26
  21. package/dist/cjs/components/productCard/ProductCard.styles.js.map +1 -1
  22. package/dist/cjs/components/productCard/commonStyles.d.ts.map +1 -1
  23. package/dist/cjs/components/productCard/commonStyles.js +0 -1
  24. package/dist/cjs/components/productCard/commonStyles.js.map +1 -1
  25. package/dist/cjs/components/queryClient/withQueryClientProvider.d.ts +0 -4
  26. package/dist/cjs/components/queryClient/withQueryClientProvider.d.ts.map +1 -1
  27. package/dist/cjs/components/queryClient/withQueryClientProvider.js +3 -26
  28. package/dist/cjs/components/queryClient/withQueryClientProvider.js.map +1 -1
  29. package/dist/cjs/components/skeleton/CollectionsCardSkeleton.d.ts.map +1 -1
  30. package/dist/cjs/components/skeleton/CollectionsCardSkeleton.js +39 -17
  31. package/dist/cjs/components/skeleton/CollectionsCardSkeleton.js.map +1 -1
  32. package/dist/cjs/components/skeleton/ProductCardSkeleton.d.ts.map +1 -1
  33. package/dist/cjs/components/skeleton/ProductCardSkeleton.js +18 -19
  34. package/dist/cjs/components/skeleton/ProductCardSkeleton.js.map +1 -1
  35. package/dist/cjs/components/wallet/wallet-connection.d.ts +9559 -9559
  36. package/dist/cjs/components/wallet2/accountDrawer/AuthenticatedHeader.d.ts +3 -3
  37. package/dist/cjs/components/wallet2/accountDrawer/AuthenticatedHeader.d.ts.map +1 -1
  38. package/dist/cjs/components/wallet2/accountDrawer/AuthenticatedHeader.js +2 -2
  39. package/dist/cjs/components/wallet2/accountDrawer/AuthenticatedHeader.js.map +1 -1
  40. package/dist/cjs/components/wallet2/accountDrawer/miniPortfolio/index.d.ts +3 -3
  41. package/dist/cjs/components/wallet2/accountDrawer/miniPortfolio/index.d.ts.map +1 -1
  42. package/dist/cjs/components/wallet2/accountDrawer/miniPortfolio/index.js +2 -2
  43. package/dist/cjs/components/wallet2/accountDrawer/miniPortfolio/index.js.map +1 -1
  44. package/dist/cjs/components/wallet2/accountDrawer/miniPortfolio/tokens/index.d.ts +5 -2
  45. package/dist/cjs/components/wallet2/accountDrawer/miniPortfolio/tokens/index.d.ts.map +1 -1
  46. package/dist/cjs/components/wallet2/accountDrawer/miniPortfolio/tokens/index.js +3 -2
  47. package/dist/cjs/components/wallet2/accountDrawer/miniPortfolio/tokens/index.js.map +1 -1
  48. package/dist/cjs/components/wallet2/selector/ChainSelector.d.ts +4 -1
  49. package/dist/cjs/components/wallet2/selector/ChainSelector.d.ts.map +1 -1
  50. package/dist/cjs/components/wallet2/selector/ChainSelector.js +2 -4
  51. package/dist/cjs/components/wallet2/selector/ChainSelector.js.map +1 -1
  52. package/dist/cjs/components/wallet2/walletModal/ConnectionErrorView.d.ts +6 -1
  53. package/dist/cjs/components/wallet2/walletModal/ConnectionErrorView.d.ts.map +1 -1
  54. package/dist/cjs/components/wallet2/walletModal/ConnectionErrorView.js +7 -5
  55. package/dist/cjs/components/wallet2/walletModal/ConnectionErrorView.js.map +1 -1
  56. package/dist/cjs/components/wallet2/walletModal/Option.d.ts +5 -1
  57. package/dist/cjs/components/wallet2/walletModal/Option.d.ts.map +1 -1
  58. package/dist/cjs/components/wallet2/walletModal/Option.js +5 -2
  59. package/dist/cjs/components/wallet2/walletModal/Option.js.map +1 -1
  60. package/dist/cjs/components/wallet2/walletModal/index.d.ts +5 -2
  61. package/dist/cjs/components/wallet2/walletModal/index.d.ts.map +1 -1
  62. package/dist/cjs/components/wallet2/walletModal/index.js +3 -3
  63. package/dist/cjs/components/wallet2/walletModal/index.js.map +1 -1
  64. package/dist/cjs/components/wallet2/web3Status/index.d.ts +14 -2
  65. package/dist/cjs/components/wallet2/web3Status/index.d.ts.map +1 -1
  66. package/dist/cjs/components/wallet2/web3Status/index.js +13 -5
  67. package/dist/cjs/components/wallet2/web3Status/index.js.map +1 -1
  68. package/dist/cjs/hooks/connection/useSyncChainQuery.js.map +1 -1
  69. package/dist/cjs/hooks/index.d.ts +5 -0
  70. package/dist/cjs/hooks/index.d.ts.map +1 -1
  71. package/dist/cjs/hooks/index.js +11 -1
  72. package/dist/cjs/hooks/index.js.map +1 -1
  73. package/dist/cjs/hooks/useCtaClickHandler.d.ts +1 -1
  74. package/dist/cjs/hooks/useCtaClickHandler.d.ts.map +1 -1
  75. package/dist/cjs/hooks/useCtaClickHandler.js.map +1 -1
  76. package/dist/cjs/hooks/useMetaTx.d.ts +1 -1
  77. package/dist/cjs/hooks/useMetaTx.d.ts.map +1 -1
  78. package/dist/cjs/hooks/useMetaTx.js.map +1 -1
  79. package/dist/cjs/index.d.ts +4 -0
  80. package/dist/cjs/index.d.ts.map +1 -1
  81. package/dist/cjs/index.js +4 -0
  82. package/dist/cjs/index.js.map +1 -1
  83. package/dist/cjs/lib/signer/externalSigner.d.ts.map +1 -1
  84. package/dist/cjs/lib/signer/externalSigner.js +7 -0
  85. package/dist/cjs/lib/signer/externalSigner.js.map +1 -1
  86. package/dist/esm/components/connection/utils.d.ts.map +1 -1
  87. package/dist/esm/components/connection/utils.js +0 -1
  88. package/dist/esm/components/connection/utils.js.map +1 -1
  89. package/dist/esm/components/currencyDisplay/CurrencyDisplay.d.ts +5 -2
  90. package/dist/esm/components/currencyDisplay/CurrencyDisplay.d.ts.map +1 -1
  91. package/dist/esm/components/currencyDisplay/CurrencyDisplay.js +6 -7
  92. package/dist/esm/components/currencyDisplay/CurrencyDisplay.js.map +1 -1
  93. package/dist/esm/components/exchangeCard/ExchangeCard.d.ts +1 -1
  94. package/dist/esm/components/image/Image.styles.d.ts.map +1 -1
  95. package/dist/esm/components/image/Image.styles.js +0 -2
  96. package/dist/esm/components/image/Image.styles.js.map +1 -1
  97. package/dist/esm/components/modal/components/Redeem/MyItems/Exchange.js +1 -1
  98. package/dist/esm/components/modal/components/Redeem/MyItems/Exchange.js.map +1 -1
  99. package/dist/esm/components/productCard/ProductCard.d.ts +5 -2
  100. package/dist/esm/components/productCard/ProductCard.d.ts.map +1 -1
  101. package/dist/esm/components/productCard/ProductCard.js +20 -32
  102. package/dist/esm/components/productCard/ProductCard.js.map +1 -1
  103. package/dist/esm/components/productCard/ProductCard.styles.d.ts +111 -4
  104. package/dist/esm/components/productCard/ProductCard.styles.d.ts.map +1 -1
  105. package/dist/esm/components/productCard/ProductCard.styles.js +50 -24
  106. package/dist/esm/components/productCard/ProductCard.styles.js.map +1 -1
  107. package/dist/esm/components/productCard/commonStyles.d.ts.map +1 -1
  108. package/dist/esm/components/productCard/commonStyles.js +0 -1
  109. package/dist/esm/components/productCard/commonStyles.js.map +1 -1
  110. package/dist/esm/components/queryClient/withQueryClientProvider.d.ts +0 -4
  111. package/dist/esm/components/queryClient/withQueryClientProvider.d.ts.map +1 -1
  112. package/dist/esm/components/queryClient/withQueryClientProvider.js +1 -11
  113. package/dist/esm/components/queryClient/withQueryClientProvider.js.map +1 -1
  114. package/dist/esm/components/skeleton/CollectionsCardSkeleton.d.ts.map +1 -1
  115. package/dist/esm/components/skeleton/CollectionsCardSkeleton.js +39 -17
  116. package/dist/esm/components/skeleton/CollectionsCardSkeleton.js.map +1 -1
  117. package/dist/esm/components/skeleton/ProductCardSkeleton.d.ts.map +1 -1
  118. package/dist/esm/components/skeleton/ProductCardSkeleton.js +19 -20
  119. package/dist/esm/components/skeleton/ProductCardSkeleton.js.map +1 -1
  120. package/dist/esm/components/wallet/wallet-connection.d.ts +9559 -9559
  121. package/dist/esm/components/wallet2/accountDrawer/AuthenticatedHeader.d.ts +3 -3
  122. package/dist/esm/components/wallet2/accountDrawer/AuthenticatedHeader.d.ts.map +1 -1
  123. package/dist/esm/components/wallet2/accountDrawer/AuthenticatedHeader.js +2 -2
  124. package/dist/esm/components/wallet2/accountDrawer/AuthenticatedHeader.js.map +1 -1
  125. package/dist/esm/components/wallet2/accountDrawer/miniPortfolio/index.d.ts +3 -3
  126. package/dist/esm/components/wallet2/accountDrawer/miniPortfolio/index.d.ts.map +1 -1
  127. package/dist/esm/components/wallet2/accountDrawer/miniPortfolio/index.js +2 -2
  128. package/dist/esm/components/wallet2/accountDrawer/miniPortfolio/index.js.map +1 -1
  129. package/dist/esm/components/wallet2/accountDrawer/miniPortfolio/tokens/index.d.ts +5 -2
  130. package/dist/esm/components/wallet2/accountDrawer/miniPortfolio/tokens/index.d.ts.map +1 -1
  131. package/dist/esm/components/wallet2/accountDrawer/miniPortfolio/tokens/index.js +3 -2
  132. package/dist/esm/components/wallet2/accountDrawer/miniPortfolio/tokens/index.js.map +1 -1
  133. package/dist/esm/components/wallet2/selector/ChainSelector.d.ts +4 -1
  134. package/dist/esm/components/wallet2/selector/ChainSelector.d.ts.map +1 -1
  135. package/dist/esm/components/wallet2/selector/ChainSelector.js +3 -5
  136. package/dist/esm/components/wallet2/selector/ChainSelector.js.map +1 -1
  137. package/dist/esm/components/wallet2/walletModal/ConnectionErrorView.d.ts +6 -1
  138. package/dist/esm/components/wallet2/walletModal/ConnectionErrorView.d.ts.map +1 -1
  139. package/dist/esm/components/wallet2/walletModal/ConnectionErrorView.js +7 -5
  140. package/dist/esm/components/wallet2/walletModal/ConnectionErrorView.js.map +1 -1
  141. package/dist/esm/components/wallet2/walletModal/Option.d.ts +5 -1
  142. package/dist/esm/components/wallet2/walletModal/Option.d.ts.map +1 -1
  143. package/dist/esm/components/wallet2/walletModal/Option.js +5 -2
  144. package/dist/esm/components/wallet2/walletModal/Option.js.map +1 -1
  145. package/dist/esm/components/wallet2/walletModal/index.d.ts +5 -2
  146. package/dist/esm/components/wallet2/walletModal/index.d.ts.map +1 -1
  147. package/dist/esm/components/wallet2/walletModal/index.js +3 -3
  148. package/dist/esm/components/wallet2/walletModal/index.js.map +1 -1
  149. package/dist/esm/components/wallet2/web3Status/index.d.ts +14 -2
  150. package/dist/esm/components/wallet2/web3Status/index.d.ts.map +1 -1
  151. package/dist/esm/components/wallet2/web3Status/index.js +14 -6
  152. package/dist/esm/components/wallet2/web3Status/index.js.map +1 -1
  153. package/dist/esm/hooks/connection/useSyncChainQuery.js.map +1 -1
  154. package/dist/esm/hooks/index.d.ts +5 -0
  155. package/dist/esm/hooks/index.d.ts.map +1 -1
  156. package/dist/esm/hooks/index.js +5 -0
  157. package/dist/esm/hooks/index.js.map +1 -1
  158. package/dist/esm/hooks/useCtaClickHandler.d.ts +1 -1
  159. package/dist/esm/hooks/useCtaClickHandler.d.ts.map +1 -1
  160. package/dist/esm/hooks/useCtaClickHandler.js.map +1 -1
  161. package/dist/esm/hooks/useMetaTx.d.ts +1 -1
  162. package/dist/esm/hooks/useMetaTx.d.ts.map +1 -1
  163. package/dist/esm/hooks/useMetaTx.js.map +1 -1
  164. package/dist/esm/index.d.ts +4 -0
  165. package/dist/esm/index.d.ts.map +1 -1
  166. package/dist/esm/index.js +4 -0
  167. package/dist/esm/index.js.map +1 -1
  168. package/dist/esm/lib/signer/externalSigner.d.ts.map +1 -1
  169. package/dist/esm/lib/signer/externalSigner.js +7 -0
  170. package/dist/esm/lib/signer/externalSigner.js.map +1 -1
  171. package/package.json +5 -5
  172. package/src/components/connection/utils.ts +0 -1
  173. package/src/components/currencyDisplay/CurrencyDisplay.tsx +21 -18
  174. package/src/components/exchangeCard/ExchangeCard.tsx +1 -1
  175. package/src/components/image/Image.styles.ts +0 -2
  176. package/src/components/modal/components/Redeem/MyItems/Exchange.tsx +1 -1
  177. package/src/components/productCard/ProductCard.styles.ts +57 -26
  178. package/src/components/productCard/ProductCard.tsx +54 -56
  179. package/src/components/productCard/commonStyles.ts +0 -1
  180. package/src/components/queryClient/withQueryClientProvider.tsx +1 -26
  181. package/src/components/skeleton/CollectionsCardSkeleton.tsx +63 -39
  182. package/src/components/skeleton/ProductCardSkeleton.tsx +24 -37
  183. package/src/components/wallet2/accountDrawer/AuthenticatedHeader.tsx +5 -6
  184. package/src/components/wallet2/accountDrawer/miniPortfolio/index.tsx +8 -4
  185. package/src/components/wallet2/accountDrawer/miniPortfolio/tokens/index.tsx +8 -2
  186. package/src/components/wallet2/selector/ChainSelector.tsx +25 -13
  187. package/src/components/wallet2/walletModal/ConnectionErrorView.tsx +21 -6
  188. package/src/components/wallet2/walletModal/Option.tsx +9 -2
  189. package/src/components/wallet2/walletModal/index.tsx +11 -4
  190. package/src/components/wallet2/web3Status/index.tsx +43 -15
  191. package/src/hooks/connection/useSyncChainQuery.ts +1 -1
  192. package/src/hooks/index.ts +10 -0
  193. package/src/hooks/useCtaClickHandler.ts +4 -1
  194. package/src/hooks/useMetaTx.ts +3 -1
  195. package/src/index.tsx +4 -0
  196. package/src/lib/signer/externalSigner.ts +7 -0
  197. package/src/stories/ConnectWallet.stories.tsx +63 -6
  198. package/src/stories/ProductCard.stories.tsx +1 -7
  199. package/src/stories/buttons/Upload.stories.tsx +1 -3
@@ -4,12 +4,114 @@ export declare const TopLeftRibbon: import("styled-components").IStyledComponent
4
4
  export declare const ProductCardCreator: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
5
5
  export declare const ProductCardCreatorAvatar: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
6
6
  export declare const ProductCardCreatorName: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
7
- export declare const ProductCardTitle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
8
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
9
- }>, never>, never>>;
7
+ export declare const ProductCardTitle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").Substitute<{
8
+ color?: import("csstype").Property.Color | undefined;
9
+ width?: import("csstype").Property.Width<number | (string & {})> | undefined;
10
+ cursor?: import("csstype").Property.Cursor | undefined;
11
+ display?: import("csstype").Property.Display | undefined;
12
+ fontSize?: import("csstype").Property.FontSize<number | (string & {})> | undefined;
13
+ fontWeight?: import("csstype").Property.FontWeight | undefined;
14
+ letterSpacing?: import("csstype").Property.LetterSpacing<number | (string & {})> | undefined;
15
+ opacity?: import("csstype").Property.Opacity | undefined;
16
+ alignItems?: import("csstype").Property.AlignItems | undefined;
17
+ flexBasis?: import("csstype").Property.FlexBasis<number | (string & {})> | undefined;
18
+ flexDirection?: import("csstype").Property.FlexDirection | undefined;
19
+ flexGrow?: import("csstype").Property.FlexGrow | undefined;
20
+ flexShrink?: import("csstype").Property.FlexShrink | undefined;
21
+ justifyContent?: import("csstype").Property.JustifyContent | undefined;
22
+ flexWrap?: import("csstype").Property.FlexWrap | undefined;
23
+ rowGap?: import("csstype").Property.RowGap<number | (string & {})> | undefined;
24
+ columnGap?: import("csstype").Property.ColumnGap<number | (string & {})> | undefined;
25
+ gap?: import("csstype").Property.Gap<number | (string & {})> | undefined;
26
+ flex?: import("csstype").Property.Flex<number | (string & {})> | undefined;
27
+ padding?: import("csstype").Property.Padding<number | (string & {})> | undefined;
28
+ margin?: import("csstype").Property.Margin<number | (string & {})> | undefined;
29
+ marginTop?: import("csstype").Property.MarginTop<number | (string & {})> | undefined;
30
+ marginRight?: import("csstype").Property.MarginRight<number | (string & {})> | undefined;
31
+ marginBottom?: import("csstype").Property.MarginBottom<number | (string & {})> | undefined;
32
+ marginLeft?: import("csstype").Property.MarginLeft<number | (string & {})> | undefined;
33
+ lineHeight?: import("csstype").Property.LineHeight<number | (string & {})> | undefined;
34
+ background?: import("csstype").Property.Background<number | (string & {})> | undefined;
35
+ textAlign?: import("csstype").Property.TextAlign | undefined;
36
+ } & import("react").HTMLAttributes<unknown> & {
37
+ children?: import("react").ReactNode;
38
+ tag?: keyof JSX.IntrinsicElements | undefined;
39
+ style?: import("react").CSSProperties | undefined;
40
+ onClick?: (() => void) | undefined;
41
+ className?: string | undefined;
42
+ } & import("react").RefAttributes<HTMLDivElement>, {
43
+ color?: import("csstype").Property.Color | undefined;
44
+ width?: import("csstype").Property.Width<number | (string & {})> | undefined;
45
+ cursor?: import("csstype").Property.Cursor | undefined;
46
+ display?: import("csstype").Property.Display | undefined;
47
+ fontSize?: import("csstype").Property.FontSize<number | (string & {})> | undefined;
48
+ fontWeight?: import("csstype").Property.FontWeight | undefined;
49
+ letterSpacing?: import("csstype").Property.LetterSpacing<number | (string & {})> | undefined;
50
+ opacity?: import("csstype").Property.Opacity | undefined;
51
+ alignItems?: import("csstype").Property.AlignItems | undefined;
52
+ flexBasis?: import("csstype").Property.FlexBasis<number | (string & {})> | undefined;
53
+ flexDirection?: import("csstype").Property.FlexDirection | undefined;
54
+ flexGrow?: import("csstype").Property.FlexGrow | undefined;
55
+ flexShrink?: import("csstype").Property.FlexShrink | undefined;
56
+ justifyContent?: import("csstype").Property.JustifyContent | undefined;
57
+ flexWrap?: import("csstype").Property.FlexWrap | undefined;
58
+ rowGap?: import("csstype").Property.RowGap<number | (string & {})> | undefined;
59
+ columnGap?: import("csstype").Property.ColumnGap<number | (string & {})> | undefined;
60
+ gap?: import("csstype").Property.Gap<number | (string & {})> | undefined;
61
+ flex?: import("csstype").Property.Flex<number | (string & {})> | undefined;
62
+ padding?: import("csstype").Property.Padding<number | (string & {})> | undefined;
63
+ margin?: import("csstype").Property.Margin<number | (string & {})> | undefined;
64
+ marginTop?: import("csstype").Property.MarginTop<number | (string & {})> | undefined;
65
+ marginRight?: import("csstype").Property.MarginRight<number | (string & {})> | undefined;
66
+ marginBottom?: import("csstype").Property.MarginBottom<number | (string & {})> | undefined;
67
+ marginLeft?: import("csstype").Property.MarginLeft<number | (string & {})> | undefined;
68
+ lineHeight?: import("csstype").Property.LineHeight<number | (string & {})> | undefined;
69
+ background?: import("csstype").Property.Background<number | (string & {})> | undefined;
70
+ textAlign?: import("csstype").Property.TextAlign | undefined;
71
+ } & import("react").HTMLAttributes<unknown> & {
72
+ children?: import("react").ReactNode;
73
+ tag?: keyof JSX.IntrinsicElements | undefined;
74
+ style?: import("react").CSSProperties | undefined;
75
+ onClick?: (() => void) | undefined;
76
+ className?: string | undefined;
77
+ } & import("react").RefAttributes<HTMLDivElement>>, never>, never>> & Omit<import("react").ForwardRefExoticComponent<{
78
+ color?: import("csstype").Property.Color | undefined;
79
+ width?: import("csstype").Property.Width<number | (string & {})> | undefined;
80
+ cursor?: import("csstype").Property.Cursor | undefined;
81
+ display?: import("csstype").Property.Display | undefined;
82
+ fontSize?: import("csstype").Property.FontSize<number | (string & {})> | undefined;
83
+ fontWeight?: import("csstype").Property.FontWeight | undefined;
84
+ letterSpacing?: import("csstype").Property.LetterSpacing<number | (string & {})> | undefined;
85
+ opacity?: import("csstype").Property.Opacity | undefined;
86
+ alignItems?: import("csstype").Property.AlignItems | undefined;
87
+ flexBasis?: import("csstype").Property.FlexBasis<number | (string & {})> | undefined;
88
+ flexDirection?: import("csstype").Property.FlexDirection | undefined;
89
+ flexGrow?: import("csstype").Property.FlexGrow | undefined;
90
+ flexShrink?: import("csstype").Property.FlexShrink | undefined;
91
+ justifyContent?: import("csstype").Property.JustifyContent | undefined;
92
+ flexWrap?: import("csstype").Property.FlexWrap | undefined;
93
+ rowGap?: import("csstype").Property.RowGap<number | (string & {})> | undefined;
94
+ columnGap?: import("csstype").Property.ColumnGap<number | (string & {})> | undefined;
95
+ gap?: import("csstype").Property.Gap<number | (string & {})> | undefined;
96
+ flex?: import("csstype").Property.Flex<number | (string & {})> | undefined;
97
+ padding?: import("csstype").Property.Padding<number | (string & {})> | undefined;
98
+ margin?: import("csstype").Property.Margin<number | (string & {})> | undefined;
99
+ marginTop?: import("csstype").Property.MarginTop<number | (string & {})> | undefined;
100
+ marginRight?: import("csstype").Property.MarginRight<number | (string & {})> | undefined;
101
+ marginBottom?: import("csstype").Property.MarginBottom<number | (string & {})> | undefined;
102
+ marginLeft?: import("csstype").Property.MarginLeft<number | (string & {})> | undefined;
103
+ lineHeight?: import("csstype").Property.LineHeight<number | (string & {})> | undefined;
104
+ background?: import("csstype").Property.Background<number | (string & {})> | undefined;
105
+ textAlign?: import("csstype").Property.TextAlign | undefined;
106
+ } & import("react").HTMLAttributes<unknown> & {
107
+ children?: import("react").ReactNode;
108
+ tag?: keyof JSX.IntrinsicElements | undefined;
109
+ style?: import("react").CSSProperties | undefined;
110
+ onClick?: (() => void) | undefined;
111
+ className?: string | undefined;
112
+ } & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
10
113
  export declare const ProductCardPriceWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
11
114
  export declare const ProductCardPrice: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
12
- export declare const ProductCardData: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
13
115
  export declare const ProductCardBottom: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
14
116
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
15
117
  }>, never>, never>>;
@@ -17,10 +119,15 @@ export declare const ProductCardBottomContent: import("styled-components").IStyl
17
119
  export declare const ProductCardTitleWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
18
120
  export declare const ProductCardWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
19
121
  $isHoverDisabled: boolean;
122
+ $isImageFitCover?: boolean | undefined;
20
123
  }>>;
21
124
  export declare const ProductCardTop: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
22
125
  $isNotImageLoaded: boolean;
23
126
  }>>;
24
127
  export declare const BottomText: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>>;
25
128
  export declare const ProductCardImageWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
129
+ export declare const ProductCardImageAndCTAContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
130
+ export declare const CTAOnHoverContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
131
+ $isHovered: boolean;
132
+ }>>;
26
133
  //# sourceMappingURL=ProductCard.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCard.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/productCard/ProductCard.styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,uBAAuB,gNASnC,CAAC;AAEF,eAAO,MAAM,aAAa,gNAqCzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,gNAI9B,CAAC;AAEF,eAAO,MAAM,wBAAwB,gNAWpC,CAAC;AAEF,eAAO,MAAM,sBAAsB,gNAWlC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;mBAY5B,CAAC;AAEF,eAAO,MAAM,uBAAuB,gNASnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,gNAM5B,CAAC;AAEF,eAAO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,eAAO,MAAM,mBAAmB;gBAA4B,OAAO;GAKlE,CAAC"}
@@ -1,12 +1,13 @@
1
1
  import styled, { css } from "styled-components";
2
2
  import { theme } from "../../theme";
3
3
  import { cardWrapperStyles } from "./commonStyles";
4
+ import { Typography } from "../ui/Typography";
5
+ import { zIndex } from "../ui/zIndex";
4
6
  export const ProductCardLabelWrapper = styled.div `
5
7
  position: absolute;
6
8
  top: 0.5rem;
7
9
  left: 0.5rem;
8
10
  background: white;
9
- padding: 0.25rem 0.5rem 0.25rem 0.5rem;
10
11
  font-weight: 600;
11
12
  color: ${({ theme }) => theme?.colors?.light.darkGrey};
12
13
  z-index: 1;
@@ -68,28 +69,33 @@ export const ProductCardCreatorAvatar = styled.div `
68
69
  `;
69
70
  export const ProductCardCreatorName = styled.div `
70
71
  font-weight: 600;
71
- font-size: 0.75rem;
72
+ font-size: 0.625rem;
72
73
  line-height: 150%;
73
- min-height: 3em;
74
- color: ${({ theme }) => theme?.colors?.light.accent};
74
+ color: ${({ theme }) => theme?.colors?.light.darkGrey};
75
75
  flex: none;
76
76
  order: 1;
77
77
  flex-grow: 0;
78
- justify-self: flex-end;
79
- margin-bottom: 0.25rem;
78
+ justify-self: flex-start;
79
+ margin-right: auto;
80
+ > span {
81
+ font-weight: 600;
82
+ font-size: 0.625rem;
83
+ color: ${({ theme }) => theme?.colors?.light.darkGrey};
84
+ }
80
85
  `;
81
- export const ProductCardTitle = styled.div.attrs({ className: "title" }) `
82
- font-weight: 600;
83
- font-size: 1.25rem;
86
+ export const ProductCardTitle = styled(Typography).attrs({
87
+ className: "title"
88
+ }) `
84
89
  color: ${({ theme }) => theme?.colors?.light.black};
85
90
  word-break: break-word;
86
91
  overflow: hidden;
87
- text-overflow: ellipsis;
88
92
  display: -webkit-box;
89
93
  -webkit-box-orient: vertical;
90
94
  -webkit-line-clamp: 2;
91
95
  line-height: 1.5em;
92
96
  max-height: calc(1.5em * 2);
97
+ white-space: nowrap;
98
+ text-overflow: ellipsis;
93
99
  `;
94
100
  export const ProductCardPriceWrapper = styled.div `
95
101
  display: flex;
@@ -108,31 +114,26 @@ export const ProductCardPrice = styled.div `
108
114
  margin-bottom: 0.25rem;
109
115
  color: ${({ theme }) => theme?.colors?.light.darkGrey};
110
116
  `;
111
- export const ProductCardData = styled.div `
112
- display: flex;
113
- flex-direction: column;
114
- `;
115
117
  export const ProductCardBottom = styled.div.attrs({ className: "bottom" }) `
116
118
  width: 100%;
117
- background: ${theme?.colors?.light.white};
118
119
  height: 12rem;
119
120
  display: flex;
120
121
  flex-direction: column;
121
- justify-content: space-between;
122
+ justify-content: flex-end;
123
+ z-index: ${zIndex.ChatSeparator};
124
+ flex: 0;
122
125
  `;
123
126
  export const ProductCardBottomContent = styled.div `
124
127
  display: flex;
125
128
  justify-content: space-between;
129
+ flex-direction: column;
126
130
  width: 100%;
127
- padding: 1rem 1.5rem 0.5rem 1.5rem;
128
131
  box-sizing: border-box;
129
132
  align-items: flex-start;
130
133
  column-gap: 0.25rem;
131
- border-top: 2px solid ${theme.colors.light.border};
132
134
  `;
133
135
  export const ProductCardTitleWrapper = styled.div `
134
136
  width: 100%;
135
- padding: 0 1.5rem 0.5rem 1.5rem;
136
137
  box-sizing: border-box;
137
138
  `;
138
139
  export const ProductCardWrapper = styled.div `
@@ -144,6 +145,9 @@ export const ProductCardWrapper = styled.div `
144
145
  justify-content: space-between;
145
146
  flex-direction: column;
146
147
  cursor: pointer;
148
+ min-height: 286px;
149
+ height: 286px;
150
+ padding: 0 1rem 1rem 1rem;
147
151
  [data-image-wrapper] {
148
152
  position: static;
149
153
  padding-top: 0;
@@ -151,6 +155,14 @@ export const ProductCardWrapper = styled.div `
151
155
  display: flex;
152
156
  justify-content: center;
153
157
  align-items: center;
158
+ ${({ $isImageFitCover }) => $isImageFitCover
159
+ ? css `
160
+ width: 100%;
161
+ img {
162
+ object-fit: cover;
163
+ }
164
+ `
165
+ : ""}
154
166
  }
155
167
  ${({ $isHoverDisabled }) => !$isHoverDisabled
156
168
  ? css `
@@ -163,8 +175,10 @@ export const ProductCardWrapper = styled.div `
163
175
  16px 16px 16px rgba(0, 0, 0, 0.05);
164
176
 
165
177
  [data-image-wrapper] {
178
+ width: 110%;
166
179
  img {
167
- transform: scale(1.05);
180
+ transform: scale(1.5);
181
+ object-position: center;
168
182
  transition: all 300ms ease-in-out;
169
183
  }
170
184
  }
@@ -177,21 +191,33 @@ export const ProductCardTop = styled.div `
177
191
  overflow: hidden;
178
192
  width: 100%;
179
193
  align-self: stretch;
180
- z-index: 0;
194
+ z-index: ${zIndex.Default};
181
195
  `;
182
196
  export const BottomText = styled.p `
183
197
  font-size: 0.75rem;
184
198
  font-weight: 600;
185
199
  line-height: 0.975rem;
186
200
  margin: 0;
187
- padding: 0 1.5rem 1rem 1.5rem;
188
201
  letter-spacing: 0.5px;
189
202
  color: ${theme.colors.light.darkGrey};
190
203
  `;
191
204
  export const ProductCardImageWrapper = styled.div `
192
205
  width: 100%;
193
- min-height: 0;
194
- height: auto;
206
+ height: 13.125rem;
207
+ display: flex;
208
+ justify-content: center;
209
+ align-items: center;
210
+ padding-top: 0.9375rem;
211
+ padding-bottom: 0.9375rem;
195
212
  flex: 1;
196
213
  `;
214
+ export const ProductCardImageAndCTAContainer = styled.div `
215
+ position: relative;
216
+ `;
217
+ export const CTAOnHoverContainer = styled.div `
218
+ position: absolute;
219
+ z-index: ${zIndex.OfferCard};
220
+ bottom: ${({ $isHovered }) => ($isHovered ? "95px" : "1.875rem")};
221
+ transition: all 300ms ease-in-out;
222
+ `;
197
223
  //# sourceMappingURL=ProductCard.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCard.styles.js","sourceRoot":"","sources":["../../../../src/components/productCard/ProductCard.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM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M,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAgC;cAC1D,CAAC,EAAE,iBAAiB,EAAE,EAAE,EAAE,CACpC,iBAAiB,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ;;;;aAIhC,MAAM,CAAC,OAAO;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAA;;;;;;WAMvB,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ;CACrC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;CAShD,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAG,MAAM,CAAC,GAAG,CAAA;;CAExD,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAyB;;aAEzD,MAAM,CAAC,SAAS;YACjB,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC;;CAEjE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"commonStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/productCard/commonStyles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,6CAO7B,CAAC"}
1
+ {"version":3,"file":"commonStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/productCard/commonStyles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,6CAM7B,CAAC"}
@@ -4,7 +4,6 @@ export const cardWrapperStyles = css `
4
4
  padding: 0px;
5
5
  isolation: isolate;
6
6
  width: 100%;
7
- min-height: 31.25rem;
8
7
  box-shadow: 0px 4.31783px 107.946px rgba(21, 30, 52, 0.1);
9
8
  background: ${theme.colors.light.white};
10
9
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"commonStyles.js","sourceRoot":"","sources":["../../../../src/components/productCard/commonStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;gBAMpB,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK;CACvC,CAAC"}
1
+ {"version":3,"file":"commonStyles.js","sourceRoot":"","sources":["../../../../src/components/productCard/commonStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;gBAKpB,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK;CACvC,CAAC"}
@@ -1,7 +1,3 @@
1
- import { QueryClientProviderProps } from "react-query";
2
1
  import React from "react";
3
- type QueryClientProviderCustomProps = Partial<QueryClientProviderProps>;
4
- export declare const QueryClientProviderCustom: React.FC<QueryClientProviderCustomProps>;
5
2
  export declare const withQueryClientProvider: <P extends object>(WrappedComponent: React.ComponentType<P>) => React.FC<P>;
6
- export {};
7
3
  //# sourceMappingURL=withQueryClientProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withQueryClientProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/queryClient/withQueryClientProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,wBAAwB,EACzB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,KAAK,8BAA8B,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AAExE,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAC9C,8BAA8B,CAO/B,CAAC;AAEF,eAAO,MAAM,uBAAuB,6EAqBnC,CAAC"}
1
+ {"version":3,"file":"withQueryClientProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/queryClient/withQueryClientProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,uBAAuB,6EAqBnC,CAAC"}
@@ -1,15 +1,5 @@
1
- import { QueryClient, QueryClientProvider } from "react-query";
2
1
  import React from "react";
3
- const queryClient = new QueryClient({
4
- defaultOptions: {
5
- queries: {
6
- refetchOnWindowFocus: false
7
- }
8
- }
9
- });
10
- export const QueryClientProviderCustom = ({ ...props }) => {
11
- return (React.createElement(QueryClientProvider, { client: queryClient, ...props }, props.children));
12
- };
2
+ import { QueryClientProviderCustom } from "./QueryClientProviderCustom";
13
3
  export const withQueryClientProvider = (WrappedComponent) => {
14
4
  // Return a new component
15
5
  const WithQueryClientProvider = (props) => {
@@ -1 +1 @@
1
- {"version":3,"file":"withQueryClientProvider.js","sourceRoot":"","sources":["../../../../src/components/queryClient/withQueryClientProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,mBAAmB,EAEpB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC;IAClC,cAAc,EAAE;QACd,OAAO,EAAE;YACP,oBAAoB,EAAE,KAAK;SAC5B;KACF;CACF,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,yBAAyB,GAElC,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACnB,OAAO,CACL,oBAAC,mBAAmB,IAAC,MAAM,EAAE,WAAW,KAAM,KAAK,IAChD,KAAK,CAAC,QAAQ,CACK,CACvB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,gBAAwC,EACxC,EAAE;IAIF,yBAAyB;IACzB,MAAM,uBAAuB,GAAoB,CAAC,KAAK,EAAE,EAAE;QACzD,OAAO,CACL,oBAAC,yBAAyB;YACxB,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CACL,CAC7B,CAAC;IACJ,CAAC,CAAC;IAEF,0CAA0C;IAC1C,MAAM,WAAW,GACf,gBAAgB,CAAC,WAAW,IAAI,gBAAgB,CAAC,IAAI,IAAI,WAAW,CAAC;IACvE,uBAAuB,CAAC,WAAW,GAAG,iCAAiC,WAAW,GAAG,CAAC;IAEtF,OAAO,uBAAuB,CAAC;AACjC,CAAC,CAAC"}
1
+ {"version":3,"file":"withQueryClientProvider.js","sourceRoot":"","sources":["../../../../src/components/queryClient/withQueryClientProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,gBAAwC,EACxC,EAAE;IAIF,yBAAyB;IACzB,MAAM,uBAAuB,GAAoB,CAAC,KAAK,EAAE,EAAE;QACzD,OAAO,CACL,oBAAC,yBAAyB;YACxB,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CACL,CAC7B,CAAC;IACJ,CAAC,CAAC;IAEF,0CAA0C;IAC1C,MAAM,WAAW,GACf,gBAAgB,CAAC,WAAW,IAAI,gBAAgB,CAAC,IAAI,IAAI,WAAW,CAAC;IACvE,uBAAuB,CAAC,WAAW,GAAG,iCAAiC,WAAW,GAAG,CAAC;IAEtF,OAAO,uBAAuB,CAAC;AACjC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CollectionsCardSkeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/skeleton/CollectionsCardSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AA0BpD,KAAK,iBAAiB,GAAG,oBAAoB,CAAC,cAAc,CAAC,GAAG;IAC9D,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AACF,eAAO,MAAM,uBAAuB,UAAW,iBAAiB,gBAoC/D,CAAC"}
1
+ {"version":3,"file":"CollectionsCardSkeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/skeleton/CollectionsCardSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AA4CpD,KAAK,iBAAiB,GAAG,oBAAoB,CAAC,cAAc,CAAC,GAAG;IAC9D,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AACF,eAAO,MAAM,uBAAuB,UAAW,iBAAiB,gBA0C/D,CAAC"}
@@ -3,33 +3,55 @@ import styled from "styled-components";
3
3
  import { theme } from "../../theme";
4
4
  import { cardWrapperStyles } from "../productCard/commonStyles";
5
5
  import { LoadingBubble } from "./common";
6
+ import { Grid } from "../ui/Grid";
7
+ const colors = theme.colors.light;
6
8
  const Container = styled.div `
7
- display: grid;
8
- grid-template-columns: 1fr;
9
- grid-template-rows: repeat(2, min-content);
9
+ display: flex;
10
+ flex-direction: column;
10
11
  ${cardWrapperStyles}
12
+ /* REMs gives bad height here on smaller views */
13
+ height: 279px;
14
+ min-width: 265px;
11
15
  `;
12
16
  const ImagesContainer = styled.div `
13
17
  width: 100%;
14
- display: grid;
15
- grid-template-columns: repeat(2, 1fr);
16
- grid-template-rows: repeat(2, 1fr);
17
- grid-column-gap: 1px;
18
- grid-row-gap: 1px;
18
+ position: relative;
19
+ /* REMs gives bad height here on smaller views */
20
+ height: 208px;
21
+ background-color: ${colors.lightGrey};
19
22
  `;
20
23
  const BottomCard = styled.div `
21
- padding: 1rem 1.5rem 1rem 1.5rem;
24
+ padding: 1rem 1.5rem 1rem 0.3125rem;
25
+ `;
26
+ const ImageOne = styled.div `
27
+ position: absolute;
28
+ top: 50%;
29
+ left: 10%;
30
+ transform: translateY(-50%);
31
+ `;
32
+ const ImageTwo = styled.div `
33
+ position: absolute;
34
+ right: 10%;
35
+ top: 5%;
36
+ `;
37
+ const ImageThree = styled.div `
38
+ position: absolute;
39
+ right: 10%;
40
+ bottom: 5%;
22
41
  `;
23
42
  export const CollectionsCardSkeleton = (props) => {
24
43
  return (React.createElement(Container, null,
25
44
  React.createElement(ImagesContainer, null,
26
- React.createElement(LoadingBubble, { "$width": "100%", "$height": "170px", "$borderRadius": "0px", "$backgroundColor": theme.colors.light.darkGrey }),
27
- React.createElement(LoadingBubble, { "$width": "100%", "$height": "170px", "$borderRadius": "0px", "$backgroundColor": theme.colors.light.darkGrey }),
28
- React.createElement(LoadingBubble, { "$width": "100%", "$height": "170px", "$borderRadius": "0px", "$backgroundColor": theme.colors.light.darkGrey }),
29
- React.createElement(LoadingBubble, { "$width": "100%", "$height": "170px", "$borderRadius": "0px", "$backgroundColor": theme.colors.light.darkGrey })),
30
- React.createElement(BottomCard, null,
31
- React.createElement(LoadingBubble, { "$width": "50%", "$height": "26px", "$margin": "0 0 8.75px 0" }),
32
- React.createElement(LoadingBubble, { "$width": "52px", "$height": "18px", "$margin": "0 0 4.375px 0" }),
33
- React.createElement(LoadingBubble, { "$width": "30px", "$height": "30px" }))));
45
+ React.createElement(ImageOne, null,
46
+ React.createElement(LoadingBubble, { "$width": "140px", "$height": "102px", "$borderRadius": "0px", "$backgroundColor": theme.colors.light.darkGrey })),
47
+ React.createElement(ImageTwo, null,
48
+ React.createElement(LoadingBubble, { "$width": "60px", "$height": "50px", "$borderRadius": "0px", "$backgroundColor": theme.colors.light.darkGrey })),
49
+ React.createElement(ImageThree, null,
50
+ React.createElement(LoadingBubble, { "$width": "60px", "$height": "50px", "$borderRadius": "0px", "$backgroundColor": theme.colors.light.darkGrey }))),
51
+ React.createElement(Grid, { justifyContent: "flex-start", "align-items": "center", marginLeft: "1.5rem" },
52
+ React.createElement(LoadingBubble, { "$width": "43px", "$height": "43px", "$borderRadius": "100%" }),
53
+ React.createElement(BottomCard, null,
54
+ React.createElement(LoadingBubble, { "$width": "52px", "$height": "18px", "$margin": "0 0 4.375px 0" }),
55
+ React.createElement(LoadingBubble, { "$width": "30px", "$height": "25px" })))));
34
56
  };
35
57
  //# sourceMappingURL=CollectionsCardSkeleton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CollectionsCardSkeleton.js","sourceRoot":"","sources":["../../../../src/components/skeleton/CollectionsCardSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA;;;;IAIxB,iBAAiB;CACpB,CAAC;AAEF,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;CAOjC,CAAC;AAEF,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAA;;CAE5B,CAAC;AAKF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAwB,EAAE,EAAE;IAClE,OAAO,CACL,oBAAC,SAAS;QACR,oBAAC,eAAe;YACd,oBAAC,aAAa,cACL,MAAM,aACL,OAAO,mBACD,KAAK,sBACD,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,GAC7C;YACF,oBAAC,aAAa,cACL,MAAM,aACL,OAAO,mBACD,KAAK,sBACD,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,GAC7C;YACF,oBAAC,aAAa,cACL,MAAM,aACL,OAAO,mBACD,KAAK,sBACD,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,GAC7C;YACF,oBAAC,aAAa,cACL,MAAM,aACL,OAAO,mBACD,KAAK,sBACD,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,GAC7C,CACc;QAClB,oBAAC,UAAU;YACT,oBAAC,aAAa,cAAQ,KAAK,aAAS,MAAM,aAAS,cAAc,GAAG;YACpE,oBAAC,aAAa,cAAQ,MAAM,aAAS,MAAM,aAAS,eAAe,GAAG;YACtE,oBAAC,aAAa,cAAQ,MAAM,aAAS,MAAM,GAAG,CACnC,CACH,CACb,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"CollectionsCardSkeleton.js","sourceRoot":"","sources":["../../../../src/components/skeleton/CollectionsCardSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;AAClC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA;;;IAGxB,iBAAiB;;;;CAIpB,CAAC;AAEF,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;sBAKZ,MAAM,CAAC,SAAS;CACrC,CAAC;AAEF,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAA;;CAE5B,CAAC;AAEF,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAK1B,CAAC;AACF,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAI1B,CAAC;AACF,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAI5B,CAAC;AAIF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAwB,EAAE,EAAE;IAClE,OAAO,CACL,oBAAC,SAAS;QACR,oBAAC,eAAe;YACd,oBAAC,QAAQ;gBACP,oBAAC,aAAa,cACL,OAAO,aACN,OAAO,mBACD,KAAK,sBACD,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,GAC7C,CACO;YACX,oBAAC,QAAQ;gBACP,oBAAC,aAAa,cACL,MAAM,aACL,MAAM,mBACA,KAAK,sBACD,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,GAC7C,CACO;YACX,oBAAC,UAAU;gBACT,oBAAC,aAAa,cACL,MAAM,aACL,MAAM,mBACA,KAAK,sBACD,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,GAC7C,CACS,CACG;QAClB,oBAAC,IAAI,IACH,cAAc,EAAC,YAAY,iBACf,QAAQ,EACpB,UAAU,EAAE,QAAQ;YAEpB,oBAAC,aAAa,cAAQ,MAAM,aAAS,MAAM,mBAAgB,MAAM,GAAI;YACrE,oBAAC,UAAU;gBACT,oBAAC,aAAa,cAAQ,MAAM,aAAS,MAAM,aAAS,eAAe,GAAG;gBACtE,oBAAC,aAAa,cAAQ,MAAM,aAAS,MAAM,GAAG,CACnC,CACR,CACG,CACb,CAAC;AACJ,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCardSkeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/skeleton/ProductCardSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAoBpD,KAAK,iBAAiB,GAAG,oBAAoB,CAAC,cAAc,CAAC,GAAG;IAC9D,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AACF,eAAO,MAAM,mBAAmB,UAAW,iBAAiB,gBAoD3D,CAAC"}
1
+ {"version":3,"file":"ProductCardSkeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/skeleton/ProductCardSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAapD,KAAK,iBAAiB,GAAG,oBAAoB,CAAC,cAAc,CAAC,GAAG;IAC9D,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAaF,eAAO,MAAM,mBAAmB,UAAW,iBAAiB,gBAkC3D,CAAC"}
@@ -1,33 +1,32 @@
1
1
  import React from "react";
2
- import { BottomText, ProductCardBottom, ProductCardBottomContent, ProductCardCreator, ProductCardCreatorAvatar, ProductCardCreatorName, ProductCardData, ProductCardImageWrapper, ProductCardPrice, ProductCardPriceWrapper, ProductCardTitle, ProductCardTitleWrapper, ProductCardWrapper } from "../productCard/ProductCard.styles";
3
- import { Grid } from "../ui/Grid";
2
+ import { BottomText, ProductCardBottom, ProductCardImageWrapper, ProductCardTitle, ProductCardTitleWrapper, ProductCardWrapper } from "../productCard/ProductCard.styles";
4
3
  import { theme } from "../../theme";
5
4
  import { LoadingBubble } from "./common";
5
+ import styled from "styled-components";
6
+ const ProductCardImageWrapperStyled = styled(ProductCardImageWrapper) `
7
+ overflow: hidden;
8
+ width: 100%;
9
+ /* REMs gives bad height here on smaller views */
10
+ max-height: 210px;
11
+ min-height: 11.25rem;
12
+ `;
13
+ const ProductCardTitleWrapperStyled = styled(ProductCardTitleWrapper) `
14
+ margin-bottom: 5px;
15
+ `;
6
16
  export const ProductCardSkeleton = (props) => {
7
17
  const { withBottomText } = props;
8
18
  return (React.createElement(ProductCardWrapper, { ...props, "$isHoverDisabled": true },
9
- React.createElement(ProductCardImageWrapper, null,
19
+ React.createElement(ProductCardImageWrapperStyled, null,
10
20
  React.createElement(LoadingBubble, { "$width": "100%", "$height": "340px", "$borderRadius": "0px", "$backgroundColor": theme.colors.light.darkGrey })),
11
21
  React.createElement(ProductCardBottom, null,
12
22
  React.createElement("div", null,
13
- React.createElement(ProductCardBottomContent, null,
14
- React.createElement(ProductCardData, null,
15
- React.createElement(ProductCardCreator, null,
16
- React.createElement(ProductCardCreatorAvatar, null,
17
- React.createElement(LoadingBubble, { "$width": "16px", "$height": "16px" })),
18
- React.createElement(ProductCardCreatorName, { "data-avatarname": "product-card" },
19
- React.createElement(LoadingBubble, { "$width": "50px", "$height": "12.5px" })))),
20
- React.createElement(ProductCardPriceWrapper, null,
21
- React.createElement(ProductCardPrice, null,
22
- React.createElement(Grid, { justifyContent: "flex-end" },
23
- React.createElement(LoadingBubble, { "$width": "30px", "$height": "10px" }))),
24
- React.createElement(Grid, { justifyContent: "flex-end", gap: "8px" },
25
- React.createElement(LoadingBubble, { "$width": "24px", "$height": "24px" }),
26
- React.createElement(LoadingBubble, { "$width": "calc(100% - 24px - 8px)" })))),
27
- React.createElement(ProductCardTitleWrapper, null,
23
+ React.createElement(ProductCardTitleWrapperStyled, null,
28
24
  React.createElement(ProductCardTitle, null,
29
- React.createElement(LoadingBubble, { "$width": "100%", "$height": "30px" })))),
25
+ React.createElement(LoadingBubble, { "$width": "50%", "$height": "12px" }))),
26
+ React.createElement(ProductCardTitleWrapperStyled, null,
27
+ React.createElement(ProductCardTitle, null,
28
+ React.createElement(LoadingBubble, { "$width": "20%", "$height": "8px" })))),
30
29
  withBottomText && (React.createElement(BottomText, null,
31
- React.createElement(LoadingBubble, { "$width": "100%", "$height": "15.5px" }))))));
30
+ React.createElement(LoadingBubble, { "$width": "15%", "$height": "13px" }))))));
32
31
  };
33
32
  //# sourceMappingURL=ProductCardSkeleton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCardSkeleton.js","sourceRoot":"","sources":["../../../../src/components/skeleton/ProductCardSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EACxB,sBAAsB,EACtB,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EACnB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAKzC,MAA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