@gearbox-protocol/ui-kit 4.0.0-next.1 → 4.0.0-next.2

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 (361) hide show
  1. package/dist/cjs/components/base/amount-input/amount-input.cjs +1 -1
  2. package/dist/cjs/components/base/amount-input/constants.cjs +1 -1
  3. package/dist/cjs/components/base/amount-input/index.cjs +1 -1
  4. package/dist/cjs/components/base/amount-input/token-button.cjs +1 -1
  5. package/dist/cjs/components/base/amount-input/token-select-panel.cjs +1 -0
  6. package/dist/cjs/components/base/borrow-rate-block/borrow-rate-block.cjs +1 -0
  7. package/dist/cjs/components/base/borrow-rate-block/constants.cjs +1 -0
  8. package/dist/cjs/components/base/borrow-rate-block/index.cjs +1 -0
  9. package/dist/cjs/components/base/chart-with-side-card/chart-with-side-card.cjs +1 -0
  10. package/dist/cjs/components/base/chart-with-side-card/constants.cjs +1 -0
  11. package/dist/cjs/components/base/chart-with-side-card/index.cjs +1 -0
  12. package/dist/cjs/components/base/details-view/details-view.cjs +1 -1
  13. package/dist/cjs/components/base/history-chart/history-chart.cjs +1 -1
  14. package/dist/cjs/components/base/index.cjs +1 -1
  15. package/dist/cjs/components/base/info-list/constants.cjs +1 -1
  16. package/dist/cjs/components/base/info-list/index.cjs +1 -1
  17. package/dist/cjs/components/base/info-list/info-list.cjs +1 -1
  18. package/dist/cjs/components/base/leverage-input/leverage-input.cjs +1 -1
  19. package/dist/cjs/components/base/liquidation-params-table/constants.cjs +1 -0
  20. package/dist/cjs/components/base/liquidation-params-table/index.cjs +1 -0
  21. package/dist/cjs/components/base/liquidation-params-table/liquidation-params-table.cjs +1 -0
  22. package/dist/cjs/components/base/manage-pane/index.cjs +1 -1
  23. package/dist/cjs/components/base/manage-pane/manage-pane.cjs +1 -1
  24. package/dist/cjs/components/base/more-accordion/constants.cjs +1 -0
  25. package/dist/cjs/components/base/more-accordion/index.cjs +1 -0
  26. package/dist/cjs/components/base/more-accordion/more-accordion.cjs +1 -0
  27. package/dist/cjs/components/base/nested-info-stack/constants.cjs +1 -0
  28. package/dist/cjs/components/base/nested-info-stack/index.cjs +1 -0
  29. package/dist/cjs/components/base/nested-info-stack/nested-info-stack.cjs +1 -0
  30. package/dist/cjs/components/base/page-title/page-title.cjs +1 -1
  31. package/dist/cjs/components/base/pool-apy-breakdown-card/constants.cjs +1 -0
  32. package/dist/cjs/components/base/pool-apy-breakdown-card/index.cjs +1 -0
  33. package/dist/cjs/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.cjs +1 -0
  34. package/dist/cjs/components/base/side-card/constants.cjs +1 -0
  35. package/dist/cjs/components/base/side-card/index.cjs +1 -0
  36. package/dist/cjs/components/base/side-card/side-card.cjs +1 -0
  37. package/dist/cjs/components/base/strategy-apy-breakdown-card/constants.cjs +1 -0
  38. package/dist/cjs/components/base/strategy-apy-breakdown-card/index.cjs +1 -0
  39. package/dist/cjs/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.cjs +1 -0
  40. package/dist/cjs/components/base/tabber/tabber.cjs +1 -1
  41. package/dist/cjs/components/base/title-meta/constants.cjs +1 -0
  42. package/dist/cjs/components/base/title-meta/index.cjs +1 -0
  43. package/dist/cjs/components/base/title-meta/title-meta.cjs +1 -0
  44. package/dist/cjs/components/base/token-amount/token-amount.cjs +1 -1
  45. package/dist/cjs/components/base/token-pair-symbol/constants.cjs +1 -0
  46. package/dist/cjs/components/base/token-pair-symbol/index.cjs +1 -0
  47. package/dist/cjs/components/base/token-pair-symbol/token-pair-symbol.cjs +1 -0
  48. package/dist/cjs/components/base/token-pair-title/constants.cjs +1 -0
  49. package/dist/cjs/components/base/token-pair-title/index.cjs +1 -0
  50. package/dist/cjs/components/base/token-pair-title/token-pair-title.cjs +1 -0
  51. package/dist/cjs/components/base/values/pnl-value.cjs +1 -1
  52. package/dist/cjs/components/block-sync-pill/block-sync-pill.cjs +1 -1
  53. package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
  54. package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
  55. package/dist/cjs/components/composites/notification-center/notification-center.cjs +1 -1
  56. package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-head.cjs +1 -1
  57. package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-row.cjs +1 -1
  58. package/dist/cjs/components/composites/pool-assets-table/pool-assets-table.cjs +1 -1
  59. package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.cjs +1 -1
  60. package/dist/cjs/components/explorer-links-dropdown/explorer-links-dropdown.cjs +1 -1
  61. package/dist/cjs/components/explorer-links-dropdown/index.cjs +1 -1
  62. package/dist/cjs/components/graph/graph-view.cjs +1 -1
  63. package/dist/cjs/components/graph/graph.cjs +1 -1
  64. package/dist/cjs/components/icons/index.cjs +1 -1
  65. package/dist/cjs/components/index.cjs +1 -1
  66. package/dist/cjs/components/layout/index.cjs +1 -1
  67. package/dist/cjs/components/modal/modal.cjs +1 -1
  68. package/dist/cjs/components/table/index.cjs +1 -1
  69. package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
  70. package/dist/cjs/hooks/index.cjs +1 -1
  71. package/dist/cjs/hooks/use-debounce-call.cjs +1 -1
  72. package/dist/cjs/index.cjs +1 -1
  73. package/dist/cjs/locale/en.json.cjs +1 -1
  74. package/dist/esm/components/base/amount-input/amount-input.js +179 -147
  75. package/dist/esm/components/base/amount-input/constants.js +2 -0
  76. package/dist/esm/components/base/amount-input/index.js +5 -3
  77. package/dist/esm/components/base/amount-input/token-button.js +65 -35
  78. package/dist/esm/components/base/amount-input/token-select-panel.js +85 -0
  79. package/dist/esm/components/base/borrow-rate-block/borrow-rate-block.js +83 -0
  80. package/dist/esm/components/base/borrow-rate-block/constants.js +8 -0
  81. package/dist/esm/components/base/borrow-rate-block/index.js +6 -0
  82. package/dist/esm/components/base/chart-with-side-card/chart-with-side-card.js +36 -0
  83. package/dist/esm/components/base/chart-with-side-card/constants.js +8 -0
  84. package/dist/esm/components/base/chart-with-side-card/index.js +6 -0
  85. package/dist/esm/components/base/details-view/details-view.js +37 -32
  86. package/dist/esm/components/base/history-chart/history-chart.js +25 -21
  87. package/dist/esm/components/base/index.js +164 -116
  88. package/dist/esm/components/base/info-list/constants.js +1 -0
  89. package/dist/esm/components/base/info-list/index.js +5 -4
  90. package/dist/esm/components/base/info-list/info-list.js +44 -23
  91. package/dist/esm/components/base/leverage-input/leverage-input.js +53 -50
  92. package/dist/esm/components/base/liquidation-params-table/constants.js +6 -0
  93. package/dist/esm/components/base/liquidation-params-table/index.js +6 -0
  94. package/dist/esm/components/base/liquidation-params-table/liquidation-params-table.js +62 -0
  95. package/dist/esm/components/base/manage-pane/index.js +7 -6
  96. package/dist/esm/components/base/manage-pane/manage-pane.js +88 -67
  97. package/dist/esm/components/base/more-accordion/constants.js +7 -0
  98. package/dist/esm/components/base/more-accordion/index.js +6 -0
  99. package/dist/esm/components/base/more-accordion/more-accordion.js +51 -0
  100. package/dist/esm/components/base/nested-info-stack/constants.js +6 -0
  101. package/dist/esm/components/base/nested-info-stack/index.js +6 -0
  102. package/dist/esm/components/base/nested-info-stack/nested-info-stack.js +20 -0
  103. package/dist/esm/components/base/page-title/page-title.js +28 -22
  104. package/dist/esm/components/base/pool-apy-breakdown-card/constants.js +7 -0
  105. package/dist/esm/components/base/pool-apy-breakdown-card/index.js +6 -0
  106. package/dist/esm/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.js +65 -0
  107. package/dist/esm/components/base/side-card/constants.js +8 -0
  108. package/dist/esm/components/base/side-card/index.js +6 -0
  109. package/dist/esm/components/base/side-card/side-card.js +57 -0
  110. package/dist/esm/components/base/strategy-apy-breakdown-card/constants.js +7 -0
  111. package/dist/esm/components/base/strategy-apy-breakdown-card/index.js +6 -0
  112. package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +51 -0
  113. package/dist/esm/components/base/tabber/tabber.js +83 -75
  114. package/dist/esm/components/base/title-meta/constants.js +8 -0
  115. package/dist/esm/components/base/title-meta/index.js +6 -0
  116. package/dist/esm/components/base/title-meta/title-meta.js +68 -0
  117. package/dist/esm/components/base/token-amount/token-amount.js +12 -12
  118. package/dist/esm/components/base/token-pair-symbol/constants.js +6 -0
  119. package/dist/esm/components/base/token-pair-symbol/index.js +6 -0
  120. package/dist/esm/components/base/token-pair-symbol/token-pair-symbol.js +33 -0
  121. package/dist/esm/components/base/token-pair-title/constants.js +6 -0
  122. package/dist/esm/components/base/token-pair-title/index.js +6 -0
  123. package/dist/esm/components/base/token-pair-title/token-pair-title.js +20 -0
  124. package/dist/esm/components/base/values/pnl-value.js +8 -8
  125. package/dist/esm/components/block-sync-pill/block-sync-pill.js +19 -29
  126. package/dist/esm/components/checkbox/checkbox-labeled.js +16 -26
  127. package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +16 -26
  128. package/dist/esm/components/composites/notification-center/notification-center.js +1 -1
  129. package/dist/esm/components/composites/pool-assets-table/pool-assets-table-head.js +2 -3
  130. package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +1 -1
  131. package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +6 -7
  132. package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.js +25 -35
  133. package/dist/esm/components/explorer-links-dropdown/explorer-links-dropdown.js +1 -83
  134. package/dist/esm/components/explorer-links-dropdown/index.js +1 -4
  135. package/dist/esm/components/graph/graph-view.js +74 -74
  136. package/dist/esm/components/graph/graph.js +309 -308
  137. package/dist/esm/components/icons/index.js +29 -28
  138. package/dist/esm/components/index.js +701 -712
  139. package/dist/esm/components/layout/index.js +14 -33
  140. package/dist/esm/components/modal/modal.js +1 -1
  141. package/dist/esm/components/table/index.js +38 -52
  142. package/dist/esm/components/with-copy/with-copy.js +16 -26
  143. package/dist/esm/hooks/index.js +29 -54
  144. package/dist/esm/hooks/use-debounce-call.js +2 -3
  145. package/dist/esm/index.js +863 -900
  146. package/dist/esm/locale/en.json.js +24 -1
  147. package/dist/globals.css +1 -1
  148. package/dist/types/components/base/amount-input/amount-input.d.ts +13 -2
  149. package/dist/types/components/base/amount-input/constants.d.ts +2 -0
  150. package/dist/types/components/base/amount-input/index.d.ts +1 -0
  151. package/dist/types/components/base/amount-input/token-button.d.ts +14 -2
  152. package/dist/types/components/base/amount-input/token-select-panel.d.ts +17 -0
  153. package/dist/types/components/base/borrow-rate-block/borrow-rate-block.d.ts +16 -0
  154. package/dist/types/components/base/borrow-rate-block/constants.d.ts +5 -0
  155. package/dist/types/components/base/borrow-rate-block/index.d.ts +2 -0
  156. package/dist/types/components/base/chart-with-side-card/chart-with-side-card.d.ts +13 -0
  157. package/dist/types/components/base/chart-with-side-card/constants.d.ts +5 -0
  158. package/dist/types/components/base/chart-with-side-card/index.d.ts +2 -0
  159. package/dist/types/components/base/detailed-page-title/detailed-page-title.d.ts +2 -1
  160. package/dist/types/components/base/history-chart/history-chart.d.ts +8 -1
  161. package/dist/types/components/base/index.d.ts +11 -0
  162. package/dist/types/components/base/info-list/constants.d.ts +1 -0
  163. package/dist/types/components/base/info-list/info-list.d.ts +8 -1
  164. package/dist/types/components/base/leverage-input/leverage-input.d.ts +1 -1
  165. package/dist/types/components/base/liquidation-params-table/constants.d.ts +3 -0
  166. package/dist/types/components/base/liquidation-params-table/index.d.ts +2 -0
  167. package/dist/types/components/base/liquidation-params-table/liquidation-params-table.d.ts +12 -0
  168. package/dist/types/components/base/manage-pane/manage-pane.d.ts +7 -0
  169. package/dist/types/components/base/more-accordion/constants.d.ts +4 -0
  170. package/dist/types/components/base/more-accordion/index.d.ts +2 -0
  171. package/dist/types/components/base/more-accordion/more-accordion.d.ts +11 -0
  172. package/dist/types/components/base/nested-info-stack/constants.d.ts +3 -0
  173. package/dist/types/components/base/nested-info-stack/index.d.ts +2 -0
  174. package/dist/types/components/base/nested-info-stack/nested-info-stack.d.ts +10 -0
  175. package/dist/types/components/base/page-title/page-title.d.ts +6 -2
  176. package/dist/types/components/base/pool-apy-breakdown-card/constants.d.ts +4 -0
  177. package/dist/types/components/base/pool-apy-breakdown-card/index.d.ts +2 -0
  178. package/dist/types/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.d.ts +14 -0
  179. package/dist/types/components/base/side-card/constants.d.ts +5 -0
  180. package/dist/types/components/base/side-card/index.d.ts +2 -0
  181. package/dist/types/components/base/side-card/side-card.d.ts +16 -0
  182. package/dist/types/components/base/strategy-apy-breakdown-card/constants.d.ts +4 -0
  183. package/dist/types/components/base/strategy-apy-breakdown-card/index.d.ts +2 -0
  184. package/dist/types/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.d.ts +9 -0
  185. package/dist/types/components/base/tabber/tabber.d.ts +11 -2
  186. package/dist/types/components/base/title-meta/constants.d.ts +5 -0
  187. package/dist/types/components/base/title-meta/index.d.ts +2 -0
  188. package/dist/types/components/base/title-meta/title-meta.d.ts +15 -0
  189. package/dist/types/components/base/token-pair-symbol/constants.d.ts +3 -0
  190. package/dist/types/components/base/token-pair-symbol/index.d.ts +2 -0
  191. package/dist/types/components/base/token-pair-symbol/token-pair-symbol.d.ts +15 -0
  192. package/dist/types/components/base/token-pair-title/constants.d.ts +3 -0
  193. package/dist/types/components/base/token-pair-title/index.d.ts +2 -0
  194. package/dist/types/components/base/token-pair-title/token-pair-title.d.ts +11 -0
  195. package/dist/types/components/base/values/position-type-badge.d.ts +1 -1
  196. package/dist/types/components/base-link/base-link.d.ts +1 -1
  197. package/dist/types/components/buttons/button/button.d.ts +2 -2
  198. package/dist/types/components/checkbox/checkbox.d.ts +2 -2
  199. package/dist/types/components/composites/pool-assets-table/pool-assets-table.d.ts +4 -1
  200. package/dist/types/components/dialog/dialog-container.d.ts +3 -3
  201. package/dist/types/components/edit-input/edit-input.d.ts +1 -1
  202. package/dist/types/components/explorer-links-dropdown/explorer-links-dropdown.d.ts +6 -75
  203. package/dist/types/components/filter/variants.d.ts +1 -1
  204. package/dist/types/components/graph/graph-view.d.ts +1 -1
  205. package/dist/types/components/health-factor/health-factor.d.ts +2 -1
  206. package/dist/types/components/icons/index.d.ts +1 -1
  207. package/dist/types/components/index.d.ts +0 -6
  208. package/dist/types/components/input/input.d.ts +1 -1
  209. package/dist/types/components/layout/index.d.ts +0 -7
  210. package/dist/types/components/skeleton/skeleton.d.ts +2 -2
  211. package/dist/types/components/status-dot/status-dot.d.ts +1 -1
  212. package/dist/types/components/table/index.d.ts +0 -5
  213. package/dist/types/components/text-button/text-button.d.ts +1 -1
  214. package/dist/types/components/tip-card/tip-card.d.ts +2 -2
  215. package/dist/types/components/token-symbol/token-symbol.d.ts +1 -1
  216. package/dist/types/components/vertical-indicator/vertical-indicator.d.ts +2 -2
  217. package/dist/types/components/with-title/with-title.d.ts +1 -1
  218. package/dist/types/hooks/index.d.ts +0 -1
  219. package/dist/types/index.d.ts +0 -6
  220. package/dist/types/locale/en.json.d.ts +30 -1
  221. package/dist/types/types/index.d.ts +0 -2
  222. package/package.json +3 -15
  223. package/dist/cjs/components/auth/connect-required.cjs +0 -1
  224. package/dist/cjs/components/auth/index.cjs +0 -1
  225. package/dist/cjs/components/auth/signin-required.cjs +0 -1
  226. package/dist/cjs/components/auth/wallet-ui-context.cjs +0 -1
  227. package/dist/cjs/components/block-sync/block-sync.cjs +0 -1
  228. package/dist/cjs/components/block-sync/index.cjs +0 -1
  229. package/dist/cjs/components/image/image.cjs +0 -1
  230. package/dist/cjs/components/image/index.cjs +0 -1
  231. package/dist/cjs/components/layout/app-logo/app-logo.cjs +0 -1
  232. package/dist/cjs/components/layout/app-logo/index.cjs +0 -1
  233. package/dist/cjs/components/layout/block/block.cjs +0 -1
  234. package/dist/cjs/components/layout/block/index.cjs +0 -1
  235. package/dist/cjs/components/layout/footer/footer.cjs +0 -1
  236. package/dist/cjs/components/layout/footer/index.cjs +0 -1
  237. package/dist/cjs/components/layout/header/header.cjs +0 -1
  238. package/dist/cjs/components/layout/header/index.cjs +0 -1
  239. package/dist/cjs/components/layout/legal-disclaimer/index.cjs +0 -1
  240. package/dist/cjs/components/layout/legal-disclaimer/legal-disclaimer.cjs +0 -1
  241. package/dist/cjs/components/layout/page-layout/index.cjs +0 -1
  242. package/dist/cjs/components/layout/page-layout/page-layout.cjs +0 -1
  243. package/dist/cjs/components/layout/social-icons/index.cjs +0 -1
  244. package/dist/cjs/components/layout/social-icons/social-icons.cjs +0 -1
  245. package/dist/cjs/components/navbar/index.cjs +0 -1
  246. package/dist/cjs/components/navbar/navbar-indicator-context.cjs +0 -1
  247. package/dist/cjs/components/navbar/navbar-with-overflow.cjs +0 -1
  248. package/dist/cjs/components/navbar/navbar.cjs +0 -1
  249. package/dist/cjs/components/navitem/index.cjs +0 -1
  250. package/dist/cjs/components/navitem/navitem.cjs +0 -1
  251. package/dist/cjs/components/page-title/index.cjs +0 -1
  252. package/dist/cjs/components/page-title/page-title.cjs +0 -1
  253. package/dist/cjs/components/pool-apy-tooltip/apy-tooltip.cjs +0 -1
  254. package/dist/cjs/components/pool-apy-tooltip/index.cjs +0 -1
  255. package/dist/cjs/components/table/edit-button.cjs +0 -1
  256. package/dist/cjs/components/table/editable-grid-table.cjs +0 -1
  257. package/dist/cjs/components/table/editable-table.cjs +0 -1
  258. package/dist/cjs/components/table/grid-table-loader.cjs +0 -1
  259. package/dist/cjs/components/table/updated-value.cjs +0 -1
  260. package/dist/cjs/hooks/use-liquidation/index.cjs +0 -1
  261. package/dist/cjs/hooks/use-liquidation/types.cjs +0 -1
  262. package/dist/cjs/hooks/use-liquidation/utils.cjs +0 -1
  263. package/dist/cjs/test-ids/base.cjs +0 -1
  264. package/dist/cjs/test-ids/index.cjs +0 -1
  265. package/dist/cjs/types/component-props.cjs +0 -1
  266. package/dist/cjs/types/help.cjs +0 -1
  267. package/dist/cjs/utils/reactochart-compat.cjs +0 -1
  268. package/dist/esm/components/auth/connect-required.js +0 -37
  269. package/dist/esm/components/auth/index.js +0 -9
  270. package/dist/esm/components/auth/signin-required.js +0 -55
  271. package/dist/esm/components/auth/wallet-ui-context.js +0 -13
  272. package/dist/esm/components/block-sync/block-sync.js +0 -208
  273. package/dist/esm/components/block-sync/index.js +0 -4
  274. package/dist/esm/components/image/image.js +0 -32
  275. package/dist/esm/components/image/index.js +0 -4
  276. package/dist/esm/components/layout/app-logo/app-logo.js +0 -99
  277. package/dist/esm/components/layout/app-logo/index.js +0 -5
  278. package/dist/esm/components/layout/block/block.js +0 -50
  279. package/dist/esm/components/layout/block/index.js +0 -4
  280. package/dist/esm/components/layout/footer/footer.js +0 -237
  281. package/dist/esm/components/layout/footer/index.js +0 -7
  282. package/dist/esm/components/layout/header/header.js +0 -93
  283. package/dist/esm/components/layout/header/index.js +0 -5
  284. package/dist/esm/components/layout/legal-disclaimer/index.js +0 -4
  285. package/dist/esm/components/layout/legal-disclaimer/legal-disclaimer.js +0 -46
  286. package/dist/esm/components/layout/page-layout/index.js +0 -4
  287. package/dist/esm/components/layout/page-layout/page-layout.js +0 -39
  288. package/dist/esm/components/layout/social-icons/index.js +0 -4
  289. package/dist/esm/components/layout/social-icons/social-icons.js +0 -61
  290. package/dist/esm/components/navbar/index.js +0 -11
  291. package/dist/esm/components/navbar/navbar-indicator-context.js +0 -46
  292. package/dist/esm/components/navbar/navbar-with-overflow.js +0 -181
  293. package/dist/esm/components/navbar/navbar.js +0 -99
  294. package/dist/esm/components/navitem/index.js +0 -5
  295. package/dist/esm/components/navitem/navitem.js +0 -124
  296. package/dist/esm/components/page-title/index.js +0 -6
  297. package/dist/esm/components/page-title/page-title.js +0 -120
  298. package/dist/esm/components/pool-apy-tooltip/apy-tooltip.js +0 -154
  299. package/dist/esm/components/pool-apy-tooltip/index.js +0 -4
  300. package/dist/esm/components/table/edit-button.js +0 -48
  301. package/dist/esm/components/table/editable-grid-table.js +0 -121
  302. package/dist/esm/components/table/editable-table.js +0 -108
  303. package/dist/esm/components/table/grid-table-loader.js +0 -22
  304. package/dist/esm/components/table/updated-value.js +0 -49
  305. package/dist/esm/hooks/use-liquidation/index.js +0 -138
  306. package/dist/esm/hooks/use-liquidation/types.js +0 -1
  307. package/dist/esm/hooks/use-liquidation/utils.js +0 -144
  308. package/dist/esm/test-ids/base.js +0 -44
  309. package/dist/esm/test-ids/index.js +0 -46
  310. package/dist/esm/types/component-props.js +0 -1
  311. package/dist/esm/types/help.js +0 -1
  312. package/dist/esm/utils/reactochart-compat.js +0 -18
  313. package/dist/types/components/auth/connect-required.d.ts +0 -32
  314. package/dist/types/components/auth/index.d.ts +0 -3
  315. package/dist/types/components/auth/signin-required.d.ts +0 -37
  316. package/dist/types/components/auth/wallet-ui-context.d.ts +0 -36
  317. package/dist/types/components/block-sync/block-sync.d.ts +0 -8
  318. package/dist/types/components/block-sync/index.d.ts +0 -1
  319. package/dist/types/components/image/image.d.ts +0 -35
  320. package/dist/types/components/image/index.d.ts +0 -1
  321. package/dist/types/components/layout/app-logo/app-logo.d.ts +0 -26
  322. package/dist/types/components/layout/app-logo/index.d.ts +0 -1
  323. package/dist/types/components/layout/block/block.d.ts +0 -23
  324. package/dist/types/components/layout/block/index.d.ts +0 -1
  325. package/dist/types/components/layout/footer/footer.d.ts +0 -53
  326. package/dist/types/components/layout/footer/index.d.ts +0 -1
  327. package/dist/types/components/layout/header/header.d.ts +0 -123
  328. package/dist/types/components/layout/header/index.d.ts +0 -1
  329. package/dist/types/components/layout/legal-disclaimer/index.d.ts +0 -1
  330. package/dist/types/components/layout/legal-disclaimer/legal-disclaimer.d.ts +0 -32
  331. package/dist/types/components/layout/page-layout/index.d.ts +0 -1
  332. package/dist/types/components/layout/page-layout/page-layout.d.ts +0 -41
  333. package/dist/types/components/layout/social-icons/index.d.ts +0 -1
  334. package/dist/types/components/layout/social-icons/social-icons.d.ts +0 -7
  335. package/dist/types/components/navbar/index.d.ts +0 -3
  336. package/dist/types/components/navbar/navbar-indicator-context.d.ts +0 -13
  337. package/dist/types/components/navbar/navbar-with-overflow.d.ts +0 -20
  338. package/dist/types/components/navbar/navbar.d.ts +0 -25
  339. package/dist/types/components/navitem/index.d.ts +0 -1
  340. package/dist/types/components/navitem/navitem.d.ts +0 -67
  341. package/dist/types/components/page-title/index.d.ts +0 -1
  342. package/dist/types/components/page-title/page-title.d.ts +0 -77
  343. package/dist/types/components/pool-apy-tooltip/apy-tooltip.d.ts +0 -20
  344. package/dist/types/components/pool-apy-tooltip/index.d.ts +0 -1
  345. package/dist/types/components/table/edit-button.d.ts +0 -51
  346. package/dist/types/components/table/editable-grid-table.d.ts +0 -120
  347. package/dist/types/components/table/editable-table.d.ts +0 -101
  348. package/dist/types/components/table/grid-table-loader.d.ts +0 -25
  349. package/dist/types/components/table/updated-value.d.ts +0 -34
  350. package/dist/types/hooks/use-liquidation/index.d.ts +0 -53
  351. package/dist/types/hooks/use-liquidation/types.d.ts +0 -16
  352. package/dist/types/hooks/use-liquidation/utils.d.ts +0 -71
  353. package/dist/types/test-ids/base.d.ts +0 -20
  354. package/dist/types/test-ids/index.d.ts +0 -9
  355. package/dist/types/types/component-props.d.ts +0 -16
  356. package/dist/types/types/help.d.ts +0 -4
  357. package/dist/types/types/reactochart.d.ts +0 -145
  358. package/dist/types/utils/reactochart-compat.d.ts +0 -12
  359. /package/dist/cjs/{test-ids/notification-center.cjs → components/composites/notification-center/constants.cjs} +0 -0
  360. /package/dist/esm/{test-ids/notification-center.js → components/composites/notification-center/constants.js} +0 -0
  361. /package/dist/types/{test-ids/notification-center.d.ts → components/composites/notification-center/constants.d.ts} +0 -0
