@oanda/labs-widget-common 1.0.252 → 1.0.254

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 (334) hide show
  1. package/CHANGELOG.md +774 -62520
  2. package/dist/main/components/style.css +1 -1
  3. package/dist/module/chart/BaseChart.js +15 -7
  4. package/dist/module/chart/BaseChart.js.map +1 -1
  5. package/dist/module/chart/formatters.js +12 -3
  6. package/dist/module/chart/formatters.js.map +1 -1
  7. package/dist/module/chart/getGridLines.js +16 -9
  8. package/dist/module/chart/getGridLines.js.map +1 -1
  9. package/dist/module/chart/getTheme.js +38 -31
  10. package/dist/module/chart/getTheme.js.map +1 -1
  11. package/dist/module/chart/getZoomControls.js +12 -5
  12. package/dist/module/chart/getZoomControls.js.map +1 -1
  13. package/dist/module/chart/index.js +82 -7
  14. package/dist/module/chart/index.js.map +1 -1
  15. package/dist/module/chart/sharedOptions.js +11 -4
  16. package/dist/module/chart/sharedOptions.js.map +1 -1
  17. package/dist/module/chart/types.js +5 -1
  18. package/dist/module/components/Button/Button.js +18 -11
  19. package/dist/module/components/Button/Button.js.map +1 -1
  20. package/dist/module/components/Button/index.js +27 -2
  21. package/dist/module/components/Button/index.js.map +1 -1
  22. package/dist/module/components/Button/types.js +8 -2
  23. package/dist/module/components/Button/types.js.map +1 -1
  24. package/dist/module/components/Card/Card.js +24 -16
  25. package/dist/module/components/Card/Card.js.map +1 -1
  26. package/dist/module/components/Card/CardHeader.js +21 -14
  27. package/dist/module/components/Card/CardHeader.js.map +1 -1
  28. package/dist/module/components/Card/index.js +38 -3
  29. package/dist/module/components/Card/index.js.map +1 -1
  30. package/dist/module/components/Card/rows/DailyChangeCardRow.js +15 -7
  31. package/dist/module/components/Card/rows/DailyChangeCardRow.js.map +1 -1
  32. package/dist/module/components/Card/rows/LineChartCardRow.js +17 -10
  33. package/dist/module/components/Card/rows/LineChartCardRow.js.map +1 -1
  34. package/dist/module/components/Card/rows/PriceCardRow.js +16 -8
  35. package/dist/module/components/Card/rows/PriceCardRow.js.map +1 -1
  36. package/dist/module/components/Card/rows/SentimentCardRow.js +18 -10
  37. package/dist/module/components/Card/rows/SentimentCardRow.js.map +1 -1
  38. package/dist/module/components/Card/rows/SpreadCardRow.js +15 -7
  39. package/dist/module/components/Card/rows/SpreadCardRow.js.map +1 -1
  40. package/dist/module/components/Card/rows/index.js +60 -5
  41. package/dist/module/components/Card/rows/index.js.map +1 -1
  42. package/dist/module/components/Card/types.js +5 -1
  43. package/dist/module/components/Disclaimer/Disclaimer.js +32 -24
  44. package/dist/module/components/Disclaimer/Disclaimer.js.map +1 -1
  45. package/dist/module/components/Disclaimer/index.js +16 -1
  46. package/dist/module/components/Disclaimer/index.js.map +1 -1
  47. package/dist/module/components/Error/Error.js +27 -18
  48. package/dist/module/components/Error/Error.js.map +1 -1
  49. package/dist/module/components/Error/index.js +16 -1
  50. package/dist/module/components/Error/index.js.map +1 -1
  51. package/dist/module/components/InfoBox/InfoBox.js +10 -3
  52. package/dist/module/components/InfoBox/InfoBox.js.map +1 -1
  53. package/dist/module/components/InfoBox/index.js +27 -2
  54. package/dist/module/components/InfoBox/index.js.map +1 -1
  55. package/dist/module/components/InfoBox/types.js +5 -1
  56. package/dist/module/components/Input/NumberInput.js +21 -13
  57. package/dist/module/components/Input/NumberInput.js.map +1 -1
  58. package/dist/module/components/Input/index.js +38 -3
  59. package/dist/module/components/Input/index.js.map +1 -1
  60. package/dist/module/components/Input/types.js +5 -1
  61. package/dist/module/components/Input/useNumberFormat.js +11 -4
  62. package/dist/module/components/Input/useNumberFormat.js.map +1 -1
  63. package/dist/module/components/InstrumentRate/InstrumentRate.js +37 -30
  64. package/dist/module/components/InstrumentRate/InstrumentRate.js.map +1 -1
  65. package/dist/module/components/InstrumentRate/InstrumentRateWithChart.js +19 -13
  66. package/dist/module/components/InstrumentRate/InstrumentRateWithChart.js.map +1 -1
  67. package/dist/module/components/InstrumentRate/index.js +38 -3
  68. package/dist/module/components/InstrumentRate/index.js.map +1 -1
  69. package/dist/module/components/InstrumentRate/types.js +5 -1
  70. package/dist/module/components/InstrumentRate/utils.js +13 -6
  71. package/dist/module/components/InstrumentRate/utils.js.map +1 -1
  72. package/dist/module/components/Label/Label.js +12 -6
  73. package/dist/module/components/Label/Label.js.map +1 -1
  74. package/dist/module/components/Label/index.js +16 -1
  75. package/dist/module/components/Label/index.js.map +1 -1
  76. package/dist/module/components/LabelWrapper/LabelWrapper.js +24 -17
  77. package/dist/module/components/LabelWrapper/LabelWrapper.js.map +1 -1
  78. package/dist/module/components/LabelWrapper/index.js +27 -2
  79. package/dist/module/components/LabelWrapper/index.js.map +1 -1
  80. package/dist/module/components/LabelWrapper/types.js +7 -1
  81. package/dist/module/components/LabelWrapper/types.js.map +1 -1
  82. package/dist/module/components/LastUpdated/LastUpdated.js +13 -6
  83. package/dist/module/components/LastUpdated/LastUpdated.js.map +1 -1
  84. package/dist/module/components/LastUpdated/index.js +27 -2
  85. package/dist/module/components/LastUpdated/index.js.map +1 -1
  86. package/dist/module/components/LastUpdated/types.js +5 -1
  87. package/dist/module/components/LineChart/LineChart.js +18 -11
  88. package/dist/module/components/LineChart/LineChart.js.map +1 -1
  89. package/dist/module/components/LineChart/LineChartWithData.js +14 -8
  90. package/dist/module/components/LineChart/LineChartWithData.js.map +1 -1
  91. package/dist/module/components/LineChart/index.js +49 -4
  92. package/dist/module/components/LineChart/index.js.map +1 -1
  93. package/dist/module/components/LineChart/types.js +7 -1
  94. package/dist/module/components/LineChart/types.js.map +1 -1
  95. package/dist/module/components/LineChart/utils.js +16 -8
  96. package/dist/module/components/LineChart/utils.js.map +1 -1
  97. package/dist/module/components/Loader/Loader.js +18 -11
  98. package/dist/module/components/Loader/Loader.js.map +1 -1
  99. package/dist/module/components/Loader/index.js +27 -2
  100. package/dist/module/components/Loader/index.js.map +1 -1
  101. package/dist/module/components/Loader/types.js +7 -1
  102. package/dist/module/components/Loader/types.js.map +1 -1
  103. package/dist/module/components/Pagination/Pagination.js +40 -33
  104. package/dist/module/components/Pagination/Pagination.js.map +1 -1
  105. package/dist/module/components/Pagination/index.js +27 -2
  106. package/dist/module/components/Pagination/index.js.map +1 -1
  107. package/dist/module/components/Pagination/types.js +5 -1
  108. package/dist/module/components/Pagination/utils.js +8 -1
  109. package/dist/module/components/Pagination/utils.js.map +1 -1
  110. package/dist/module/components/Price/Price.js +23 -15
  111. package/dist/module/components/Price/Price.js.map +1 -1
  112. package/dist/module/components/Price/index.js +27 -2
  113. package/dist/module/components/Price/index.js.map +1 -1
  114. package/dist/module/components/Price/types.js +7 -1
  115. package/dist/module/components/Price/types.js.map +1 -1
  116. package/dist/module/components/SearchInput/SearchInput.js +12 -5
  117. package/dist/module/components/SearchInput/SearchInput.js.map +1 -1
  118. package/dist/module/components/SearchInput/index.js +27 -2
  119. package/dist/module/components/SearchInput/index.js.map +1 -1
  120. package/dist/module/components/SearchInput/types.js +5 -1
  121. package/dist/module/components/Select/Select.js +44 -36
  122. package/dist/module/components/Select/Select.js.map +1 -1
  123. package/dist/module/components/Select/index.js +27 -2
  124. package/dist/module/components/Select/index.js.map +1 -1
  125. package/dist/module/components/Select/types.js +5 -1
  126. package/dist/module/components/Sentiment/Sentiment.js +28 -20
  127. package/dist/module/components/Sentiment/Sentiment.js.map +1 -1
  128. package/dist/module/components/Sentiment/SentimentError.js +17 -10
  129. package/dist/module/components/Sentiment/SentimentError.js.map +1 -1
  130. package/dist/module/components/Sentiment/SentimentLoader.js +17 -10
  131. package/dist/module/components/Sentiment/SentimentLoader.js.map +1 -1
  132. package/dist/module/components/Sentiment/index.js +38 -3
  133. package/dist/module/components/Sentiment/index.js.map +1 -1
  134. package/dist/module/components/Sentiment/types.js +7 -1
  135. package/dist/module/components/Sentiment/types.js.map +1 -1
  136. package/dist/module/components/Sentiment/utils.js +7 -1
  137. package/dist/module/components/Sentiment/utils.js.map +1 -1
  138. package/dist/module/components/Spinner/Spinner.js +18 -10
  139. package/dist/module/components/Spinner/Spinner.js.map +1 -1
  140. package/dist/module/components/Spinner/index.js +27 -2
  141. package/dist/module/components/Spinner/index.js.map +1 -1
  142. package/dist/module/components/Spinner/types.js +7 -1
  143. package/dist/module/components/Spinner/types.js.map +1 -1
  144. package/dist/module/components/Switch/Switch.js +26 -18
  145. package/dist/module/components/Switch/Switch.js.map +1 -1
  146. package/dist/module/components/Switch/SwitchItem.js +18 -10
  147. package/dist/module/components/Switch/SwitchItem.js.map +1 -1
  148. package/dist/module/components/Switch/constants.js +7 -1
  149. package/dist/module/components/Switch/constants.js.map +1 -1
  150. package/dist/module/components/Switch/index.js +16 -1
  151. package/dist/module/components/Switch/index.js.map +1 -1
  152. package/dist/module/components/Switch/types.js +5 -1
  153. package/dist/module/components/Table/Table.js +21 -14
  154. package/dist/module/components/Table/Table.js.map +1 -1
  155. package/dist/module/components/Table/TableCell.js +19 -12
  156. package/dist/module/components/Table/TableCell.js.map +1 -1
  157. package/dist/module/components/Table/TableHeader.js +20 -13
  158. package/dist/module/components/Table/TableHeader.js.map +1 -1
  159. package/dist/module/components/Table/TableRow.js +15 -8
  160. package/dist/module/components/Table/TableRow.js.map +1 -1
  161. package/dist/module/components/Table/columns/ChartColumn.js +20 -12
  162. package/dist/module/components/Table/columns/ChartColumn.js.map +1 -1
  163. package/dist/module/components/Table/columns/DailyChangeColumn.js +15 -7
  164. package/dist/module/components/Table/columns/DailyChangeColumn.js.map +1 -1
  165. package/dist/module/components/Table/columns/InstrumentColumn.js +19 -11
  166. package/dist/module/components/Table/columns/InstrumentColumn.js.map +1 -1
  167. package/dist/module/components/Table/columns/PriceColumn.js +16 -8
  168. package/dist/module/components/Table/columns/PriceColumn.js.map +1 -1
  169. package/dist/module/components/Table/columns/SentimentColumn.js +16 -8
  170. package/dist/module/components/Table/columns/SentimentColumn.js.map +1 -1
  171. package/dist/module/components/Table/columns/SpreadColumn.js +17 -9
  172. package/dist/module/components/Table/columns/SpreadColumn.js.map +1 -1
  173. package/dist/module/components/Table/columns/index.js +71 -6
  174. package/dist/module/components/Table/columns/index.js.map +1 -1
  175. package/dist/module/components/Table/index.js +60 -5
  176. package/dist/module/components/Table/index.js.map +1 -1
  177. package/dist/module/components/Table/types.js +5 -1
  178. package/dist/module/components/TableWidget/CardRecordRow.js +22 -14
  179. package/dist/module/components/TableWidget/CardRecordRow.js.map +1 -1
  180. package/dist/module/components/TableWidget/CardRenderer.js +20 -12
  181. package/dist/module/components/TableWidget/CardRenderer.js.map +1 -1
  182. package/dist/module/components/TableWidget/Cards.js +14 -6
  183. package/dist/module/components/TableWidget/Cards.js.map +1 -1
  184. package/dist/module/components/TableWidget/ColumnRenderer.js +42 -34
  185. package/dist/module/components/TableWidget/ColumnRenderer.js.map +1 -1
  186. package/dist/module/components/TableWidget/DataRecordRow.js +20 -12
  187. package/dist/module/components/TableWidget/DataRecordRow.js.map +1 -1
  188. package/dist/module/components/TableWidget/TableWidget.js +34 -26
  189. package/dist/module/components/TableWidget/TableWidget.js.map +1 -1
  190. package/dist/module/components/TableWidget/index.js +27 -2
  191. package/dist/module/components/TableWidget/index.js.map +1 -1
  192. package/dist/module/components/TableWidget/types.js +5 -1
  193. package/dist/module/components/TableWidget/utils.js +12 -4
  194. package/dist/module/components/TableWidget/utils.js.map +1 -1
  195. package/dist/module/components/Tabs/Tab.js +16 -10
  196. package/dist/module/components/Tabs/Tab.js.map +1 -1
  197. package/dist/module/components/Tabs/Tabs.js +11 -5
  198. package/dist/module/components/Tabs/Tabs.js.map +1 -1
  199. package/dist/module/components/Tabs/index.js +16 -1
  200. package/dist/module/components/Tabs/index.js.map +1 -1
  201. package/dist/module/components/Tabs/types.js +5 -1
  202. package/dist/module/components/TextInput/TextInput.js +17 -10
  203. package/dist/module/components/TextInput/TextInput.js.map +1 -1
  204. package/dist/module/components/TextInput/index.js +16 -1
  205. package/dist/module/components/TextInput/index.js.map +1 -1
  206. package/dist/module/components/TimeUnitSwitch/TimeUnitSelect.js +14 -7
  207. package/dist/module/components/TimeUnitSwitch/TimeUnitSelect.js.map +1 -1
  208. package/dist/module/components/TimeUnitSwitch/TimeUnitSwitch.js +22 -15
  209. package/dist/module/components/TimeUnitSwitch/TimeUnitSwitch.js.map +1 -1
  210. package/dist/module/components/TimeUnitSwitch/index.js +16 -1
  211. package/dist/module/components/TimeUnitSwitch/index.js.map +1 -1
  212. package/dist/module/components/TimeUnitSwitch/types.js +5 -1
  213. package/dist/module/components/Tooltip/Tooltip.js +11 -4
  214. package/dist/module/components/Tooltip/Tooltip.js.map +1 -1
  215. package/dist/module/components/Tooltip/index.js +27 -2
  216. package/dist/module/components/Tooltip/index.js.map +1 -1
  217. package/dist/module/components/Tooltip/types.js +5 -1
  218. package/dist/module/components/Truncate/Truncate.js +18 -11
  219. package/dist/module/components/Truncate/Truncate.js.map +1 -1
  220. package/dist/module/components/Truncate/index.js +27 -2
  221. package/dist/module/components/Truncate/index.js.map +1 -1
  222. package/dist/module/components/Truncate/types.js +5 -1
  223. package/dist/module/components/WidgetWrapper/WidgetWrapper.js +14 -6
  224. package/dist/module/components/WidgetWrapper/WidgetWrapper.js.map +1 -1
  225. package/dist/module/components/WidgetWrapper/index.js +16 -1
  226. package/dist/module/components/WidgetWrapper/index.js.map +1 -1
  227. package/dist/module/components/constant.js +8 -2
  228. package/dist/module/components/constant.js.map +1 -1
  229. package/dist/module/components/index.js +292 -27
  230. package/dist/module/components/index.js.map +1 -1
  231. package/dist/module/components/style.css +1 -1
  232. package/dist/module/constants/index.js +13 -7
  233. package/dist/module/constants/index.js.map +1 -1
  234. package/dist/module/fonts/index.js +27 -4
  235. package/dist/module/fonts/index.js.map +1 -1
  236. package/dist/module/hooks/index.js +71 -6
  237. package/dist/module/hooks/index.js.map +1 -1
  238. package/dist/module/hooks/useFetchCombinedDataRecords.js +14 -7
  239. package/dist/module/hooks/useFetchCombinedDataRecords.js.map +1 -1
  240. package/dist/module/hooks/useLiveRates.js +12 -5
  241. package/dist/module/hooks/useLiveRates.js.map +1 -1
  242. package/dist/module/hooks/useLiveRatesMessage.js +26 -19
  243. package/dist/module/hooks/useLiveRatesMessage.js.map +1 -1
  244. package/dist/module/hooks/useLiveRatesQuery.js +12 -5
  245. package/dist/module/hooks/useLiveRatesQuery.js.map +1 -1
  246. package/dist/module/hooks/useRecords.js +13 -7
  247. package/dist/module/hooks/useRecords.js.map +1 -1
  248. package/dist/module/hooks/useVisibleLiveDataRecord.js +16 -9
  249. package/dist/module/hooks/useVisibleLiveDataRecord.js.map +1 -1
  250. package/dist/module/images/index.js +111 -16
  251. package/dist/module/images/index.js.map +1 -1
  252. package/dist/module/index.js +126 -11
  253. package/dist/module/index.js.map +1 -1
  254. package/dist/module/providers/ConditionalProvider.js +11 -3
  255. package/dist/module/providers/ConditionalProvider.js.map +1 -1
  256. package/dist/module/providers/Layout/LayoutContext.js +12 -4
  257. package/dist/module/providers/Layout/LayoutContext.js.map +1 -1
  258. package/dist/module/providers/Layout/LayoutProvider.js +30 -22
  259. package/dist/module/providers/Layout/LayoutProvider.js.map +1 -1
  260. package/dist/module/providers/Layout/LayoutProvider.test.js +61 -58
  261. package/dist/module/providers/Layout/LayoutProvider.test.js.map +1 -1
  262. package/dist/module/providers/Layout/index.js +27 -2
  263. package/dist/module/providers/Layout/index.js.map +1 -1
  264. package/dist/module/providers/LiveRates/LiveRatesContext.js +11 -4
  265. package/dist/module/providers/LiveRates/LiveRatesContext.js.map +1 -1
  266. package/dist/module/providers/LiveRates/LiveRatesProvider.js +37 -29
  267. package/dist/module/providers/LiveRates/LiveRatesProvider.js.map +1 -1
  268. package/dist/module/providers/LiveRates/index.js +27 -2
  269. package/dist/module/providers/LiveRates/index.js.map +1 -1
  270. package/dist/module/providers/Widget/WidgetProvider.js +26 -18
  271. package/dist/module/providers/Widget/WidgetProvider.js.map +1 -1
  272. package/dist/module/providers/Widget/index.js +16 -1
  273. package/dist/module/providers/Widget/index.js.map +1 -1
  274. package/dist/module/providers/index.js +38 -3
  275. package/dist/module/providers/index.js.map +1 -1
  276. package/dist/module/tailwind/cn.js +11 -4
  277. package/dist/module/tailwind/cn.js.map +1 -1
  278. package/dist/module/tailwind/colors.js +9 -3
  279. package/dist/module/tailwind/colors.js.map +1 -1
  280. package/dist/module/tailwind/index.js +39 -3
  281. package/dist/module/tailwind/index.js.map +1 -1
  282. package/dist/module/tailwind/preset.js +11 -5
  283. package/dist/module/tailwind/preset.js.map +1 -1
  284. package/dist/module/tailwind/themes/background.js +14 -8
  285. package/dist/module/tailwind/themes/background.js.map +1 -1
  286. package/dist/module/tailwind/themes/border.js +10 -4
  287. package/dist/module/tailwind/themes/border.js.map +1 -1
  288. package/dist/module/tailwind/themes/index.js +12 -6
  289. package/dist/module/tailwind/themes/index.js.map +1 -1
  290. package/dist/module/tailwind/themes/text.js +18 -12
  291. package/dist/module/tailwind/themes/text.js.map +1 -1
  292. package/dist/module/tailwind/themes/themeColors.js +26 -20
  293. package/dist/module/tailwind/themes/themeColors.js.map +1 -1
  294. package/dist/module/tailwind/types.js +5 -1
  295. package/dist/module/tailwind/utils.js +8 -1
  296. package/dist/module/tailwind/utils.js.map +1 -1
  297. package/dist/module/testUtils/index.js +15 -7
  298. package/dist/module/testUtils/index.js.map +1 -1
  299. package/dist/module/translations/index.js +15 -8
  300. package/dist/module/translations/index.js.map +1 -1
  301. package/dist/module/translations/translations.js +7 -1
  302. package/dist/module/translations/translations.js.map +1 -1
  303. package/dist/module/types/dataTypes.js +7 -1
  304. package/dist/module/types/dataTypes.js.map +1 -1
  305. package/dist/module/types/index.js +36 -4
  306. package/dist/module/types/index.js.map +1 -1
  307. package/dist/module/types/liveRatesTypes.js +5 -1
  308. package/dist/module/utils/dateUtils.js +9 -1
  309. package/dist/module/utils/dateUtils.js.map +1 -1
  310. package/dist/module/utils/getLocale.js +20 -13
  311. package/dist/module/utils/getLocale.js.map +1 -1
  312. package/dist/module/utils/index.js +38 -3
  313. package/dist/module/utils/index.js.map +1 -1
  314. package/dist/module/utils/liveRates/buildUrl.js +8 -1
  315. package/dist/module/utils/liveRates/buildUrl.js.map +1 -1
  316. package/dist/module/utils/liveRates/calculatePipsChangeFromOpen.js +7 -1
  317. package/dist/module/utils/liveRates/calculatePipsChangeFromOpen.js.map +1 -1
  318. package/dist/module/utils/liveRates/calculatePriceChange.js +8 -1
  319. package/dist/module/utils/liveRates/calculatePriceChange.js.map +1 -1
  320. package/dist/module/utils/liveRates/calculatePriceChangeFromOpen.js +8 -1
  321. package/dist/module/utils/liveRates/calculatePriceChangeFromOpen.js.map +1 -1
  322. package/dist/module/utils/liveRates/calculateSpread.js +8 -1
  323. package/dist/module/utils/liveRates/calculateSpread.js.map +1 -1
  324. package/dist/module/utils/liveRates/decodeLiveRateMessage.js +9 -2
  325. package/dist/module/utils/liveRates/decodeLiveRateMessage.js.map +1 -1
  326. package/dist/module/utils/liveRates/decodeUtilities.js +18 -6
  327. package/dist/module/utils/liveRates/decodeUtilities.js.map +1 -1
  328. package/dist/module/utils/liveRates/index.js +82 -7
  329. package/dist/module/utils/liveRates/index.js.map +1 -1
  330. package/dist/module/utils/validateToolParams.js +7 -1
  331. package/dist/module/utils/validateToolParams.js.map +1 -1
  332. package/package.json +9 -4
  333. package/src/components/style.css +1 -1
  334. package/tsconfig.types.json +2 -4
