@msqd/lydia 0.0.0-stage → 0.6.0

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 (378) hide show
  1. package/LICENSE +373 -0
  2. package/README.md +151 -2
  3. package/THIRD_PARTY_NOTICES.md +29 -0
  4. package/dist/Components/Badges/Badge.d.ts +20 -0
  5. package/dist/Components/Badges/Badge.js +33 -0
  6. package/dist/Components/Badges/index.d.ts +1 -0
  7. package/dist/Components/Badges/index.js +4 -0
  8. package/dist/Components/Buttons/Button.d.ts +8 -0
  9. package/dist/Components/Buttons/Button.js +30 -0
  10. package/dist/Components/Buttons/ButtonGroup.d.ts +13 -0
  11. package/dist/Components/Buttons/ButtonGroup.js +61 -0
  12. package/dist/Components/Buttons/index.d.ts +2 -0
  13. package/dist/Components/Buttons/index.js +6 -0
  14. package/dist/Components/Cards/Card.d.ts +38 -0
  15. package/dist/Components/Cards/Card.js +31 -0
  16. package/dist/Components/Cards/StatCard.d.ts +14 -0
  17. package/dist/Components/Cards/StatCard.js +27 -0
  18. package/dist/Components/Cards/index.d.ts +2 -0
  19. package/dist/Components/Cards/index.js +7 -0
  20. package/dist/Components/Charts/Components/ThinBarChart.d.ts +35 -0
  21. package/dist/Components/Charts/Components/ThinBarChart.js +41 -0
  22. package/dist/Components/Charts/Components/WideBarChart.d.ts +48 -0
  23. package/dist/Components/Charts/Components/WideBarChart.js +50 -0
  24. package/dist/Components/Charts/Components/index.d.ts +2 -0
  25. package/dist/Components/Charts/Components/index.js +6 -0
  26. package/dist/Components/Charts/Hooks/index.d.ts +2 -0
  27. package/dist/Components/Charts/Hooks/index.js +7 -0
  28. package/dist/Components/Charts/Hooks/useChartDimensions.d.ts +24 -0
  29. package/dist/Components/Charts/Hooks/useChartDimensions.js +42 -0
  30. package/dist/Components/Charts/Hooks/useThemeColors.d.ts +10 -0
  31. package/dist/Components/Charts/Hooks/useThemeColors.js +51 -0
  32. package/dist/Components/Charts/SummaryPerformancesChart.d.ts +7 -0
  33. package/dist/Components/Charts/SummaryPerformancesChart.js +93 -0
  34. package/dist/Components/Charts/SummaryRateChart.d.ts +9 -0
  35. package/dist/Components/Charts/SummaryRateChart.js +81 -0
  36. package/dist/Components/Charts/TransactionsChart.d.ts +6 -0
  37. package/dist/Components/Charts/TransactionsChart.js +70 -0
  38. package/dist/Components/Charts/Utils/ChartBarCalculator.d.ts +48 -0
  39. package/dist/Components/Charts/Utils/ChartBarCalculator.js +66 -0
  40. package/dist/Components/Charts/Utils/ChartColors.d.ts +13 -0
  41. package/dist/Components/Charts/Utils/ChartColors.js +10 -0
  42. package/dist/Components/Charts/Utils/ChartTooltipFormatter.d.ts +43 -0
  43. package/dist/Components/Charts/Utils/ChartTooltipFormatter.js +57 -0
  44. package/dist/Components/Charts/Utils/ReactEChartsCore.d.ts +4 -0
  45. package/dist/Components/Charts/Utils/ReactEChartsCore.js +5 -0
  46. package/dist/Components/Charts/Utils/ThemeColor.d.ts +21 -0
  47. package/dist/Components/Charts/Utils/ThemeColor.js +54 -0
  48. package/dist/Components/Charts/Utils/TimeFormatter.d.ts +9 -0
  49. package/dist/Components/Charts/Utils/TimeFormatter.js +25 -0
  50. package/dist/Components/Charts/Utils/escapeTooltipHtml.d.ts +6 -0
  51. package/dist/Components/Charts/Utils/escapeTooltipHtml.js +5 -0
  52. package/dist/Components/Charts/Utils/index.d.ts +5 -0
  53. package/dist/Components/Charts/Utils/index.js +14 -0
  54. package/dist/Components/Charts/index.d.ts +6 -0
  55. package/dist/Components/Charts/index.js +29 -0
  56. package/dist/Components/Colors/Colors.d.ts +19 -0
  57. package/dist/Components/Colors/Colors.js +154 -0
  58. package/dist/Components/Colors/index.d.ts +1 -0
  59. package/dist/Components/Colors/index.js +4 -0
  60. package/dist/Components/DataTable/DataTable.d.ts +86 -0
  61. package/dist/Components/DataTable/DataTable.js +122 -0
  62. package/dist/Components/DataTable/Paginator.d.ts +41 -0
  63. package/dist/Components/DataTable/Paginator.js +122 -0
  64. package/dist/Components/DataTable/ProportionBar.d.ts +48 -0
  65. package/dist/Components/DataTable/ProportionBar.js +20 -0
  66. package/dist/Components/DataTable/index.d.ts +3 -0
  67. package/dist/Components/DataTable/index.js +9 -0
  68. package/dist/Components/Dialog/Dialog.d.ts +49 -0
  69. package/dist/Components/Dialog/Dialog.js +83 -0
  70. package/dist/Components/Dialog/Drawer.d.ts +45 -0
  71. package/dist/Components/Dialog/Drawer.js +120 -0
  72. package/dist/Components/Dialog/index.d.ts +3 -0
  73. package/dist/Components/Dialog/index.js +12 -0
  74. package/dist/Components/Dialog/modal.types.d.ts +47 -0
  75. package/dist/Components/Dialog/modal.types.js +8 -0
  76. package/dist/Components/Facets/FacetCount.d.ts +11 -0
  77. package/dist/Components/Facets/FacetCount.js +8 -0
  78. package/dist/Components/Facets/FacetCountsCaption.d.ts +16 -0
  79. package/dist/Components/Facets/FacetCountsCaption.js +14 -0
  80. package/dist/Components/Facets/FacetInnerLightButton.d.ts +10 -0
  81. package/dist/Components/Facets/FacetInnerLightButton.js +17 -0
  82. package/dist/Components/Facets/FacetLabel.d.ts +13 -0
  83. package/dist/Components/Facets/FacetLabel.js +15 -0
  84. package/dist/Components/Facets/FacetList.d.ts +40 -0
  85. package/dist/Components/Facets/FacetList.js +37 -0
  86. package/dist/Components/Facets/FacetListCard.d.ts +38 -0
  87. package/dist/Components/Facets/FacetListCard.js +47 -0
  88. package/dist/Components/Facets/FacetResetLink.d.ts +13 -0
  89. package/dist/Components/Facets/FacetResetLink.js +23 -0
  90. package/dist/Components/Facets/Variants/DateRangeFacet.d.ts +47 -0
  91. package/dist/Components/Facets/Variants/DateRangeFacet.js +51 -0
  92. package/dist/Components/Facets/Variants/MultipleChoiceFacet.d.ts +67 -0
  93. package/dist/Components/Facets/Variants/MultipleChoiceFacet.js +200 -0
  94. package/dist/Components/Facets/Variants/PerformanceFacet.d.ts +61 -0
  95. package/dist/Components/Facets/Variants/PerformanceFacet.js +77 -0
  96. package/dist/Components/Facets/Variants/SingleChoiceFacet.d.ts +56 -0
  97. package/dist/Components/Facets/Variants/SingleChoiceFacet.js +54 -0
  98. package/dist/Components/Facets/Variants/index.d.ts +8 -0
  99. package/dist/Components/Facets/Variants/index.js +10 -0
  100. package/dist/Components/Facets/Variants/nestedValues.d.ts +33 -0
  101. package/dist/Components/Facets/Variants/nestedValues.js +87 -0
  102. package/dist/Components/Facets/index.d.ts +15 -0
  103. package/dist/Components/Facets/index.js +27 -0
  104. package/dist/Components/Formatter/BodyNotice.d.ts +9 -0
  105. package/dist/Components/Formatter/BodyNotice.js +21 -0
  106. package/dist/Components/Formatter/CodeFormatter.d.ts +47 -0
  107. package/dist/Components/Formatter/CodeFormatter.js +47 -0
  108. package/dist/Components/Formatter/HeadersDisplay.d.ts +9 -0
  109. package/dist/Components/Formatter/HeadersDisplay.js +18 -0
  110. package/dist/Components/Formatter/JsonTreeView.d.ts +27 -0
  111. package/dist/Components/Formatter/JsonTreeView.js +145 -0
  112. package/dist/Components/Formatter/PerformanceMetrics.d.ts +27 -0
  113. package/dist/Components/Formatter/PerformanceMetrics.js +29 -0
  114. package/dist/Components/Formatter/SyntaxHighlighter.d.ts +11 -0
  115. package/dist/Components/Formatter/SyntaxHighlighter.js +16 -0
  116. package/dist/Components/Formatter/VirtualizedCodeView.d.ts +24 -0
  117. package/dist/Components/Formatter/VirtualizedCodeView.js +47 -0
  118. package/dist/Components/Formatter/bodyLimits.d.ts +6 -0
  119. package/dist/Components/Formatter/bodyLimits.js +6 -0
  120. package/dist/Components/Formatter/index.d.ts +8 -0
  121. package/dist/Components/Formatter/index.js +16 -0
  122. package/dist/Components/Formatter/syntaxTheme.d.ts +8 -0
  123. package/dist/Components/Formatter/syntaxTheme.js +15 -0
  124. package/dist/Components/Formatter/useCodeHighlighting.d.ts +15 -0
  125. package/dist/Components/Formatter/useCodeHighlighting.js +47 -0
  126. package/dist/Components/Formatter/useVirtualization.d.ts +29 -0
  127. package/dist/Components/Formatter/useVirtualization.js +18 -0
  128. package/dist/Components/Inputs/Checkbox/Checkbox.d.ts +6 -0
  129. package/dist/Components/Inputs/Checkbox/Checkbox.js +75 -0
  130. package/dist/Components/Inputs/Checkbox/index.d.ts +1 -0
  131. package/dist/Components/Inputs/Checkbox/index.js +4 -0
  132. package/dist/Components/Inputs/DateRangeSelector/DateRangeSelector.d.ts +48 -0
  133. package/dist/Components/Inputs/DateRangeSelector/DateRangeSelector.js +71 -0
  134. package/dist/Components/Inputs/DateRangeSelector/index.d.ts +1 -0
  135. package/dist/Components/Inputs/DateRangeSelector/index.js +4 -0
  136. package/dist/Components/Inputs/Field/Field.d.ts +19 -0
  137. package/dist/Components/Inputs/Field/Field.js +35 -0
  138. package/dist/Components/Inputs/Field/index.d.ts +2 -0
  139. package/dist/Components/Inputs/Field/index.js +7 -0
  140. package/dist/Components/Inputs/Field/useField.d.ts +33 -0
  141. package/dist/Components/Inputs/Field/useField.js +36 -0
  142. package/dist/Components/Inputs/Input/Input.d.ts +85 -0
  143. package/dist/Components/Inputs/Input/Input.js +146 -0
  144. package/dist/Components/Inputs/Input/index.d.ts +1 -0
  145. package/dist/Components/Inputs/Input/index.js +4 -0
  146. package/dist/Components/Inputs/InputAddon/InputAddon.d.ts +21 -0
  147. package/dist/Components/Inputs/InputAddon/InputAddon.js +18 -0
  148. package/dist/Components/Inputs/InputAddon/index.d.ts +1 -0
  149. package/dist/Components/Inputs/InputAddon/index.js +4 -0
  150. package/dist/Components/Inputs/InputButton/InputButton.d.ts +21 -0
  151. package/dist/Components/Inputs/InputButton/InputButton.js +29 -0
  152. package/dist/Components/Inputs/InputButton/index.d.ts +1 -0
  153. package/dist/Components/Inputs/InputButton/index.js +4 -0
  154. package/dist/Components/Inputs/InputIcon/InputIcon.d.ts +20 -0
  155. package/dist/Components/Inputs/InputIcon/InputIcon.js +16 -0
  156. package/dist/Components/Inputs/InputIcon/index.d.ts +1 -0
  157. package/dist/Components/Inputs/InputIcon/index.js +4 -0
  158. package/dist/Components/Inputs/KeyboardShortcut/KeyboardShortcut.d.ts +12 -0
  159. package/dist/Components/Inputs/KeyboardShortcut/KeyboardShortcut.js +18 -0
  160. package/dist/Components/Inputs/KeyboardShortcut/index.d.ts +1 -0
  161. package/dist/Components/Inputs/KeyboardShortcut/index.js +4 -0
  162. package/dist/Components/Inputs/Radio/Radio.d.ts +3 -0
  163. package/dist/Components/Inputs/Radio/Radio.js +59 -0
  164. package/dist/Components/Inputs/Radio/index.d.ts +1 -0
  165. package/dist/Components/Inputs/Radio/index.js +4 -0
  166. package/dist/Components/Inputs/SearchInput/SearchInput.d.ts +9 -0
  167. package/dist/Components/Inputs/SearchInput/SearchInput.js +48 -0
  168. package/dist/Components/Inputs/SearchInput/index.d.ts +2 -0
  169. package/dist/Components/Inputs/SearchInput/index.js +4 -0
  170. package/dist/Components/Inputs/Sliders/RangeSlider.d.ts +40 -0
  171. package/dist/Components/Inputs/Sliders/RangeSlider.js +160 -0
  172. package/dist/Components/Inputs/Sliders/index.d.ts +2 -0
  173. package/dist/Components/Inputs/Sliders/index.js +4 -0
  174. package/dist/Components/Inputs/Textarea/Textarea.d.ts +56 -0
  175. package/dist/Components/Inputs/Textarea/Textarea.js +79 -0
  176. package/dist/Components/Inputs/Textarea/index.d.ts +1 -0
  177. package/dist/Components/Inputs/Textarea/index.js +4 -0
  178. package/dist/Components/Inputs/choiceInput.d.ts +12 -0
  179. package/dist/Components/Inputs/choiceInput.js +8 -0
  180. package/dist/Components/Inputs/index.d.ts +11 -0
  181. package/dist/Components/Inputs/index.js +24 -0
  182. package/dist/Components/Layouts/DefaultLayout.d.ts +30 -0
  183. package/dist/Components/Layouts/DefaultLayout.js +25 -0
  184. package/dist/Components/Layouts/index.d.ts +2 -0
  185. package/dist/Components/Layouts/index.js +4 -0
  186. package/dist/Components/NavBar/Assets/defaultAvatar.d.ts +4 -0
  187. package/dist/Components/NavBar/Assets/defaultAvatar.js +28 -0
  188. package/dist/Components/NavBar/Assets/index.d.ts +2 -0
  189. package/dist/Components/NavBar/Assets/index.js +4 -0
  190. package/dist/Components/NavBar/NavBar.d.ts +58 -0
  191. package/dist/Components/NavBar/NavBar.js +141 -0
  192. package/dist/Components/NavBar/index.d.ts +1 -0
  193. package/dist/Components/NavBar/index.js +5 -0
  194. package/dist/Components/Tabs/Tabs.d.ts +24 -0
  195. package/dist/Components/Tabs/Tabs.js +69 -0
  196. package/dist/Components/Tabs/index.d.ts +2 -0
  197. package/dist/Components/Tabs/index.js +5 -0
  198. package/dist/Components/Toast/Toast.d.ts +28 -0
  199. package/dist/Components/Toast/Toast.js +128 -0
  200. package/dist/Components/Toast/ToastContainer.d.ts +29 -0
  201. package/dist/Components/Toast/ToastContainer.js +28 -0
  202. package/dist/Components/Toast/ToastContext.d.ts +103 -0
  203. package/dist/Components/Toast/ToastContext.js +124 -0
  204. package/dist/Components/Toast/index.d.ts +3 -0
  205. package/dist/Components/Toast/index.js +13 -0
  206. package/dist/Components/Typography/HeadingLevel.d.ts +28 -0
  207. package/dist/Components/Typography/HeadingLevel.js +20 -0
  208. package/dist/Components/Typography/Paragraphs.d.ts +8 -0
  209. package/dist/Components/Typography/Paragraphs.js +6 -0
  210. package/dist/Components/Typography/Section.d.ts +8 -0
  211. package/dist/Components/Typography/Section.js +6 -0
  212. package/dist/Components/Typography/Titles.d.ts +31 -0
  213. package/dist/Components/Typography/Titles.js +14 -0
  214. package/dist/Components/Typography/index.d.ts +4 -0
  215. package/dist/Components/Typography/index.js +17 -0
  216. package/dist/Components/Utilities/Foldable.d.ts +42 -0
  217. package/dist/Components/Utilities/Foldable.js +39 -0
  218. package/dist/Components/Utilities/index.d.ts +2 -0
  219. package/dist/Components/Utilities/index.js +6 -0
  220. package/dist/Components/Utilities/useClickOutside.d.ts +21 -0
  221. package/dist/Components/Utilities/useClickOutside.js +23 -0
  222. package/dist/Components/index.d.ts +16 -0
  223. package/dist/Components/index.js +158 -0
  224. package/dist/Elements/Http/CacheBadge.d.ts +13 -0
  225. package/dist/Elements/Http/CacheBadge.js +34 -0
  226. package/dist/Elements/Http/CacheIndicator.d.ts +17 -0
  227. package/dist/Elements/Http/CacheIndicator.js +47 -0
  228. package/dist/Elements/Http/RequestMethodBadge.d.ts +5 -0
  229. package/dist/Elements/Http/RequestMethodBadge.js +13 -0
  230. package/dist/Elements/Http/ResponseStatusBadge.d.ts +19 -0
  231. package/dist/Elements/Http/ResponseStatusBadge.js +20 -0
  232. package/dist/Elements/Http/index.d.ts +4 -0
  233. package/dist/Elements/Http/index.js +10 -0
  234. package/dist/Elements/System/CircuitBreakerStatus.d.ts +11 -0
  235. package/dist/Elements/System/CircuitBreakerStatus.js +98 -0
  236. package/dist/Elements/System/EndpointNode.d.ts +10 -0
  237. package/dist/Elements/System/EndpointNode.js +19 -0
  238. package/dist/Elements/System/EntrypointNode.d.ts +9 -0
  239. package/dist/Elements/System/EntrypointNode.js +17 -0
  240. package/dist/Elements/System/NetworkEdges.d.ts +37 -0
  241. package/dist/Elements/System/NetworkEdges.js +52 -0
  242. package/dist/Elements/System/NetworkMap.d.ts +33 -0
  243. package/dist/Elements/System/NetworkMap.js +121 -0
  244. package/dist/Elements/System/NetworkNode.d.ts +29 -0
  245. package/dist/Elements/System/NetworkNode.js +31 -0
  246. package/dist/Elements/System/ProxyNode.d.ts +8 -0
  247. package/dist/Elements/System/ProxyNode.js +10 -0
  248. package/dist/Elements/System/index.d.ts +9 -0
  249. package/dist/Elements/System/index.js +17 -0
  250. package/dist/Elements/Tpdex/TpdexBadge.d.ts +26 -0
  251. package/dist/Elements/Tpdex/TpdexBadge.js +36 -0
  252. package/dist/Elements/Tpdex/index.d.ts +4 -0
  253. package/dist/Elements/Tpdex/index.js +8 -0
  254. package/dist/Elements/Transactions/TransactionFiltersCard.d.ts +41 -0
  255. package/dist/Elements/Transactions/TransactionFiltersCard.js +121 -0
  256. package/dist/Elements/Transactions/TransactionsExplorerSidebar.d.ts +37 -0
  257. package/dist/Elements/Transactions/TransactionsExplorerSidebar.js +154 -0
  258. package/dist/Elements/Transactions/TransactionsFiltersSidebar.d.ts +22 -0
  259. package/dist/Elements/Transactions/TransactionsFiltersSidebar.js +39 -0
  260. package/dist/Elements/Transactions/index.d.ts +13 -0
  261. package/dist/Elements/Transactions/index.js +9 -0
  262. package/dist/Elements/index.d.ts +18 -0
  263. package/dist/Elements/index.js +38 -0
  264. package/dist/Models/Filters/active.d.ts +12 -0
  265. package/dist/Models/Filters/active.js +10 -0
  266. package/dist/Models/Filters/dates.d.ts +8 -0
  267. package/dist/Models/Filters/dates.js +16 -0
  268. package/dist/Models/Filters/index.d.ts +4 -0
  269. package/dist/Models/Filters/index.js +13 -0
  270. package/dist/Models/Filters/read.d.ts +9 -0
  271. package/dist/Models/Filters/read.js +22 -0
  272. package/dist/Models/Filters/types.d.ts +50 -0
  273. package/dist/Models/Filters/types.js +1 -0
  274. package/dist/Models/Http/body.d.ts +7 -0
  275. package/dist/Models/Http/body.js +6 -0
  276. package/dist/Models/Http/contentDisposition.d.ts +7 -0
  277. package/dist/Models/Http/contentDisposition.js +51 -0
  278. package/dist/Models/Http/dataUrl.d.ts +12 -0
  279. package/dist/Models/Http/dataUrl.js +21 -0
  280. package/dist/Models/Http/headers.d.ts +18 -0
  281. package/dist/Models/Http/headers.js +7 -0
  282. package/dist/Models/Http/index.d.ts +2 -0
  283. package/dist/Models/Http/index.js +6 -0
  284. package/dist/Models/Http/percent.d.ts +5 -0
  285. package/dist/Models/Http/percent.js +17 -0
  286. package/dist/Models/Http/requestTarget.d.ts +11 -0
  287. package/dist/Models/Http/requestTarget.js +7 -0
  288. package/dist/Models/System/index.d.ts +1 -0
  289. package/dist/Models/System/index.js +7 -0
  290. package/dist/Models/System/types.d.ts +20 -0
  291. package/dist/Models/System/types.js +48 -0
  292. package/dist/Models/Tpdex.d.ts +36 -0
  293. package/dist/Models/Tpdex.js +38 -0
  294. package/dist/Models/Transactions/Overview.d.ts +19 -0
  295. package/dist/Models/Transactions/Overview.js +1 -0
  296. package/dist/Models/Transactions/encoding.d.ts +49 -0
  297. package/dist/Models/Transactions/encoding.js +26 -0
  298. package/dist/Models/Transactions/endpoints.d.ts +15 -0
  299. package/dist/Models/Transactions/endpoints.js +21 -0
  300. package/dist/Models/Transactions/facets.d.ts +25 -0
  301. package/dist/Models/Transactions/facets.js +40 -0
  302. package/dist/Models/Transactions/filtering.d.ts +20 -0
  303. package/dist/Models/Transactions/filtering.js +34 -0
  304. package/dist/Models/Transactions/treeDepth.d.ts +2 -0
  305. package/dist/Models/Transactions/treeDepth.js +4 -0
  306. package/dist/Models/Transactions/types.d.ts +58 -0
  307. package/dist/Models/Transactions/types.js +1 -0
  308. package/dist/Models/index.d.ts +10 -0
  309. package/dist/Models/index.js +46 -0
  310. package/dist/Pages/Alerts/AlertsPage.d.ts +18 -0
  311. package/dist/Pages/Alerts/AlertsPage.js +104 -0
  312. package/dist/Pages/Alerts/index.d.ts +1 -0
  313. package/dist/Pages/Alerts/index.js +4 -0
  314. package/dist/Pages/Explorer/ExplorerPage.d.ts +6 -0
  315. package/dist/Pages/Explorer/ExplorerPage.js +55 -0
  316. package/dist/Pages/Explorer/index.d.ts +1 -0
  317. package/dist/Pages/Explorer/index.js +4 -0
  318. package/dist/Pages/Overview/OverviewPage.d.ts +11 -0
  319. package/dist/Pages/Overview/OverviewPage.js +10 -0
  320. package/dist/Pages/Overview/Sections/Components/TransactionsHistoryView.d.ts +7 -0
  321. package/dist/Pages/Overview/Sections/Components/TransactionsHistoryView.js +32 -0
  322. package/dist/Pages/Overview/Sections/Components/index.d.ts +1 -0
  323. package/dist/Pages/Overview/Sections/Components/index.js +4 -0
  324. package/dist/Pages/Overview/Sections/HistorySection.d.ts +18 -0
  325. package/dist/Pages/Overview/Sections/HistorySection.js +21 -0
  326. package/dist/Pages/Overview/Sections/SummarySection.d.ts +44 -0
  327. package/dist/Pages/Overview/Sections/SummarySection.js +127 -0
  328. package/dist/Pages/Overview/index.d.ts +4 -0
  329. package/dist/Pages/Overview/index.js +8 -0
  330. package/dist/Pages/SystemPage/SystemPage.d.ts +8 -0
  331. package/dist/Pages/SystemPage/SystemPage.js +16 -0
  332. package/dist/Pages/SystemPage/index.d.ts +1 -0
  333. package/dist/Pages/SystemPage/index.js +4 -0
  334. package/dist/Pages/Transactions/Detail/Components/DownloadButton.d.ts +33 -0
  335. package/dist/Pages/Transactions/Detail/Components/DownloadButton.js +62 -0
  336. package/dist/Pages/Transactions/Detail/Components/TransactionMessage.d.ts +16 -0
  337. package/dist/Pages/Transactions/Detail/Components/TransactionMessage.js +44 -0
  338. package/dist/Pages/Transactions/Detail/Components/TransactionMetadata.d.ts +21 -0
  339. package/dist/Pages/Transactions/Detail/Components/TransactionMetadata.js +127 -0
  340. package/dist/Pages/Transactions/Detail/Components/index.d.ts +6 -0
  341. package/dist/Pages/Transactions/Detail/Components/index.js +8 -0
  342. package/dist/Pages/Transactions/Detail/TransactionsDetailPage.d.ts +8 -0
  343. package/dist/Pages/Transactions/Detail/TransactionsDetailPage.js +15 -0
  344. package/dist/Pages/Transactions/Detail/Utils/BodyPreview.d.ts +15 -0
  345. package/dist/Pages/Transactions/Detail/Utils/BodyPreview.js +30 -0
  346. package/dist/Pages/Transactions/Detail/Utils/ContentRenderer.d.ts +28 -0
  347. package/dist/Pages/Transactions/Detail/Utils/ContentRenderer.js +115 -0
  348. package/dist/Pages/Transactions/Detail/Utils/index.d.ts +4 -0
  349. package/dist/Pages/Transactions/Detail/Utils/index.js +9 -0
  350. package/dist/Pages/Transactions/Detail/index.d.ts +4 -0
  351. package/dist/Pages/Transactions/Detail/index.js +8 -0
  352. package/dist/Pages/Transactions/List/TransactionsListPage.d.ts +80 -0
  353. package/dist/Pages/Transactions/List/TransactionsListPage.js +220 -0
  354. package/dist/Pages/Transactions/List/index.d.ts +4 -0
  355. package/dist/Pages/Transactions/List/index.js +6 -0
  356. package/dist/Pages/Transactions/List/useClientSideTransactions.d.ts +38 -0
  357. package/dist/Pages/Transactions/List/useClientSideTransactions.js +32 -0
  358. package/dist/Pages/Transactions/index.d.ts +4 -0
  359. package/dist/Pages/Transactions/index.js +6 -0
  360. package/dist/Pages/index.d.ts +5 -0
  361. package/dist/Pages/index.js +18 -0
  362. package/dist/Settings.d.ts +13 -0
  363. package/dist/Settings.js +16 -0
  364. package/dist/css/Components/Formatter/prism.css +79 -0
  365. package/dist/css/Components/Inputs/Input/Input.css +73 -0
  366. package/dist/css/Components/Inputs/Sliders/RangeSliderStyles.css +92 -0
  367. package/dist/css/components.css +6 -0
  368. package/dist/css/fonts/Lato-Bold.woff2 +0 -0
  369. package/dist/css/fonts/Lato-BoldItalic.woff2 +0 -0
  370. package/dist/css/fonts/Lato-Italic.woff2 +0 -0
  371. package/dist/css/fonts/Lato-Regular.woff2 +0 -0
  372. package/dist/css/fonts/OFL.txt +93 -0
  373. package/dist/css/theme.css +109 -0
  374. package/dist/index.d.ts +4 -0
  375. package/dist/index.js +250 -0
  376. package/dist/logo.svg +1 -0
  377. package/dist/styles/styles.css +1 -0
  378. package/package.json +367 -3