@@ -1,36 +1,57 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { Stack as a } from "../stack/stack.js";
3
- import { useTitleText as f } from "../text/use-title-text.js";
4
- import { VerticalIndicator as c } from "../../vertical-indicator/vertical-indicator.js";
5
- import { InfoListTest as r } from "./constants.js";
6
- function I({
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { Stack as p } from "../stack/stack.js";
3
+ import { useTitleText as r } from "../text/use-title-text.js";
4
+ import { Typography as f } from "../../typography/typography.js";
5
+ import { VerticalIndicator as l } from "../../vertical-indicator/vertical-indicator.js";
6
+ import { InfoListTest as i } from "./constants.js";
7
+ function h({
7
8
  children: t
8
9
  }) {
9
- return /* @__PURE__ */ o(a, { gap: "sm", "data-testid": r.root, children: t });
10
+ return /* @__PURE__ */ e(p, { gap: "sm", "data-testid": i.root, children: t });
10
11
  }
11
- function L({
12
+ function y({
12
13
  title: t,
13
- value: i,
14
- tip: e,
15
- valueTo: n,
16
- testId: m
14
+ value: o,
15
+ tip: n,
16
+ valueDescription: a,
17
+ valueTo: s,
18
+ testId: c
17
19
  }) {
18
- const s = f();
19
- return /* @__PURE__ */ o(
20
- c,
20
+ const m = r();
21
+ return /* @__PURE__ */ e(
22
+ l,
21
23
  {
22
- label: s(t),
23
- tip: e,
24
- value: i,
25
- valueTo: n,
24
+ label: m(t),
25
+ tip: n,
26
+ value: o,
27
+ valueTo: s,
28
+ valueDescription: a,
26
29
  size: "sm",
27
30
  align: "center",
28
- "data-testid": m ?? r.line
31
+ "data-testid": c ?? i.line
32
+ }
33
+ );
34
+ }
35
+ function L({
36
+ title: t
37
+ }) {
38
+ const o = r();
39
+ return /* @__PURE__ */ e(
40
+ f,
41
+ {
42
+ as: "span",
43
+ color: "secondary",
44
+ weight: "bold",
45
+ variant: "caption",
46
+ className: "tracking-[0.55px] uppercase",
47
+ "data-testid": i.sectionTitle,
48
+ children: o(t)
29
49
  }
30
50
  );
31
51
  }
32
52
  export {
33
- L as InfoLine,
34
- I as InfoList,
35
- r as InfoListTest
53
+ y as InfoLine,
54
+ h as InfoList,
55
+ i as InfoListTest,
56
+ L as InfoSectionTitle
36
57
  };
@@ -1,82 +1,85 @@
1
- import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
- import { useState as x } from "react";
3
- import { Stack as I } from "../stack/stack.js";
4
- import { useTitleText as k } from "../text/use-title-text.js";
5
- import { EditInput as V } from "../../edit-input/edit-input.js";
6
- import { Slider as F } from "../../slider/slider.js";
1
+ import { jsx as t, jsxs as m } from "react/jsx-runtime";
2
+ import { useState as I } from "react";
3
+ import { Stack as x } from "../stack/stack.js";
4
+ import { useTitleText as y } from "../text/use-title-text.js";
5
+ import { EditInput as F } from "../../edit-input/edit-input.js";
6
+ import { Slider as j } from "../../slider/slider.js";
7
7
  import "../../slider/slider-context.js";
8
- import { TextButton as j } from "../../text-button/text-button.js";
9
- import { SimpleTooltip as y } from "../../tooltip/simple-tooltip.js";
8
+ import { TextButton as O } from "../../text-button/text-button.js";
9
+ import { SimpleTooltip as R } from "../../tooltip/simple-tooltip.js";
10
10
  import "../../tooltip/tooltip.js";
11
- import { FormattedMessageTyped as v } from "../../typed-intl/index.js";
12
- import { WithTitle as O } from "../../with-title/with-title.js";
11
+ import { useIntlTyped as B, FormattedMessageTyped as T } from "../../typed-intl/index.js";
12
+ import { WithTitle as D } from "../../with-title/with-title.js";
13
13
  import { LeverageInputTest as i } from "./constants.js";
14
- const o = 100, R = 10;
15
- function Q({
14
+ const o = 100, P = 10;
15
+ function Z({
16
16
  value: r,
17
17
  onChange: s,
18
18
  max: n,
19
- min: m = 1,
20
- step: w = 0.1,
19
+ min: l = 1,
21
20
  title: c,
22
21
  hint: d,
23
22
  reset: a,
24
- colorIntervals: N,
25
- colorIntervalLabel: b,
26
- size: E = "sm"
23
+ colorIntervals: w,
24
+ colorIntervalLabel: N,
25
+ size: S = "sm"
27
26
  }) {
28
- const S = k(), [C, p] = x(void 0), [u, f] = x(""), g = C ?? r, h = (e) => {
29
- s(B(e, m, n)), p(void 0);
30
- }, L = () => {
31
- const e = Number.parseFloat(u.replace(",", "."));
32
- Number.isFinite(e) && h(e);
33
- }, M = N?.map((e) => ({
27
+ const E = B(), C = y(), p = w ?? [
28
+ { start: l, end: n, color: "additionalSuccess" }
29
+ ], L = N ?? (p.length > 0 ? E.formatMessage({
30
+ messageId: "components.leverageInput.available"
31
+ }) : void 0), [M, u] = I(void 0), [f, g] = I(""), h = M ?? r, v = (e) => {
32
+ s(_(e, l, n)), u(void 0);
33
+ }, k = () => {
34
+ const e = Number.parseFloat(f.replace(",", "."));
35
+ Number.isFinite(e) && v(e);
36
+ }, V = p.map((e) => ({
34
37
  ...e,
35
38
  start: e.start * o,
36
39
  end: e.end * o
37
40
  }));
38
41
  return /* @__PURE__ */ t("div", { "data-testid": i.root, children: /* @__PURE__ */ t(
39
- O,
42
+ D,
40
43
  {
41
- size: E,
42
- title: /* @__PURE__ */ l(I, { direction: "row", align: "center", justify: "between", gap: "sm", children: [
43
- /* @__PURE__ */ l("span", { className: "font-normal", children: [
44
- c !== void 0 ? S(c) : /* @__PURE__ */ t(v, { messageId: "components.leverageInput.label" }),
44
+ size: S,
45
+ title: /* @__PURE__ */ m(x, { direction: "row", align: "center", justify: "between", gap: "sm", children: [
46
+ /* @__PURE__ */ m("span", { className: "font-normal", children: [
47
+ c !== void 0 ? C(c) : /* @__PURE__ */ t(T, { messageId: "components.leverageInput.label" }),
45
48
  d ? /* @__PURE__ */ t("span", { className: "text-muted-foreground ml-1", children: d }) : null
46
49
  ] }),
47
- /* @__PURE__ */ l(I, { direction: "row", align: "center", gap: "sm", children: [
50
+ /* @__PURE__ */ m(x, { direction: "row", align: "center", gap: "sm", children: [
48
51
  /* @__PURE__ */ t("div", { className: "flex w-[90px] flex-row flex-nowrap items-center", children: /* @__PURE__ */ t(
49
- V,
52
+ F,
50
53
  {
51
- value: u,
54
+ value: f,
52
55
  placeholder: "0",
53
- label: `×${T(g)}`,
56
+ label: `×${b(h)}`,
54
57
  textButtonProps: {
55
58
  className: "inline-flex items-center whitespace-nowrap"
56
59
  },
57
60
  "data-testid": i.value,
58
61
  onEditModeChange: (e) => {
59
- e && f(T(r));
62
+ e && g(b(r));
60
63
  },
61
- onChange: (e) => f(e.target.value),
62
- onSubmit: L
64
+ onChange: (e) => g(e.target.value),
65
+ onSubmit: k
63
66
  }
64
67
  ) }),
65
68
  a ? /* @__PURE__ */ t(
66
- y,
69
+ R,
67
70
  {
68
71
  placement: "top",
69
72
  triangle: !1,
70
73
  triggerClassName: "inline-flex shrink-0",
71
74
  title: /* @__PURE__ */ t(
72
- j,
75
+ O,
73
76
  {
74
77
  buttonColor: "secondaryDashed",
75
78
  size: "sm",
76
79
  className: "max-w-full truncate",
77
80
  onClick: a.onClick,
78
81
  "data-testid": a.testId ?? i.reset,
79
- children: /* @__PURE__ */ t(v, { messageId: "components.leverageInput.reset" })
82
+ children: /* @__PURE__ */ t(T, { messageId: "components.leverageInput.reset" })
80
83
  }
81
84
  ),
82
85
  children: a.tooltip
@@ -85,30 +88,30 @@ function Q({
85
88
  ] })
86
89
  ] }),
87
90
  children: /* @__PURE__ */ t(
88
- F,
91
+ j,
89
92
  {
90
- from: m * o,
93
+ from: l * o,
91
94
  to: n * o,
92
95
  precision: o,
93
- value: g * o,
94
- colorIntervals: M,
95
- colorIntervalLabel: b,
96
- markerStep: n > R ? 200 : w * o,
96
+ value: h * o,
97
+ colorIntervals: V,
98
+ colorIntervalLabel: L,
99
+ markerStep: n > P ? 200 : 100,
97
100
  "data-testid": i.slider,
98
- onChangeValue: (e) => p(e / o),
99
- onSubmitValue: (e) => h(e / o)
101
+ onChangeValue: (e) => u(e / o),
102
+ onSubmitValue: (e) => v(e / o)
100
103
  }
101
104
  )
102
105
  }
103
106
  ) });
104
107
  }
105
- function B(r, s, n) {
108
+ function _(r, s, n) {
106
109
  return Math.min(Math.max(r, s), n);
107
110
  }
108
- function T(r) {
109
- return (Math.round(r * 100) / 100).toFixed(2).replace(/\.?0+$/, "");
111
+ function b(r) {
112
+ return (Math.round(r * 100) / 100).toFixed(2);
110
113
  }
111
114
  export {
112
- Q as LeverageInput,
115
+ Z as LeverageInput,
113
116
  i as LeverageInputTest
114
117
  };
@@ -0,0 +1,6 @@
1
+ class t {
2
+ static root = "liquidation-params-table-root";
3
+ }
4
+ export {
5
+ t as LiquidationParamsTableTest
6
+ };
@@ -0,0 +1,6 @@
1
+ import { LiquidationParamsTableTest as o } from "./constants.js";
2
+ import { LiquidationParamsTable as e } from "./liquidation-params-table.js";
3
+ export {
4
+ e as LiquidationParamsTable,
5
+ o as LiquidationParamsTableTest
6
+ };
@@ -0,0 +1,62 @@
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import "react-intl";
3
+ import "../../buttons/button/button.js";
4
+ import "react";
5
+ import "@gearbox-protocol/sdk";
6
+ import "clsx";
7
+ import "tailwind-merge";
8
+ import "sonner";
9
+ import "@gearbox-protocol/sdk/common-utils";
10
+ import "luxon";
11
+ import "../../../utils/z-index.js";
12
+ import "../../table/grid-table.js";
13
+ import "../../skeleton/skeleton.js";
14
+ import { Table as d, TableHeader as c, TableRow as s, TableHead as m, TableBody as p, TableCell as r } from "../../table/table.js";
15
+ import { FormattedMessageTyped as t } from "../../typed-intl/index.js";
16
+ import { LiquidationParamsTableTest as u } from "./constants.js";
17
+ function a(o) {
18
+ return o / 100;
19
+ }
20
+ function z({
21
+ data: o
22
+ }) {
23
+ const n = a(o.liquidationPremium), l = a(o.liquidationFee);
24
+ return /* @__PURE__ */ i(
25
+ d,
26
+ {
27
+ size: "sm",
28
+ className: "min-w-[480px]",
29
+ "data-testid": u.root,
30
+ children: [
31
+ /* @__PURE__ */ e(c, { children: /* @__PURE__ */ i(s, { children: [
32
+ /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(t, { messageId: "components.liquidationParamsTable.lt" }) }),
33
+ /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(t, { messageId: "components.liquidationParamsTable.penalty" }) }),
34
+ /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(t, { messageId: "components.liquidationParamsTable.premium" }) }),
35
+ /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(t, { messageId: "components.liquidationParamsTable.fee" }) })
36
+ ] }) }),
37
+ /* @__PURE__ */ e(p, { children: /* @__PURE__ */ i(s, { children: [
38
+ /* @__PURE__ */ i(r, { className: "font-medium", children: [
39
+ a(o.liquidationThreshold).toFixed(2),
40
+ "%"
41
+ ] }),
42
+ /* @__PURE__ */ i(r, { className: "font-medium", children: [
43
+ (n + l).toFixed(2),
44
+ "%"
45
+ ] }),
46
+ /* @__PURE__ */ i(r, { className: "font-medium", children: [
47
+ n.toFixed(2),
48
+ "%"
49
+ ] }),
50
+ /* @__PURE__ */ i(r, { className: "font-medium", children: [
51
+ l.toFixed(2),
52
+ "%"
53
+ ] })
54
+ ] }) })
55
+ ]
56
+ }
57
+ );
58
+ }
59
+ export {
60
+ z as LiquidationParamsTable,
61
+ u as LiquidationParamsTableTest
62
+ };
@@ -1,9 +1,10 @@
1
- import { ManagePane as n, ManagePaneMessage as g, ManagePaneTab as o, ManagePaneTabDropdown as M } from "./manage-pane.js";
2
- import { ManagePaneTest as P } from "./constants.js";
1
+ import { ManagePane as n, ManagePaneActionTab as g, ManagePaneMessage as o, ManagePaneTab as M, ManagePaneTabDropdown as P } from "./manage-pane.js";
2
+ import { ManagePaneTest as t } from "./constants.js";
3
3
  export {
4
4
  n as ManagePane,
5
- g as ManagePaneMessage,
6
- o as ManagePaneTab,
7
- M as ManagePaneTabDropdown,
8
- P as ManagePaneTest
5
+ g as ManagePaneActionTab,
6
+ o as ManagePaneMessage,
7
+ M as ManagePaneTab,
8
+ P as ManagePaneTabDropdown,
9
+ t as ManagePaneTest
9
10
  };
@@ -1,83 +1,103 @@
1
- import { jsx as n, jsxs as a } from "react/jsx-runtime";
2
- import { faEllipsis as S } from "@fortawesome/free-solid-svg-icons";
3
- import { Children as P, isValidElement as c } from "react";
4
- import { InfoPortalProvider as w, InfoPortalOut as I } from "../info-portal/info-portal.js";
5
- import { SegmentedTabs as y, SEGMENTED_TABS_INACTIVE_BUTTON_CLASS as C } from "../segmented-tabs/segmented-tabs.js";
6
- import { Stack as o } from "../stack/stack.js";
7
- import { useTitleText as D } from "../text/use-title-text.js";
8
- import { Button as E } from "../../buttons/button/button.js";
9
- import { StyledDialogContainer as N } from "../../client-adapters/styled-dialog-container/styled-dialog-container.js";
10
- import { FaIcon as _ } from "../../icons/fa-icon.js";
11
- import { SimpleDropdown as x } from "../../simple-dropdown/simple-dropdown.js";
12
- import { SimpleDropdownMenuItem as A } from "../../simple-dropdown/simple-dropdown-menu-item.js";
13
- import { ManagePaneTest as r } from "./constants.js";
14
- function v(e) {
1
+ import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
+ import { faEllipsis as C } from "@fortawesome/free-solid-svg-icons";
3
+ import { Children as A, isValidElement as m } from "react";
4
+ import { InfoPortalProvider as _, InfoPortalOut as D } from "../info-portal/info-portal.js";
5
+ import { SegmentedTabs as E, SEGMENTED_TABS_INACTIVE_BUTTON_CLASS as N } from "../segmented-tabs/segmented-tabs.js";
6
+ import { Stack as r } from "../stack/stack.js";
7
+ import { useTitleText as x } from "../text/use-title-text.js";
8
+ import { Button as v } from "../../buttons/button/button.js";
9
+ import { StyledDialogContainer as B } from "../../client-adapters/styled-dialog-container/styled-dialog-container.js";
10
+ import { FaIcon as j } from "../../icons/fa-icon.js";
11
+ import { SimpleDropdown as k } from "../../simple-dropdown/simple-dropdown.js";
12
+ import { SimpleDropdownMenuItem as z } from "../../simple-dropdown/simple-dropdown-menu-item.js";
13
+ import { ManagePaneTest as o } from "./constants.js";
14
+ function O(n) {
15
15
  return null;
16
16
  }
17
- function B(e) {
17
+ function V(n) {
18
18
  return null;
19
19
  }
20
- function j(e) {
21
- return c(e) && e.type === v;
20
+ function F(n) {
21
+ return null;
22
+ }
23
+ function G(n) {
24
+ return m(n) && n.type === O;
25
+ }
26
+ function L(n) {
27
+ return m(n) && n.type === V;
22
28
  }
23
- function z(e) {
24
- return c(e) && e.type === B;
29
+ function U(n) {
30
+ return m(n) && n.type === F;
25
31
  }
26
- function W({
27
- children: e,
28
- activeTab: d,
29
- onTabChange: f,
30
- header: u,
31
- footer: g,
32
- actions: l,
33
- testId: h
32
+ function et({
33
+ children: n,
34
+ activeTab: c,
35
+ onTabChange: h,
36
+ header: T,
37
+ footer: b,
38
+ actions: s,
39
+ testId: M
34
40
  }) {
35
- const T = D(), p = P.toArray(e), m = p.filter(j), b = p.find(z), s = m.filter((t) => !t.props.hidden), M = m.find((t) => t.props.id === d)?.props.children, i = b?.props.items ?? [];
36
- return /* @__PURE__ */ n(w, { children: /* @__PURE__ */ a(o, { gap: "md", "data-testid": h ?? r.root, children: [
37
- u,
38
- s.length > 0 || i.length > 0 || l ? /* @__PURE__ */ a(o, { direction: "row", align: "center", gap: "sm", children: [
39
- s.length > 0 ? /* @__PURE__ */ n(
40
- y,
41
+ const f = x(), p = A.toArray(n), u = p.filter(G), I = p.find(L), l = p.filter(U), P = u.filter((t) => !t.props.hidden), S = u.find((t) => t.props.id === c)?.props.children, i = I?.props.items ?? [], w = new Set(l.map((t) => t.props.id)), d = [
42
+ ...P.map((t) => ({
43
+ id: t.props.id,
44
+ item: f(t.props.title),
45
+ disabled: t.props.disabled,
46
+ testId: o.tab(t.props.id)
47
+ })),
48
+ ...l.map((t) => ({
49
+ id: t.props.id,
50
+ item: f(t.props.title),
51
+ testId: o.tab(t.props.id)
52
+ }))
53
+ ];
54
+ return /* @__PURE__ */ e(_, { children: /* @__PURE__ */ a(r, { gap: "md", "data-testid": M ?? o.root, children: [
55
+ T,
56
+ d.length > 0 || i.length > 0 || s ? /* @__PURE__ */ a(r, { direction: "row", align: "center", gap: "sm", children: [
57
+ d.length > 0 ? /* @__PURE__ */ e(
58
+ E,
41
59
  {
42
- items: s.map((t) => ({
43
- id: t.props.id,
44
- item: T(t.props.title),
45
- disabled: t.props.disabled,
46
- testId: r.tab(t.props.id)
47
- })),
48
- activeTab: d,
49
- onTabChange: f,
50
- testId: r.tabs
60
+ items: d,
61
+ activeTab: c,
62
+ onTabChange: (t) => {
63
+ const g = l.find((y) => y.props.id === t);
64
+ if (g) {
65
+ g.props.onClick();
66
+ return;
67
+ }
68
+ w.has(t) || h(t);
69
+ },
70
+ testId: o.tabs
51
71
  }
52
72
  ) : null,
53
- i.length > 0 || l ? /* @__PURE__ */ a(
54
- o,
73
+ i.length > 0 || s ? /* @__PURE__ */ a(
74
+ r,
55
75
  {
56
76
  direction: "row",
57
77
  align: "center",
58
78
  gap: "sm",
59
79
  className: "ml-auto",
60
80
  children: [
61
- i.length > 0 ? /* @__PURE__ */ n(
62
- x,
81
+ i.length > 0 ? /* @__PURE__ */ e(
82
+ k,
63
83
  {
64
- title: /* @__PURE__ */ n(
65
- E,
84
+ title: /* @__PURE__ */ e(
85
+ v,
66
86
  {
67
87
  type: "button",
68
88
  variant: "ghost",
69
89
  size: "md",
70
- className: C,
90
+ className: N,
71
91
  "aria-label": "More actions",
72
- "data-testid": r.dropdown,
73
- children: /* @__PURE__ */ n(_, { icon: S, className: "size-4" })
92
+ "data-testid": o.dropdown,
93
+ children: /* @__PURE__ */ e(j, { icon: C, className: "size-4" })
74
94
  }
75
95
  ),
76
96
  asChild: !0,
77
97
  placement: "bottom",
78
98
  align: "end",
79
- children: i.map((t) => /* @__PURE__ */ n(
80
- A,
99
+ children: i.map((t) => /* @__PURE__ */ e(
100
+ z,
81
101
  {
82
102
  onSelect: t.onSelect,
83
103
  children: t.title
@@ -86,34 +106,35 @@ function W({
86
106
  ))
87
107
  }
88
108
  ) : null,
89
- l
109
+ s
90
110
  ]
91
111
  }
92
112
  ) : null
93
113
  ] }) : null,
94
114
  /* @__PURE__ */ a(
95
- N,
115
+ B,
96
116
  {
97
- "data-testid": r.body,
117
+ "data-testid": o.body,
98
118
  "data-aside-form-top": !0,
99
119
  children: [
100
- /* @__PURE__ */ n(o, { children: /* @__PURE__ */ n(I, {}) }),
101
- M
120
+ /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(D, {}) }),
121
+ S
102
122
  ]
103
123
  }
104
124
  ),
105
- g
125
+ b
106
126
  ] }) });
107
127
  }
108
- function X({
109
- children: e
128
+ function ot({
129
+ children: n
110
130
  }) {
111
- return /* @__PURE__ */ n(o, { gap: "sm", "data-testid": r.message, children: e });
131
+ return /* @__PURE__ */ e(r, { gap: "sm", "data-testid": o.message, children: n });
112
132
  }
113
133
  export {
114
- W as ManagePane,
115
- X as ManagePaneMessage,
116
- v as ManagePaneTab,
117
- B as ManagePaneTabDropdown,
118
- r as ManagePaneTest
134
+ et as ManagePane,
135
+ F as ManagePaneActionTab,
136
+ ot as ManagePaneMessage,
137
+ O as ManagePaneTab,
138
+ V as ManagePaneTabDropdown,
139
+ o as ManagePaneTest
119
140
  };
@@ -0,0 +1,7 @@
1
+ class r {
2
+ static root = "more-accordion-root";
3
+ static trigger = "more-accordion-trigger";
4
+ }
5
+ export {
6
+ r as MoreAccordionTest
7
+ };
@@ -0,0 +1,6 @@
1
+ import { MoreAccordionTest as e } from "./constants.js";
2
+ import { MoreAccordion as t } from "./more-accordion.js";
3
+ export {
4
+ t as MoreAccordion,
5
+ e as MoreAccordionTest
6
+ };
@@ -0,0 +1,51 @@
1
+ import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
+ import { useState as c } from "react";
3
+ import { faChevronDown as d } from "@fortawesome/free-solid-svg-icons";
4
+ import { FaIcon as l } from "../../icons/fa-icon.js";
5
+ import { SimpleAccordion as p, SimpleAccordionItem as f } from "../../simple-accordion/simple-accordion.js";
6
+ import { useTitleText as u } from "../text/use-title-text.js";
7
+ import { MoreAccordionTest as t } from "./constants.js";
8
+ function A({
9
+ children: i,
10
+ moreMessage: n = "components.moreAccordion.more",
11
+ lessMessage: s = "components.moreAccordion.less"
12
+ }) {
13
+ const r = u(), [a, m] = c(!1);
14
+ return /* @__PURE__ */ e("div", { "data-testid": t.root, children: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
15
+ f,
16
+ {
17
+ value: "more",
18
+ last: !0,
19
+ hideIcon: !0,
20
+ onClick: m,
21
+ triggerClassName: "py-0 font-normal justify-center group",
22
+ className: "border-b-0",
23
+ title: /* @__PURE__ */ o(
24
+ "div",
25
+ {
26
+ className: "grid w-full grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3",
27
+ "data-testid": t.trigger,
28
+ children: [
29
+ /* @__PURE__ */ e("div", { className: "border-b border-gray-20" }),
30
+ /* @__PURE__ */ o("span", { className: "inline-flex items-center justify-center gap-1.5 whitespace-nowrap text-sm font-medium leading-[17px] text-secondary-foreground transition-colors group-hover:text-white", children: [
31
+ r(a ? s : n),
32
+ /* @__PURE__ */ e(
33
+ l,
34
+ {
35
+ icon: d,
36
+ className: "size-3 transition-transform group-data-[state=open]:rotate-180"
37
+ }
38
+ )
39
+ ] }),
40
+ /* @__PURE__ */ e("div", { className: "border-b border-gray-20" })
41
+ ]
42
+ }
43
+ ),
44
+ description: /* @__PURE__ */ e("div", { className: "px-4 pb-0 pt-4", children: i })
45
+ }
46
+ ) }) });
47
+ }
48
+ export {
49
+ A as MoreAccordion,
50
+ t as MoreAccordionTest
51
+ };
@@ -0,0 +1,6 @@
1
+ class o {
2
+ static root = "nested-info-stack-root";
3
+ }
4
+ export {
5
+ o as NestedInfoStackTest
6
+ };
@@ -0,0 +1,6 @@
1
+ import { NestedInfoStackTest as o } from "./constants.js";
2
+ import { NestedInfoStack as r } from "./nested-info-stack.js";
3
+ export {
4
+ r as NestedInfoStack,
5
+ o as NestedInfoStackTest
6
+ };
@@ -0,0 +1,20 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Stack as r } from "../stack/stack.js";
3
+ import { NestedInfoStackTest as t } from "./constants.js";
4
+ function l({
5
+ children: e
6
+ }) {
7
+ return /* @__PURE__ */ o(
8
+ r,
9
+ {
10
+ gap: "sm",
11
+ className: "relative py-[2px] pr-0 pl-3 before:absolute before:top-0 before:left-0 before:block before:h-full before:border-l-2 before:border-l-gray-40 before:content-['']",
12
+ "data-testid": t.root,
13
+ children: e
14
+ }
15
+ );
16
+ }
17
+ export {
18
+ l as NestedInfoStack,
19
+ t as NestedInfoStackTest
20
+ };