@aragon/gov-ui-kit 1.0.49

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 (407) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +36 -0
  3. package/build.css +5 -0
  4. package/dist/index.es.js +2 -0
  5. package/dist/index.es.js.map +1 -0
  6. package/dist/types/src/core/assets/copy/coreCopy.d.ts +31 -0
  7. package/dist/types/src/core/assets/copy/index.d.ts +1 -0
  8. package/dist/types/src/core/assets/index.d.ts +1 -0
  9. package/dist/types/src/core/components/accordion/accordionContainer/accordionContainer.d.ts +22 -0
  10. package/dist/types/src/core/components/accordion/accordionContainer/index.d.ts +1 -0
  11. package/dist/types/src/core/components/accordion/accordionItem/accordionItem.d.ts +12 -0
  12. package/dist/types/src/core/components/accordion/accordionItem/index.d.ts +1 -0
  13. package/dist/types/src/core/components/accordion/accordionItemContent/accordionItemContent.d.ts +8 -0
  14. package/dist/types/src/core/components/accordion/accordionItemContent/index.d.ts +1 -0
  15. package/dist/types/src/core/components/accordion/accordionItemHeader/accordionItemHeader.d.ts +4 -0
  16. package/dist/types/src/core/components/accordion/accordionItemHeader/index.d.ts +1 -0
  17. package/dist/types/src/core/components/accordion/index.d.ts +10 -0
  18. package/dist/types/src/core/components/alerts/alertCard/alertCard.d.ts +27 -0
  19. package/dist/types/src/core/components/alerts/alertCard/index.d.ts +1 -0
  20. package/dist/types/src/core/components/alerts/alertInline/alertInline.d.ts +16 -0
  21. package/dist/types/src/core/components/alerts/alertInline/index.d.ts +1 -0
  22. package/dist/types/src/core/components/alerts/alertUtils.d.ts +3 -0
  23. package/dist/types/src/core/components/alerts/index.d.ts +3 -0
  24. package/dist/types/src/core/components/avatars/avatar/avatar.d.ts +23 -0
  25. package/dist/types/src/core/components/avatars/avatar/index.d.ts +1 -0
  26. package/dist/types/src/core/components/avatars/avatarBase/avatarBase.d.ts +4 -0
  27. package/dist/types/src/core/components/avatars/avatarBase/index.d.ts +1 -0
  28. package/dist/types/src/core/components/avatars/avatarIcon/avatarIcon.d.ts +31 -0
  29. package/dist/types/src/core/components/avatars/avatarIcon/index.d.ts +1 -0
  30. package/dist/types/src/core/components/avatars/index.d.ts +3 -0
  31. package/dist/types/src/core/components/breadcrumbs/breadcrumbs.d.ts +25 -0
  32. package/dist/types/src/core/components/breadcrumbs/index.d.ts +1 -0
  33. package/dist/types/src/core/components/button/button.api.d.ts +42 -0
  34. package/dist/types/src/core/components/button/button.d.ts +2 -0
  35. package/dist/types/src/core/components/button/index.d.ts +2 -0
  36. package/dist/types/src/core/components/cards/card/card.d.ts +4 -0
  37. package/dist/types/src/core/components/cards/card/index.d.ts +1 -0
  38. package/dist/types/src/core/components/cards/cardCollapsible/cardCollapsible.d.ts +8 -0
  39. package/dist/types/src/core/components/cards/cardCollapsible/index.d.ts +1 -0
  40. package/dist/types/src/core/components/cards/cardEmptyState/cardEmptyState.d.ts +2 -0
  41. package/dist/types/src/core/components/cards/cardEmptyState/index.d.ts +1 -0
  42. package/dist/types/src/core/components/cards/cardSummary/cardSummary.api.d.ts +39 -0
  43. package/dist/types/src/core/components/cards/cardSummary/cardSummary.d.ts +2 -0
  44. package/dist/types/src/core/components/cards/cardSummary/index.d.ts +2 -0
  45. package/dist/types/src/core/components/cards/index.d.ts +4 -0
  46. package/dist/types/src/core/components/collapsible/collapsible.api.d.ts +40 -0
  47. package/dist/types/src/core/components/collapsible/collapsible.d.ts +2 -0
  48. package/dist/types/src/core/components/collapsible/index.d.ts +2 -0
  49. package/dist/types/src/core/components/dataList/dataListContainer/dataListContainer.d.ts +28 -0
  50. package/dist/types/src/core/components/dataList/dataListContainer/dataListContainerSkeletonLoader.d.ts +3 -0
  51. package/dist/types/src/core/components/dataList/dataListContainer/index.d.ts +1 -0
  52. package/dist/types/src/core/components/dataList/dataListContext/dataListContext.d.ts +22 -0
  53. package/dist/types/src/core/components/dataList/dataListContext/index.d.ts +1 -0
  54. package/dist/types/src/core/components/dataList/dataListFilter/dataListFilter.d.ts +50 -0
  55. package/dist/types/src/core/components/dataList/dataListFilter/dataListFilterSort.d.ts +12 -0
  56. package/dist/types/src/core/components/dataList/dataListFilter/dataListFilterStatus.d.ts +7 -0
  57. package/dist/types/src/core/components/dataList/dataListFilter/index.d.ts +1 -0
  58. package/dist/types/src/core/components/dataList/dataListItem/dataListItem.d.ts +3 -0
  59. package/dist/types/src/core/components/dataList/dataListItem/index.d.ts +1 -0
  60. package/dist/types/src/core/components/dataList/dataListPagination/dataListPagination.d.ts +4 -0
  61. package/dist/types/src/core/components/dataList/dataListPagination/index.d.ts +1 -0
  62. package/dist/types/src/core/components/dataList/dataListRoot/dataListRoot.d.ts +36 -0
  63. package/dist/types/src/core/components/dataList/dataListRoot/index.d.ts +1 -0
  64. package/dist/types/src/core/components/dataList/dataListTestUtils.d.ts +6 -0
  65. package/dist/types/src/core/components/dataList/index.d.ts +12 -0
  66. package/dist/types/src/core/components/definitionList/definitionListContainer/definitionListContainer.d.ts +4 -0
  67. package/dist/types/src/core/components/definitionList/definitionListContainer/index.d.ts +1 -0
  68. package/dist/types/src/core/components/definitionList/definitionListItem/definitionListItem.d.ts +8 -0
  69. package/dist/types/src/core/components/definitionList/definitionListItem/index.d.ts +1 -0
  70. package/dist/types/src/core/components/definitionList/index.d.ts +6 -0
  71. package/dist/types/src/core/components/dialogs/dialog/dialogContent/dialogContent.d.ts +8 -0
  72. package/dist/types/src/core/components/dialogs/dialog/dialogContent/index.d.ts +1 -0
  73. package/dist/types/src/core/components/dialogs/dialog/dialogFooter/dialogFooter.d.ts +27 -0
  74. package/dist/types/src/core/components/dialogs/dialog/dialogFooter/index.d.ts +1 -0
  75. package/dist/types/src/core/components/dialogs/dialog/dialogHeader/dialogHeader.d.ts +31 -0
  76. package/dist/types/src/core/components/dialogs/dialog/dialogHeader/index.d.ts +1 -0
  77. package/dist/types/src/core/components/dialogs/dialog/dialogRoot/dialogRoot.d.ts +57 -0
  78. package/dist/types/src/core/components/dialogs/dialog/dialogRoot/index.d.ts +1 -0
  79. package/dist/types/src/core/components/dialogs/dialog/index.d.ts +10 -0
  80. package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertContent/dialogAlertContent.d.ts +8 -0
  81. package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertContent/index.d.ts +1 -0
  82. package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertFooter/dialogAlertFooter.d.ts +26 -0
  83. package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertFooter/index.d.ts +1 -0
  84. package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertHeader/dialogAlertHeader.d.ts +17 -0
  85. package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertHeader/index.d.ts +1 -0
  86. package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertRoot/dialogAlertRoot.d.ts +54 -0
  87. package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertRoot/index.d.ts +1 -0
  88. package/dist/types/src/core/components/dialogs/dialogAlert/index.d.ts +10 -0
  89. package/dist/types/src/core/components/dialogs/dialogUtils.d.ts +31 -0
  90. package/dist/types/src/core/components/dialogs/index.d.ts +2 -0
  91. package/dist/types/src/core/components/documentParser/documentParser.d.ts +8 -0
  92. package/dist/types/src/core/components/documentParser/index.d.ts +1 -0
  93. package/dist/types/src/core/components/dropdown/dropdownContainer/dropdownContainer.d.ts +63 -0
  94. package/dist/types/src/core/components/dropdown/dropdownContainer/index.d.ts +1 -0
  95. package/dist/types/src/core/components/dropdown/dropdownItem/dropdownItem.d.ts +39 -0
  96. package/dist/types/src/core/components/dropdown/dropdownItem/index.d.ts +1 -0
  97. package/dist/types/src/core/components/dropdown/index.d.ts +6 -0
  98. package/dist/types/src/core/components/forms/checkbox/checkbox.d.ts +30 -0
  99. package/dist/types/src/core/components/forms/checkbox/index.d.ts +1 -0
  100. package/dist/types/src/core/components/forms/checkboxCard/checkboxCard.d.ts +42 -0
  101. package/dist/types/src/core/components/forms/checkboxCard/index.d.ts +1 -0
  102. package/dist/types/src/core/components/forms/checkboxGroup/checkboxGroup.d.ts +13 -0
  103. package/dist/types/src/core/components/forms/checkboxGroup/index.d.ts +1 -0
  104. package/dist/types/src/core/components/forms/hooks/index.d.ts +2 -0
  105. package/dist/types/src/core/components/forms/hooks/useInputProps.d.ts +18 -0
  106. package/dist/types/src/core/components/forms/hooks/useNumberMask.d.ts +20 -0
  107. package/dist/types/src/core/components/forms/index.d.ts +18 -0
  108. package/dist/types/src/core/components/forms/inputContainer/index.d.ts +2 -0
  109. package/dist/types/src/core/components/forms/inputContainer/inputContainer.api.d.ts +78 -0
  110. package/dist/types/src/core/components/forms/inputContainer/inputContainer.d.ts +8 -0
  111. package/dist/types/src/core/components/forms/inputDate/index.d.ts +1 -0
  112. package/dist/types/src/core/components/forms/inputDate/inputDate.d.ts +4 -0
  113. package/dist/types/src/core/components/forms/inputFileAvatar/index.d.ts +2 -0
  114. package/dist/types/src/core/components/forms/inputFileAvatar/inputFileAvatar.api.d.ts +48 -0
  115. package/dist/types/src/core/components/forms/inputFileAvatar/inputFileAvatar.d.ts +2 -0
  116. package/dist/types/src/core/components/forms/inputNumber/index.d.ts +1 -0
  117. package/dist/types/src/core/components/forms/inputNumber/inputNumber.d.ts +33 -0
  118. package/dist/types/src/core/components/forms/inputNumberMax/index.d.ts +1 -0
  119. package/dist/types/src/core/components/forms/inputNumberMax/inputNumberMax.d.ts +13 -0
  120. package/dist/types/src/core/components/forms/inputSearch/index.d.ts +1 -0
  121. package/dist/types/src/core/components/forms/inputSearch/inputSearch.d.ts +8 -0
  122. package/dist/types/src/core/components/forms/inputText/index.d.ts +2 -0
  123. package/dist/types/src/core/components/forms/inputText/inputText.api.d.ts +12 -0
  124. package/dist/types/src/core/components/forms/inputText/inputText.d.ts +2 -0
  125. package/dist/types/src/core/components/forms/inputTime/index.d.ts +1 -0
  126. package/dist/types/src/core/components/forms/inputTime/inputTime.d.ts +4 -0
  127. package/dist/types/src/core/components/forms/radio/index.d.ts +1 -0
  128. package/dist/types/src/core/components/forms/radio/radio.d.ts +21 -0
  129. package/dist/types/src/core/components/forms/radioCard/index.d.ts +1 -0
  130. package/dist/types/src/core/components/forms/radioCard/radioCard.d.ts +33 -0
  131. package/dist/types/src/core/components/forms/radioGroup/index.d.ts +1 -0
  132. package/dist/types/src/core/components/forms/radioGroup/radioGroup.d.ts +33 -0
  133. package/dist/types/src/core/components/forms/switch/index.d.ts +1 -0
  134. package/dist/types/src/core/components/forms/switch/switch.d.ts +39 -0
  135. package/dist/types/src/core/components/forms/textArea/index.d.ts +1 -0
  136. package/dist/types/src/core/components/forms/textArea/textArea.d.ts +4 -0
  137. package/dist/types/src/core/components/forms/textAreaRichText/index.d.ts +1 -0
  138. package/dist/types/src/core/components/forms/textAreaRichText/textAreaRichText.d.ts +24 -0
  139. package/dist/types/src/core/components/forms/textAreaRichText/textAreaRichTextActions.d.ts +31 -0
  140. package/dist/types/src/core/components/gukCoreProvider/gukCoreProvider.d.ts +30 -0
  141. package/dist/types/src/core/components/gukCoreProvider/index.d.ts +1 -0
  142. package/dist/types/src/core/components/heading/heading.d.ts +15 -0
  143. package/dist/types/src/core/components/heading/index.d.ts +1 -0
  144. package/dist/types/src/core/components/icon/icon.d.ts +20 -0
  145. package/dist/types/src/core/components/icon/iconList.d.ts +5 -0
  146. package/dist/types/src/core/components/icon/iconType.d.ts +65 -0
  147. package/dist/types/src/core/components/icon/index.d.ts +2 -0
  148. package/dist/types/src/core/components/illustrations/illustrationHuman/illustrationHuman.d.ts +35 -0
  149. package/dist/types/src/core/components/illustrations/illustrationHuman/illustrationHumanList.d.ts +9 -0
  150. package/dist/types/src/core/components/illustrations/illustrationHuman/illustrationHumanType.d.ts +5 -0
  151. package/dist/types/src/core/components/illustrations/illustrationHuman/index.d.ts +2 -0
  152. package/dist/types/src/core/components/illustrations/illustrationObject/illustrationObject.d.ts +9 -0
  153. package/dist/types/src/core/components/illustrations/illustrationObject/illustrationObjectList.d.ts +5 -0
  154. package/dist/types/src/core/components/illustrations/illustrationObject/illustrationObjectType.d.ts +1 -0
  155. package/dist/types/src/core/components/illustrations/illustrationObject/index.d.ts +2 -0
  156. package/dist/types/src/core/components/illustrations/index.d.ts +2 -0
  157. package/dist/types/src/core/components/index.d.ts +26 -0
  158. package/dist/types/src/core/components/link/index.d.ts +2 -0
  159. package/dist/types/src/core/components/link/link/index.d.ts +2 -0
  160. package/dist/types/src/core/components/link/link/link.api.d.ts +22 -0
  161. package/dist/types/src/core/components/link/link/link.d.ts +3 -0
  162. package/dist/types/src/core/components/link/linkBase/index.d.ts +1 -0
  163. package/dist/types/src/core/components/link/linkBase/linkBase.d.ts +4 -0
  164. package/dist/types/src/core/components/progress/index.d.ts +2 -0
  165. package/dist/types/src/core/components/progress/progress.api.d.ts +28 -0
  166. package/dist/types/src/core/components/progress/progress.d.ts +2 -0
  167. package/dist/types/src/core/components/rerender/index.d.ts +1 -0
  168. package/dist/types/src/core/components/rerender/rerender.d.ts +20 -0
  169. package/dist/types/src/core/components/spinner/index.d.ts +1 -0
  170. package/dist/types/src/core/components/spinner/spinner.d.ts +29 -0
  171. package/dist/types/src/core/components/states/emptyState/emptyState.api.d.ts +50 -0
  172. package/dist/types/src/core/components/states/emptyState/emptyState.d.ts +2 -0
  173. package/dist/types/src/core/components/states/emptyState/index.d.ts +2 -0
  174. package/dist/types/src/core/components/states/index.d.ts +4 -0
  175. package/dist/types/src/core/components/states/statePingAnimation/index.d.ts +1 -0
  176. package/dist/types/src/core/components/states/statePingAnimation/statePingAnimation.d.ts +11 -0
  177. package/dist/types/src/core/components/states/stateSkeletonBar/index.d.ts +1 -0
  178. package/dist/types/src/core/components/states/stateSkeletonBar/stateSkeletonBar.d.ts +27 -0
  179. package/dist/types/src/core/components/states/stateSkeletonCircular/index.d.ts +1 -0
  180. package/dist/types/src/core/components/states/stateSkeletonCircular/stateSkeletonCircular.d.ts +15 -0
  181. package/dist/types/src/core/components/tabs/index.d.ts +10 -0
  182. package/dist/types/src/core/components/tabs/tabsContent/index.d.ts +1 -0
  183. package/dist/types/src/core/components/tabs/tabsContent/tabsContent.d.ts +12 -0
  184. package/dist/types/src/core/components/tabs/tabsList/index.d.ts +1 -0
  185. package/dist/types/src/core/components/tabs/tabsList/tabsList.d.ts +4 -0
  186. package/dist/types/src/core/components/tabs/tabsRoot/index.d.ts +1 -0
  187. package/dist/types/src/core/components/tabs/tabsRoot/tabsRoot.d.ts +28 -0
  188. package/dist/types/src/core/components/tabs/tabsTrigger/index.d.ts +1 -0
  189. package/dist/types/src/core/components/tabs/tabsTrigger/tabsTrigger.d.ts +17 -0
  190. package/dist/types/src/core/components/tag/index.d.ts +1 -0
  191. package/dist/types/src/core/components/tag/tag.d.ts +17 -0
  192. package/dist/types/src/core/components/toggles/index.d.ts +2 -0
  193. package/dist/types/src/core/components/toggles/toggle/index.d.ts +1 -0
  194. package/dist/types/src/core/components/toggles/toggle/toggle.d.ts +17 -0
  195. package/dist/types/src/core/components/toggles/toggleGroup/index.d.ts +1 -0
  196. package/dist/types/src/core/components/toggles/toggleGroup/toggleGroup.d.ts +22 -0
  197. package/dist/types/src/core/components/tooltip/index.d.ts +1 -0
  198. package/dist/types/src/core/components/tooltip/tooltip.d.ts +44 -0
  199. package/dist/types/src/core/hooks/index.d.ts +2 -0
  200. package/dist/types/src/core/hooks/useDebouncedValue/index.d.ts +1 -0
  201. package/dist/types/src/core/hooks/useDebouncedValue/useDebouncedValue.d.ts +18 -0
  202. package/dist/types/src/core/hooks/useRandomId/index.d.ts +1 -0
  203. package/dist/types/src/core/hooks/useRandomId/useRandomId.d.ts +1 -0
  204. package/dist/types/src/core/index.d.ts +5 -0
  205. package/dist/types/src/core/test/globalSetup.d.ts +2 -0
  206. package/dist/types/src/core/test/index.d.ts +1 -0
  207. package/dist/types/src/core/test/setup.d.ts +1 -0
  208. package/dist/types/src/core/test/utils/createRangeMock.d.ts +1 -0
  209. package/dist/types/src/core/test/utils/index.d.ts +2 -0
  210. package/dist/types/src/core/test/utils/testLogger.d.ts +9 -0
  211. package/dist/types/src/core/types/index.d.ts +1 -0
  212. package/dist/types/src/core/types/responsive.d.ts +33 -0
  213. package/dist/types/src/core/utils/clipboardUtils/clipboardUtils.d.ts +12 -0
  214. package/dist/types/src/core/utils/clipboardUtils/index.d.ts +1 -0
  215. package/dist/types/src/core/utils/formatterUtils/formatterUtils.d.ts +32 -0
  216. package/dist/types/src/core/utils/formatterUtils/formatterUtilsDefinitions.d.ts +82 -0
  217. package/dist/types/src/core/utils/formatterUtils/index.d.ts +2 -0
  218. package/dist/types/src/core/utils/index.d.ts +6 -0
  219. package/dist/types/src/core/utils/invariant/index.d.ts +1 -0
  220. package/dist/types/src/core/utils/invariant/invariant.d.ts +2 -0
  221. package/dist/types/src/core/utils/mergeRefs/index.d.ts +1 -0
  222. package/dist/types/src/core/utils/mergeRefs/mergeRefs.d.ts +5 -0
  223. package/dist/types/src/core/utils/responsiveUtils/index.d.ts +1 -0
  224. package/dist/types/src/core/utils/responsiveUtils/responsiveUtils.d.ts +6 -0
  225. package/dist/types/src/core/utils/ssrUtils/index.d.ts +1 -0
  226. package/dist/types/src/core/utils/ssrUtils/ssrUtils.d.ts +8 -0
  227. package/dist/types/src/index.d.ts +2 -0
  228. package/dist/types/src/modules/assets/copy/index.d.ts +1 -0
  229. package/dist/types/src/modules/assets/copy/modulesCopy.d.ts +170 -0
  230. package/dist/types/src/modules/assets/index.d.ts +1 -0
  231. package/dist/types/src/modules/components/address/addressInput/addressInput.d.ts +29 -0
  232. package/dist/types/src/modules/components/address/addressInput/index.d.ts +1 -0
  233. package/dist/types/src/modules/components/address/index.d.ts +1 -0
  234. package/dist/types/src/modules/components/asset/assetDataListItem/assetDataListItemSkeleton/assetDataListItemSkeleton.d.ts +4 -0
  235. package/dist/types/src/modules/components/asset/assetDataListItem/assetDataListItemSkeleton/index.d.ts +1 -0
  236. package/dist/types/src/modules/components/asset/assetDataListItem/assetDataListItemStructure/assetDataListItemStructure.d.ts +30 -0
  237. package/dist/types/src/modules/components/asset/assetDataListItem/assetDataListItemStructure/index.d.ts +1 -0
  238. package/dist/types/src/modules/components/asset/assetDataListItem/index.d.ts +6 -0
  239. package/dist/types/src/modules/components/asset/assetTransfer/assetTransfer.d.ts +36 -0
  240. package/dist/types/src/modules/components/asset/assetTransfer/assetTransferAddress/assetTransferAddress.d.ts +17 -0
  241. package/dist/types/src/modules/components/asset/assetTransfer/assetTransferAddress/index.d.ts +1 -0
  242. package/dist/types/src/modules/components/asset/assetTransfer/index.d.ts +1 -0
  243. package/dist/types/src/modules/components/asset/index.d.ts +2 -0
  244. package/dist/types/src/modules/components/dao/daoAvatar/daoAvatar.d.ts +14 -0
  245. package/dist/types/src/modules/components/dao/daoAvatar/index.d.ts +1 -0
  246. package/dist/types/src/modules/components/dao/daoDataListItem/daoDataListItemSkeleton/daoDataListItemSkeleton.d.ts +4 -0
  247. package/dist/types/src/modules/components/dao/daoDataListItem/daoDataListItemSkeleton/index.d.ts +1 -0
  248. package/dist/types/src/modules/components/dao/daoDataListItem/daoDataListItemStructure/daoDataListItemStructure.d.ts +34 -0
  249. package/dist/types/src/modules/components/dao/daoDataListItem/daoDataListItemStructure/index.d.ts +1 -0
  250. package/dist/types/src/modules/components/dao/daoDataListItem/index.d.ts +6 -0
  251. package/dist/types/src/modules/components/dao/index.d.ts +2 -0
  252. package/dist/types/src/modules/components/gukModulesProvider/gukModulesProvider.d.ts +44 -0
  253. package/dist/types/src/modules/components/gukModulesProvider/index.d.ts +1 -0
  254. package/dist/types/src/modules/components/index.d.ts +9 -0
  255. package/dist/types/src/modules/components/member/index.d.ts +2 -0
  256. package/dist/types/src/modules/components/member/memberAvatar/index.d.ts +1 -0
  257. package/dist/types/src/modules/components/member/memberAvatar/memberAvatar.d.ts +18 -0
  258. package/dist/types/src/modules/components/member/memberDataListItem/index.d.ts +6 -0
  259. package/dist/types/src/modules/components/member/memberDataListItem/memberDataListItemSkeleton/index.d.ts +1 -0
  260. package/dist/types/src/modules/components/member/memberDataListItem/memberDataListItemSkeleton/memberDataListItemSkeleton.d.ts +3 -0
  261. package/dist/types/src/modules/components/member/memberDataListItem/memberDataListItemStructure/index.d.ts +1 -0
  262. package/dist/types/src/modules/components/member/memberDataListItem/memberDataListItemStructure/memberDataListItemStructure.d.ts +36 -0
  263. package/dist/types/src/modules/components/proposal/index.d.ts +4 -0
  264. package/dist/types/src/modules/components/proposal/proposalActions/actions/generators/index.d.ts +6 -0
  265. package/dist/types/src/modules/components/proposal/proposalActions/actions/generators/proposalAction.d.ts +2 -0
  266. package/dist/types/src/modules/components/proposal/proposalActions/actions/generators/proposalActionChangeMembers.d.ts +2 -0
  267. package/dist/types/src/modules/components/proposal/proposalActions/actions/generators/proposalActionChangeSettings.d.ts +2 -0
  268. package/dist/types/src/modules/components/proposal/proposalActions/actions/generators/proposalActionTokenMint.d.ts +2 -0
  269. package/dist/types/src/modules/components/proposal/proposalActions/actions/generators/proposalActionUpdateMetadata.d.ts +2 -0
  270. package/dist/types/src/modules/components/proposal/proposalActions/actions/generators/proposalActionWithdrawToken.d.ts +3 -0
  271. package/dist/types/src/modules/components/proposal/proposalActions/actions/index.d.ts +5 -0
  272. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionChangeMembers/index.d.ts +1 -0
  273. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionChangeMembers/proposalActionChangeMembers.d.ts +4 -0
  274. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionChangeSettings/index.d.ts +1 -0
  275. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionChangeSettings/proposalActionChangeSettings.d.ts +4 -0
  276. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionTokenMint/index.d.ts +1 -0
  277. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionTokenMint/proposalActionTokenMint.d.ts +4 -0
  278. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionUpdateMetadata/index.d.ts +1 -0
  279. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionUpdateMetadata/proposalActionUpdateMetadata.d.ts +4 -0
  280. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionWithdrawToken/index.d.ts +1 -0
  281. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionWithdrawToken/proposalActionWithdrawToken.d.ts +4 -0
  282. package/dist/types/src/modules/components/proposal/proposalActions/index.d.ts +5 -0
  283. package/dist/types/src/modules/components/proposal/proposalActions/proposalActions/index.d.ts +2 -0
  284. package/dist/types/src/modules/components/proposal/proposalActions/proposalActions/proposalActions.api.d.ts +53 -0
  285. package/dist/types/src/modules/components/proposal/proposalActions/proposalActions/proposalActions.d.ts +3 -0
  286. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/index.d.ts +1 -0
  287. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsAction.d.ts +26 -0
  288. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsActionDecodedView/index.d.ts +1 -0
  289. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsActionDecodedView/proposalActionsActionDecodedView.d.ts +8 -0
  290. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsActionRawView/index.d.ts +1 -0
  291. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsActionRawView/proposalActionsActionRawView.d.ts +8 -0
  292. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsActionViewAsMenu/index.d.ts +1 -0
  293. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsActionViewAsMenu/proposalActionsActionViewAsMenu.d.ts +20 -0
  294. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsActionVerification/index.d.ts +1 -0
  295. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsActionVerification/proposalActionsActionVerification.d.ts +9 -0
  296. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/index.d.ts +9 -0
  297. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalAction.d.ts +58 -0
  298. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionChangeMembers.d.ts +17 -0
  299. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionChangeSettings.d.ts +21 -0
  300. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionComponent.d.ts +14 -0
  301. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionTokenMint.d.ts +27 -0
  302. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionType.d.ts +9 -0
  303. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionUpdateMetadata.d.ts +44 -0
  304. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionViewMode.d.ts +5 -0
  305. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionWithdrawToken.d.ts +50 -0
  306. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsUtils.d.ts +10 -0
  307. package/dist/types/src/modules/components/proposal/proposalDataListItem/approvalThresholdResult/approvalThresholdResult.d.ts +7 -0
  308. package/dist/types/src/modules/components/proposal/proposalDataListItem/approvalThresholdResult/index.d.ts +1 -0
  309. package/dist/types/src/modules/components/proposal/proposalDataListItem/index.d.ts +6 -0
  310. package/dist/types/src/modules/components/proposal/proposalDataListItem/majorityVotingResult/index.d.ts +1 -0
  311. package/dist/types/src/modules/components/proposal/proposalDataListItem/majorityVotingResult/majorityVotingResult.d.ts +7 -0
  312. package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemSkeleton/index.d.ts +1 -0
  313. package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemSkeleton/proposalDataListItemSkeleton.d.ts +4 -0
  314. package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStatus/index.d.ts +1 -0
  315. package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStatus/proposalDataListItemStatus.d.ts +4 -0
  316. package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStructure/index.d.ts +2 -0
  317. package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStructure/proposalDataListItemStructure.api.d.ts +94 -0
  318. package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStructure/proposalDataListItemStructure.d.ts +3 -0
  319. package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemUtils.d.ts +7 -0
  320. package/dist/types/src/modules/components/proposal/proposalUtils.d.ts +24 -0
  321. package/dist/types/src/modules/components/proposal/proposalVoting/index.d.ts +15 -0
  322. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBreakdownMultisig/index.d.ts +1 -0
  323. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBreakdownMultisig/proposalVotingBreakdownMultisig.d.ts +12 -0
  324. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBreakdownToken/index.d.ts +1 -0
  325. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBreakdownToken/proposalVotingBreakdownToken.d.ts +32 -0
  326. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingContainer/index.d.ts +1 -0
  327. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingContainer/proposalVotingContainer.d.ts +16 -0
  328. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingDefinitions.d.ts +5 -0
  329. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingDetails/index.d.ts +1 -0
  330. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingDetails/proposalVotingDetails.d.ts +18 -0
  331. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingProgress/index.d.ts +6 -0
  332. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingProgress/proposalVotingProgressContainer.d.ts +10 -0
  333. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingProgress/proposalVotingProgressItem.d.ts +31 -0
  334. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStage/index.d.ts +1 -0
  335. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStage/proposalVotingStage.d.ts +39 -0
  336. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageContext/index.d.ts +1 -0
  337. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageContext/proposalVotingStageContext.d.ts +5 -0
  338. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageStatus/index.d.ts +1 -0
  339. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageStatus/proposalVotingStageStatus.d.ts +18 -0
  340. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingTabs/index.d.ts +1 -0
  341. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingTabs/proposalVotingTabs.d.ts +20 -0
  342. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingVotes/index.d.ts +1 -0
  343. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingVotes/proposalVotingVotes.d.ts +4 -0
  344. package/dist/types/src/modules/components/transaction/index.d.ts +1 -0
  345. package/dist/types/src/modules/components/transaction/transactionDataListItem/index.d.ts +6 -0
  346. package/dist/types/src/modules/components/transaction/transactionDataListItem/transactionDataListItemSkeleton/index.d.ts +1 -0
  347. package/dist/types/src/modules/components/transaction/transactionDataListItem/transactionDataListItemSkeleton/transactionDataListItemSkeleton.d.ts +3 -0
  348. package/dist/types/src/modules/components/transaction/transactionDataListItem/transactionDataListItemStructure/index.d.ts +2 -0
  349. package/dist/types/src/modules/components/transaction/transactionDataListItem/transactionDataListItemStructure/transactionDataListItemStructure.api.d.ts +52 -0
  350. package/dist/types/src/modules/components/transaction/transactionDataListItem/transactionDataListItemStructure/transactionDataListItemStructure.d.ts +2 -0
  351. package/dist/types/src/modules/components/vote/index.d.ts +3 -0
  352. package/dist/types/src/modules/components/vote/voteDataListItem/index.d.ts +6 -0
  353. package/dist/types/src/modules/components/vote/voteDataListItem/voteDataListItemSkeleton/index.d.ts +1 -0
  354. package/dist/types/src/modules/components/vote/voteDataListItem/voteDataListItemSkeleton/voteDataListItemSkeleton.d.ts +3 -0
  355. package/dist/types/src/modules/components/vote/voteDataListItem/voteDataListItemStructure/index.d.ts +1 -0
  356. package/dist/types/src/modules/components/vote/voteDataListItem/voteDataListItemStructure/voteDataListItemStructure.d.ts +26 -0
  357. package/dist/types/src/modules/components/vote/voteProposalDataListItem/index.d.ts +6 -0
  358. package/dist/types/src/modules/components/vote/voteProposalDataListItem/voteProposalDataListItemSkeleton/index.d.ts +1 -0
  359. package/dist/types/src/modules/components/vote/voteProposalDataListItem/voteProposalDataListItemSkeleton/voteProposalDataListItemSkeleton.d.ts +3 -0
  360. package/dist/types/src/modules/components/vote/voteProposalDataListItem/voteProposalDataListItemStructure/index.d.ts +1 -0
  361. package/dist/types/src/modules/components/vote/voteProposalDataListItem/voteProposalDataListItemStructure/voteProposalDataListItemStructure.d.ts +25 -0
  362. package/dist/types/src/modules/components/vote/voteUtils.d.ts +3 -0
  363. package/dist/types/src/modules/components/wallet/index.d.ts +1 -0
  364. package/dist/types/src/modules/components/wallet/wallet.d.ts +8 -0
  365. package/dist/types/src/modules/hooks/index.d.ts +1 -0
  366. package/dist/types/src/modules/hooks/useBlockExplorer/index.d.ts +1 -0
  367. package/dist/types/src/modules/hooks/useBlockExplorer/useBlockExplorer.d.ts +45 -0
  368. package/dist/types/src/modules/index.d.ts +5 -0
  369. package/dist/types/src/modules/types/compositeAddress.d.ts +14 -0
  370. package/dist/types/src/modules/types/index.d.ts +2 -0
  371. package/dist/types/src/modules/types/web3ComponentConfig.d.ts +15 -0
  372. package/dist/types/src/modules/utils/addressUtils/addressUtils.d.ts +38 -0
  373. package/dist/types/src/modules/utils/addressUtils/index.d.ts +1 -0
  374. package/dist/types/src/modules/utils/ensUtils/ensUtils.d.ts +17 -0
  375. package/dist/types/src/modules/utils/ensUtils/index.d.ts +1 -0
  376. package/dist/types/src/modules/utils/index.d.ts +2 -0
  377. package/index.css +5 -0
  378. package/package.json +167 -0
  379. package/src/core/components/accordion/accordionItemContent/index.css +21 -0
  380. package/src/core/components/accordion/index.css +1 -0
  381. package/src/core/components/avatars/avatar/index.css +4 -0
  382. package/src/core/components/avatars/index.css +1 -0
  383. package/src/core/components/collapsible/index.css +4 -0
  384. package/src/core/components/dialogs/dialog/dialogRoot/index.css +7 -0
  385. package/src/core/components/dialogs/dialog/index.css +1 -0
  386. package/src/core/components/dialogs/dialogAlert/dialogAlertRoot/index.css +7 -0
  387. package/src/core/components/dialogs/dialogAlert/index.css +1 -0
  388. package/src/core/components/dialogs/index.css +2 -0
  389. package/src/core/components/dropdown/dropdownContainer/index.css +4 -0
  390. package/src/core/components/dropdown/index.css +1 -0
  391. package/src/core/components/forms/index.css +1 -0
  392. package/src/core/components/forms/textAreaRichText/index.css +4 -0
  393. package/src/core/components/illustrations/index.css +7 -0
  394. package/src/core/components/index.css +7 -0
  395. package/src/core/index.css +1 -0
  396. package/src/index.css +2 -0
  397. package/src/theme/fonts/Manrope-Regular.ttf +0 -0
  398. package/src/theme/fonts/Manrope-SemiBold.ttf +0 -0
  399. package/src/theme/index.css +1 -0
  400. package/src/theme/tokens/index.css +1 -0
  401. package/src/theme/tokens/primitives/borderRadius.css +9 -0
  402. package/src/theme/tokens/primitives/colors.css +73 -0
  403. package/src/theme/tokens/primitives/index.css +5 -0
  404. package/src/theme/tokens/primitives/shadows.css +52 -0
  405. package/src/theme/tokens/primitives/spacing.css +37 -0
  406. package/src/theme/tokens/primitives/typography.css +42 -0
  407. package/tailwind.config.js +374 -0
