@ntbjs/react-components 2.0.0-rc.29 → 2.0.0-rc.30

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 (279) hide show
  1. package/build/{_rollupPluginBabelHelpers-c245b26a.js → _virtual/_rollupPluginBabelHelpers.js} +2 -1
  2. package/build/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
  3. package/build/{Alert-e6847a22.js → data/Alert/Alert.js} +5 -55
  4. package/build/data/Alert/Alert.js.map +1 -0
  5. package/build/data/Alert/Alert.styled.js +56 -0
  6. package/build/data/Alert/Alert.styled.js.map +1 -0
  7. package/build/data/Alert/index.js +2 -6
  8. package/build/data/Alert/index.js.map +1 -0
  9. package/build/data/Badge/Badge.js +87 -0
  10. package/build/data/Badge/Badge.js.map +1 -0
  11. package/build/{Badge-d93586a9.js → data/Badge/Badge.styled.js} +4 -85
  12. package/build/data/Badge/Badge.styled.js.map +1 -0
  13. package/build/data/Badge/index.js +2 -5
  14. package/build/data/Badge/index.js.map +1 -0
  15. package/build/data/Popover/Popover.js +93 -0
  16. package/build/data/Popover/Popover.js.map +1 -0
  17. package/build/{Popover-20050b91.js → data/Popover/Popover.styled.js} +6 -92
  18. package/build/data/Popover/Popover.styled.js.map +1 -0
  19. package/build/data/Popover/index.js +2 -10
  20. package/build/data/Popover/index.js.map +1 -0
  21. package/build/{Tab-04d435c3.js → data/Tab/Tab.js} +5 -12
  22. package/build/data/Tab/Tab.js.map +1 -0
  23. package/build/data/Tab/Tab.styled.js +13 -0
  24. package/build/data/Tab/Tab.styled.js.map +1 -0
  25. package/build/data/Tab/index.js +2 -5
  26. package/build/data/Tab/index.js.map +1 -0
  27. package/build/{Tabs-74d1ea8a.js → data/Tabs/Tabs.js} +6 -74
  28. package/build/data/Tabs/Tabs.js.map +1 -0
  29. package/build/data/Tabs/Tabs.styled.js +74 -0
  30. package/build/data/Tabs/Tabs.styled.js.map +1 -0
  31. package/build/data/Tabs/index.js +2 -7
  32. package/build/data/Tabs/index.js.map +1 -0
  33. package/build/{Tooltip-c1d1199e.js → data/Tooltip/Tooltip.js} +5 -26
  34. package/build/data/Tooltip/Tooltip.js.map +1 -0
  35. package/build/data/Tooltip/Tooltip.styled.js +28 -0
  36. package/build/data/Tooltip/Tooltip.styled.js.map +1 -0
  37. package/build/data/Tooltip/index.js +2 -7
  38. package/build/data/Tooltip/index.js.map +1 -0
  39. package/build/data/VerificationStatusIcon/VerificationStatusIcon.js +36 -0
  40. package/build/data/VerificationStatusIcon/VerificationStatusIcon.js.map +1 -0
  41. package/build/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +53 -0
  42. package/build/data/VerificationStatusIcon/VerificationStatusIcon.styled.js.map +1 -0
  43. package/build/data/index.js +8 -16
  44. package/build/data/index.js.map +1 -0
  45. package/build/hooks/useEventListner.js +21 -0
  46. package/build/hooks/useEventListner.js.map +1 -0
  47. package/build/hooks/useIsomorphicLayoutEffect.js +6 -0
  48. package/build/hooks/useIsomorphicLayoutEffect.js.map +1 -0
  49. package/build/hooks/useOnClickOutside.js +14 -0
  50. package/build/hooks/useOnClickOutside.js.map +1 -0
  51. package/build/icons/arrow-back.svg.js +16 -0
  52. package/build/icons/arrow-back.svg.js.map +1 -0
  53. package/build/{arrow-forward-ad12c5f3.js → icons/arrow-forward.svg.js} +2 -1
  54. package/build/icons/arrow-forward.svg.js.map +1 -0
  55. package/build/icons/check-rectangle-filled.svg.js +16 -0
  56. package/build/icons/check-rectangle-filled.svg.js.map +1 -0
  57. package/build/{close-a5d37608.js → icons/close.svg.js} +2 -1
  58. package/build/icons/close.svg.js.map +1 -0
  59. package/build/{edit-note-283a0e15.js → icons/edit-note.svg.js} +2 -1
  60. package/build/icons/edit-note.svg.js.map +1 -0
  61. package/build/{expand-more-c5523c46.js → icons/expand-more.svg.js} +2 -1
  62. package/build/icons/expand-more.svg.js.map +1 -0
  63. package/build/icons/headset.svg.js +16 -0
  64. package/build/icons/headset.svg.js.map +1 -0
  65. package/build/icons/layers.svg.js +16 -0
  66. package/build/icons/layers.svg.js.map +1 -0
  67. package/build/icons/link.svg.js +16 -0
  68. package/build/icons/link.svg.js.map +1 -0
  69. package/build/icons/play.svg.js +16 -0
  70. package/build/icons/play.svg.js.map +1 -0
  71. package/build/icons/search.svg.js +16 -0
  72. package/build/icons/search.svg.js.map +1 -0
  73. package/build/icons/star-filled.svg.js +16 -0
  74. package/build/icons/star-filled.svg.js.map +1 -0
  75. package/build/icons/star.svg.js +16 -0
  76. package/build/icons/star.svg.js.map +1 -0
  77. package/build/icons/triangle-right.svg.js +16 -0
  78. package/build/icons/triangle-right.svg.js.map +1 -0
  79. package/build/icons/verification.svg.js +16 -0
  80. package/build/icons/verification.svg.js.map +1 -0
  81. package/build/{warning-circle-24f3efcd.js → icons/warning-circle.svg.js} +2 -1
  82. package/build/icons/warning-circle.svg.js.map +1 -0
  83. package/build/index.js +5 -0
  84. package/build/index.js.map +1 -0
  85. package/build/inputs/ActionButton/ActionButton.js +36 -0
  86. package/build/inputs/ActionButton/ActionButton.js.map +1 -0
  87. package/build/{ActionButton-4db754c3.js → inputs/ActionButton/ActionButton.styled.js} +4 -34
  88. package/build/inputs/ActionButton/ActionButton.styled.js.map +1 -0
  89. package/build/inputs/ActionButton/index.js +2 -6
  90. package/build/inputs/ActionButton/index.js.map +1 -0
  91. package/build/inputs/Button/Button.js +188 -0
  92. package/build/inputs/Button/Button.js.map +1 -0
  93. package/build/{Button-73eb8516.js → inputs/Button/Button.styled.js} +4 -186
  94. package/build/inputs/Button/Button.styled.js.map +1 -0
  95. package/build/inputs/Button/index.js +2 -13
  96. package/build/inputs/Button/index.js.map +1 -0
  97. package/build/inputs/Checkbox/Checkbox.js +97 -0
  98. package/build/inputs/Checkbox/Checkbox.js.map +1 -0
  99. package/build/inputs/Checkbox/Checkbox.styled.js +122 -0
  100. package/build/inputs/Checkbox/Checkbox.styled.js.map +1 -0
  101. package/build/inputs/Checkbox/index.js +2 -6
  102. package/build/inputs/Checkbox/index.js.map +1 -0
  103. package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +267 -0
  104. package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js.map +1 -0
  105. package/build/{CompactAutocompleteSelect-52c49513.js → inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js} +6 -267
  106. package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js.map +1 -0
  107. package/build/inputs/CompactAutocompleteSelect/index.js +2 -23
  108. package/build/inputs/CompactAutocompleteSelect/index.js.map +1 -0
  109. package/build/inputs/CompactStarRating/CompactStarRating.js +177 -0
  110. package/build/inputs/CompactStarRating/CompactStarRating.js.map +1 -0
  111. package/build/inputs/CompactStarRating/CompactStarRating.styled.js +217 -0
  112. package/build/inputs/CompactStarRating/CompactStarRating.styled.js.map +1 -0
  113. package/build/inputs/CompactStarRating/index.js +2 -17
  114. package/build/inputs/CompactStarRating/index.js.map +1 -0
  115. package/build/inputs/CompactTextInput/CompactTextInput.js +184 -0
  116. package/build/inputs/CompactTextInput/CompactTextInput.js.map +1 -0
  117. package/build/{CompactTextInput-42ca5d42.js → inputs/CompactTextInput/CompactTextInput.styled.js} +4 -194
  118. package/build/inputs/CompactTextInput/CompactTextInput.styled.js.map +1 -0
  119. package/build/inputs/CompactTextInput/index.js +2 -19
  120. package/build/inputs/CompactTextInput/index.js.map +1 -0
  121. package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +207 -0
  122. package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js.map +1 -0
  123. package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +66 -0
  124. package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js.map +1 -0
  125. package/build/inputs/MultiLevelCheckbox/index.js +3 -0
  126. package/build/inputs/MultiLevelCheckbox/index.js.map +1 -0
  127. package/build/inputs/MultiLevelCheckbox/types.js +27 -0
  128. package/build/inputs/MultiLevelCheckbox/types.js.map +1 -0
  129. package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +184 -26
  130. package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js.map +1 -0
  131. package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +93 -0
  132. package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js.map +1 -0
  133. package/build/inputs/MultiLevelCheckboxSelect/index.js +2 -0
  134. package/build/inputs/MultiLevelCheckboxSelect/index.js.map +1 -0
  135. package/build/{MultiSelect-9f497e62.js → inputs/MultiSelect/MultiSelect.js} +6 -223
  136. package/build/inputs/MultiSelect/MultiSelect.js.map +1 -0
  137. package/build/inputs/MultiSelect/MultiSelect.styled.js +224 -0
  138. package/build/inputs/MultiSelect/MultiSelect.styled.js.map +1 -0
  139. package/build/inputs/MultiSelect/index.js +2 -10
  140. package/build/inputs/MultiSelect/index.js.map +1 -0
  141. package/build/inputs/Radio/Radio.js +60 -0
  142. package/build/inputs/Radio/Radio.js.map +1 -0
  143. package/build/{Radio-73ca3ae2.js → inputs/Radio/Radio.styled.js} +4 -58
  144. package/build/inputs/Radio/Radio.styled.js.map +1 -0
  145. package/build/inputs/Radio/index.js +2 -7
  146. package/build/inputs/Radio/index.js.map +1 -0
  147. package/build/inputs/Switch/Switch.js +64 -0
  148. package/build/inputs/Switch/Switch.js.map +1 -0
  149. package/build/{Switch-ecf3122b.js → inputs/Switch/Switch.styled.js} +4 -62
  150. package/build/inputs/Switch/Switch.styled.js.map +1 -0
  151. package/build/inputs/Switch/index.js +2 -6
  152. package/build/inputs/Switch/index.js.map +1 -0
  153. package/build/inputs/TextArea/TextArea.js +178 -0
  154. package/build/inputs/TextArea/TextArea.js.map +1 -0
  155. package/build/{TextArea-1e5b9201.js → inputs/TextArea/TextArea.styled.js} +3 -175
  156. package/build/inputs/TextArea/TextArea.styled.js.map +1 -0
  157. package/build/inputs/TextArea/index.js +2 -20
  158. package/build/inputs/TextArea/index.js.map +1 -0
  159. package/build/inputs/TextInput/TextInput.js +139 -0
  160. package/build/inputs/TextInput/TextInput.js.map +1 -0
  161. package/build/{TextInput-fab35842.js → inputs/TextInput/TextInput.styled.js} +4 -137
  162. package/build/inputs/TextInput/TextInput.styled.js.map +1 -0
  163. package/build/inputs/TextInput/index.js +2 -9
  164. package/build/inputs/TextInput/index.js.map +1 -0
  165. package/build/inputs/index.js +15 -40
  166. package/build/inputs/index.js.map +1 -0
  167. package/build/{InputGroup-1294d190.js → layout/InputGroup/InputGroup.js} +5 -8
  168. package/build/layout/InputGroup/InputGroup.js.map +1 -0
  169. package/build/layout/InputGroup/InputGroup.styled.js +9 -0
  170. package/build/layout/InputGroup/InputGroup.styled.js.map +1 -0
  171. package/build/layout/SectionSeparator/SectionSeparator.js +23 -0
  172. package/build/layout/SectionSeparator/SectionSeparator.js.map +1 -0
  173. package/build/layout/SectionSeparator/SectionSeparator.styled.js +14 -0
  174. package/build/layout/SectionSeparator/SectionSeparator.styled.js.map +1 -0
  175. package/build/layout/SectionSeparator/index.js +2 -5
  176. package/build/layout/SectionSeparator/index.js.map +1 -0
  177. package/build/layout/index.js +3 -6
  178. package/build/layout/index.js.map +1 -0
  179. package/build/ssr/index.js +1 -0
  180. package/build/ssr/index.js.map +1 -0
  181. package/build/styles/utils/colors.scss.js +4 -0
  182. package/build/styles/utils/colors.scss.js.map +1 -0
  183. package/build/utils/dateTime.js +17 -0
  184. package/build/utils/dateTime.js.map +1 -0
  185. package/build/utils/defaultTheme.js +44 -0
  186. package/build/utils/defaultTheme.js.map +1 -0
  187. package/build/{AssetAction-98d76ce0.js → widgets/AssetAction/AssetAction.js} +6 -40
  188. package/build/widgets/AssetAction/AssetAction.js.map +1 -0
  189. package/build/widgets/AssetAction/AssetAction.styled.js +41 -0
  190. package/build/widgets/AssetAction/AssetAction.styled.js.map +1 -0
  191. package/build/widgets/AssetAction/index.js +2 -7
  192. package/build/widgets/AssetAction/index.js.map +1 -0
  193. package/build/{AssetActionsBase-9e4c0735.js → widgets/AssetActionsBase/AssetActionsBase.js} +6 -15
  194. package/build/widgets/AssetActionsBase/AssetActionsBase.js.map +1 -0
  195. package/build/widgets/AssetActionsBase/AssetActionsBase.styled.js +15 -0
  196. package/build/widgets/AssetActionsBase/AssetActionsBase.styled.js.map +1 -0
  197. package/build/widgets/AssetActionsBase/index.js +2 -8
  198. package/build/widgets/AssetActionsBase/index.js.map +1 -0
  199. package/build/widgets/AssetGallery/AssetGallery.js +99 -0
  200. package/build/widgets/AssetGallery/AssetGallery.js.map +1 -0
  201. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +385 -0
  202. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js.map +1 -0
  203. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +30 -0
  204. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js.map +1 -0
  205. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +401 -0
  206. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js.map +1 -0
  207. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +329 -0
  208. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js.map +1 -0
  209. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +409 -0
  210. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js.map +1 -0
  211. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +280 -0
  212. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js.map +1 -0
  213. package/build/widgets/AssetGallery/asset.propType.js +54 -0
  214. package/build/widgets/AssetGallery/asset.propType.js.map +1 -0
  215. package/build/widgets/AssetGallery/index.js +2 -48
  216. package/build/widgets/AssetGallery/index.js.map +1 -0
  217. package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +44 -0
  218. package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js.map +1 -0
  219. package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +77 -0
  220. package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js.map +1 -0
  221. package/build/widgets/AssetPreview/AssetPreviewTopBar/index.js +2 -6
  222. package/build/widgets/AssetPreview/AssetPreviewTopBar/index.js.map +1 -0
  223. package/build/{ContextMenu-0f7134e4.js → widgets/ContextMenu/ContextMenu.js} +5 -9
  224. package/build/widgets/ContextMenu/ContextMenu.js.map +1 -0
  225. package/build/widgets/ContextMenu/ContextMenu.styled.js +10 -0
  226. package/build/widgets/ContextMenu/ContextMenu.styled.js.map +1 -0
  227. package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +44 -0
  228. package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js.map +1 -0
  229. package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +77 -0
  230. package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js.map +1 -0
  231. package/build/widgets/ContextMenu/ContextMenuItem/index.js +2 -5
  232. package/build/widgets/ContextMenu/ContextMenuItem/index.js.map +1 -0
  233. package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +22 -0
  234. package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js.map +1 -0
  235. package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +21 -0
  236. package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js.map +1 -0
  237. package/build/widgets/ContextMenu/ContextMenuItemsGroup/index.js +2 -37
  238. package/build/widgets/ContextMenu/ContextMenuItemsGroup/index.js.map +1 -0
  239. package/build/widgets/ContextMenu/index.js +2 -5
  240. package/build/widgets/ContextMenu/index.js.map +1 -0
  241. package/build/widgets/InfoCard/InfoCard.js +40 -0
  242. package/build/widgets/InfoCard/InfoCard.js.map +1 -0
  243. package/build/{InfoCard-c98b6f5a.js → widgets/InfoCard/InfoCard.styled.js} +5 -38
  244. package/build/widgets/InfoCard/InfoCard.styled.js.map +1 -0
  245. package/build/widgets/InfoCard/index.js +2 -6
  246. package/build/widgets/InfoCard/index.js.map +1 -0
  247. package/build/{Instructions-bfd28cea.js → widgets/Instructions/Instructions.js} +8 -34
  248. package/build/widgets/Instructions/Instructions.js.map +1 -0
  249. package/build/widgets/Instructions/Instructions.styled.js +32 -0
  250. package/build/widgets/Instructions/Instructions.styled.js.map +1 -0
  251. package/build/widgets/Instructions/index.js +2 -28
  252. package/build/widgets/Instructions/index.js.map +1 -0
  253. package/build/widgets/ProgressBar/ProgressBar.js +72 -0
  254. package/build/widgets/ProgressBar/ProgressBar.js.map +1 -0
  255. package/build/{ProgressBar-bc4a4a7e.js → widgets/ProgressBar/ProgressBar.styled.js} +5 -70
  256. package/build/widgets/ProgressBar/ProgressBar.styled.js.map +1 -0
  257. package/build/widgets/ProgressBar/index.js +2 -6
  258. package/build/widgets/ProgressBar/index.js.map +1 -0
  259. package/build/widgets/SummaryCard/SummaryCard.js +92 -0
  260. package/build/widgets/SummaryCard/SummaryCard.js.map +1 -0
  261. package/build/widgets/SummaryCard/SummaryCard.styled.js +137 -0
  262. package/build/widgets/SummaryCard/SummaryCard.styled.js.map +1 -0
  263. package/build/widgets/SummaryCard/index.js +2 -19
  264. package/build/widgets/SummaryCard/index.js.map +1 -0
  265. package/build/widgets/index.js +12 -53
  266. package/build/widgets/index.js.map +1 -0
  267. package/package.json +5 -2
  268. package/build/AssetGallery-63f721ec.js +0 -1981
  269. package/build/AssetPreviewTopBar-acd6353d.js +0 -127
  270. package/build/Checkbox-4a5fd716.js +0 -213
  271. package/build/CompactStarRating-9af2f427.js +0 -411
  272. package/build/ContextMenuItem-ea411141.js +0 -127
  273. package/build/MultiLevelCheckboxSelect-d8044c88.js +0 -604
  274. package/build/SectionSeparator-f47760a2.js +0 -31
  275. package/build/SummaryCard-24040650.js +0 -223
  276. package/build/VerificationStatusIcon-49cb1c1b.js +0 -95
  277. package/build/defaultTheme-1bcc2541.js +0 -1178
  278. package/build/layout/InputGroup/index.js +0 -5
  279. package/build/shift-away-subtle-0dd94a03.js +0 -7
