@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,36 @@
1
+ import { type ComponentProps } from 'react';
2
+ /**
3
+ * Different states of the DataList component:
4
+ * - InitialLoading: component is fetching data for the first time and no data has been fetched yet;
5
+ * - Loading: initial data has already been fetched and the user is filtering or sorting the data;
6
+ * - Error: an error has occurred while fetching the data;
7
+ * - Idle: data has been successfully fetched;
8
+ * - Filtered: data has been successfully fetched and one or more filters are applied.
9
+ * - FetchingNextPage: user is loading the next page of the data list;
10
+ */
11
+ export type DataListState = 'initialLoading' | 'loading' | 'error' | 'fetchingNextPage' | 'idle' | 'filtered';
12
+ export interface IDataListRootProps extends ComponentProps<'div'> {
13
+ /**
14
+ * Total number of items.
15
+ */
16
+ itemsCount?: number;
17
+ /**
18
+ * Number to items to render per page.
19
+ * @default 12
20
+ */
21
+ pageSize?: number;
22
+ /**
23
+ * State of the data list component, @see DataListState.
24
+ * @default idle
25
+ */
26
+ state?: DataListState;
27
+ /**
28
+ * Callback called on load-more button click.
29
+ */
30
+ onLoadMore?: () => void;
31
+ /**
32
+ * Label used for the data list status and pagination.
33
+ */
34
+ entityLabel: string;
35
+ }
36
+ export declare const DataListRoot: React.FC<IDataListRootProps>;
@@ -0,0 +1 @@
1
+ export { DataListRoot, type DataListState, type IDataListRootProps } from './dataListRoot';
@@ -0,0 +1,6 @@
1
+ import type { IDataListContext } from './dataListContext';
2
+ declare class DataListTestUtils {
3
+ generateContextValues: (values?: Partial<IDataListContext>) => IDataListContext;
4
+ }
5
+ export declare const dataListTestUtils: DataListTestUtils;
6
+ export {};
@@ -0,0 +1,12 @@
1
+ export declare const DataList: {
2
+ Root: import("react").FC<import("./dataListRoot").IDataListRootProps>;
3
+ Filter: import("react").FC<import("./dataListFilter").IDataListFilterProps>;
4
+ Container: import("react").FC<import("./dataListContainer").IDataListContainerProps>;
5
+ Item: import("react").FC<import("./dataListItem").IDataListItemProps>;
6
+ Pagination: import("react").FC<import("./dataListPagination").IDataListPaginationProps>;
7
+ };
8
+ export * from './dataListContainer';
9
+ export * from './dataListFilter';
10
+ export * from './dataListItem';
11
+ export * from './dataListPagination';
12
+ export * from './dataListRoot';
@@ -0,0 +1,4 @@
1
+ import { type ComponentPropsWithoutRef } from 'react';
2
+ export interface IDefinitionListContainerProps extends ComponentPropsWithoutRef<'dl'> {
3
+ }
4
+ export declare const DefinitionListContainer: React.FC<IDefinitionListContainerProps>;
@@ -0,0 +1 @@
1
+ export { DefinitionListContainer, type IDefinitionListContainerProps } from './definitionListContainer';
@@ -0,0 +1,8 @@
1
+ import { type ComponentPropsWithRef } from 'react';
2
+ export interface IDefinitionListItemProps extends ComponentPropsWithRef<'div'> {
3
+ /**
4
+ * The term to be displayed in the definition list item.
5
+ */
6
+ term: string;
7
+ }
8
+ export declare const DefinitionListItem: React.FC<IDefinitionListItemProps>;
@@ -0,0 +1 @@
1
+ export { DefinitionListItem, type IDefinitionListItemProps } from './definitionListItem';
@@ -0,0 +1,6 @@
1
+ export declare const DefinitionList: {
2
+ Container: import("react").FC<import("./definitionListContainer").IDefinitionListContainerProps>;
3
+ Item: import("react").FC<import("./definitionListItem").IDefinitionListItemProps>;
4
+ };
5
+ export * from './definitionListContainer';
6
+ export * from './definitionListItem';
@@ -0,0 +1,8 @@
1
+ import type React from 'react';
2
+ import { type ComponentPropsWithoutRef } from 'react';
3
+ export interface IDialogContentProps extends ComponentPropsWithoutRef<'div'> {
4
+ }
5
+ /**
6
+ * `Dialog.Content` component.
7
+ */
8
+ export declare const DialogContent: React.FC<IDialogContentProps>;
@@ -0,0 +1 @@
1
+ export { DialogContent, type IDialogContentProps } from './dialogContent';
@@ -0,0 +1,27 @@
1
+ import { type AnchorHTMLAttributes, type ButtonHTMLAttributes, type ComponentPropsWithoutRef } from 'react';
2
+ import { type IAlertInlineProps } from '../../../alerts';
3
+ import { type IButtonBaseProps } from '../../../button';
4
+ export type IDialogFooterAction = (Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> | Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'>) & Pick<IButtonBaseProps, 'iconRight' | 'iconLeft' | 'disabled' | 'isLoading'> & {
5
+ /**
6
+ * Button label
7
+ */
8
+ label: string;
9
+ };
10
+ export interface IDialogFooterProps extends ComponentPropsWithoutRef<'div'> {
11
+ /**
12
+ * Optional AlertInline
13
+ */
14
+ alert?: IAlertInlineProps;
15
+ /**
16
+ * Dialog primary action button
17
+ */
18
+ primaryAction?: IDialogFooterAction;
19
+ /**
20
+ * Dialog secondary action button
21
+ */
22
+ secondaryAction?: IDialogFooterAction;
23
+ }
24
+ /**
25
+ * `Dialog.Footer` component
26
+ */
27
+ export declare const DialogFooter: React.FC<IDialogFooterProps>;
@@ -0,0 +1 @@
1
+ export { DialogFooter, type IDialogFooterAction, type IDialogFooterProps } from './dialogFooter';
@@ -0,0 +1,31 @@
1
+ import { type ComponentPropsWithoutRef } from 'react';
2
+ export interface IDialogHeaderProps extends ComponentPropsWithoutRef<'div'> {
3
+ /**
4
+ * Optional accessible description announced when the dialog is opened
5
+ */
6
+ description?: string;
7
+ /**
8
+ * Indicates whether a back button should be shown
9
+ * @default false
10
+ */
11
+ showBackButton?: boolean;
12
+ /**
13
+ * Accessible title summarizing dialog's content or purpose. Will be announced when
14
+ * dialog is opened.
15
+ */
16
+ title: string;
17
+ /**
18
+ * Callback invoked when the back button is clicked
19
+ */
20
+ onBackClick?: () => void;
21
+ /**
22
+ * Callback invoked when the close button is clicked. Closes the dialog by default
23
+ */
24
+ onCloseClick?: () => void;
25
+ }
26
+ /**
27
+ * `Dialog.Header` component
28
+ *
29
+ * **NOTE**: This component must be used inside a `<Dialog.Root />` component.
30
+ */
31
+ export declare const DialogHeader: React.FC<IDialogHeaderProps>;
@@ -0,0 +1 @@
1
+ export { DialogHeader, type IDialogHeaderProps } from './dialogHeader';
@@ -0,0 +1,57 @@
1
+ import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
2
+ export interface IDialogRootProps extends ComponentPropsWithoutRef<'div'> {
3
+ /**
4
+ * Children of the component.
5
+ */
6
+ children?: ReactNode;
7
+ /**
8
+ * Additional CSS class names for custom styling of the dialog's content container.
9
+ */
10
+ containerClassName?: string;
11
+ /**
12
+ * Determines whether interactions with elements outside of the dialog will be disabled.
13
+ * @default true
14
+ */
15
+ modal?: boolean;
16
+ /**
17
+ * Manages the visibility state of the dialog.
18
+ */
19
+ open?: boolean;
20
+ /**
21
+ * Additional CSS class names for custom styling of the overlay behind the dialog.
22
+ */
23
+ overlayClassName?: string;
24
+ /**
25
+ * Handler called when focus moves to the trigger after closing
26
+ */
27
+ onCloseAutoFocus?: (e: Event) => void;
28
+ /**
29
+ * Handler called when the escape key is pressed while the dialog is opened. Closes the dialog by default.
30
+ */
31
+ onEscapeKeyDown?: (e: KeyboardEvent) => void;
32
+ /**
33
+ * Handler called when an interaction (pointer or focus event) happens outside the bounds of the component
34
+ */
35
+ onInteractOutside?: (e: Event) => void;
36
+ /**
37
+ * Handler called when focus moves into the component after opening
38
+ */
39
+ onOpenAutoFocus?: (e: Event) => void;
40
+ /**
41
+ * Callback function invoked when the open state of the dialog changes.
42
+ */
43
+ onOpenChange?: (open: boolean) => void;
44
+ /**
45
+ * Handler called when a pointer event occurs outside the bounds of the component
46
+ */
47
+ onPointerDownOutside?: (e: Event) => void;
48
+ /**
49
+ * Keeps the focus inside the Dialog when set to true.
50
+ * @default true
51
+ */
52
+ useFocusTrap?: boolean;
53
+ }
54
+ /**
55
+ * `Dialog.Root` component.
56
+ */
57
+ export declare const DialogRoot: React.FC<IDialogRootProps>;
@@ -0,0 +1 @@
1
+ export { DialogRoot, type IDialogRootProps } from './dialogRoot';
@@ -0,0 +1,10 @@
1
+ export declare const Dialog: {
2
+ Content: import("react").FC<import("./dialogContent").IDialogContentProps>;
3
+ Footer: import("react").FC<import("./dialogFooter").IDialogFooterProps>;
4
+ Header: import("react").FC<import("./dialogHeader").IDialogHeaderProps>;
5
+ Root: import("react").FC<import("./dialogRoot").IDialogRootProps>;
6
+ };
7
+ export * from './dialogContent';
8
+ export * from './dialogFooter';
9
+ export * from './dialogHeader';
10
+ export * from './dialogRoot';
@@ -0,0 +1,8 @@
1
+ import type React from 'react';
2
+ import { type ComponentPropsWithoutRef } from 'react';
3
+ export interface IDialogAlertContentProps extends ComponentPropsWithoutRef<'div'> {
4
+ }
5
+ /**
6
+ * `DialogAlert.Content` component.
7
+ */
8
+ export declare const DialogAlertContent: React.FC<IDialogAlertContentProps>;
@@ -0,0 +1 @@
1
+ export { DialogAlertContent, type IDialogAlertContentProps } from './dialogAlertContent';
@@ -0,0 +1,26 @@
1
+ import type React from 'react';
2
+ import { type AnchorHTMLAttributes, type ButtonHTMLAttributes } from 'react';
3
+ import { type IButtonBaseProps } from '../../../button';
4
+ export type IDialogAlertFooterAction = (Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> | Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'>) & Pick<IButtonBaseProps, 'iconRight' | 'iconLeft' | 'disabled' | 'isLoading'> & {
5
+ /**
6
+ * Button label
7
+ */
8
+ label: string;
9
+ };
10
+ export interface IDialogAlertFooterProps {
11
+ /**
12
+ * Alert dialog primary action button
13
+ */
14
+ actionButton: IDialogAlertFooterAction;
15
+ /**
16
+ * Alert dialog secondary button used for dismissing the dialog
17
+ * or cancelling the action
18
+ */
19
+ cancelButton: IDialogAlertFooterAction;
20
+ }
21
+ /**
22
+ * `DialogAlert.Footer` component
23
+ *
24
+ * **NOTE**: This component must be used inside a `<DialogAlert.Root />` component.
25
+ */
26
+ export declare const DialogAlertFooter: React.FC<IDialogAlertFooterProps>;
@@ -0,0 +1 @@
1
+ export { DialogAlertFooter, type IDialogAlertFooterAction, type IDialogAlertFooterProps } from './dialogAlertFooter';
@@ -0,0 +1,17 @@
1
+ import { type ComponentPropsWithoutRef } from 'react';
2
+ export interface IDialogAlertHeaderProps extends ComponentPropsWithoutRef<'div'> {
3
+ /**
4
+ * Title summarizing dialog's content or purpose.
5
+ */
6
+ title: string;
7
+ /**
8
+ * Optional visually hidden description announced when the dialog is opened for accessibility.
9
+ */
10
+ description?: string;
11
+ }
12
+ /**
13
+ * `DialogAlert.Header` component
14
+ *
15
+ * **NOTE**: This component must be used inside a `<DialogAlert.Root />` component.
16
+ */
17
+ export declare const DialogAlertHeader: React.FC<IDialogAlertHeaderProps>;
@@ -0,0 +1 @@
1
+ export { DialogAlertHeader, type IDialogAlertHeaderProps } from './dialogAlertHeader';
@@ -0,0 +1,54 @@
1
+ import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
2
+ export type DialogAlertVariant = 'critical' | 'info' | 'success' | 'warning';
3
+ export interface IDialogAlertRootProps extends ComponentPropsWithoutRef<'div'> {
4
+ /**
5
+ * Children of the component.
6
+ */
7
+ children?: ReactNode;
8
+ /**
9
+ * Additional CSS class names for custom styling of the dialog's content container.
10
+ */
11
+ containerClassName?: string;
12
+ /**
13
+ * Manages the visibility state of the dialog. Should be implemented alongside `onOpenChange` for controlled usage.
14
+ */
15
+ open?: boolean;
16
+ /**
17
+ * Additional CSS class names for custom styling of the overlay behind the dialog.
18
+ */
19
+ overlayClassName?: string;
20
+ /**
21
+ * The visual style variant of the dialog.
22
+ * @default info
23
+ */
24
+ variant?: DialogAlertVariant;
25
+ /**
26
+ * Callback function invoked when the open state of the dialog changes.
27
+ */
28
+ onOpenChange?: (open: boolean) => void;
29
+ /**
30
+ * Handler called when focus moves to the trigger after closing the dialog.
31
+ */
32
+ onCloseAutoFocus?: (e: Event) => void;
33
+ /**
34
+ * Handler called when focus moves to the destructive action after opening the dialog.
35
+ */
36
+ onOpenAutoFocus?: (e: Event) => void;
37
+ /**
38
+ * Handler called when the escape key is pressed while the dialog is opened. Closes the dialog by default.
39
+ */
40
+ onEscapeKeyDown?: (e: KeyboardEvent) => void;
41
+ /**
42
+ * Keeps the focus inside the Alert Dialog when set to true.
43
+ * @default true
44
+ */
45
+ useFocusTrap?: boolean;
46
+ }
47
+ export interface IDialogAlertContext {
48
+ variant: DialogAlertVariant;
49
+ }
50
+ export declare const DialogAlertContext: import("react").Context<IDialogAlertContext>;
51
+ /**
52
+ * `DialogAlert.Root` component.
53
+ */
54
+ export declare const DialogAlertRoot: React.FC<IDialogAlertRootProps>;
@@ -0,0 +1 @@
1
+ export { DialogAlertContext, DialogAlertRoot, type DialogAlertVariant, type IDialogAlertContext, type IDialogAlertRootProps, } from './dialogAlertRoot';
@@ -0,0 +1,10 @@
1
+ export declare const DialogAlert: {
2
+ Content: import("react").FC<import("./dialogAlertContent").IDialogAlertContentProps>;
3
+ Footer: import("react").FC<import("./dialogAlertFooter").IDialogAlertFooterProps>;
4
+ Header: import("react").FC<import("./dialogAlertHeader").IDialogAlertHeaderProps>;
5
+ Root: import("react").FC<import("./dialogAlertRoot").IDialogAlertRootProps>;
6
+ };
7
+ export * from './dialogAlertContent';
8
+ export * from './dialogAlertFooter';
9
+ export * from './dialogAlertHeader';
10
+ export * from './dialogAlertRoot';
@@ -0,0 +1,31 @@
1
+ export declare class DialogUtils {
2
+ static readonly overlayAnimationVariants: {
3
+ closed: {
4
+ opacity: number;
5
+ };
6
+ open: {
7
+ opacity: number;
8
+ };
9
+ };
10
+ static readonly contentAnimationVariants: {
11
+ closed: {
12
+ opacity: number;
13
+ scale: number;
14
+ y: number;
15
+ };
16
+ open: {
17
+ opacity: number;
18
+ scale: number;
19
+ y: number;
20
+ transition: {
21
+ duration: number;
22
+ };
23
+ };
24
+ exit: {
25
+ opacity: number;
26
+ transition: {
27
+ duration: number;
28
+ };
29
+ };
30
+ };
31
+ }
@@ -0,0 +1,2 @@
1
+ export * from './dialog';
2
+ export * from './dialogAlert';
@@ -0,0 +1,8 @@
1
+ import { type ComponentPropsWithoutRef } from 'react';
2
+ export interface IDocumentParserProps extends ComponentPropsWithoutRef<'div'> {
3
+ /**
4
+ * The stringified document of Markdown or HTML to parse into a styled output.
5
+ */
6
+ document: string;
7
+ }
8
+ export declare const DocumentParser: React.FC<IDocumentParserProps>;
@@ -0,0 +1 @@
1
+ export { DocumentParser, type IDocumentParserProps } from './documentParser';
@@ -0,0 +1,63 @@
1
+ import * as RadixDropdown from '@radix-ui/react-dropdown-menu';
2
+ import { type ComponentProps, type ReactNode } from 'react';
3
+ import { type IButtonProps } from '../../button';
4
+ export interface IDropdownContainerProps extends Omit<ComponentProps<'div'>, 'dir'> {
5
+ /**
6
+ * Size of the dropdown trigger.
7
+ * @default lg
8
+ */
9
+ size?: IButtonProps['size'];
10
+ /**
11
+ * Custom dropdown trigger displayed instead of the default button.
12
+ */
13
+ customTrigger?: ReactNode;
14
+ /**
15
+ * Size of the dropdown trigger depending on the current breakpoint.
16
+ */
17
+ responsiveSize?: IButtonProps['responsiveSize'];
18
+ /**
19
+ * Label of the dropdown trigger.
20
+ */
21
+ label?: string;
22
+ /**
23
+ * Alignment of the dropdown content.
24
+ * @default start
25
+ */
26
+ align?: RadixDropdown.DropdownMenuContentProps['align'];
27
+ /**
28
+ * Hides the dropdown trigger icon when set to true. This property has no effect when the label property
29
+ * is not set or is empty.
30
+ */
31
+ hideIcon?: boolean;
32
+ /**
33
+ * Disables the dropdown when set to true.
34
+ */
35
+ disabled?: boolean;
36
+ /**
37
+ * Whether the dropdown is open by default.
38
+ */
39
+ defaultOpen?: boolean;
40
+ /**
41
+ * Whether the dropdown is open.
42
+ */
43
+ open?: boolean;
44
+ /**
45
+ * Callback when the open state changes.
46
+ */
47
+ onOpenChange?: (open: boolean) => void;
48
+ /**
49
+ * Sets a max width to the dropdown content as the remaining width between the trigger and the boundary edge.
50
+ * @default true
51
+ */
52
+ constrainContentWidth?: boolean;
53
+ /**
54
+ * Sets a max height to the dropdown content as the remaining height between the trigger and the boundary edge.
55
+ * @default true
56
+ */
57
+ constrainContentHeight?: boolean;
58
+ /**
59
+ * Additional classnames for the dropdown container (e.g. for setting a max width for the dropdown items).
60
+ */
61
+ contentClassNames?: string;
62
+ }
63
+ export declare const DropdownContainer: React.FC<IDropdownContainerProps>;
@@ -0,0 +1 @@
1
+ export { DropdownContainer, type IDropdownContainerProps } from './dropdownContainer';
@@ -0,0 +1,39 @@
1
+ import React, { type ComponentProps } from 'react';
2
+ import { IconType } from '../../icon';
3
+ export interface IDropdownItemProps extends Omit<ComponentProps<'div'>, 'onSelect'> {
4
+ /**
5
+ * Renders the dropdown item as selected when set to true.
6
+ */
7
+ selected?: boolean;
8
+ /**
9
+ * Icon displayed beside the item label. Defaults to LinkExternal when the item is a link or to Checkmark when the
10
+ * selected property is set to true.
11
+ */
12
+ icon?: IconType;
13
+ /**
14
+ * Position of the icon.
15
+ * @default right
16
+ */
17
+ iconPosition?: 'right' | 'left';
18
+ /**
19
+ * Link of the dropdown item.
20
+ */
21
+ href?: string;
22
+ /**
23
+ * Target of the dropdown link.
24
+ */
25
+ target?: string;
26
+ /**
27
+ * Rel attribute of the dropdown link.
28
+ */
29
+ rel?: string;
30
+ /**
31
+ * Disables the dropdown item when set to true.
32
+ */
33
+ disabled?: boolean;
34
+ /**
35
+ * Callback when the dropdown item is selected.
36
+ */
37
+ onSelect?: (event: Event) => void;
38
+ }
39
+ export declare const DropdownItem: React.FC<IDropdownItemProps>;
@@ -0,0 +1 @@
1
+ export { DropdownItem, type IDropdownItemProps } from './dropdownItem';
@@ -0,0 +1,6 @@
1
+ export declare const Dropdown: {
2
+ Container: import("react").FC<import("./dropdownContainer").IDropdownContainerProps>;
3
+ Item: import("react").FC<import("./dropdownItem").IDropdownItemProps>;
4
+ };
5
+ export * from './dropdownContainer';
6
+ export * from './dropdownItem';
@@ -0,0 +1,30 @@
1
+ import { type ComponentProps } from 'react';
2
+ export type CheckboxState = boolean | 'indeterminate';
3
+ export interface ICheckboxProps extends ComponentProps<'button'> {
4
+ /**
5
+ * Label of the checkbox.
6
+ */
7
+ label: string;
8
+ /**
9
+ * Position of the label.
10
+ * @default right
11
+ */
12
+ labelPosition?: 'right' | 'left';
13
+ /**
14
+ * The checked state of the checkbox.
15
+ */
16
+ checked?: CheckboxState;
17
+ /**
18
+ * Callback when the checked state changes.
19
+ */
20
+ onCheckedChange?: (checked: CheckboxState) => void;
21
+ /**
22
+ * Indicates if the checkbox is disabled.
23
+ */
24
+ disabled?: boolean;
25
+ /**
26
+ * Id of the checkbox.
27
+ */
28
+ id?: string;
29
+ }
30
+ export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<ICheckboxProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1 @@
1
+ export { Checkbox, type CheckboxState, type ICheckboxProps } from './checkbox';
@@ -0,0 +1,42 @@
1
+ import { type ComponentProps, type ReactNode } from 'react';
2
+ import { type ITagProps } from '../../tag';
3
+ import { type CheckboxState } from '../checkbox/checkbox';
4
+ export interface ICheckboxCardProps extends ComponentProps<'button'> {
5
+ /**
6
+ * Avatar of the checkbox card.
7
+ */
8
+ avatar?: string;
9
+ /**
10
+ * Label of the checkbox.
11
+ */
12
+ label: string;
13
+ /**
14
+ * Description of the checkbox.
15
+ */
16
+ description?: string;
17
+ /**
18
+ * Optional tag for the checkbox.
19
+ */
20
+ tag?: ITagProps;
21
+ /**
22
+ * The checked state of the checkbox.
23
+ */
24
+ checked?: CheckboxState;
25
+ /**
26
+ * Callback when the checked state changes.
27
+ */
28
+ onCheckedChange?: (checked: CheckboxState) => void;
29
+ /**
30
+ * Indicates if the checkbox is disabled.
31
+ */
32
+ disabled?: boolean;
33
+ /**
34
+ * Id of the checkbox.
35
+ */
36
+ id?: string;
37
+ /**
38
+ * Additional children to render when the checkbox is checked.
39
+ */
40
+ children?: ReactNode;
41
+ }
42
+ export declare const CheckboxCard: import("react").ForwardRefExoticComponent<Omit<ICheckboxCardProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1 @@
1
+ export { CheckboxCard, type ICheckboxCardProps } from './checkboxCard';
@@ -0,0 +1,13 @@
1
+ import type { ReactNode } from 'react';
2
+ import { type IInputContainerBaseProps } from '../inputContainer';
3
+ export interface ICheckboxGroupProps extends Pick<IInputContainerBaseProps, 'alert' | 'label' | 'helpText' | 'isOptional'> {
4
+ /**
5
+ * Additional classes for the component.
6
+ */
7
+ className?: string;
8
+ /**
9
+ * Children of the component.
10
+ */
11
+ children?: ReactNode;
12
+ }
13
+ export declare const CheckboxGroup: React.FC<ICheckboxGroupProps>;
@@ -0,0 +1 @@
1
+ export { CheckboxGroup, type ICheckboxGroupProps } from './checkboxGroup';
@@ -0,0 +1,2 @@
1
+ export { useInputProps, type IUseInputPropsResult } from './useInputProps';
2
+ export { useNumberMask, type IUseNumberMaskProps, type IUseNumberMaskResult } from './useNumberMask';