@@ -0,0 +1,27 @@
1
+ import { type ICompositeAddress } from '../../../../types';
2
+ import type { IProposalAction } from './proposalAction';
3
+ import { type ProposalActionType } from './proposalActionType';
4
+ export interface IProposalActionTokenMintMetadataReceiver extends ICompositeAddress {
5
+ /**
6
+ * Receivers current token balance.
7
+ */
8
+ currentBalance: string;
9
+ /**
10
+ * Receivers new token balance after mint.
11
+ */
12
+ newBalance: string;
13
+ }
14
+ export interface IProposalActionTokenMint extends IProposalAction {
15
+ /**
16
+ * Token mint action.
17
+ */
18
+ type: ProposalActionType.TOKEN_MINT;
19
+ /**
20
+ * Token receivers.
21
+ */
22
+ receiver: IProposalActionTokenMintMetadataReceiver;
23
+ /**
24
+ * Token Symbol.
25
+ */
26
+ tokenSymbol: string;
27
+ }
@@ -0,0 +1,9 @@
1
+ export declare enum ProposalActionType {
2
+ WITHDRAW_TOKEN = "WITHDRAW_TOKEN",
3
+ ADD_MEMBERS = "ADD_MEMBERS",
4
+ REMOVE_MEMBERS = "REMOVE_MEMBERS",
5
+ UPDATE_METADATA = "UPDATE_METADATA",
6
+ TOKEN_MINT = "TOKEN_MINT",
7
+ CHANGE_SETTINGS_MULTISIG = "CHANGE_SETTINGS_MULTISIG",
8
+ CHANGE_SETTINGS_TOKENVOTE = "CHANGE_SETTINGS_TOKENVOTE"
9
+ }
@@ -0,0 +1,44 @@
1
+ import { type IProposalAction } from './proposalAction';
2
+ import { type ProposalActionType } from './proposalActionType';
3
+ export interface IProposalActionUpdateMetadataDaoMetadataLink {
4
+ /**
5
+ * Human readable label for link.
6
+ */
7
+ label: string;
8
+ /**
9
+ * link href.
10
+ */
11
+ href: string;
12
+ }
13
+ export interface IProposalActionUpdateMetadataDaoMetadata {
14
+ /**
15
+ * Logo url of the DAO.
16
+ */
17
+ logo: string;
18
+ /**
19
+ * Name of the DAO.
20
+ */
21
+ name: string;
22
+ /**
23
+ * DAO Description.
24
+ */
25
+ description: string;
26
+ /**
27
+ * Array of metadata links.
28
+ */
29
+ links: IProposalActionUpdateMetadataDaoMetadataLink[];
30
+ }
31
+ export interface IProposalActionUpdateMetadata extends IProposalAction {
32
+ /**
33
+ * UpdateMetadata action.
34
+ */
35
+ type: ProposalActionType.UPDATE_METADATA;
36
+ /**
37
+ * Proposed metadata.
38
+ */
39
+ proposedMetadata: IProposalActionUpdateMetadataDaoMetadata;
40
+ /**
41
+ * Existing metadata.
42
+ */
43
+ existingMetadata: IProposalActionUpdateMetadataDaoMetadata;
44
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum ProposalActionViewMode {
2
+ BASIC = "BASIC",
3
+ DECODED = "DECODED",
4
+ RAW = "RAW"
5
+ }
@@ -0,0 +1,50 @@
1
+ import type { ICompositeAddress } from '../../../../types';
2
+ import type { IProposalAction } from './proposalAction';
3
+ import type { ProposalActionType } from './proposalActionType';
4
+ export interface IProposalActionWithdrawToken extends IProposalAction {
5
+ /**
6
+ * Withdraw token action type.
7
+ */
8
+ type: ProposalActionType.WITHDRAW_TOKEN;
9
+ /**
10
+ * Sender handle (the DAO treasury in this case), object with address and optional ensName.
11
+ */
12
+ sender: ICompositeAddress;
13
+ /**
14
+ * Receiver handle, object with address and optional ensName.
15
+ */
16
+ receiver: ICompositeAddress;
17
+ /**
18
+ * Amount of tokens to withdraw.
19
+ */
20
+ amount: string;
21
+ /**
22
+ * Token details of the token to withdraw.
23
+ */
24
+ token: {
25
+ /**
26
+ * Token name.
27
+ */
28
+ name: string;
29
+ /**
30
+ * Token symbol.
31
+ */
32
+ symbol: string;
33
+ /**
34
+ * Token decimals.
35
+ */
36
+ decimals: number;
37
+ /**
38
+ * Token logo.
39
+ */
40
+ logo: string;
41
+ /**
42
+ * Token price in USD.
43
+ */
44
+ priceUsd: string;
45
+ /**
46
+ * Token address.
47
+ */
48
+ address: string;
49
+ };
50
+ }
@@ -0,0 +1,10 @@
1
+ import { type IProposalAction, type IProposalActionChangeMembers, type IProposalActionChangeSettings, type IProposalActionTokenMint, type IProposalActionUpdateMetadata, type IProposalActionWithdrawToken } from './proposalActionsTypes';
2
+ declare class ProposalActionsUtils {
3
+ isWithdrawTokenAction: (action: Partial<IProposalAction>) => action is IProposalActionWithdrawToken;
4
+ isChangeMembersAction: (action: Partial<IProposalAction>) => action is IProposalActionChangeMembers;
5
+ isUpdateMetadataAction: (action: Partial<IProposalAction>) => action is IProposalActionUpdateMetadata;
6
+ isTokenMintAction: (action: Partial<IProposalAction>) => action is IProposalActionTokenMint;
7
+ isChangeSettingsAction: (action: Partial<IProposalAction>) => action is IProposalActionChangeSettings;
8
+ }
9
+ export declare const proposalActionsUtils: ProposalActionsUtils;
10
+ export {};
@@ -0,0 +1,7 @@
1
+ import { type IApprovalThresholdResult } from '../proposalDataListItemStructure';
2
+ export interface IApprovalThresholdResultProps extends IApprovalThresholdResult {
3
+ }
4
+ /**
5
+ * `ApprovalThresholdResult` component
6
+ */
7
+ export declare const ApprovalThresholdResult: React.FC<IApprovalThresholdResultProps>;
@@ -0,0 +1 @@
1
+ export { ApprovalThresholdResult, type IApprovalThresholdResultProps } from './approvalThresholdResult';
@@ -0,0 +1,6 @@
1
+ export declare const ProposalDataListItem: {
2
+ Skeleton: import("react").FC<import("../../../..").IDataListItemProps>;
3
+ Structure: import("react").FC<import("./proposalDataListItemStructure").IProposalDataListItemStructureProps>;
4
+ };
5
+ export * from './proposalDataListItemSkeleton';
6
+ export * from './proposalDataListItemStructure';
@@ -0,0 +1 @@
1
+ export { MajorityVotingResult, type IMajorityVotingResultProps } from './majorityVotingResult';
@@ -0,0 +1,7 @@
1
+ import { type IMajorityVotingResult } from '../proposalDataListItemStructure';
2
+ export interface IMajorityVotingResultProps extends IMajorityVotingResult {
3
+ }
4
+ /**
5
+ * `MajorityVotingResult` component
6
+ */
7
+ export declare const MajorityVotingResult: React.FC<IMajorityVotingResultProps>;
@@ -0,0 +1 @@
1
+ export { ProposalDataListItemSkeleton, type IProposalDataListItemSkeletonProps } from './proposalDataListItemSkeleton';
@@ -0,0 +1,4 @@
1
+ import type React from 'react';
2
+ import { type IDataListItemProps } from '../../../../../core';
3
+ export type IProposalDataListItemSkeletonProps = IDataListItemProps;
4
+ export declare const ProposalDataListItemSkeleton: React.FC<IProposalDataListItemSkeletonProps>;
@@ -0,0 +1 @@
1
+ export { ProposalDataListItemStatus, type IProposalDataListItemStatusProps } from './proposalDataListItemStatus';
@@ -0,0 +1,4 @@
1
+ import { type IProposalDataListItemStructureProps } from '../proposalDataListItemStructure';
2
+ export interface IProposalDataListItemStatusProps extends Pick<IProposalDataListItemStructureProps, 'date' | 'status' | 'voted'> {
3
+ }
4
+ export declare const ProposalDataListItemStatus: React.FC<IProposalDataListItemStatusProps>;
@@ -0,0 +1,2 @@
1
+ export { ProposalDataListItemStructure } from './proposalDataListItemStructure';
2
+ export * from './proposalDataListItemStructure.api';
@@ -0,0 +1,94 @@
1
+ import type { IDataListItemProps } from '../../../../../core';
2
+ import { type ICompositeAddress, type IWeb3ComponentProps } from '../../../../types';
3
+ import { type ProposalStatus } from '../../proposalUtils';
4
+ export type ProposalType = 'majorityVoting' | 'approvalThreshold' | undefined;
5
+ export type ProposalResult<TType extends ProposalType> = TType extends 'majorityVoting' ? IMajorityVotingResult : TType extends 'approvalThreshold' ? IApprovalThresholdResult : undefined;
6
+ export type IProposalDataListItemStructureBaseProps<TType extends ProposalType = ProposalType> = IDataListItemProps & IWeb3ComponentProps & {
7
+ /**
8
+ * Proposal id
9
+ */
10
+ id?: string;
11
+ /**
12
+ * Date relative to the proposal status in ISO format or as a timestamp
13
+ */
14
+ date?: string | number;
15
+ /**
16
+ * Optional tag indicating proposal type
17
+ */
18
+ tag?: string;
19
+ /**
20
+ * Publisher(s) address (and optional ENS name and profile link)
21
+ */
22
+ publisher: IPublisher | IPublisher[];
23
+ /**
24
+ * Result of the proposal shown only when it is active, challenged or vetoed.
25
+ */
26
+ result?: ProposalResult<TType>;
27
+ /**
28
+ * Proposal status
29
+ */
30
+ status: ProposalStatus;
31
+ /**
32
+ * Proposal description
33
+ */
34
+ summary: string;
35
+ /**
36
+ * Proposal title
37
+ */
38
+ title: string;
39
+ /**
40
+ * Type of the ProposalDataListItem
41
+ */
42
+ type?: TType;
43
+ /**
44
+ * Indicates whether the connected wallet has voted
45
+ */
46
+ voted?: boolean;
47
+ };
48
+ export interface IPublisher extends ICompositeAddress {
49
+ /**
50
+ * Link to additional information about the publisher, such as a profile page or block explorer.
51
+ */
52
+ link?: string;
53
+ }
54
+ export interface IProposalStage {
55
+ /**
56
+ * Name of the proposal stage
57
+ */
58
+ title?: string;
59
+ /**
60
+ * Id of the proposal stage
61
+ */
62
+ id: string | number;
63
+ }
64
+ export interface IProposalResultBase {
65
+ /**
66
+ * Proposal stage
67
+ */
68
+ stage?: IProposalStage;
69
+ }
70
+ export interface IApprovalThresholdResult extends IProposalResultBase {
71
+ /**
72
+ * Number of approvals for the proposal
73
+ */
74
+ approvalAmount: number;
75
+ /**
76
+ * Proposal approval threshold
77
+ */
78
+ approvalThreshold: number;
79
+ }
80
+ export interface IMajorityVotingResult extends IProposalResultBase {
81
+ /**
82
+ * Winning option
83
+ */
84
+ option: string;
85
+ /**
86
+ * Number of votes for the winning option
87
+ */
88
+ voteAmount: string;
89
+ /**
90
+ * Percentage of votes for the winning option
91
+ */
92
+ votePercentage: number;
93
+ }
94
+ export type IProposalDataListItemStructureProps = IProposalDataListItemStructureBaseProps<undefined> | IProposalDataListItemStructureBaseProps<'majorityVoting'> | IProposalDataListItemStructureBaseProps<'approvalThreshold'>;
@@ -0,0 +1,3 @@
1
+ import { type IProposalDataListItemStructureProps } from './proposalDataListItemStructure.api';
2
+ export declare const maxPublishersDisplayed = 3;
3
+ export declare const ProposalDataListItemStructure: React.FC<IProposalDataListItemStructureProps>;
@@ -0,0 +1,7 @@
1
+ import { ProposalStatus } from '../proposalUtils';
2
+ declare class ProposalDataListItemUtils {
3
+ ongoingStatuses: ProposalStatus[];
4
+ isOngoingStatus: (status: ProposalStatus) => boolean;
5
+ }
6
+ export declare const proposalDataListItemUtils: ProposalDataListItemUtils;
7
+ export {};
@@ -0,0 +1,24 @@
1
+ import type { TagVariant } from '../../../core';
2
+ export declare enum ProposalStatus {
3
+ ACCEPTED = "ACCEPTED",
4
+ ACTIVE = "ACTIVE",
5
+ CHALLENGED = "CHALLENGED",
6
+ DRAFT = "DRAFT",
7
+ EXECUTED = "EXECUTED",
8
+ EXPIRED = "EXPIRED",
9
+ FAILED = "FAILED",
10
+ PARTIALLY_EXECUTED = "PARTIALLY_EXECUTED",
11
+ PENDING = "PENDING",
12
+ EXECUTABLE = "EXECUTABLE",
13
+ REJECTED = "REJECTED",
14
+ VETOED = "VETOED"
15
+ }
16
+ export declare enum ProposalVotingStatus {
17
+ ACTIVE = "ACTIVE",
18
+ PENDING = "PENDING",
19
+ ACCEPTED = "ACCEPTED",
20
+ REJECTED = "REJECTED",
21
+ UNREACHED = "UNREACHED"
22
+ }
23
+ export declare const proposalStatusToVotingStatus: Record<ProposalStatus, ProposalVotingStatus>;
24
+ export declare const proposalStatusToTagVariant: Record<ProposalStatus, TagVariant>;
@@ -0,0 +1,15 @@
1
+ export declare const ProposalVoting: {
2
+ BreakdownMultisig: import("react").FC<import("./proposalVotingBreakdownMultisig").IProposalVotingBreakdownMultisigProps>;
3
+ BreakdownToken: import("react").FC<import("./proposalVotingBreakdownToken").IProposalVotingBreakdownTokenProps>;
4
+ Container: import("react").FC<import("./proposalVotingContainer").IProposalVotingContainerProps>;
5
+ Details: import("react").FC<import("./proposalVotingDetails").IProposalVotingDetailsProps>;
6
+ Stage: import("react").FC<import("./proposalVotingStage").IProposalVotingStageProps>;
7
+ Votes: import("react").FC<import("./proposalVotingVotes").IProposalVotingVotesProps>;
8
+ };
9
+ export * from './proposalVotingBreakdownMultisig';
10
+ export * from './proposalVotingBreakdownToken';
11
+ export * from './proposalVotingContainer';
12
+ export * from './proposalVotingDefinitions';
13
+ export * from './proposalVotingDetails';
14
+ export * from './proposalVotingStage';
15
+ export * from './proposalVotingVotes';
@@ -0,0 +1 @@
1
+ export { ProposalVotingBreakdownMultisig, type IProposalVotingBreakdownMultisigProps, } from './proposalVotingBreakdownMultisig';
@@ -0,0 +1,12 @@
1
+ import { type ITabsContentProps } from '../../../../../core';
2
+ export interface IProposalVotingBreakdownMultisigProps extends Omit<ITabsContentProps, 'value'> {
3
+ /**
4
+ * Current number of approvals for the proposal.
5
+ */
6
+ approvalsAmount: number;
7
+ /**
8
+ * Minimum numbers of approvals required for a proposal to pass.
9
+ */
10
+ minApprovals: number;
11
+ }
12
+ export declare const ProposalVotingBreakdownMultisig: React.FC<IProposalVotingBreakdownMultisigProps>;
@@ -0,0 +1 @@
1
+ export { ProposalVotingBreakdownToken, type IProposalVotingBreakdownTokenProps } from './proposalVotingBreakdownToken';
@@ -0,0 +1,32 @@
1
+ import { type ITabsContentProps } from '../../../../../core';
2
+ export interface IProposalVotingBreakdownTokenProps extends Omit<ITabsContentProps, 'value'> {
3
+ /**
4
+ * Total voting power of users that voted yes.
5
+ */
6
+ totalYes: number | string;
7
+ /**
8
+ * Total voting power of users that voted no.
9
+ */
10
+ totalNo: number | string;
11
+ /**
12
+ * Total voting power of users that voted abstain.
13
+ */
14
+ totalAbstain: number | string;
15
+ /**
16
+ * Percentage of tokens that need to vote "Yes" for a proposal to pass.
17
+ */
18
+ supportThreshold: number;
19
+ /**
20
+ * Percentage of tokens that need to participate in a vote for it to be valid.
21
+ */
22
+ minParticipation: number;
23
+ /**
24
+ * Symbol of the governance token.
25
+ */
26
+ tokenSymbol: string;
27
+ /**
28
+ * Total supply of the governance token.
29
+ */
30
+ tokenTotalSupply: number | string;
31
+ }
32
+ export declare const ProposalVotingBreakdownToken: React.FC<IProposalVotingBreakdownTokenProps>;
@@ -0,0 +1 @@
1
+ export { ProposalVotingContainer, type IProposalVotingContainerProps } from './proposalVotingContainer';
@@ -0,0 +1,16 @@
1
+ import React, { type ComponentProps } from 'react';
2
+ export interface IProposalVotingContainerProps extends ComponentProps<'div'> {
3
+ /**
4
+ * Title displayed on top.
5
+ */
6
+ title: string;
7
+ /**
8
+ * Description of the proposal voting.
9
+ */
10
+ description: string;
11
+ /**
12
+ * Active stage that will be expanded by default for multi-stage proposals.
13
+ */
14
+ activeStage?: string;
15
+ }
16
+ export declare const ProposalVotingContainer: React.FC<IProposalVotingContainerProps>;
@@ -0,0 +1,5 @@
1
+ export declare enum ProposalVotingTab {
2
+ BREAKDOWN = "BREAKDOWN",
3
+ VOTES = "VOTES",
4
+ DETAILS = "DETAILS"
5
+ }
@@ -0,0 +1 @@
1
+ export { ProposalVotingDetails, type IProposalVotingDetailsProps } from './proposalVotingDetails';
@@ -0,0 +1,18 @@
1
+ import { type ITabsContentProps } from '../../../../../core';
2
+ export interface IProposalVotingDetailsSetting {
3
+ /**
4
+ * Term of the setting.
5
+ */
6
+ term: string;
7
+ /**
8
+ * Value of the setting.
9
+ */
10
+ definition: string;
11
+ }
12
+ export interface IProposalVotingDetailsProps extends Omit<ITabsContentProps, 'value'> {
13
+ /**
14
+ * Governance settings displayed on the details tab.
15
+ */
16
+ settings?: IProposalVotingDetailsSetting[];
17
+ }
18
+ export declare const ProposalVotingDetails: React.FC<IProposalVotingDetailsProps>;
@@ -0,0 +1,6 @@
1
+ export declare const ProposalVotingProgress: {
2
+ Item: import("react").FC<import("./proposalVotingProgressItem").IProposalVotingProgressItemProps>;
3
+ Container: import("react").FC<import("./proposalVotingProgressContainer").IProposalVotingProgressContainerProps>;
4
+ };
5
+ export * from './proposalVotingProgressContainer';
6
+ export * from './proposalVotingProgressItem';
@@ -0,0 +1,10 @@
1
+ import type { ComponentProps } from 'react';
2
+ export interface IProposalVotingProgressContainerProps extends ComponentProps<'div'> {
3
+ /**
4
+ * Flex direction of the ProposalVotingProgress components. On small screens, the components will be rendered
5
+ * in a flex column container regardeless.
6
+ * @default row;
7
+ */
8
+ direction?: 'row' | 'col';
9
+ }
10
+ export declare const ProposalVotingProgressContainer: React.FC<IProposalVotingProgressContainerProps>;
@@ -0,0 +1,31 @@
1
+ import { type IProgressProps } from '../../../../../core';
2
+ export interface IProposalVotingProgressItemDescription {
3
+ /**
4
+ * Value of the description highlighted (e.g. current vote amount)
5
+ */
6
+ value: string | number | null;
7
+ /**
8
+ * Text of the description (e.g. minimum required vote amount)
9
+ */
10
+ text: string;
11
+ }
12
+ export interface IProposalVotingProgressItemProps extends IProgressProps {
13
+ /**
14
+ * Name of the voting progress.
15
+ */
16
+ name: string;
17
+ /**
18
+ * Description of the voting progress displayed below the progress bar.
19
+ */
20
+ description: IProposalVotingProgressItemDescription;
21
+ /**
22
+ * Displays the progress bar value as percentage when set to true.
23
+ */
24
+ showPercentage?: boolean;
25
+ /**
26
+ * Displays a status icon based on the progress bar and indicator values when set to true. The component renders a
27
+ * "success" status icon when value is equal or greater than indicator, and a "failed" status icon otherwise.
28
+ */
29
+ showStatusIcon?: boolean;
30
+ }
31
+ export declare const ProposalVotingProgressItem: React.FC<IProposalVotingProgressItemProps>;
@@ -0,0 +1 @@
1
+ export { ProposalVotingStage, type IProposalVotingStageProps } from './proposalVotingStage';
@@ -0,0 +1,39 @@
1
+ import { type ComponentProps } from 'react';
2
+ import { ProposalVotingStatus } from '../../proposalUtils';
3
+ import { ProposalVotingTab } from '../proposalVotingDefinitions';
4
+ export interface IProposalVotingStageProps extends ComponentProps<'div'> {
5
+ /**
6
+ * Status of the stage.
7
+ */
8
+ status: ProposalVotingStatus;
9
+ /**
10
+ * Start date of the stage in timestamp or ISO format.
11
+ */
12
+ startDate: number | string;
13
+ /**
14
+ * Start date of the stage in timestamp or ISO format.
15
+ */
16
+ endDate: number | string;
17
+ /**
18
+ * Default tab displayed for the current stage. Defaults to details tab for pending and unreached states and to
19
+ * breakdown tab for active, accepted and rejected states.
20
+ */
21
+ defaultTab?: ProposalVotingTab;
22
+ /**
23
+ * Name of the proposal stage displayed for multi-stage proposals.
24
+ */
25
+ name?: string;
26
+ /**
27
+ * Forces the multi-stage content to be rendered when set to true.
28
+ */
29
+ forceMount?: true;
30
+ /**
31
+ * Index of the stage set automatically by the ProposalVotingContainer for multi-stage proposals.
32
+ */
33
+ index?: number;
34
+ /**
35
+ * Defines if the proposal has multiple stages or not.
36
+ */
37
+ isMultiStage?: boolean;
38
+ }
39
+ export declare const ProposalVotingStage: React.FC<IProposalVotingStageProps>;
@@ -0,0 +1 @@
1
+ export { ProposalVotingStageContextProvider, useProposalVotingStageContext, type IProposalVotingStageContext, } from './proposalVotingStageContext';
@@ -0,0 +1,5 @@
1
+ import type { IProposalVotingStageProps } from '../proposalVotingStage/proposalVotingStage';
2
+ export interface IProposalVotingStageContext extends Pick<IProposalVotingStageProps, 'startDate' | 'endDate'> {
3
+ }
4
+ export declare const ProposalVotingStageContextProvider: import("react").Provider<IProposalVotingStageContext | null>;
5
+ export declare const useProposalVotingStageContext: () => IProposalVotingStageContext;
@@ -0,0 +1 @@
1
+ export { ProposalVotingStageStatus, type IProposalVotingStageStatusProps } from './proposalVotingStageStatus';
@@ -0,0 +1,18 @@
1
+ import type { ComponentProps } from 'react';
2
+ import { ProposalVotingStatus } from '../../proposalUtils';
3
+ export interface IProposalVotingStageStatusProps extends ComponentProps<'div'> {
4
+ /**
5
+ * Status of the proposal.
6
+ * @default ProposalVotingStatus.PENDING
7
+ */
8
+ status?: ProposalVotingStatus;
9
+ /**
10
+ * End date of the proposal in timestamp or ISO format.
11
+ */
12
+ endDate: string | number;
13
+ /**
14
+ * Defines if the proposal is a multi-stage proposal.
15
+ */
16
+ isMultiStage?: boolean;
17
+ }
18
+ export declare const ProposalVotingStageStatus: React.FC<IProposalVotingStageStatusProps>;
@@ -0,0 +1 @@
1
+ export { ProposalVotingTabs, type IProposalVotingTabsProps } from './proposalVotingTabs';
@@ -0,0 +1,20 @@
1
+ import { type RefObject } from 'react';
2
+ import { type ITabsRootProps } from '../../../../../core';
3
+ import { ProposalVotingStatus } from '../../proposalUtils';
4
+ import { ProposalVotingTab } from '../proposalVotingDefinitions';
5
+ export interface IProposalVotingTabsProps extends ITabsRootProps {
6
+ /**
7
+ * Voting status of the proposal.
8
+ */
9
+ status: ProposalVotingStatus;
10
+ /**
11
+ * Default proposal voting tab selected.
12
+ * @default ProposalVotingTab.BREAKDOWN
13
+ */
14
+ defaultValue?: ProposalVotingTab;
15
+ /**
16
+ * Reference object of the parent accordion component (on multi-stage proposals) to update its height on tab change.
17
+ */
18
+ accordionRef?: RefObject<HTMLDivElement>;
19
+ }
20
+ export declare const ProposalVotingTabs: React.FC<IProposalVotingTabsProps>;
@@ -0,0 +1 @@
1
+ export { ProposalVotingVotes, type IProposalVotingVotesProps } from './proposalVotingVotes';
@@ -0,0 +1,4 @@
1
+ import { type ITabsContentProps } from '../../../../../core';
2
+ export interface IProposalVotingVotesProps extends Omit<ITabsContentProps, 'value'> {
3
+ }
4
+ export declare const ProposalVotingVotes: React.FC<IProposalVotingVotesProps>;
@@ -0,0 +1 @@
1
+ export * from './transactionDataListItem';
@@ -0,0 +1,6 @@
1
+ export declare const TransactionDataListItem: {
2
+ Structure: import("react").FC<import("./transactionDataListItemStructure").ITransactionDataListItemProps>;
3
+ Skeleton: import("react").FC<import("../../../..").IDataListItemProps>;
4
+ };
5
+ export * from './transactionDataListItemSkeleton';
6
+ export * from './transactionDataListItemStructure';
@@ -0,0 +1 @@
1
+ export { TransactionDataListItemSkeleton, type ITransactionDataListItemSkeletonProps, } from './transactionDataListItemSkeleton';