@@ -0,0 +1,83 @@
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import { Dialog as b, DialogBackdrop as N, DialogPanel as v, DialogTitle as c, DialogDescription as d } from "@headlessui/react";
3
+ import { XMarkIcon as w } from "@heroicons/react/24/outline";
4
+ import { twMerge as a } from "tailwind-merge";
5
+ import { modalSizeClasses as k } from "./modal.types.js";
6
+ function M({
7
+ isOpen: o,
8
+ onClose: t,
9
+ title: i,
10
+ description: r,
11
+ children: m,
12
+ size: g = "md",
13
+ className: u,
14
+ contentClassName: f,
15
+ titleClassName: p,
16
+ descriptionClassName: h,
17
+ showCloseButton: x = !0,
18
+ initialFocus: l = !0,
19
+ backdrop: s = !0,
20
+ ...y
21
+ }) {
22
+ const D = s ? t : () => {
23
+ };
24
+ return /* @__PURE__ */ n(
25
+ b,
26
+ {
27
+ transition: !0,
28
+ as: "div",
29
+ open: o,
30
+ className: a("relative z-10 transition duration-100 data-[closed]:opacity-0", u),
31
+ onClose: D,
32
+ initialFocus: typeof l == "boolean" ? void 0 : l,
33
+ ...y,
34
+ children: [
35
+ s && /* @__PURE__ */ e(N, { className: "fixed inset-0 bg-black/25 backdrop-blur-sm" }),
36
+ /* @__PURE__ */ e("div", { className: "fixed inset-0 overflow-y-auto", children: /* @__PURE__ */ e("div", { className: "flex min-h-full items-center justify-center p-4 text-center", children: /* @__PURE__ */ n(
37
+ v,
38
+ {
39
+ transition: !0,
40
+ className: a(
41
+ "w-full transform overflow-hidden rounded-lg bg-white p-6 shadow-xl transition-all duration-100 ease-out data-[closed]:scale-95 data-[closed]:opacity-0",
42
+ k[g],
43
+ f
44
+ ),
45
+ children: [
46
+ x && /* @__PURE__ */ e("div", { className: "absolute top-4 right-4", children: /* @__PURE__ */ e(
47
+ "button",
48
+ {
49
+ type: "button",
50
+ className: "rounded-full p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 cursor-pointer",
51
+ onClick: t,
52
+ "aria-label": "Close dialog",
53
+ children: /* @__PURE__ */ e(w, { className: "h-5 w-5", "aria-hidden": "true" })
54
+ }
55
+ ) }),
56
+ i && /* @__PURE__ */ e(
57
+ c,
58
+ {
59
+ as: "h3",
60
+ className: a("text-lg font-semibold leading-6 text-gray-900", p),
61
+ children: i
62
+ }
63
+ ),
64
+ r && /* @__PURE__ */ e(d, { className: a("mt-2 text-sm text-gray-500", h), children: r }),
65
+ m
66
+ ]
67
+ }
68
+ ) }) })
69
+ ]
70
+ }
71
+ );
72
+ }
73
+ function B({ className: o, ...t }) {
74
+ return /* @__PURE__ */ e(c, { className: a("text-lg font-semibold leading-6 text-gray-900", o), ...t });
75
+ }
76
+ function I({ className: o, ...t }) {
77
+ return /* @__PURE__ */ e(d, { className: a("mt-2 text-sm text-gray-500", o), ...t });
78
+ }
79
+ export {
80
+ M as Dialog,
81
+ I as DialogDescription,
82
+ B as DialogTitle
83
+ };
@@ -0,0 +1,45 @@
1
+ import { DialogDescription, DialogTitle } from "@headlessui/react";
2
+ import type { ComponentProps } from "react";
3
+ import { type BaseModalProps, type DrawerPosition, type ModalSize } from "./modal.types.js";
4
+ export type DrawerSize = ModalSize;
5
+ export interface DrawerProps extends BaseModalProps {
6
+ size?: DrawerSize;
7
+ position?: DrawerPosition;
8
+ }
9
+ /**
10
+ * Drawer component for displaying slide-out panels from the side of the screen.
11
+ * Shares similar props interface with Dialog component for consistency.
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * const [isOpen, setIsOpen] = useState(false);
16
+ *
17
+ * <Button onClick={() => setIsOpen(true)}>Open Drawer</Button>
18
+ *
19
+ * <Drawer
20
+ * isOpen={isOpen}
21
+ * onClose={() => setIsOpen(false)}
22
+ * title="Settings"
23
+ * description="Configure your application settings"
24
+ * position="right"
25
+ * size="lg"
26
+ * >
27
+ * <div className="space-y-4">
28
+ * Your content goes here
29
+ * </div>
30
+ * </Drawer>
31
+ * ```
32
+ */
33
+ export declare function Drawer({ isOpen, onClose, title, description, children, size, position, className, contentClassName, titleClassName, descriptionClassName, showCloseButton, initialFocus, backdrop, ...props }: DrawerProps): import("react/jsx-runtime").JSX.Element | null;
34
+ /**
35
+ * Drawer.Title component for creating accessible drawer titles.
36
+ * Use this when you need more customization than the basic title prop.
37
+ */
38
+ export type DrawerTitleProps = ComponentProps<typeof DialogTitle>;
39
+ export declare function DrawerTitle({ className, ...props }: DrawerTitleProps): import("react/jsx-runtime").JSX.Element;
40
+ /**
41
+ * Drawer.Description component for creating accessible drawer descriptions.
42
+ * Use this when you need more customization than the basic description prop.
43
+ */
44
+ export type DrawerDescriptionProps = ComponentProps<typeof DialogDescription>;
45
+ export declare function DrawerDescription({ className, ...props }: DrawerDescriptionProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,120 @@
1
+ import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
+ import { Dialog as D, DialogPanel as k, DialogDescription as g, DialogTitle as w } from "@headlessui/react";
3
+ import { XMarkIcon as T } from "@heroicons/react/24/outline";
4
+ import { twMerge as a } from "tailwind-merge";
5
+ import { modalSizeClasses as j } from "./modal.types.js";
6
+ const z = {
7
+ right: {
8
+ container: "inset-y-0 right-0",
9
+ panel: "pointer-events-auto w-screen transform transition duration-100 ease-in-out data-[closed]:translate-x-full"
10
+ },
11
+ left: {
12
+ container: "inset-y-0 left-0",
13
+ panel: "pointer-events-auto w-screen transform transition duration-100 ease-in-out data-[closed]:-translate-x-full"
14
+ }
15
+ };
16
+ function X({
17
+ isOpen: n,
18
+ onClose: t,
19
+ title: i,
20
+ description: r,
21
+ children: l,
22
+ size: c = "lg",
23
+ position: d = "right",
24
+ className: o,
25
+ contentClassName: m,
26
+ titleClassName: u,
27
+ descriptionClassName: x,
28
+ showCloseButton: h = !0,
29
+ initialFocus: v = !0,
30
+ backdrop: b = !0,
31
+ ...y
32
+ }) {
33
+ const f = z[d], p = a(f.panel, j[c], m);
34
+ return b ? /* @__PURE__ */ s(
35
+ D,
36
+ {
37
+ open: n,
38
+ onClose: t,
39
+ className: a("relative z-10", o),
40
+ initialFocus: typeof v == "boolean" ? void 0 : v,
41
+ ...y,
42
+ children: [
43
+ /* @__PURE__ */ e("div", { className: "fixed inset-0 bg-black/25 backdrop-blur-sm" }),
44
+ /* @__PURE__ */ e("div", { className: "fixed inset-0 overflow-hidden", children: /* @__PURE__ */ e("div", { className: "absolute inset-0 overflow-hidden", children: /* @__PURE__ */ e("div", { className: a("pointer-events-none fixed flex max-w-full", f.container), children: /* @__PURE__ */ e(k, { transition: !0, className: p, children: /* @__PURE__ */ e(
45
+ N,
46
+ {
47
+ Title: w,
48
+ Description: g,
49
+ title: i,
50
+ description: r,
51
+ titleClassName: u,
52
+ descriptionClassName: x,
53
+ showCloseButton: h,
54
+ onClose: t,
55
+ children: l
56
+ }
57
+ ) }) }) }) })
58
+ ]
59
+ }
60
+ ) : n ? /* @__PURE__ */ e("div", { className: a("relative z-10", o), children: /* @__PURE__ */ e("div", { className: "fixed inset-0 overflow-hidden pointer-events-none", children: /* @__PURE__ */ e("div", { className: "absolute inset-0 overflow-hidden pointer-events-none", children: /* @__PURE__ */ e("div", { className: a("pointer-events-none fixed flex max-w-full", f.container), children: /* @__PURE__ */ e("div", { className: p, children: /* @__PURE__ */ e(
61
+ N,
62
+ {
63
+ Title: "h3",
64
+ Description: "p",
65
+ title: i,
66
+ description: r,
67
+ titleClassName: u,
68
+ descriptionClassName: x,
69
+ showCloseButton: h,
70
+ onClose: t,
71
+ children: l
72
+ }
73
+ ) }) }) }) }) }) : null;
74
+ }
75
+ function N({
76
+ Title: n,
77
+ Description: t,
78
+ title: i,
79
+ description: r,
80
+ titleClassName: l,
81
+ descriptionClassName: c,
82
+ showCloseButton: d,
83
+ onClose: o,
84
+ children: m
85
+ }) {
86
+ return /* @__PURE__ */ e("div", { className: "flex h-full flex-col bg-white shadow-xl relative", "data-drawer-content": !0, children: /* @__PURE__ */ s("div", { className: "flex-1 overflow-y-auto py-6", children: [
87
+ /* @__PURE__ */ e("div", { className: "px-4 sm:px-6", children: /* @__PURE__ */ s("div", { className: "flex items-start justify-between", children: [
88
+ /* @__PURE__ */ s("div", { className: "flex-1", children: [
89
+ i && /* @__PURE__ */ e(n, { className: a("text-base font-semibold text-gray-900", l), children: i }),
90
+ r && /* @__PURE__ */ e(t, { className: a("mt-1 text-sm text-gray-500", c), children: r })
91
+ ] }),
92
+ d && /* @__PURE__ */ e("div", { className: "ml-3 flex h-7 items-center", children: /* @__PURE__ */ s(
93
+ "button",
94
+ {
95
+ type: "button",
96
+ onClick: o,
97
+ className: "relative rounded-md bg-white text-gray-400 hover:text-gray-500 focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 focus:outline-none cursor-pointer",
98
+ "aria-label": "Close drawer",
99
+ children: [
100
+ /* @__PURE__ */ e("span", { className: "absolute -inset-2.5" }),
101
+ /* @__PURE__ */ e("span", { className: "sr-only", children: "Close panel" }),
102
+ /* @__PURE__ */ e(T, { "aria-hidden": "true", className: "h-6 w-6" })
103
+ ]
104
+ }
105
+ ) })
106
+ ] }) }),
107
+ /* @__PURE__ */ e("div", { className: "relative mt-6 flex-1 px-4 sm:px-6", children: m })
108
+ ] }) });
109
+ }
110
+ function q({ className: n, ...t }) {
111
+ return /* @__PURE__ */ e(w, { className: a("text-base font-semibold text-gray-900", n), ...t });
112
+ }
113
+ function A({ className: n, ...t }) {
114
+ return /* @__PURE__ */ e(g, { className: a("mt-1 text-sm text-gray-500", n), ...t });
115
+ }
116
+ export {
117
+ X as Drawer,
118
+ A as DrawerDescription,
119
+ q as DrawerTitle
120
+ };
@@ -0,0 +1,3 @@
1
+ export * from "./Dialog.js";
2
+ export * from "./Drawer.js";
3
+ export * from "./modal.types.js";
@@ -0,0 +1,12 @@
1
+ import { Dialog as o, DialogDescription as i, DialogTitle as a } from "./Dialog.js";
2
+ import { Drawer as l, DrawerDescription as t, DrawerTitle as p } from "./Drawer.js";
3
+ import { modalSizeClasses as m } from "./modal.types.js";
4
+ export {
5
+ o as Dialog,
6
+ i as DialogDescription,
7
+ a as DialogTitle,
8
+ l as Drawer,
9
+ t as DrawerDescription,
10
+ p as DrawerTitle,
11
+ m as modalSizeClasses
12
+ };
@@ -0,0 +1,47 @@
1
+ import type { Dialog as HeadlessDialog } from "@headlessui/react";
2
+ import type { ReactNode } from "react";
3
+ import type { ComponentProps } from "react";
4
+ /**
5
+ * Shared base interface for Dialog and Drawer components
6
+ * to ensure consistent API and behavior across modal components.
7
+ */
8
+ export interface BaseModalProps extends Omit<ComponentProps<typeof HeadlessDialog>, "className" | "initialFocus"> {
9
+ /** Whether the modal is open */
10
+ isOpen: boolean;
11
+ /** Callback when the modal is closed */
12
+ onClose: () => void;
13
+ /** Optional title for the modal */
14
+ title?: string;
15
+ /** Optional description for the modal */
16
+ description?: string;
17
+ /** Modal content */
18
+ children?: ReactNode;
19
+ /** Additional CSS classes for the modal container */
20
+ className?: string;
21
+ /** Additional CSS classes for the modal content */
22
+ contentClassName?: string;
23
+ /** Additional CSS classes for the title */
24
+ titleClassName?: string;
25
+ /** Additional CSS classes for the description */
26
+ descriptionClassName?: string;
27
+ /** Whether to show the close button */
28
+ showCloseButton?: boolean;
29
+ /** Element to focus when the modal opens (defaults to true) */
30
+ initialFocus?: React.RefObject<HTMLElement> | boolean;
31
+ /**
32
+ * Whether to show backdrop with click-to-close and scroll blocking.
33
+ * When true: backdrop is shown, clicking it closes modal, background scroll is blocked.
34
+ * When false: no backdrop, modal can only be closed programmatically or via close button, background is interactive.
35
+ */
36
+ backdrop?: boolean;
37
+ }
38
+ /**
39
+ * Size options for modal components based on viewport width percentages
40
+ */
41
+ export type ModalSize = "sm" | "md" | "lg";
42
+ /**
43
+ * Position options for drawer components
44
+ */
45
+ export type DrawerPosition = "left" | "right";
46
+ /** Maximum width of the panel for each modal size */
47
+ export declare const modalSizeClasses: Record<ModalSize, string>;
@@ -0,0 +1,8 @@
1
+ const m = {
2
+ sm: "max-w-[30vw]",
3
+ md: "max-w-[55vw]",
4
+ lg: "max-w-[80vw]"
5
+ };
6
+ export {
7
+ m as modalSizeClasses
8
+ };
@@ -0,0 +1,11 @@
1
+ export interface FacetCountProps {
2
+ /** The count value to display */
3
+ count: number;
4
+ /** Additional CSS classes */
5
+ className?: string;
6
+ }
7
+ /**
8
+ * FacetCount component displays a count value with consistent styling.
9
+ * Used in facet labels to show the number of items matching a filter option.
10
+ */
11
+ export declare function FacetCount({ count, className }: FacetCountProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ function s({ count: o, className: t }) {
3
+ const n = ["text-[11px]", "text-gray-500", "font-light"];
4
+ return t && n.push(t), /* @__PURE__ */ e("span", { className: n.join(" "), children: o });
5
+ }
6
+ export {
7
+ s as FacetCount
8
+ };
@@ -0,0 +1,16 @@
1
+ import type { FilterMeta } from "../../Models/Filters/index.js";
2
+ import type { ComponentProps } from "react";
3
+ export declare const DEFAULT_COUNTS_CAPTION = "Counts cover all transactions";
4
+ /**
5
+ * The caption a facet shows, if any: none when the consumer passes an empty one, and none when no option has a count
6
+ * to explain. A `0` is a count; the codes under a class count too.
7
+ */
8
+ export declare function countsCaptionOf(options: (FilterMeta & {
9
+ under?: FilterMeta[];
10
+ })[], caption: string): string | undefined;
11
+ export type FacetCountsCaptionProps = ComponentProps<"p">;
12
+ /**
13
+ * Says what the counts of a facet are counts of. The facet's option group points at it with `aria-describedby`, so a
14
+ * screen reader reads it on entering the group.
15
+ */
16
+ export declare function FacetCountsCaption({ className, ...props }: FacetCountsCaptionProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ const r = "Counts cover all transactions";
3
+ function a(o, t) {
4
+ return o.some((n) => n.count !== void 0 || n.under?.some(s)) && t ? t : void 0;
5
+ }
6
+ const s = (o) => o.count !== void 0;
7
+ function i({ className: o, ...t }) {
8
+ return /* @__PURE__ */ e("p", { className: ["text-xs text-gray-600", o].filter(Boolean).join(" "), ...t });
9
+ }
10
+ export {
11
+ r as DEFAULT_COUNTS_CAPTION,
12
+ i as FacetCountsCaption,
13
+ a as countsCaptionOf
14
+ };
@@ -0,0 +1,10 @@
1
+ export interface FacetInnerLightButtonProps {
2
+ /** Button label text */
3
+ label: string;
4
+ /** Click handler function */
5
+ handler: () => void;
6
+ }
7
+ /**
8
+ * FacetInnerLightButton component for action buttons inside facet labels.
9
+ */
10
+ export declare function FacetInnerLightButton({ label, handler }: FacetInnerLightButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ function a({ label: o, handler: r }) {
3
+ return /* @__PURE__ */ n(
4
+ "button",
5
+ {
6
+ className: "text-gray-500 mx-1 font-normal text-xs hover:text-gray-700 transition-colors cursor-pointer",
7
+ onClick: (t) => {
8
+ t.preventDefault(), t.stopPropagation(), r();
9
+ },
10
+ type: "button",
11
+ children: o
12
+ }
13
+ );
14
+ }
15
+ export {
16
+ a as FacetInnerLightButton
17
+ };
@@ -0,0 +1,13 @@
1
+ import { type ReactNode } from "react";
2
+ export interface FacetLabelProps {
3
+ /** The main text/value to display */
4
+ name: string;
5
+ /** Optional count to show in parentheses */
6
+ count?: number;
7
+ /** Optional children (like "only" button) */
8
+ children?: ReactNode;
9
+ }
10
+ /**
11
+ * FacetLabel component that displays a filter option with its name, count, and optional action buttons.
12
+ */
13
+ export declare function FacetLabel({ name, count, children }: FacetLabelProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
+ import "react";
3
+ import { FacetCount as s } from "./FacetCount.js";
4
+ function n({ name: i, count: t, children: r }) {
5
+ return /* @__PURE__ */ a("div", { className: "flex items-center justify-between w-full group", children: [
6
+ /* @__PURE__ */ e("span", { className: "truncate", children: i }),
7
+ /* @__PURE__ */ a("div", { className: "flex items-center space-x-2 ml-auto", children: [
8
+ /* @__PURE__ */ e("div", { className: "opacity-0 group-hover:opacity-100 transition-opacity", children: r }),
9
+ t !== void 0 && /* @__PURE__ */ e(s, { count: t })
10
+ ] })
11
+ ] });
12
+ }
13
+ export {
14
+ n as FacetLabel
15
+ };
@@ -0,0 +1,40 @@
1
+ import type { FilterChangeHandler, Filters } from "../../Models/Filters/index.js";
2
+ import { type ComponentProps, type ReactNode } from "react";
3
+ export interface FacetListProps extends ComponentProps<"div"> {
4
+ /** Whether to add dividers between facet sections */
5
+ hasDividers?: boolean;
6
+ /** Additional CSS classes for the container */
7
+ className?: string;
8
+ /** Filter facet components as children */
9
+ children: ReactNode;
10
+ }
11
+ /**
12
+ * Layout for a collection of filter facets: a container, and optional dividers between them.
13
+ *
14
+ * It holds no filter state and provides no context, so each facet is given its own `filters` and
15
+ * `onFiltersChange` and reads them itself. That is deliberate — see `useFacetState` below if you
16
+ * want somewhere to keep the state — but it does mean this component has nothing to do with the
17
+ * values, and asking it for them would be asking for something it never reads.
18
+ *
19
+ * @example
20
+ * ```tsx
21
+ * const { filters, handleFilterChange } = useFacetState();
22
+ *
23
+ * <FacetList>
24
+ * <MultipleChoiceFacet name="status" title="Status" filters={filters} onFiltersChange={handleFilterChange} ... />
25
+ * <SingleChoiceFacet name="method" title="Method" filters={filters} onFiltersChange={handleFilterChange} ... />
26
+ * </FacetList>
27
+ * ```
28
+ */
29
+ export declare function FacetList({ hasDividers, className, children, ...props }: FacetListProps): import("react/jsx-runtime").JSX.Element;
30
+ /**
31
+ * Hook to help manage filter state in components using FacetList
32
+ * Returns the filters and the handlers to change, remove and reset them
33
+ */
34
+ export declare function useFacetState(initialFilters?: Filters): {
35
+ filters: Filters;
36
+ setFilters: import("react").Dispatch<import("react").SetStateAction<Filters>>;
37
+ handleFilterChange: FilterChangeHandler;
38
+ resetFilters: () => void;
39
+ removeFilter: (filterName: string) => void;
40
+ };
@@ -0,0 +1,37 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { useState as m } from "react";
3
+ import { twMerge as d } from "tailwind-merge";
4
+ function g({ hasDividers: t = !0, className: r, children: e, ...o }) {
5
+ const n = d(
6
+ "overflow-hidden text-gray-900 sm:text-sm",
7
+ t && "divide-y divide-gray-100",
8
+ r
9
+ );
10
+ return /* @__PURE__ */ c("div", { className: n, ...o, children: e });
11
+ }
12
+ function h(t = {}) {
13
+ const [r, e] = m(t);
14
+ return {
15
+ filters: r,
16
+ setFilters: e,
17
+ handleFilterChange: (s, i) => {
18
+ e((a) => ({
19
+ ...a,
20
+ [s]: i
21
+ }));
22
+ },
23
+ resetFilters: () => {
24
+ e({});
25
+ },
26
+ removeFilter: (s) => {
27
+ e((i) => {
28
+ const { [s]: a, ...l } = i;
29
+ return l;
30
+ });
31
+ }
32
+ };
33
+ }
34
+ export {
35
+ g as FacetList,
36
+ h as useFacetState
37
+ };
@@ -0,0 +1,38 @@
1
+ import { Card } from "../Cards/index.js";
2
+ import { type Filters } from "../../Models/Filters/index.js";
3
+ import { type ComponentProps, type ReactNode } from "react";
4
+ export interface FacetListCardProps extends Omit<ComponentProps<typeof Card>, "children"> {
5
+ /** Current filter values, read to decide whether the reset button has anything to reset */
6
+ filters: Filters;
7
+ /** Handler for resetting all filters */
8
+ onResetFilters?: () => void;
9
+ /** Custom header content (e.g., title, reset button) */
10
+ headerContent?: ReactNode;
11
+ /** Whether to show default header with title and reset button */
12
+ showDefaultHeader?: boolean;
13
+ /** Title for the default header */
14
+ title?: string;
15
+ /** Filter facet components as children */
16
+ children: ReactNode;
17
+ /** Whether to skip the Card wrapper and render directly as FacetList */
18
+ skipCardWrapper?: boolean;
19
+ }
20
+ /**
21
+ * FacetListCard component that provides a card container for filter facets.
22
+ * This component combines the Card layout with FacetList functionality,
23
+ * providing a clean container for facet collections.
24
+ *
25
+ * @example
26
+ * ```tsx
27
+ * <FacetListCard
28
+ * filters={filters}
29
+ * onResetFilters={() => setFilters({})}
30
+ * title="Filters"
31
+ * showDefaultHeader
32
+ * >
33
+ * <MultipleChoiceFacet name="status" title="Status" ... />
34
+ * <SingleChoiceFacet name="method" title="Method" ... />
35
+ * </FacetListCard>
36
+ * ```
37
+ */
38
+ export declare function FacetListCard({ filters, onResetFilters, headerContent, showDefaultHeader, title, children, skipCardWrapper, ...cardProps }: FacetListCardProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,47 @@
1
+ import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
+ import { ArrowPathIcon as x } from "@heroicons/react/16/solid";
3
+ import { HeadingLevel as p } from "../Typography/HeadingLevel.js";
4
+ import "react";
5
+ import { FacetList as a } from "./FacetList.js";
6
+ import { countActiveFilters as u } from "../../Models/Filters/active.js";
7
+ import { Card as h } from "../Cards/Card.js";
8
+ function A({
9
+ filters: o,
10
+ onResetFilters: l,
11
+ headerContent: e,
12
+ showDefaultHeader: r = !1,
13
+ title: m = "Filters",
14
+ children: i,
15
+ skipCardWrapper: n = !1,
16
+ ...c
17
+ }) {
18
+ const f = u(o) > 0, d = r ? /* @__PURE__ */ s("div", { className: "flex justify-between items-center", children: [
19
+ /* @__PURE__ */ t("h3", { className: "text-lg font-medium text-gray-900", children: m }),
20
+ l && f && /* @__PURE__ */ s(
21
+ "button",
22
+ {
23
+ className: "text-gray-500 mx-1 font-normal text-xs hover:text-gray-700 transition-colors cursor-pointer",
24
+ onClick: l,
25
+ type: "button",
26
+ "aria-label": "Reset all filters",
27
+ children: [
28
+ /* @__PURE__ */ t(x, { className: "h-3 w-3 inline-block mr-1" }),
29
+ "reset"
30
+ ]
31
+ }
32
+ )
33
+ ] }) : null;
34
+ return n ? /* @__PURE__ */ t(a, { children: i }) : /* @__PURE__ */ t(
35
+ h,
36
+ {
37
+ header: e || d,
38
+ hasDefaultPadding: !1,
39
+ headerClassName: r || e ? void 0 : "hidden",
40
+ ...c,
41
+ children: r && !e ? /* @__PURE__ */ t(p, { level: 3, children: /* @__PURE__ */ t(a, { children: i }) }) : /* @__PURE__ */ t(a, { children: i })
42
+ }
43
+ );
44
+ }
45
+ export {
46
+ A as FacetListCard
47
+ };
@@ -0,0 +1,13 @@
1
+ export interface FacetResetLinkProps {
2
+ /** Title/label for the facet being reset */
3
+ title: string;
4
+ /** Click handler for reset action */
5
+ onReset: () => void;
6
+ /** Text content for the link */
7
+ children?: React.ReactNode;
8
+ }
9
+ /**
10
+ * FacetResetLink component provides a consistent reset link for facets.
11
+ * Displays a small "reset" link with an arrow icon that clears filter values.
12
+ */
13
+ export declare function FacetResetLink({ title, onReset, children }: FacetResetLinkProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { jsxs as a, jsx as s } from "react/jsx-runtime";
2
+ import { ArrowPathIcon as i } from "@heroicons/react/16/solid";
3
+ function m({ title: e, onReset: t, children: r }) {
4
+ const o = r || "reset";
5
+ return /* @__PURE__ */ a(
6
+ "a",
7
+ {
8
+ href: "#",
9
+ className: "text-gray-500 font-normal text-[11px] hover:text-gray-700 transition-colors",
10
+ onClick: (n) => {
11
+ n.preventDefault(), t();
12
+ },
13
+ "aria-label": `Reset ${e}`,
14
+ children: [
15
+ /* @__PURE__ */ s(i, { className: "h-2.5 w-2.5 inline-block mr-0.5" }),
16
+ o
17
+ ]
18
+ }
19
+ );
20
+ }
21
+ export {
22
+ m as FacetResetLink
23
+ };