@@ -1,16 +1,23 @@
1
- import { themeColors } from '../tailwind/themes/themeColors';
2
- export const chartIcons = {
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getLineCommons = exports.chartIcons = void 0;
7
+ var _themeColors = require("../tailwind/themes/themeColors");
8
+ const chartIcons = exports.chartIcons = {
3
9
  zoomInIcon: 'path://M24.0002,22.0627L18.8692,19.3718 M14.0135,21.9651C17.3349,21.9651,20.0273,19.2726,20.0273,15.9513C20.0273,12.63,17.3349,9.9375,14.0135,9.9375C10.6922,9.9375,7.99976,12.63,7.99976,15.9513C7.99976,19.2726,10.6922,21.9651,14.0135,21.9651Z M11.0946,16H17.2786 M14.187,12.908L14.187,19.092',
4
10
  zoomOutIcon: 'M24.1252,22.0627L18.9942,19.3718 M14.1385,21.9651C17.4599,21.9651,20.1523,19.2726,20.1523,15.9513C20.1523,12.63,17.4599,9.9375,14.1385,9.9375C10.8172,9.9375,8.12476,12.63,8.12476,15.9513C8.12476,19.2726,10.8172,21.9651,14.1385,21.9651Z M11.1407,16H17.3248',
5
11
  resetZoomIcon: 'M10.3473,16C10.3473,12.1963,13.4305,9.11133,17.236,9.11133C21.0415,9.11133,24.1247,12.1963,24.1247,16C24.1247,19.8037,21.0397,22.8888,17.236,22.8888C15.1554,22.8888,13.2904,21.967,12.0273,20.5081 M12.5686,13.8962L10.3478,16.1188L8.12524,13.8962'
6
12
  };
7
- export const getLineCommons = isDark => ({
13
+ const getLineCommons = isDark => ({
8
14
  type: 'line',
9
15
  silent: true,
10
16
  z: 10,
11
17
  style: {
12
- stroke: isDark ? themeColors.borderPrimary.dark : themeColors.borderPrimary.light,
18
+ stroke: isDark ? _themeColors.themeColors.borderPrimary.dark : _themeColors.themeColors.borderPrimary.light,
13
19
  lineWidth: 1
14
20
  }
15
21
  });
22
+ exports.getLineCommons = getLineCommons;
16
23
  //# sourceMappingURL=sharedOptions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sharedOptions.js","names":["themeColors","chartIcons","zoomInIcon","zoomOutIcon","resetZoomIcon","getLineCommons","isDark","type","silent","z","style","stroke","borderPrimary","dark","light","lineWidth"],"sources":["../../../src/chart/sharedOptions.ts"],"sourcesContent":["import { themeColors } from '../tailwind/themes/themeColors';\n\nexport const chartIcons = {\n zoomInIcon:\n 'path://M24.0002,22.0627L18.8692,19.3718 M14.0135,21.9651C17.3349,21.9651,20.0273,19.2726,20.0273,15.9513C20.0273,12.63,17.3349,9.9375,14.0135,9.9375C10.6922,9.9375,7.99976,12.63,7.99976,15.9513C7.99976,19.2726,10.6922,21.9651,14.0135,21.9651Z M11.0946,16H17.2786 M14.187,12.908L14.187,19.092',\n zoomOutIcon:\n 'M24.1252,22.0627L18.9942,19.3718 M14.1385,21.9651C17.4599,21.9651,20.1523,19.2726,20.1523,15.9513C20.1523,12.63,17.4599,9.9375,14.1385,9.9375C10.8172,9.9375,8.12476,12.63,8.12476,15.9513C8.12476,19.2726,10.8172,21.9651,14.1385,21.9651Z M11.1407,16H17.3248',\n resetZoomIcon:\n 'M10.3473,16C10.3473,12.1963,13.4305,9.11133,17.236,9.11133C21.0415,9.11133,24.1247,12.1963,24.1247,16C24.1247,19.8037,21.0397,22.8888,17.236,22.8888C15.1554,22.8888,13.2904,21.967,12.0273,20.5081 M12.5686,13.8962L10.3478,16.1188L8.12524,13.8962',\n};\n\nexport const getLineCommons = (isDark: boolean) => ({\n type: 'line',\n silent: true,\n z: 10,\n style: {\n stroke: isDark\n ? themeColors.borderPrimary.dark\n : themeColors.borderPrimary.light,\n lineWidth: 1,\n },\n});\n"],"mappings":"AAAA,SAASA,WAAW,QAAQ,gCAAgC;AAE5D,OAAO,MAAMC,UAAU,GAAG;EACxBC,UAAU,EACR,qSAAqS;EACvSC,WAAW,EACT,iQAAiQ;EACnQC,aAAa,EACX;AACJ,CAAC;AAED,OAAO,MAAMC,cAAc,GAAIC,MAAe,KAAM;EAClDC,IAAI,EAAE,MAAM;EACZC,MAAM,EAAE,IAAI;EACZC,CAAC,EAAE,EAAE;EACLC,KAAK,EAAE;IACLC,MAAM,EAAEL,MAAM,GACVN,WAAW,CAACY,aAAa,CAACC,IAAI,GAC9Bb,WAAW,CAACY,aAAa,CAACE,KAAK;IACnCC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"sharedOptions.js","names":["_themeColors","require","chartIcons","exports","zoomInIcon","zoomOutIcon","resetZoomIcon","getLineCommons","isDark","type","silent","z","style","stroke","themeColors","borderPrimary","dark","light","lineWidth"],"sources":["../../../src/chart/sharedOptions.ts"],"sourcesContent":["import { themeColors } from '../tailwind/themes/themeColors';\n\nexport const chartIcons = {\n zoomInIcon:\n 'path://M24.0002,22.0627L18.8692,19.3718 M14.0135,21.9651C17.3349,21.9651,20.0273,19.2726,20.0273,15.9513C20.0273,12.63,17.3349,9.9375,14.0135,9.9375C10.6922,9.9375,7.99976,12.63,7.99976,15.9513C7.99976,19.2726,10.6922,21.9651,14.0135,21.9651Z M11.0946,16H17.2786 M14.187,12.908L14.187,19.092',\n zoomOutIcon:\n 'M24.1252,22.0627L18.9942,19.3718 M14.1385,21.9651C17.4599,21.9651,20.1523,19.2726,20.1523,15.9513C20.1523,12.63,17.4599,9.9375,14.1385,9.9375C10.8172,9.9375,8.12476,12.63,8.12476,15.9513C8.12476,19.2726,10.8172,21.9651,14.1385,21.9651Z M11.1407,16H17.3248',\n resetZoomIcon:\n 'M10.3473,16C10.3473,12.1963,13.4305,9.11133,17.236,9.11133C21.0415,9.11133,24.1247,12.1963,24.1247,16C24.1247,19.8037,21.0397,22.8888,17.236,22.8888C15.1554,22.8888,13.2904,21.967,12.0273,20.5081 M12.5686,13.8962L10.3478,16.1188L8.12524,13.8962',\n};\n\nexport const getLineCommons = (isDark: boolean) => ({\n type: 'line',\n silent: true,\n z: 10,\n style: {\n stroke: isDark\n ? themeColors.borderPrimary.dark\n : themeColors.borderPrimary.light,\n lineWidth: 1,\n },\n});\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEO,MAAMC,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG;EACxBE,UAAU,EACR,qSAAqS;EACvSC,WAAW,EACT,iQAAiQ;EACnQC,aAAa,EACX;AACJ,CAAC;AAEM,MAAMC,cAAc,GAAIC,MAAe,KAAM;EAClDC,IAAI,EAAE,MAAM;EACZC,MAAM,EAAE,IAAI;EACZC,CAAC,EAAE,EAAE;EACLC,KAAK,EAAE;IACLC,MAAM,EAAEL,MAAM,GACVM,wBAAW,CAACC,aAAa,CAACC,IAAI,GAC9BF,wBAAW,CAACC,aAAa,CAACE,KAAK;IACnCC,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAACf,OAAA,CAAAI,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -1,2 +1,6 @@
1
- export {};
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
2
6
  //# sourceMappingURL=types.js.map
@@ -1,23 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Button = void 0;
7
+ var _classnames = _interopRequireDefault(require("classnames"));
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _types = require("./types");
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
1
11
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- import classNames from 'classnames';
3
- import React from 'react';
4
- import { ButtonSize, ButtonVariant } from './types';
5
12
  const Button = _ref => {
6
13
  let {
7
- variant = ButtonVariant.primary,
14
+ variant = _types.ButtonVariant.primary,
8
15
  size,
9
16
  ...props
10
17
  } = _ref;
11
- return React.createElement("button", _extends({}, props, {
12
- className: classNames('lw-box-border lw-flex lw-justify-center lw-rounded lw-border lw-border-solid lw-px-4 lw-py-3 lw-text-center lw-font-sans lw-text-base lw-font-bold lw-leading-6 lw-tracking-normal focus:lw-outline-primary lw-whitespace-nowrap', {
13
- 'lw-bg-secondary lw-text-text-negative lw-border-secondary': variant === ButtonVariant.primary,
14
- 'lw-bg-bg-primary lw-text-text-primary lw-border-text-primary': variant === ButtonVariant.secondary,
15
- 'lw-w-[56px]': size === ButtonSize.xs,
16
- 'lw-w-full': size === ButtonSize.full
18
+ return _react.default.createElement("button", _extends({}, props, {
19
+ className: (0, _classnames.default)('lw-box-border lw-flex lw-justify-center lw-rounded lw-border lw-border-solid lw-px-4 lw-py-3 lw-text-center lw-font-sans lw-text-base lw-font-bold lw-leading-6 lw-tracking-normal focus:lw-outline-primary lw-whitespace-nowrap', {
20
+ 'lw-bg-secondary lw-text-text-negative lw-border-secondary': variant === _types.ButtonVariant.primary,
21
+ 'lw-bg-bg-primary lw-text-text-primary lw-border-text-primary': variant === _types.ButtonVariant.secondary,
22
+ 'lw-w-[56px]': size === _types.ButtonSize.xs,
23
+ 'lw-w-full': size === _types.ButtonSize.full
17
24
  }),
18
25
  "data-testid": "button",
19
26
  type: "button"
20
27
  }));
21
28
  };
22
- export { Button };
29
+ exports.Button = Button;
23
30
  //# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","names":["classNames","React","ButtonSize","ButtonVariant","Button","_ref","variant","primary","size","props","createElement","_extends","className","secondary","xs","full","type"],"sources":["../../../../src/components/Button/Button.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport React from 'react';\n\nimport type { ButtonProps } from './types';\nimport { ButtonSize, ButtonVariant } from './types';\n\nconst Button = ({\n variant = ButtonVariant.primary,\n size,\n ...props\n}: ButtonProps) => (\n <button\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n className={classNames(\n 'lw-box-border lw-flex lw-justify-center lw-rounded lw-border lw-border-solid lw-px-4 lw-py-3 lw-text-center lw-font-sans lw-text-base lw-font-bold lw-leading-6 lw-tracking-normal focus:lw-outline-primary lw-whitespace-nowrap',\n {\n 'lw-bg-secondary lw-text-text-negative lw-border-secondary':\n variant === ButtonVariant.primary,\n 'lw-bg-bg-primary lw-text-text-primary lw-border-text-primary':\n variant === ButtonVariant.secondary,\n 'lw-w-[56px]': size === ButtonSize.xs,\n 'lw-w-full': size === ButtonSize.full,\n }\n )}\n data-testid=\"button\"\n type=\"button\"\n />\n);\n\nexport { Button };\n"],"mappings":";AAAA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAOC,KAAK,MAAM,OAAO;AAGzB,SAASC,UAAU,EAAEC,aAAa,QAAQ,SAAS;AAEnD,MAAMC,MAAM,GAAGC,IAAA;EAAA,IAAC;IACdC,OAAO,GAAGH,aAAa,CAACI,OAAO;IAC/BC,IAAI;IACJ,GAAGC;EACQ,CAAC,GAAAJ,IAAA;EAAA,OACZJ,KAAA,CAAAS,aAAA,WAAAC,QAAA,KAEMF,KAAK;IACTG,SAAS,EAAEZ,UAAU,CACnB,kOAAkO,EAClO;MACE,2DAA2D,EACzDM,OAAO,KAAKH,aAAa,CAACI,OAAO;MACnC,8DAA8D,EAC5DD,OAAO,KAAKH,aAAa,CAACU,SAAS;MACrC,aAAa,EAAEL,IAAI,KAAKN,UAAU,CAACY,EAAE;MACrC,WAAW,EAAEN,IAAI,KAAKN,UAAU,CAACa;IACnC,CACF,CAAE;IACF,eAAY,QAAQ;IACpBC,IAAI,EAAC;EAAQ,EACd,CAAC;AAAA,CACH;AAED,SAASZ,MAAM","ignoreList":[]}
1
+ {"version":3,"file":"Button.js","names":["_classnames","_interopRequireDefault","require","_react","_types","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","Button","_ref","variant","ButtonVariant","primary","size","props","createElement","className","classNames","secondary","ButtonSize","xs","full","type","exports"],"sources":["../../../../src/components/Button/Button.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport React from 'react';\n\nimport type { ButtonProps } from './types';\nimport { ButtonSize, ButtonVariant } from './types';\n\nconst Button = ({\n variant = ButtonVariant.primary,\n size,\n ...props\n}: ButtonProps) => (\n <button\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n className={classNames(\n 'lw-box-border lw-flex lw-justify-center lw-rounded lw-border lw-border-solid lw-px-4 lw-py-3 lw-text-center lw-font-sans lw-text-base lw-font-bold lw-leading-6 lw-tracking-normal focus:lw-outline-primary lw-whitespace-nowrap',\n {\n 'lw-bg-secondary lw-text-text-negative lw-border-secondary':\n variant === ButtonVariant.primary,\n 'lw-bg-bg-primary lw-text-text-primary lw-border-text-primary':\n variant === ButtonVariant.secondary,\n 'lw-w-[56px]': size === ButtonSize.xs,\n 'lw-w-full': size === ButtonSize.full,\n }\n )}\n data-testid=\"button\"\n type=\"button\"\n />\n);\n\nexport { Button };\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AAGA,IAAAE,MAAA,GAAAF,OAAA;AAAoD,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA;AAEpD,MAAMO,MAAM,GAAGC,IAAA;EAAA,IAAC;IACdC,OAAO,GAAGC,oBAAa,CAACC,OAAO;IAC/BC,IAAI;IACJ,GAAGC;EACQ,CAAC,GAAAL,IAAA;EAAA,OACZlB,MAAA,CAAAI,OAAA,CAAAoB,aAAA,WAAAnB,QAAA,KAEMkB,KAAK;IACTE,SAAS,EAAE,IAAAC,mBAAU,EACnB,kOAAkO,EAClO;MACE,2DAA2D,EACzDP,OAAO,KAAKC,oBAAa,CAACC,OAAO;MACnC,8DAA8D,EAC5DF,OAAO,KAAKC,oBAAa,CAACO,SAAS;MACrC,aAAa,EAAEL,IAAI,KAAKM,iBAAU,CAACC,EAAE;MACrC,WAAW,EAAEP,IAAI,KAAKM,iBAAU,CAACE;IACnC,CACF,CAAE;IACF,eAAY,QAAQ;IACpBC,IAAI,EAAC;EAAQ,EACd,CAAC;AAAA,CACH;AAACC,OAAA,CAAAf,MAAA,GAAAA,MAAA","ignoreList":[]}
@@ -1,3 +1,28 @@
1
- export * from './Button';
2
- export * from './types';
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _Button = require("./Button");
7
+ Object.keys(_Button).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _Button[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _Button[key];
14
+ }
15
+ });
16
+ });
17
+ var _types = require("./types");
18
+ Object.keys(_types).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _types[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _types[key];
25
+ }
26
+ });
27
+ });
3
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Button/index.ts"],"sourcesContent":["export * from './Button';\nexport * from './types';\n"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,SAAS","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_Button","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_types"],"sources":["../../../../src/components/Button/index.ts"],"sourcesContent":["export * from './Button';\nexport * from './types';\n"],"mappings":";;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,MAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,MAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,MAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,MAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -1,9 +1,15 @@
1
- export let ButtonVariant = function (ButtonVariant) {
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ButtonVariant = exports.ButtonSize = void 0;
7
+ let ButtonVariant = exports.ButtonVariant = function (ButtonVariant) {
2
8
  ButtonVariant["primary"] = "primary";
3
9
  ButtonVariant["secondary"] = "secondary";
4
10
  return ButtonVariant;
5
11
  }({});
6
- export let ButtonSize = function (ButtonSize) {
12
+ let ButtonSize = exports.ButtonSize = function (ButtonSize) {
7
13
  ButtonSize["xs"] = "lw-w-[56px]";
8
14
  ButtonSize["full"] = "lw-w-full";
9
15
  return ButtonSize;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["ButtonVariant","ButtonSize"],"sources":["../../../../src/components/Button/types.tsx"],"sourcesContent":["import type React from 'react';\n\nexport enum ButtonVariant {\n primary = 'primary',\n secondary = 'secondary',\n}\n\nexport enum ButtonSize {\n xs = 'lw-w-[56px]',\n full = 'lw-w-full',\n}\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: ButtonVariant;\n size?: ButtonSize;\n}\n"],"mappings":"AAEA,WAAYA,aAAa,aAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAKzB,WAAYC,UAAU,aAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"types.js","names":["ButtonVariant","exports","ButtonSize"],"sources":["../../../../src/components/Button/types.tsx"],"sourcesContent":["import type React from 'react';\n\nexport enum ButtonVariant {\n primary = 'primary',\n secondary = 'secondary',\n}\n\nexport enum ButtonSize {\n xs = 'lw-w-[56px]',\n full = 'lw-w-full',\n}\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: ButtonVariant;\n size?: ButtonSize;\n}\n"],"mappings":";;;;;;IAEYA,aAAa,GAAAC,OAAA,CAAAD,aAAA,aAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAAA,IAKbE,UAAU,GAAAD,OAAA,CAAAC,UAAA,aAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA","ignoreList":[]}
@@ -1,16 +1,24 @@
1
- import classNames from 'classnames';
2
- import React, { forwardRef } from 'react';
3
- import { CELL_EMPTY_VALUE } from '../constant';
4
- import { Loader, LoaderSize } from '../Loader';
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.CardRow = exports.Card = void 0;
7
+ var _classnames = _interopRequireDefault(require("classnames"));
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _constant = require("../constant");
10
+ var _Loader = require("../Loader");
11
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
5
13
  const CardRowContentWrapper = _ref => {
6
14
  let {
7
15
  children,
8
16
  isLoading,
9
17
  isError
10
18
  } = _ref;
11
- return React.createElement(React.Fragment, null, isLoading && React.createElement(Loader, {
12
- size: LoaderSize.sm
13
- }), !isLoading && !isError && children, !isLoading && isError && React.createElement("span", null, CELL_EMPTY_VALUE));
19
+ return _react.default.createElement(_react.default.Fragment, null, isLoading && _react.default.createElement(_Loader.Loader, {
20
+ size: _Loader.LoaderSize.sm
21
+ }), !isLoading && !isError && children, !isLoading && isError && _react.default.createElement("span", null, _constant.CELL_EMPTY_VALUE));
14
22
  };
15
23
  const CardRow = _ref2 => {
16
24
  let {
@@ -20,31 +28,31 @@ const CardRow = _ref2 => {
20
28
  isError,
21
29
  withoutContentLoading
22
30
  } = _ref2;
23
- return React.createElement("div", {
31
+ return _react.default.createElement("div", {
24
32
  className: "lw-mt-2 lw-flex lw-items-center lw-justify-between lw-gap-8 lw-font-sans lw-text-xs",
25
33
  "data-testid": "card-row"
26
- }, isLoading ? React.createElement(Loader, {
27
- size: LoaderSize.md
28
- }) : React.createElement("div", {
34
+ }, isLoading ? _react.default.createElement(_Loader.Loader, {
35
+ size: _Loader.LoaderSize.md
36
+ }) : _react.default.createElement("div", {
29
37
  className: "lw-whitespace-nowrap lw-font-light"
30
- }, React.createElement("span", null, label)), withoutContentLoading ? children : React.createElement(CardRowContentWrapper, {
38
+ }, _react.default.createElement("span", null, label)), withoutContentLoading ? children : _react.default.createElement(CardRowContentWrapper, {
31
39
  isError: isError,
32
40
  isLoading: isLoading
33
41
  }, children));
34
42
  };
35
- const Card = forwardRef((_ref3, ref) => {
43
+ exports.CardRow = CardRow;
44
+ const Card = exports.Card = (0, _react.forwardRef)((_ref3, ref) => {
36
45
  let {
37
46
  children,
38
47
  withoutBottomBorder
39
48
  } = _ref3;
40
- return React.createElement("div", {
49
+ return _react.default.createElement("div", {
41
50
  ref: ref,
42
- className: classNames('lw-relative lw-border lw-border-solid lw-border-border-primary lw-bg-bg-primary lw-p-2', {
51
+ className: (0, _classnames.default)('lw-relative lw-border lw-border-solid lw-border-border-primary lw-bg-bg-primary lw-p-2', {
43
52
  'lw-border-b-[0px]': withoutBottomBorder
44
53
  }),
45
54
  "data-testid": "card"
46
55
  }, children);
47
56
  });
48
57
  Card.displayName = 'Card';
49
- export { Card, CardRow };
50
58
  //# sourceMappingURL=Card.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.js","names":["classNames","React","forwardRef","CELL_EMPTY_VALUE","Loader","LoaderSize","CardRowContentWrapper","_ref","children","isLoading","isError","createElement","Fragment","size","sm","CardRow","_ref2","label","withoutContentLoading","className","md","Card","_ref3","ref","withoutBottomBorder","displayName"],"sources":["../../../../src/components/Card/Card.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport React, { forwardRef } from 'react';\n\nimport { CELL_EMPTY_VALUE } from '../constant';\nimport { Loader, LoaderSize } from '../Loader';\nimport type {\n CardProps,\n CardRowContentWrapperProps,\n CardRowProps,\n} from './types';\n\nconst CardRowContentWrapper = ({\n children,\n isLoading,\n isError,\n}: CardRowContentWrapperProps) => (\n <>\n {isLoading && <Loader size={LoaderSize.sm} />}\n {!isLoading && !isError && children}\n {!isLoading && isError && <span>{CELL_EMPTY_VALUE}</span>}\n </>\n);\n\nconst CardRow = ({\n label,\n children,\n isLoading,\n isError,\n withoutContentLoading,\n}: CardRowProps) => (\n <div\n className=\"lw-mt-2 lw-flex lw-items-center lw-justify-between lw-gap-8 lw-font-sans lw-text-xs\"\n data-testid=\"card-row\"\n >\n {isLoading ? (\n <Loader size={LoaderSize.md} />\n ) : (\n <div className=\"lw-whitespace-nowrap lw-font-light\">\n <span>{label}</span>\n </div>\n )}\n {withoutContentLoading ? (\n children\n ) : (\n <CardRowContentWrapper isError={isError} isLoading={isLoading}>\n {children}\n </CardRowContentWrapper>\n )}\n </div>\n);\n\nconst Card = forwardRef<HTMLDivElement, CardProps>(\n ({ children, withoutBottomBorder }, ref) => (\n <div\n ref={ref}\n className={classNames(\n 'lw-relative lw-border lw-border-solid lw-border-border-primary lw-bg-bg-primary lw-p-2',\n { 'lw-border-b-[0px]': withoutBottomBorder }\n )}\n data-testid=\"card\"\n >\n {children}\n </div>\n )\n);\n\nCard.displayName = 'Card';\n\nexport { Card, CardRow };\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAOC,KAAK,IAAIC,UAAU,QAAQ,OAAO;AAEzC,SAASC,gBAAgB,QAAQ,aAAa;AAC9C,SAASC,MAAM,EAAEC,UAAU,QAAQ,WAAW;AAO9C,MAAMC,qBAAqB,GAAGC,IAAA;EAAA,IAAC;IAC7BC,QAAQ;IACRC,SAAS;IACTC;EAC0B,CAAC,GAAAH,IAAA;EAAA,OAC3BN,KAAA,CAAAU,aAAA,CAAAV,KAAA,CAAAW,QAAA,QACGH,SAAS,IAAIR,KAAA,CAAAU,aAAA,CAACP,MAAM;IAACS,IAAI,EAAER,UAAU,CAACS;EAAG,CAAE,CAAC,EAC5C,CAACL,SAAS,IAAI,CAACC,OAAO,IAAIF,QAAQ,EAClC,CAACC,SAAS,IAAIC,OAAO,IAAIT,KAAA,CAAAU,aAAA,eAAOR,gBAAuB,CACxD,CAAC;AAAA,CACJ;AAED,MAAMY,OAAO,GAAGC,KAAA;EAAA,IAAC;IACfC,KAAK;IACLT,QAAQ;IACRC,SAAS;IACTC,OAAO;IACPQ;EACY,CAAC,GAAAF,KAAA;EAAA,OACbf,KAAA,CAAAU,aAAA;IACEQ,SAAS,EAAC,qFAAqF;IAC/F,eAAY;EAAU,GAErBV,SAAS,GACRR,KAAA,CAAAU,aAAA,CAACP,MAAM;IAACS,IAAI,EAAER,UAAU,CAACe;EAAG,CAAE,CAAC,GAE/BnB,KAAA,CAAAU,aAAA;IAAKQ,SAAS,EAAC;EAAoC,GACjDlB,KAAA,CAAAU,aAAA,eAAOM,KAAY,CAChB,CACN,EACAC,qBAAqB,GACpBV,QAAQ,GAERP,KAAA,CAAAU,aAAA,CAACL,qBAAqB;IAACI,OAAO,EAAEA,OAAQ;IAACD,SAAS,EAAEA;EAAU,GAC3DD,QACoB,CAEtB,CAAC;AAAA,CACP;AAED,MAAMa,IAAI,GAAGnB,UAAU,CACrB,CAAAoB,KAAA,EAAoCC,GAAG;EAAA,IAAtC;IAAEf,QAAQ;IAAEgB;EAAoB,CAAC,GAAAF,KAAA;EAAA,OAChCrB,KAAA,CAAAU,aAAA;IACEY,GAAG,EAAEA,GAAI;IACTJ,SAAS,EAAEnB,UAAU,CACnB,wFAAwF,EACxF;MAAE,mBAAmB,EAAEwB;IAAoB,CAC7C,CAAE;IACF,eAAY;EAAM,GAEjBhB,QACE,CAAC;AAAA,CAEV,CAAC;AAEDa,IAAI,CAACI,WAAW,GAAG,MAAM;AAEzB,SAASJ,IAAI,EAAEN,OAAO","ignoreList":[]}
1
+ {"version":3,"file":"Card.js","names":["_classnames","_interopRequireDefault","require","_react","_interopRequireWildcard","_constant","_Loader","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CardRowContentWrapper","_ref","children","isLoading","isError","createElement","Fragment","Loader","size","LoaderSize","sm","CELL_EMPTY_VALUE","CardRow","_ref2","label","withoutContentLoading","className","md","exports","Card","forwardRef","_ref3","ref","withoutBottomBorder","classNames","displayName"],"sources":["../../../../src/components/Card/Card.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport React, { forwardRef } from 'react';\n\nimport { CELL_EMPTY_VALUE } from '../constant';\nimport { Loader, LoaderSize } from '../Loader';\nimport type {\n CardProps,\n CardRowContentWrapperProps,\n CardRowProps,\n} from './types';\n\nconst CardRowContentWrapper = ({\n children,\n isLoading,\n isError,\n}: CardRowContentWrapperProps) => (\n <>\n {isLoading && <Loader size={LoaderSize.sm} />}\n {!isLoading && !isError && children}\n {!isLoading && isError && <span>{CELL_EMPTY_VALUE}</span>}\n </>\n);\n\nconst CardRow = ({\n label,\n children,\n isLoading,\n isError,\n withoutContentLoading,\n}: CardRowProps) => (\n <div\n className=\"lw-mt-2 lw-flex lw-items-center lw-justify-between lw-gap-8 lw-font-sans lw-text-xs\"\n data-testid=\"card-row\"\n >\n {isLoading ? (\n <Loader size={LoaderSize.md} />\n ) : (\n <div className=\"lw-whitespace-nowrap lw-font-light\">\n <span>{label}</span>\n </div>\n )}\n {withoutContentLoading ? (\n children\n ) : (\n <CardRowContentWrapper isError={isError} isLoading={isLoading}>\n {children}\n </CardRowContentWrapper>\n )}\n </div>\n);\n\nconst Card = forwardRef<HTMLDivElement, CardProps>(\n ({ children, withoutBottomBorder }, ref) => (\n <div\n ref={ref}\n className={classNames(\n 'lw-relative lw-border lw-border-solid lw-border-border-primary lw-bg-bg-primary lw-p-2',\n { 'lw-border-b-[0px]': withoutBottomBorder }\n )}\n data-testid=\"card\"\n >\n {children}\n </div>\n )\n);\n\nCard.displayName = 'Card';\n\nexport { Card, CardRow };\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAA+C,SAAAE,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,CAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAAA,SAAAP,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAK,UAAA,GAAAL,CAAA,KAAAU,OAAA,EAAAV,CAAA;AAO/C,MAAMmB,qBAAqB,GAAGC,IAAA;EAAA,IAAC;IAC7BC,QAAQ;IACRC,SAAS;IACTC;EAC0B,CAAC,GAAAH,IAAA;EAAA,OAC3BxB,MAAA,CAAAc,OAAA,CAAAc,aAAA,CAAA5B,MAAA,CAAAc,OAAA,CAAAe,QAAA,QACGH,SAAS,IAAI1B,MAAA,CAAAc,OAAA,CAAAc,aAAA,CAACzB,OAAA,CAAA2B,MAAM;IAACC,IAAI,EAAEC,kBAAU,CAACC;EAAG,CAAE,CAAC,EAC5C,CAACP,SAAS,IAAI,CAACC,OAAO,IAAIF,QAAQ,EAClC,CAACC,SAAS,IAAIC,OAAO,IAAI3B,MAAA,CAAAc,OAAA,CAAAc,aAAA,eAAOM,0BAAuB,CACxD,CAAC;AAAA,CACJ;AAED,MAAMC,OAAO,GAAGC,KAAA;EAAA,IAAC;IACfC,KAAK;IACLZ,QAAQ;IACRC,SAAS;IACTC,OAAO;IACPW;EACY,CAAC,GAAAF,KAAA;EAAA,OACbpC,MAAA,CAAAc,OAAA,CAAAc,aAAA;IACEW,SAAS,EAAC,qFAAqF;IAC/F,eAAY;EAAU,GAErBb,SAAS,GACR1B,MAAA,CAAAc,OAAA,CAAAc,aAAA,CAACzB,OAAA,CAAA2B,MAAM;IAACC,IAAI,EAAEC,kBAAU,CAACQ;EAAG,CAAE,CAAC,GAE/BxC,MAAA,CAAAc,OAAA,CAAAc,aAAA;IAAKW,SAAS,EAAC;EAAoC,GACjDvC,MAAA,CAAAc,OAAA,CAAAc,aAAA,eAAOS,KAAY,CAChB,CACN,EACAC,qBAAqB,GACpBb,QAAQ,GAERzB,MAAA,CAAAc,OAAA,CAAAc,aAAA,CAACL,qBAAqB;IAACI,OAAO,EAAEA,OAAQ;IAACD,SAAS,EAAEA;EAAU,GAC3DD,QACoB,CAEtB,CAAC;AAAA,CACP;AAACgB,OAAA,CAAAN,OAAA,GAAAA,OAAA;AAEF,MAAMO,IAAI,GAAAD,OAAA,CAAAC,IAAA,GAAG,IAAAC,iBAAU,EACrB,CAAAC,KAAA,EAAoCC,GAAG;EAAA,IAAtC;IAAEpB,QAAQ;IAAEqB;EAAoB,CAAC,GAAAF,KAAA;EAAA,OAChC5C,MAAA,CAAAc,OAAA,CAAAc,aAAA;IACEiB,GAAG,EAAEA,GAAI;IACTN,SAAS,EAAE,IAAAQ,mBAAU,EACnB,wFAAwF,EACxF;MAAE,mBAAmB,EAAED;IAAoB,CAC7C,CAAE;IACF,eAAY;EAAM,GAEjBrB,QACE,CAAC;AAAA,CAEV,CAAC;AAEDiB,IAAI,CAACM,WAAW,GAAG,MAAM","ignoreList":[]}
@@ -1,7 +1,14 @@
1
- import classnames from 'classnames';
2
- import React from 'react';
3
- import { useLayoutProvider } from '../../providers';
4
- import { Loader, LoaderSize } from '../Loader';
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.CardHeader = void 0;
7
+ var _classnames = _interopRequireDefault(require("classnames"));
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _providers = require("../../providers");
10
+ var _Loader = require("../Loader");
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
5
12
  const CardHeader = _ref => {
6
13
  let {
7
14
  number,
@@ -11,22 +18,22 @@ const CardHeader = _ref => {
11
18
  } = _ref;
12
19
  const {
13
20
  isDark
14
- } = useLayoutProvider();
15
- return React.createElement("div", {
21
+ } = (0, _providers.useLayoutProvider)();
22
+ return _react.default.createElement("div", {
16
23
  className: "lw-flex lw-h-6 lw-items-center lw-justify-between",
17
24
  "data-testid": "card-header"
18
- }, React.createElement("div", {
25
+ }, _react.default.createElement("div", {
19
26
  className: "lw-flex lw-items-center lw-font-sans lw-font-bold"
20
- }, number && React.createElement("div", {
21
- className: classnames('lw-mr-2 lw-flex lw-h-[18px] lw-w-[18px] lw-items-center lw-justify-center lw-rounded-full lw-text-[10px] lw-tracking-normal', {
27
+ }, number && _react.default.createElement("div", {
28
+ className: (0, _classnames.default)('lw-mr-2 lw-flex lw-h-[18px] lw-w-[18px] lw-items-center lw-justify-center lw-rounded-full lw-text-[10px] lw-tracking-normal', {
22
29
  'lw-bg-green-light-10': !isDark,
23
30
  'lw-bg-primary lw-text-text-negative': isDark
24
31
  })
25
- }, number), isLoading ? React.createElement(Loader, {
26
- size: LoaderSize.lg
27
- }) : React.createElement("span", {
32
+ }, number), isLoading ? _react.default.createElement(_Loader.Loader, {
33
+ size: _Loader.LoaderSize.lg
34
+ }) : _react.default.createElement("span", {
28
35
  className: "lw-font-sans lw-leading-6"
29
- }, title)), React.createElement("div", null, children));
36
+ }, title)), _react.default.createElement("div", null, children));
30
37
  };
31
- export { CardHeader };
38
+ exports.CardHeader = CardHeader;
32
39
  //# sourceMappingURL=CardHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CardHeader.js","names":["classnames","React","useLayoutProvider","Loader","LoaderSize","CardHeader","_ref","number","title","children","isLoading","isDark","createElement","className","size","lg"],"sources":["../../../../src/components/Card/CardHeader.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport React from 'react';\n\nimport { useLayoutProvider } from '../../providers';\nimport { Loader, LoaderSize } from '../Loader';\nimport type { CardHeaderProps } from './types';\n\nconst CardHeader = ({\n number,\n title,\n children,\n isLoading,\n}: CardHeaderProps) => {\n const { isDark } = useLayoutProvider();\n\n return (\n <div\n className=\"lw-flex lw-h-6 lw-items-center lw-justify-between\"\n data-testid=\"card-header\"\n >\n <div className=\"lw-flex lw-items-center lw-font-sans lw-font-bold\">\n {number && (\n <div\n className={classnames(\n 'lw-mr-2 lw-flex lw-h-[18px] lw-w-[18px] lw-items-center lw-justify-center lw-rounded-full lw-text-[10px] lw-tracking-normal',\n {\n 'lw-bg-green-light-10': !isDark,\n 'lw-bg-primary lw-text-text-negative': isDark,\n }\n )}\n >\n {number}\n </div>\n )}\n {isLoading ? (\n <Loader size={LoaderSize.lg} />\n ) : (\n <span className=\"lw-font-sans lw-leading-6\">{title}</span>\n )}\n </div>\n <div>{children}</div>\n </div>\n );\n};\n\nexport { CardHeader };\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,iBAAiB,QAAQ,iBAAiB;AACnD,SAASC,MAAM,EAAEC,UAAU,QAAQ,WAAW;AAG9C,MAAMC,UAAU,GAAGC,IAAA,IAKI;EAAA,IALH;IAClBC,MAAM;IACNC,KAAK;IACLC,QAAQ;IACRC;EACe,CAAC,GAAAJ,IAAA;EAChB,MAAM;IAAEK;EAAO,CAAC,GAAGT,iBAAiB,CAAC,CAAC;EAEtC,OACED,KAAA,CAAAW,aAAA;IACEC,SAAS,EAAC,mDAAmD;IAC7D,eAAY;EAAa,GAEzBZ,KAAA,CAAAW,aAAA;IAAKC,SAAS,EAAC;EAAmD,GAC/DN,MAAM,IACLN,KAAA,CAAAW,aAAA;IACEC,SAAS,EAAEb,UAAU,CACnB,6HAA6H,EAC7H;MACE,sBAAsB,EAAE,CAACW,MAAM;MAC/B,qCAAqC,EAAEA;IACzC,CACF;EAAE,GAEDJ,MACE,CACN,EACAG,SAAS,GACRT,KAAA,CAAAW,aAAA,CAACT,MAAM;IAACW,IAAI,EAAEV,UAAU,CAACW;EAAG,CAAE,CAAC,GAE/Bd,KAAA,CAAAW,aAAA;IAAMC,SAAS,EAAC;EAA2B,GAAEL,KAAY,CAExD,CAAC,EACNP,KAAA,CAAAW,aAAA,cAAMH,QAAc,CACjB,CAAC;AAEV,CAAC;AAED,SAASJ,UAAU","ignoreList":[]}
1
+ {"version":3,"file":"CardHeader.js","names":["_classnames","_interopRequireDefault","require","_react","_providers","_Loader","e","__esModule","default","CardHeader","_ref","number","title","children","isLoading","isDark","useLayoutProvider","createElement","className","classnames","Loader","size","LoaderSize","lg","exports"],"sources":["../../../../src/components/Card/CardHeader.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport React from 'react';\n\nimport { useLayoutProvider } from '../../providers';\nimport { Loader, LoaderSize } from '../Loader';\nimport type { CardHeaderProps } from './types';\n\nconst CardHeader = ({\n number,\n title,\n children,\n isLoading,\n}: CardHeaderProps) => {\n const { isDark } = useLayoutProvider();\n\n return (\n <div\n className=\"lw-flex lw-h-6 lw-items-center lw-justify-between\"\n data-testid=\"card-header\"\n >\n <div className=\"lw-flex lw-items-center lw-font-sans lw-font-bold\">\n {number && (\n <div\n className={classnames(\n 'lw-mr-2 lw-flex lw-h-[18px] lw-w-[18px] lw-items-center lw-justify-center lw-rounded-full lw-text-[10px] lw-tracking-normal',\n {\n 'lw-bg-green-light-10': !isDark,\n 'lw-bg-primary lw-text-text-negative': isDark,\n }\n )}\n >\n {number}\n </div>\n )}\n {isLoading ? (\n <Loader size={LoaderSize.lg} />\n ) : (\n <span className=\"lw-font-sans lw-leading-6\">{title}</span>\n )}\n </div>\n <div>{children}</div>\n </div>\n );\n};\n\nexport { CardHeader };\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAA+C,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAG/C,MAAMG,UAAU,GAAGC,IAAA,IAKI;EAAA,IALH;IAClBC,MAAM;IACNC,KAAK;IACLC,QAAQ;IACRC;EACe,CAAC,GAAAJ,IAAA;EAChB,MAAM;IAAEK;EAAO,CAAC,GAAG,IAAAC,4BAAiB,EAAC,CAAC;EAEtC,OACEb,MAAA,CAAAK,OAAA,CAAAS,aAAA;IACEC,SAAS,EAAC,mDAAmD;IAC7D,eAAY;EAAa,GAEzBf,MAAA,CAAAK,OAAA,CAAAS,aAAA;IAAKC,SAAS,EAAC;EAAmD,GAC/DP,MAAM,IACLR,MAAA,CAAAK,OAAA,CAAAS,aAAA;IACEC,SAAS,EAAE,IAAAC,mBAAU,EACnB,6HAA6H,EAC7H;MACE,sBAAsB,EAAE,CAACJ,MAAM;MAC/B,qCAAqC,EAAEA;IACzC,CACF;EAAE,GAEDJ,MACE,CACN,EACAG,SAAS,GACRX,MAAA,CAAAK,OAAA,CAAAS,aAAA,CAACZ,OAAA,CAAAe,MAAM;IAACC,IAAI,EAAEC,kBAAU,CAACC;EAAG,CAAE,CAAC,GAE/BpB,MAAA,CAAAK,OAAA,CAAAS,aAAA;IAAMC,SAAS,EAAC;EAA2B,GAAEN,KAAY,CAExD,CAAC,EACNT,MAAA,CAAAK,OAAA,CAAAS,aAAA,cAAMJ,QAAc,CACjB,CAAC;AAEV,CAAC;AAACW,OAAA,CAAAf,UAAA,GAAAA,UAAA","ignoreList":[]}
@@ -1,4 +1,39 @@
1
- export * from './Card';
2
- export * from './CardHeader';
3
- export * from './types';
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _Card = require("./Card");
7
+ Object.keys(_Card).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _Card[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _Card[key];
14
+ }
15
+ });
16
+ });
17
+ var _CardHeader = require("./CardHeader");
18
+ Object.keys(_CardHeader).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _CardHeader[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _CardHeader[key];
25
+ }
26
+ });
27
+ });
28
+ var _types = require("./types");
29
+ Object.keys(_types).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _types[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _types[key];
36
+ }
37
+ });
38
+ });
4
39
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Card/index.ts"],"sourcesContent":["export * from './Card';\nexport * from './CardHeader';\nexport * from './types';\n"],"mappings":"AAAA,cAAc,QAAQ;AACtB,cAAc,cAAc;AAC5B,cAAc,SAAS","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_Card","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_CardHeader","_types"],"sources":["../../../../src/components/Card/index.ts"],"sourcesContent":["export * from './Card';\nexport * from './CardHeader';\nexport * from './types';\n"],"mappings":";;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,KAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,KAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,KAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,WAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,WAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,WAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,WAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,MAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,MAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,MAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,MAAA,CAAAN,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -1,18 +1,26 @@
1
- import React from 'react';
2
- import { DataRecordType } from '../../../types';
3
- import { CardRow } from '../Card';
4
- export const DailyChangeCardRow = _ref => {
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.DailyChangeCardRow = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _types = require("../../../types");
9
+ var _Card = require("../Card");
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ const DailyChangeCardRow = _ref => {
5
12
  let {
6
13
  isError,
7
14
  label,
8
15
  dailyPercentChange,
9
16
  isLoading
10
17
  } = _ref;
11
- return React.createElement(CardRow, {
12
- key: DataRecordType.DAILY_CHANGE,
18
+ return _react.default.createElement(_Card.CardRow, {
19
+ key: _types.DataRecordType.DAILY_CHANGE,
13
20
  isError: isError,
14
21
  isLoading: isLoading || dailyPercentChange === undefined && !isError,
15
22
  label: label
16
- }, React.createElement("span", null, dailyPercentChange));
23
+ }, _react.default.createElement("span", null, dailyPercentChange));
17
24
  };
25
+ exports.DailyChangeCardRow = DailyChangeCardRow;
18
26
  //# sourceMappingURL=DailyChangeCardRow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DailyChangeCardRow.js","names":["React","DataRecordType","CardRow","DailyChangeCardRow","_ref","isError","label","dailyPercentChange","isLoading","createElement","key","DAILY_CHANGE","undefined"],"sources":["../../../../../src/components/Card/rows/DailyChangeCardRow.tsx"],"sourcesContent":["import React from 'react';\n\nimport { DataRecordType } from '../../../types';\nimport { CardRow } from '../Card';\n\ninterface DailyChangeCardRowProps {\n dailyPercentChange?: string;\n isError: boolean;\n isLoading?: boolean;\n label: string;\n}\n\nexport const DailyChangeCardRow = ({\n isError,\n label,\n dailyPercentChange,\n isLoading,\n}: DailyChangeCardRowProps) => (\n <CardRow\n key={DataRecordType.DAILY_CHANGE}\n isError={isError}\n isLoading={isLoading || (dailyPercentChange === undefined && !isError)}\n label={label}\n >\n <span>{dailyPercentChange}</span>\n </CardRow>\n);\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,OAAO,QAAQ,SAAS;AASjC,OAAO,MAAMC,kBAAkB,GAAGC,IAAA;EAAA,IAAC;IACjCC,OAAO;IACPC,KAAK;IACLC,kBAAkB;IAClBC;EACuB,CAAC,GAAAJ,IAAA;EAAA,OACxBJ,KAAA,CAAAS,aAAA,CAACP,OAAO;IACNQ,GAAG,EAAET,cAAc,CAACU,YAAa;IACjCN,OAAO,EAAEA,OAAQ;IACjBG,SAAS,EAAEA,SAAS,IAAKD,kBAAkB,KAAKK,SAAS,IAAI,CAACP,OAAS;IACvEC,KAAK,EAAEA;EAAM,GAEbN,KAAA,CAAAS,aAAA,eAAOF,kBAAyB,CACzB,CAAC;AAAA,CACX","ignoreList":[]}
1
+ {"version":3,"file":"DailyChangeCardRow.js","names":["_react","_interopRequireDefault","require","_types","_Card","e","__esModule","default","DailyChangeCardRow","_ref","isError","label","dailyPercentChange","isLoading","createElement","CardRow","key","DataRecordType","DAILY_CHANGE","undefined","exports"],"sources":["../../../../../src/components/Card/rows/DailyChangeCardRow.tsx"],"sourcesContent":["import React from 'react';\n\nimport { DataRecordType } from '../../../types';\nimport { CardRow } from '../Card';\n\ninterface DailyChangeCardRowProps {\n dailyPercentChange?: string;\n isError: boolean;\n isLoading?: boolean;\n label: string;\n}\n\nexport const DailyChangeCardRow = ({\n isError,\n label,\n dailyPercentChange,\n isLoading,\n}: DailyChangeCardRowProps) => (\n <CardRow\n key={DataRecordType.DAILY_CHANGE}\n isError={isError}\n isLoading={isLoading || (dailyPercentChange === undefined && !isError)}\n label={label}\n >\n <span>{dailyPercentChange}</span>\n </CardRow>\n);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAAkC,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAS3B,MAAMG,kBAAkB,GAAGC,IAAA;EAAA,IAAC;IACjCC,OAAO;IACPC,KAAK;IACLC,kBAAkB;IAClBC;EACuB,CAAC,GAAAJ,IAAA;EAAA,OACxBT,MAAA,CAAAO,OAAA,CAAAO,aAAA,CAACV,KAAA,CAAAW,OAAO;IACNC,GAAG,EAAEC,qBAAc,CAACC,YAAa;IACjCR,OAAO,EAAEA,OAAQ;IACjBG,SAAS,EAAEA,SAAS,IAAKD,kBAAkB,KAAKO,SAAS,IAAI,CAACT,OAAS;IACvEC,KAAK,EAAEA;EAAM,GAEbX,MAAA,CAAAO,OAAA,CAAAO,aAAA,eAAOF,kBAAyB,CACzB,CAAC;AAAA,CACX;AAACQ,OAAA,CAAAZ,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -1,21 +1,28 @@
1
- import React from 'react';
2
- import { LineChartSize } from '../../LineChart';
3
- import { getChartColor, LineChart } from '../../LineChart';
4
- import { Loader, LoaderSize } from '../../Loader';
5
- export const LineChartCardRow = _ref => {
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.LineChartCardRow = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _LineChart = require("../../LineChart");
9
+ var _Loader = require("../../Loader");
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ const LineChartCardRow = _ref => {
6
12
  let {
7
13
  chart,
8
14
  percentChange,
9
15
  isLoading,
10
16
  isDarkMode
11
17
  } = _ref;
12
- return React.createElement(React.Fragment, null, isLoading && React.createElement(Loader, {
13
- size: LoaderSize.sm
14
- }), !isLoading && React.createElement(LineChart, {
15
- color: getChartColor(percentChange, isDarkMode),
18
+ return _react.default.createElement(_react.default.Fragment, null, isLoading && _react.default.createElement(_Loader.Loader, {
19
+ size: _Loader.LoaderSize.sm
20
+ }), !isLoading && _react.default.createElement(_LineChart.LineChart, {
21
+ color: (0, _LineChart.getChartColor)(percentChange, isDarkMode),
16
22
  data: chart,
17
23
  padding: 4,
18
- size: LineChartSize.xs
24
+ size: _LineChart.LineChartSize.xs
19
25
  }));
20
26
  };
27
+ exports.LineChartCardRow = LineChartCardRow;
21
28
  //# sourceMappingURL=LineChartCardRow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LineChartCardRow.js","names":["React","LineChartSize","getChartColor","LineChart","Loader","LoaderSize","LineChartCardRow","_ref","chart","percentChange","isLoading","isDarkMode","createElement","Fragment","size","sm","color","data","padding","xs"],"sources":["../../../../../src/components/Card/rows/LineChartCardRow.tsx"],"sourcesContent":["import React from 'react';\n\nimport { LineChartSize } from '../../LineChart';\nimport { getChartColor, LineChart } from '../../LineChart';\nimport { Loader, LoaderSize } from '../../Loader';\n\ninterface LineChartCardRowProps {\n chart: number[];\n percentChange?: string;\n isDarkMode?: boolean;\n isLoading: boolean;\n}\n\nexport const LineChartCardRow = ({\n chart,\n percentChange,\n isLoading,\n isDarkMode,\n}: LineChartCardRowProps) => (\n <>\n {isLoading && <Loader size={LoaderSize.sm} />}\n {!isLoading && (\n <LineChart\n color={getChartColor(percentChange, isDarkMode)}\n data={chart}\n padding={4}\n size={LineChartSize.xs}\n />\n )}\n </>\n);\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,aAAa,EAAEC,SAAS,QAAQ,iBAAiB;AAC1D,SAASC,MAAM,EAAEC,UAAU,QAAQ,cAAc;AASjD,OAAO,MAAMC,gBAAgB,GAAGC,IAAA;EAAA,IAAC;IAC/BC,KAAK;IACLC,aAAa;IACbC,SAAS;IACTC;EACqB,CAAC,GAAAJ,IAAA;EAAA,OACtBP,KAAA,CAAAY,aAAA,CAAAZ,KAAA,CAAAa,QAAA,QACGH,SAAS,IAAIV,KAAA,CAAAY,aAAA,CAACR,MAAM;IAACU,IAAI,EAAET,UAAU,CAACU;EAAG,CAAE,CAAC,EAC5C,CAACL,SAAS,IACTV,KAAA,CAAAY,aAAA,CAACT,SAAS;IACRa,KAAK,EAAEd,aAAa,CAACO,aAAa,EAAEE,UAAU,CAAE;IAChDM,IAAI,EAAET,KAAM;IACZU,OAAO,EAAE,CAAE;IACXJ,IAAI,EAAEb,aAAa,CAACkB;EAAG,CACxB,CAEH,CAAC;AAAA,CACJ","ignoreList":[]}
1
+ {"version":3,"file":"LineChartCardRow.js","names":["_react","_interopRequireDefault","require","_LineChart","_Loader","e","__esModule","default","LineChartCardRow","_ref","chart","percentChange","isLoading","isDarkMode","createElement","Fragment","Loader","size","LoaderSize","sm","LineChart","color","getChartColor","data","padding","LineChartSize","xs","exports"],"sources":["../../../../../src/components/Card/rows/LineChartCardRow.tsx"],"sourcesContent":["import React from 'react';\n\nimport { LineChartSize } from '../../LineChart';\nimport { getChartColor, LineChart } from '../../LineChart';\nimport { Loader, LoaderSize } from '../../Loader';\n\ninterface LineChartCardRowProps {\n chart: number[];\n percentChange?: string;\n isDarkMode?: boolean;\n isLoading: boolean;\n}\n\nexport const LineChartCardRow = ({\n chart,\n percentChange,\n isLoading,\n isDarkMode,\n}: LineChartCardRowProps) => (\n <>\n {isLoading && <Loader size={LoaderSize.sm} />}\n {!isLoading && (\n <LineChart\n color={getChartColor(percentChange, isDarkMode)}\n data={chart}\n padding={4}\n size={LineChartSize.xs}\n />\n )}\n </>\n);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AAAkD,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAS3C,MAAMG,gBAAgB,GAAGC,IAAA;EAAA,IAAC;IAC/BC,KAAK;IACLC,aAAa;IACbC,SAAS;IACTC;EACqB,CAAC,GAAAJ,IAAA;EAAA,OACtBT,MAAA,CAAAO,OAAA,CAAAO,aAAA,CAAAd,MAAA,CAAAO,OAAA,CAAAQ,QAAA,QACGH,SAAS,IAAIZ,MAAA,CAAAO,OAAA,CAAAO,aAAA,CAACV,OAAA,CAAAY,MAAM;IAACC,IAAI,EAAEC,kBAAU,CAACC;EAAG,CAAE,CAAC,EAC5C,CAACP,SAAS,IACTZ,MAAA,CAAAO,OAAA,CAAAO,aAAA,CAACX,UAAA,CAAAiB,SAAS;IACRC,KAAK,EAAE,IAAAC,wBAAa,EAACX,aAAa,EAAEE,UAAU,CAAE;IAChDU,IAAI,EAAEb,KAAM;IACZc,OAAO,EAAE,CAAE;IACXP,IAAI,EAAEQ,wBAAa,CAACC;EAAG,CACxB,CAEH,CAAC;AAAA,CACJ;AAACC,OAAA,CAAAnB,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -1,7 +1,14 @@
1
- import React from 'react';
2
- import { ArrowPosition, Price } from '../../Price';
3
- import { CardRow } from '../Card';
4
- export const PriceCardRow = _ref => {
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.PriceCardRow = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _Price = require("../../Price");
9
+ var _Card = require("../Card");
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ const PriceCardRow = _ref => {
5
12
  let {
6
13
  priceMovement,
7
14
  price,
@@ -10,14 +17,15 @@ export const PriceCardRow = _ref => {
10
17
  isError,
11
18
  label
12
19
  } = _ref;
13
- return React.createElement(CardRow, {
20
+ return _react.default.createElement(_Card.CardRow, {
14
21
  isError: isError,
15
22
  isLoading: isLoading || price === undefined && !isError,
16
23
  label: label
17
- }, React.createElement(Price, {
18
- arrowPosition: ArrowPosition.left,
24
+ }, _react.default.createElement(_Price.Price, {
25
+ arrowPosition: _Price.ArrowPosition.left,
19
26
  movementIndicator: "arrow",
20
27
  priceMovement: priceMovement
21
- }, React.createElement("span", null, price?.toFixed(displayPrecision))));
28
+ }, _react.default.createElement("span", null, price?.toFixed(displayPrecision))));
22
29
  };
30
+ exports.PriceCardRow = PriceCardRow;
23
31
  //# sourceMappingURL=PriceCardRow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PriceCardRow.js","names":["React","ArrowPosition","Price","CardRow","PriceCardRow","_ref","priceMovement","price","displayPrecision","isLoading","isError","label","createElement","undefined","arrowPosition","left","movementIndicator","toFixed"],"sources":["../../../../../src/components/Card/rows/PriceCardRow.tsx"],"sourcesContent":["import React from 'react';\n\nimport { ArrowPosition, Price } from '../../Price';\nimport { CardRow } from '../Card';\n\ninterface PriceCardRowProps {\n priceMovement?: number;\n price?: number;\n displayPrecision?: number;\n isLoading?: boolean;\n isError: boolean;\n label: string;\n}\n\nexport const PriceCardRow = ({\n priceMovement,\n price,\n displayPrecision,\n isLoading,\n isError,\n label,\n}: PriceCardRowProps) => {\n return (\n <CardRow\n isError={isError}\n isLoading={isLoading || (price === undefined && !isError)}\n label={label}\n >\n <Price\n arrowPosition={ArrowPosition.left}\n movementIndicator=\"arrow\"\n priceMovement={priceMovement}\n >\n <span>{price?.toFixed(displayPrecision)}</span>\n </Price>\n </CardRow>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,aAAa,EAAEC,KAAK,QAAQ,aAAa;AAClD,SAASC,OAAO,QAAQ,SAAS;AAWjC,OAAO,MAAMC,YAAY,GAAGC,IAAA,IAOH;EAAA,IAPI;IAC3BC,aAAa;IACbC,KAAK;IACLC,gBAAgB;IAChBC,SAAS;IACTC,OAAO;IACPC;EACiB,CAAC,GAAAN,IAAA;EAClB,OACEL,KAAA,CAAAY,aAAA,CAACT,OAAO;IACNO,OAAO,EAAEA,OAAQ;IACjBD,SAAS,EAAEA,SAAS,IAAKF,KAAK,KAAKM,SAAS,IAAI,CAACH,OAAS;IAC1DC,KAAK,EAAEA;EAAM,GAEbX,KAAA,CAAAY,aAAA,CAACV,KAAK;IACJY,aAAa,EAAEb,aAAa,CAACc,IAAK;IAClCC,iBAAiB,EAAC,OAAO;IACzBV,aAAa,EAAEA;EAAc,GAE7BN,KAAA,CAAAY,aAAA,eAAOL,KAAK,EAAEU,OAAO,CAACT,gBAAgB,CAAQ,CACzC,CACA,CAAC;AAEd,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"PriceCardRow.js","names":["_react","_interopRequireDefault","require","_Price","_Card","e","__esModule","default","PriceCardRow","_ref","priceMovement","price","displayPrecision","isLoading","isError","label","createElement","CardRow","undefined","Price","arrowPosition","ArrowPosition","left","movementIndicator","toFixed","exports"],"sources":["../../../../../src/components/Card/rows/PriceCardRow.tsx"],"sourcesContent":["import React from 'react';\n\nimport { ArrowPosition, Price } from '../../Price';\nimport { CardRow } from '../Card';\n\ninterface PriceCardRowProps {\n priceMovement?: number;\n price?: number;\n displayPrecision?: number;\n isLoading?: boolean;\n isError: boolean;\n label: string;\n}\n\nexport const PriceCardRow = ({\n priceMovement,\n price,\n displayPrecision,\n isLoading,\n isError,\n label,\n}: PriceCardRowProps) => {\n return (\n <CardRow\n isError={isError}\n isLoading={isLoading || (price === undefined && !isError)}\n label={label}\n >\n <Price\n arrowPosition={ArrowPosition.left}\n movementIndicator=\"arrow\"\n priceMovement={priceMovement}\n >\n <span>{price?.toFixed(displayPrecision)}</span>\n </Price>\n </CardRow>\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAAkC,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAW3B,MAAMG,YAAY,GAAGC,IAAA,IAOH;EAAA,IAPI;IAC3BC,aAAa;IACbC,KAAK;IACLC,gBAAgB;IAChBC,SAAS;IACTC,OAAO;IACPC;EACiB,CAAC,GAAAN,IAAA;EAClB,OACET,MAAA,CAAAO,OAAA,CAAAS,aAAA,CAACZ,KAAA,CAAAa,OAAO;IACNH,OAAO,EAAEA,OAAQ;IACjBD,SAAS,EAAEA,SAAS,IAAKF,KAAK,KAAKO,SAAS,IAAI,CAACJ,OAAS;IAC1DC,KAAK,EAAEA;EAAM,GAEbf,MAAA,CAAAO,OAAA,CAAAS,aAAA,CAACb,MAAA,CAAAgB,KAAK;IACJC,aAAa,EAAEC,oBAAa,CAACC,IAAK;IAClCC,iBAAiB,EAAC,OAAO;IACzBb,aAAa,EAAEA;EAAc,GAE7BV,MAAA,CAAAO,OAAA,CAAAS,aAAA,eAAOL,KAAK,EAAEa,OAAO,CAACZ,gBAAgB,CAAQ,CACzC,CACA,CAAC;AAEd,CAAC;AAACa,OAAA,CAAAjB,YAAA,GAAAA,YAAA","ignoreList":[]}
@@ -1,25 +1,33 @@
1
- import React from 'react';
2
- import { DataRecordType } from '../../../types';
3
- import { Sentiment, SentimentHeight } from '../../Sentiment';
4
- import { CardRow } from '../Card';
5
- export const SentimentCardRow = _ref => {
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SentimentCardRow = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _types = require("../../../types");
9
+ var _Sentiment = require("../../Sentiment");
10
+ var _Card = require("../Card");
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
+ const SentimentCardRow = _ref => {
6
13
  let {
7
14
  label,
8
15
  isLoading,
9
16
  sentiment
10
17
  } = _ref;
11
- return React.createElement(CardRow, {
12
- key: DataRecordType.SENTIMENT,
18
+ return _react.default.createElement(_Card.CardRow, {
19
+ key: _types.DataRecordType.SENTIMENT,
13
20
  withoutContentLoading: true,
14
21
  isLoading: isLoading || sentiment === undefined,
15
22
  label: label
16
- }, React.createElement("div", {
23
+ }, _react.default.createElement("div", {
17
24
  className: "lw-w-full lw-max-w-[200px]"
18
- }, React.createElement(Sentiment, {
25
+ }, _react.default.createElement(_Sentiment.Sentiment, {
19
26
  compactMode: true,
20
- height: SentimentHeight.sm,
27
+ height: _Sentiment.SentimentHeight.sm,
21
28
  isLoading: isLoading || sentiment === undefined,
22
29
  sentiment: sentiment
23
30
  })));
24
31
  };
32
+ exports.SentimentCardRow = SentimentCardRow;
25
33
  //# sourceMappingURL=SentimentCardRow.js.map