@@ -1,223 +0,0 @@
1
- import { _ as _extends } from './_rollupPluginBabelHelpers-c245b26a.js';
2
- import { a as applyDefaultTheme, P as PropTypes } from './defaultTheme-1bcc2541.js';
3
- import React__default from 'react';
4
- import { S as SvgWarningCircle } from './warning-circle-24f3efcd.js';
5
- import { A as Alert } from './Alert-e6847a22.js';
6
- import './Badge-d93586a9.js';
7
- import './Popover-20050b91.js';
8
- import './Tab-04d435c3.js';
9
- import './Tabs-74d1ea8a.js';
10
- import './Tooltip-c1d1199e.js';
11
- import './VerificationStatusIcon-49cb1c1b.js';
12
- import styled, { css } from 'styled-components';
13
- import { FloatingArrow } from '@floating-ui/react';
14
-
15
- const shouldForwardProp = prop => {
16
- return prop !== 'theme' && !prop.startsWith('$');
17
- };
18
- const SummaryCard$1 = styled.div.withConfig({
19
- shouldForwardProp
20
- }).attrs(applyDefaultTheme)`
21
- display: flex;
22
- flex-direction: column;
23
- border-radius: 4px;
24
- width: ${props => props.width ? `${props.width}px` : '100%'};
25
- ${props => props.view === 'compact' ? props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('white')) : 'background: transparent'};
26
-
27
- ${props => props.$useBorder ? props.theme.themeProp('border', `1px solid ${props.theme.getColor('gray-500')}`, `1px solid ${props.theme.getColor('gray-300')}`) : null}
28
- `;
29
- const Gutter = styled.div.withConfig({
30
- shouldForwardProp
31
- }).attrs(applyDefaultTheme)`
32
- ${props => {
33
- if (props.renderAsMargin) {
34
- return css`
35
- margin-bottom: ${props.$gutter || 8}px;
36
- `;
37
- } else {
38
- return css`
39
- padding-bottom: ${props.$gutter || 8}px;
40
- `;
41
- }
42
- }}
43
- padding-bottom: ${props => props.$gutter || 8}px;
44
- `;
45
- const Header = styled.div.withConfig({
46
- shouldForwardProp
47
- }).attrs(applyDefaultTheme)`
48
- display: flex;
49
- align-items: center;
50
- justify-content: space-between;
51
- padding: 0 16px;
52
- `;
53
- const HeaderLeft = styled.div.withConfig({
54
- shouldForwardProp
55
- }).attrs(applyDefaultTheme)`
56
- display: flex;
57
- align-items: center;
58
- justify-content: flex-start;
59
-
60
- > * {
61
- margin-right: 4px;
62
- }
63
- `;
64
- const HeaderRight = styled.div.withConfig({
65
- shouldForwardProp
66
- }).attrs(applyDefaultTheme)`
67
- display: flex;
68
- align-items: center;
69
- justify-content: flex-end;
70
-
71
- > * {
72
- margin-left: 4px;
73
- }
74
- `;
75
- const Title = styled.span.withConfig({
76
- shouldForwardProp
77
- }).attrs(applyDefaultTheme)`
78
- display: inline-block;
79
- padding: 0 16px;
80
- font: normal normal 500 14px/19px Roboto;
81
- letter-spacing: 0.28px;
82
- display: -webkit-box;
83
- -webkit-line-clamp: 1;
84
- -webkit-box-orient: vertical;
85
- overflow: hidden;
86
- text-overflow: ellipsis;
87
- box-sizing: border-box;
88
-
89
- ${props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700'))};
90
- `;
91
- const Description = styled.span.withConfig({
92
- shouldForwardProp
93
- }).attrs(applyDefaultTheme)`
94
- padding: 0 16px;
95
- text-align: left;
96
- font: normal normal normal 12px/16px Roboto;
97
- letter-spacing: 0.24px;
98
- display: -webkit-box;
99
- -webkit-line-clamp: 3;
100
- -webkit-box-orient: vertical;
101
- overflow: hidden;
102
- text-overflow: ellipsis;
103
- box-sizing: border-box;
104
-
105
- ${props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700'))};
106
- `;
107
- const Instruction = styled.div.withConfig({
108
- shouldForwardProp
109
- }).attrs(applyDefaultTheme)``;
110
- const Footer = styled.div.withConfig({
111
- shouldForwardProp
112
- }).attrs(applyDefaultTheme)`
113
- display: flex;
114
- align-items: center;
115
- justify-content: space-between;
116
- padding: 0 16px;
117
- `;
118
- const FooterLeft = styled.div.withConfig({
119
- shouldForwardProp
120
- }).attrs(applyDefaultTheme)`
121
- display: flex;
122
- align-items: center;
123
- justify-content: flex-start;
124
-
125
- > * {
126
- margin-right: 4px;
127
- }
128
- `;
129
- const FooterRight = styled.div.withConfig({
130
- shouldForwardProp
131
- }).attrs(applyDefaultTheme)`
132
- display: flex;
133
- align-items: center;
134
- justify-content: flex-end;
135
-
136
- > * {
137
- margin-left: 4px;
138
- }
139
- `;
140
- styled(FloatingArrow).withConfig({
141
- shouldForwardProp
142
- }).attrs(applyDefaultTheme)`
143
- ${props => props.theme.themeProp('fill', props.theme.getColor('gray-700'), props.theme.getColor('white'))}
144
- `;
145
-
146
- const SummaryCard = React__default.forwardRef(function AssetSummaryCard({
147
- activeSummaryCard,
148
- title,
149
- description,
150
- instructions,
151
- instructionsType,
152
- headerLeft,
153
- headerRight,
154
- footerLeft,
155
- footerRight,
156
- width,
157
- useBorder,
158
- view,
159
- ...props
160
- }, forwardedRef) {
161
- const shouldRenderInstructions = !!instructions;
162
- const shouldRenderHeader = !!headerLeft || !!headerRight;
163
- const shouldRenderFooter = !!footerLeft || !!footerRight;
164
- const shouldAddGutterAfterInstructions = shouldRenderInstructions && shouldRenderFooter;
165
- const shouldAddGutterAfterTitle = !!title && (!!description || !!instructions || shouldRenderFooter);
166
- if (!activeSummaryCard) return null;
167
- return React__default.createElement(SummaryCard$1, _extends({
168
- ref: forwardedRef,
169
- width: width,
170
- useBorder: useBorder
171
- }, props, {
172
- view: view
173
- }), shouldRenderHeader && React__default.createElement(React__default.Fragment, null, React__default.createElement(Gutter, {
174
- gutter: 8
175
- }), React__default.createElement(Header, null, React__default.createElement(HeaderLeft, null, headerLeft), React__default.createElement(HeaderRight, null, headerRight))), React__default.createElement(Gutter, {
176
- gutter: shouldRenderHeader ? 8 : 16
177
- }), title && React__default.createElement(Title, null, title), shouldAddGutterAfterTitle && React__default.createElement(Gutter, {
178
- gutter: 4
179
- }), description && React__default.createElement(Description, null, description), React__default.createElement(Gutter, {
180
- gutter: 16
181
- }), shouldRenderInstructions && React__default.createElement(Instruction, null, React__default.createElement(Alert, {
182
- icon: React__default.createElement(SvgWarningCircle, null),
183
- alertMessage: instructions,
184
- type: instructionsType,
185
- fontSize: 12,
186
- verticalPadding: 12,
187
- horizontalPadding: 16,
188
- width: width,
189
- lineClamp: 1
190
- })), shouldAddGutterAfterInstructions && React__default.createElement(Gutter, {
191
- gutter: 16
192
- }), shouldRenderFooter && React__default.createElement(Footer, null, React__default.createElement(FooterLeft, null, footerLeft), React__default.createElement(FooterRight, null, footerRight)), shouldRenderFooter && React__default.createElement(Gutter, {
193
- gutter: 16
194
- }));
195
- });
196
- SummaryCard.propTypes = process.env.NODE_ENV !== "production" ? {
197
- activeSummaryCard: PropTypes.bool,
198
- title: PropTypes.string,
199
- description: PropTypes.string,
200
- instructions: PropTypes.string,
201
- instructionsType: PropTypes.oneOf(['warning', 'error', 'info']),
202
- headerLeft: PropTypes.node,
203
- headerRight: PropTypes.node,
204
- footerLeft: PropTypes.node,
205
- footerRight: PropTypes.node,
206
- width: PropTypes.number,
207
- useBorder: PropTypes.bool,
208
- view: PropTypes.string
209
- } : {};
210
- SummaryCard.defaultProps = {
211
- title: '',
212
- description: '',
213
- instructions: '',
214
- instructionsType: 'info',
215
- headerLeft: null,
216
- headerRight: null,
217
- footerLeft: null,
218
- footerRight: null,
219
- useBorder: false,
220
- activeSummaryCard: false
221
- };
222
-
223
- export { SummaryCard as S };
@@ -1,95 +0,0 @@
1
- import { _ as _extends$1 } from './_rollupPluginBabelHelpers-c245b26a.js';
2
- import * as React from 'react';
3
- import React__default from 'react';
4
- import { a as applyDefaultTheme, P as PropTypes } from './defaultTheme-1bcc2541.js';
5
- import styled, { css } from 'styled-components';
6
-
7
- const VerificationIconWrapper = styled.div.attrs(applyDefaultTheme)`
8
- ${props => props.background && css`
9
- background-color: #000 !important;
10
- width: fit-content;
11
- padding: 6px 14px 6px 9px;
12
- border-radius: 15px;
13
- }
14
- `};
15
- `;
16
- const VerificationStatusIcon$1 = styled.div.attrs(applyDefaultTheme)`
17
- display: flex;
18
- position: relative;
19
- font: normal normal normal 12px/16px Roboto;
20
- ${props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-700'))};
21
-
22
- ${props => props.background && props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-100'))};
23
-
24
- svg {
25
- height: ${props => props.iconHeight ?? 15}px;
26
- }
27
- `;
28
- const VerificationStatusColor = styled.div.attrs(applyDefaultTheme)`
29
- position: absolute;
30
- bottom: 0;
31
- left: ${props => (props.iconHeight ?? 15) * 2 / 3}px;
32
- width: ${props => (props.iconHeight ?? 15) * 2 / 3}px;
33
- height: ${props => (props.iconHeight ?? 15) * 2 / 3}px;
34
- border-radius: 50%;
35
- ${props => {
36
- let darkThemeColor = props.theme.getColor('gray-100');
37
- let lightThemeColor = props.theme.getColor('gray-500');
38
- if (props.status === 'verified') {
39
- darkThemeColor = props.theme.getColor('emerald-500');
40
- lightThemeColor = props.theme.getColor('emerald-500');
41
- } else if (props.status === 'pending') {
42
- darkThemeColor = props.theme.getColor('signal-yellow-500');
43
- lightThemeColor = props.theme.getColor('signal-yellow-500');
44
- } else if (props.status === 'rejected') {
45
- darkThemeColor = props.theme.getColor('red-600');
46
- lightThemeColor = props.theme.getColor('red-600');
47
- } else if (props.status === 'mixed') {
48
- darkThemeColor = '#008CDB';
49
- lightThemeColor = '#008CDB';
50
- }
51
- return props.theme.themeProp('background-color', darkThemeColor, lightThemeColor);
52
- }};
53
- `;
54
-
55
- var _path;
56
- 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); }
57
- function SvgVerification(props) {
58
- return /*#__PURE__*/React.createElement("svg", _extends({
59
- xmlns: "http://www.w3.org/2000/svg",
60
- viewBox: "-2.5 0 24 24"
61
- }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
62
- fill: "currentColor",
63
- d: "M9.3 12.662q-1.698 0-2.864-1.166T5.27 8.632q0-1.697 1.166-2.864T9.3 4.602q1.698 0 2.864 1.166t1.166 2.864q0 1.698-1.166 2.864T9.3 12.662zm0-1.86q.925 0 1.548-.622.622-.622.622-1.548t-.622-1.547q-.623-.623-1.548-.623t-1.548.623q-.622.622-.622 1.547t.622 1.548q.623.622 1.548.622zm0 12.686q-4.023-1.097-6.661-4.735Q0 15.113 0 10.616V3.482L9.3 0l9.3 3.482v7.134q0 4.498-2.639 8.137-2.638 3.639-6.661 4.735zm0-11.744zm0-9.765L1.86 4.757v5.86q0 1.769.507 3.421.507 1.653 1.408 3.083 1.254-.639 2.626-.999 1.373-.36 2.899-.36t2.898.36q1.373.36 2.627 1 .901-1.431 1.408-3.084.507-1.652.507-3.422V4.757L9.3 1.98zm0 15.643q-1.2 0-2.307.26-1.108.26-2.093.73.923 1.025 2.03 1.773 1.109.747 2.37 1.143 1.262-.395 2.363-1.143 1.102-.748 2.025-1.773-.985-.47-2.087-.73-1.102-.26-2.301-.26z"
64
- })));
65
- }
66
-
67
- const VerificationStatusIcon = React__default.forwardRef(function VerificationStatusIcon({
68
- status,
69
- iconHeight,
70
- background,
71
- ...props
72
- }, forwardedRef) {
73
- return React__default.createElement(VerificationIconWrapper, {
74
- background: background
75
- }, React__default.createElement(VerificationStatusIcon$1, _extends$1({
76
- iconHeight: iconHeight,
77
- background: background,
78
- ref: forwardedRef
79
- }, props), React__default.createElement(SvgVerification, null), React__default.createElement(VerificationStatusColor, {
80
- iconHeight: iconHeight,
81
- status: status,
82
- background: background
83
- })));
84
- });
85
- VerificationStatusIcon.propTypes = process.env.NODE_ENV !== "production" ? {
86
- status: PropTypes.oneOf(['verified', 'pending', 'rejected', 'mixed']).isRequired,
87
- iconHeight: PropTypes.number,
88
- background: PropTypes.bool
89
- } : {};
90
- VerificationStatusIcon.defaultProps = {
91
- iconHeight: 15,
92
- background: false
93
- };
94
-
95
- export { VerificationStatusIcon as V };