@gearbox-protocol/ui-kit 3.14.0-next.3 → 3.14.0-next.31
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.
- package/README.md +1 -0
- package/dist/cjs/components/alert-badge/alert-badge.cjs +1 -1
- package/dist/cjs/components/app-bar/app-bar.cjs +1 -1
- package/dist/cjs/components/apy/apy.cjs +1 -1
- package/dist/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
- package/dist/cjs/components/block-sync/block-sync.cjs +1 -1
- package/dist/cjs/components/block-sync-pill/block-sync-pill.cjs +1 -0
- package/dist/cjs/components/block-sync-pill/block-sync-status.cjs +1 -0
- package/dist/cjs/components/block-sync-pill/index.cjs +1 -0
- package/dist/cjs/components/buttons/button/button.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-button/styled-button.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
- package/dist/cjs/components/complex-input/complex-input.cjs +1 -1
- package/dist/cjs/components/composites/pool-table/columns.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/components/AddressAvatar.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/components/AddressParty.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/components/AddressRow.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/components/AmountRow.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/components/CollapsibleCard.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/components/SectionDivider.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/components/TransferList.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/components/TransferRow.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/components/addressLabel.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/components/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountPair.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/constants.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmDialogView.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.constants.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/computeTransactionConfirmDialogLayout.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/constants.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/transactionConfirmPhase.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/useTransactionConfirmDialog.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/execution/TransactionConfirmExecuteButton.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/execution/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/preview/OperationPreviewContent.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/preview/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/result/TransactionConfirmFailureResult.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessIcon.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessResult.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/result/TransactionConfirmTxHashRow.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/result/constants.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/result/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/TransactionProgressStepper.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/constants.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/summary/PoolOperationConfirmDetails.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/summary/constants.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/summary/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/operations/OperationBody.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/operations/OperationsCard.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/operations/PoolDepositView.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/operations/PoolRow.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/operations/PoolWithdrawView.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/operations/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/state-change/BalanceChangeGroup.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/state-change/BalanceChangeRow.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/state-change/PoolStateChangeCard.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/state-change/StateChangeCard.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/state-change/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/types.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/utils/addressLabels.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/utils/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/utils/poolTokenInfo.cjs +1 -0
- package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
- package/dist/cjs/components/confirm-menu/confirm-menu.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title.cjs +1 -1
- package/dist/cjs/components/graph/formatters.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/layout/app-footer/app-footer.cjs +1 -0
- package/dist/cjs/components/layout/app-footer/index.cjs +1 -0
- package/dist/cjs/components/layout/app-header/app-header.cjs +1 -0
- package/dist/cjs/components/layout/app-header/index.cjs +1 -0
- package/dist/cjs/components/layout/index.cjs +1 -1
- package/dist/cjs/components/layout/main-aside-layout/main-aside-layout.cjs +1 -1
- package/dist/cjs/components/legal-agreement/index.cjs +1 -1
- package/dist/cjs/components/legal-agreement/legal-agreement-awaiting-panel.cjs +1 -0
- package/dist/cjs/components/legal-agreement/legal-agreement-dialog.cjs +1 -1
- package/dist/cjs/components/legal-agreement/legal-agreement-link.cjs +1 -0
- package/dist/cjs/components/legal-agreement/legal-agreement-panel.cjs +1 -0
- package/dist/cjs/components/legal-agreement/legal-agreement-theme.cjs +1 -0
- package/dist/cjs/components/legal-agreement/legal-agreement.stories-config.cjs +1 -0
- package/dist/cjs/components/link/link.cjs +1 -1
- package/dist/cjs/components/loader-guard/loader-guard.cjs +1 -1
- package/dist/cjs/components/markdown-viewer/markdown-viewer.cjs +1 -1
- package/dist/cjs/components/smart-number-input/smart-number-input.cjs +1 -1
- package/dist/cjs/components/time-to-liquidation/time-to-liquidation.cjs +1 -1
- package/dist/cjs/components/tokens-list-cell/tokens-list-cell.cjs +1 -1
- package/dist/cjs/components/vertical-indicator/vertical-indicator.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/hooks/use-filter.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/locale/en.json.cjs +1 -1
- package/dist/esm/components/alert-badge/alert-badge.js +12 -10
- package/dist/esm/components/app-bar/app-bar.js +1 -1
- package/dist/esm/components/apy/apy.js +9 -9
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +5 -2
- package/dist/esm/components/block-sync/block-sync.js +5 -2
- package/dist/esm/components/block-sync-pill/block-sync-pill.js +240 -0
- package/dist/esm/components/block-sync-pill/block-sync-status.js +12 -0
- package/dist/esm/components/block-sync-pill/index.js +4 -0
- package/dist/esm/components/buttons/button/button.js +1 -0
- package/dist/esm/components/checkbox/checkbox-labeled.js +3 -0
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +11 -11
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +3 -0
- package/dist/esm/components/complex-input/complex-input.js +5 -2
- package/dist/esm/components/composites/pool-table/columns.js +38 -35
- package/dist/esm/components/composites/tx-preview/components/AddressAvatar.js +47 -0
- package/dist/esm/components/composites/tx-preview/components/AddressParty.js +17 -0
- package/dist/esm/components/composites/tx-preview/components/AddressRow.js +16 -0
- package/dist/esm/components/composites/tx-preview/components/AmountRow.js +30 -0
- package/dist/esm/components/composites/tx-preview/components/CollapsibleCard.js +45 -0
- package/dist/esm/components/composites/tx-preview/components/SectionDivider.js +12 -0
- package/dist/esm/components/composites/tx-preview/components/TransferList.js +25 -0
- package/dist/esm/components/composites/tx-preview/components/TransferRow.js +52 -0
- package/dist/esm/components/composites/tx-preview/components/addressLabel.js +7 -0
- package/dist/esm/components/composites/tx-preview/components/index.js +20 -0
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +224 -0
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountPair.js +55 -0
- package/dist/esm/components/composites/tx-preview/confirm/amounts/constants.js +10 -0
- package/dist/esm/components/composites/tx-preview/confirm/amounts/index.js +9 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmDialogView.js +50 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js +70 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.constants.js +6 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +93 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/computeTransactionConfirmDialogLayout.js +35 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/constants.js +23 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/index.js +20 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/transactionConfirmPhase.js +1 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/useTransactionConfirmDialog.js +20 -0
- package/dist/esm/components/composites/tx-preview/confirm/execution/TransactionConfirmExecuteButton.js +30 -0
- package/dist/esm/components/composites/tx-preview/confirm/execution/index.js +4 -0
- package/dist/esm/components/composites/tx-preview/confirm/index.js +54 -0
- package/dist/esm/components/composites/tx-preview/confirm/preview/OperationPreviewContent.js +194 -0
- package/dist/esm/components/composites/tx-preview/confirm/preview/index.js +4 -0
- package/dist/esm/components/composites/tx-preview/confirm/result/TransactionConfirmFailureResult.js +55 -0
- package/dist/esm/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessIcon.js +25 -0
- package/dist/esm/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessResult.js +60 -0
- package/dist/esm/components/composites/tx-preview/confirm/result/TransactionConfirmTxHashRow.js +21 -0
- package/dist/esm/components/composites/tx-preview/confirm/result/constants.js +24 -0
- package/dist/esm/components/composites/tx-preview/confirm/result/index.js +15 -0
- package/dist/esm/components/composites/tx-preview/confirm/stepper/TransactionProgressStepper.js +67 -0
- package/dist/esm/components/composites/tx-preview/confirm/stepper/constants.js +6 -0
- package/dist/esm/components/composites/tx-preview/confirm/stepper/index.js +8 -0
- package/dist/esm/components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.js +6 -0
- package/dist/esm/components/composites/tx-preview/confirm/summary/PoolOperationConfirmDetails.js +65 -0
- package/dist/esm/components/composites/tx-preview/confirm/summary/constants.js +6 -0
- package/dist/esm/components/composites/tx-preview/confirm/summary/index.js +6 -0
- package/dist/esm/components/composites/tx-preview/index.js +95 -0
- package/dist/esm/components/composites/tx-preview/operations/OperationBody.js +10 -0
- package/dist/esm/components/composites/tx-preview/operations/OperationsCard.js +194 -0
- package/dist/esm/components/composites/tx-preview/operations/PoolDepositView.js +203 -0
- package/dist/esm/components/composites/tx-preview/operations/PoolRow.js +20 -0
- package/dist/esm/components/composites/tx-preview/operations/PoolWithdrawView.js +197 -0
- package/dist/esm/components/composites/tx-preview/operations/index.js +13 -0
- package/dist/esm/components/composites/tx-preview/state-change/BalanceChangeGroup.js +184 -0
- package/dist/esm/components/composites/tx-preview/state-change/BalanceChangeRow.js +61 -0
- package/dist/esm/components/composites/tx-preview/state-change/PoolStateChangeCard.js +23 -0
- package/dist/esm/components/composites/tx-preview/state-change/StateChangeCard.js +199 -0
- package/dist/esm/components/composites/tx-preview/state-change/index.js +10 -0
- package/dist/esm/components/composites/tx-preview/types.js +1 -0
- package/dist/esm/components/composites/tx-preview/utils/addressLabels.js +41 -0
- package/dist/esm/components/composites/tx-preview/utils/index.js +6 -0
- package/dist/esm/components/composites/tx-preview/utils/poolTokenInfo.js +12 -0
- package/dist/esm/components/compound-apy/compound-apy.js +5 -2
- package/dist/esm/components/confirm-menu/confirm-menu.js +28 -25
- package/dist/esm/components/detailed-page-title/detailed-page-title.js +3 -0
- package/dist/esm/components/graph/formatters.js +127 -132
- package/dist/esm/components/health-factor/health-factor.js +3 -3
- package/dist/esm/components/index.js +729 -706
- package/dist/esm/components/layout/app-footer/app-footer.js +54 -0
- package/dist/esm/components/layout/app-footer/index.js +5 -0
- package/dist/esm/components/layout/app-header/app-header.js +100 -0
- package/dist/esm/components/layout/app-header/index.js +4 -0
- package/dist/esm/components/layout/index.js +32 -27
- package/dist/esm/components/layout/main-aside-layout/main-aside-layout.js +78 -55
- package/dist/esm/components/legal-agreement/index.js +23 -7
- package/dist/esm/components/legal-agreement/legal-agreement-awaiting-panel.js +29 -0
- package/dist/esm/components/legal-agreement/legal-agreement-dialog.js +72 -212
- package/dist/esm/components/legal-agreement/legal-agreement-link.js +22 -0
- package/dist/esm/components/legal-agreement/legal-agreement-panel.js +130 -0
- package/dist/esm/components/legal-agreement/legal-agreement-theme.js +137 -0
- package/dist/esm/components/legal-agreement/legal-agreement.stories-config.js +170 -0
- package/dist/esm/components/link/link.js +42 -35
- package/dist/esm/components/loader-guard/loader-guard.js +7 -5
- package/dist/esm/components/markdown-viewer/markdown-viewer.js +5 -2
- package/dist/esm/components/smart-number-input/smart-number-input.js +242 -120
- package/dist/esm/components/time-to-liquidation/time-to-liquidation.js +3 -0
- package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +5 -2
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +39 -33
- package/dist/esm/components/with-copy/with-copy.js +5 -2
- package/dist/esm/hooks/index.js +50 -47
- package/dist/esm/hooks/use-filter.js +63 -29
- package/dist/esm/index.js +914 -888
- package/dist/esm/locale/en.json.js +5 -0
- package/dist/globals.css +1 -1
- package/dist/types/components/alert-badge/alert-badge.d.ts +1 -1
- package/dist/types/components/block-sync-pill/block-sync-pill.d.ts +35 -0
- package/dist/types/components/block-sync-pill/block-sync-status.d.ts +29 -0
- package/dist/types/components/block-sync-pill/index.d.ts +1 -0
- package/dist/types/components/buttons/button/button.d.ts +4 -3
- package/dist/types/components/composites/tx-preview/components/AddressAvatar.d.ts +12 -0
- package/dist/types/components/composites/tx-preview/components/AddressParty.d.ts +14 -0
- package/dist/types/components/composites/tx-preview/components/AddressRow.d.ts +7 -0
- package/dist/types/components/composites/tx-preview/components/AmountRow.d.ts +15 -0
- package/dist/types/components/composites/tx-preview/components/CollapsibleCard.d.ts +22 -0
- package/dist/types/components/composites/tx-preview/components/SectionDivider.d.ts +10 -0
- package/dist/types/components/composites/tx-preview/components/TransferList.d.ts +19 -0
- package/dist/types/components/composites/tx-preview/components/TransferRow.d.ts +30 -0
- package/dist/types/components/composites/tx-preview/components/addressLabel.d.ts +27 -0
- package/dist/types/components/composites/tx-preview/components/index.d.ts +9 -0
- package/dist/types/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.d.ts +13 -0
- package/dist/types/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountPair.d.ts +16 -0
- package/dist/types/components/composites/tx-preview/confirm/amounts/constants.d.ts +6 -0
- package/dist/types/components/composites/tx-preview/confirm/amounts/index.d.ts +3 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmDialogView.d.ts +24 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.d.ts +23 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.constants.d.ts +3 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.d.ts +19 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/computeTransactionConfirmDialogLayout.d.ts +8 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/constants.d.ts +17 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/index.d.ts +8 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmPhase.d.ts +4 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/useTransactionConfirmDialog.d.ts +8 -0
- package/dist/types/components/composites/tx-preview/confirm/execution/TransactionConfirmExecuteButton.d.ts +6 -0
- package/dist/types/components/composites/tx-preview/confirm/execution/index.d.ts +1 -0
- package/dist/types/components/composites/tx-preview/confirm/index.d.ts +7 -0
- package/dist/types/components/composites/tx-preview/confirm/preview/OperationPreviewContent.d.ts +12 -0
- package/dist/types/components/composites/tx-preview/confirm/preview/index.d.ts +1 -0
- package/dist/types/components/composites/tx-preview/confirm/result/TransactionConfirmFailureResult.d.ts +8 -0
- package/dist/types/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessIcon.d.ts +2 -0
- package/dist/types/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessResult.d.ts +8 -0
- package/dist/types/components/composites/tx-preview/confirm/result/TransactionConfirmTxHashRow.d.ts +6 -0
- package/dist/types/components/composites/tx-preview/confirm/result/constants.d.ts +18 -0
- package/dist/types/components/composites/tx-preview/confirm/result/index.d.ts +5 -0
- package/dist/types/components/composites/tx-preview/confirm/stepper/TransactionProgressStepper.d.ts +7 -0
- package/dist/types/components/composites/tx-preview/confirm/stepper/constants.d.ts +3 -0
- package/dist/types/components/composites/tx-preview/confirm/stepper/index.d.ts +3 -0
- package/dist/types/components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.d.ts +10 -0
- package/dist/types/components/composites/tx-preview/confirm/summary/PoolOperationConfirmDetails.d.ts +15 -0
- package/dist/types/components/composites/tx-preview/confirm/summary/constants.d.ts +3 -0
- package/dist/types/components/composites/tx-preview/confirm/summary/index.d.ts +2 -0
- package/dist/types/components/composites/tx-preview/index.d.ts +17 -0
- package/dist/types/components/composites/tx-preview/operations/OperationBody.d.ts +15 -0
- package/dist/types/components/composites/tx-preview/operations/OperationsCard.d.ts +21 -0
- package/dist/types/components/composites/tx-preview/operations/PoolDepositView.d.ts +11 -0
- package/dist/types/components/composites/tx-preview/operations/PoolRow.d.ts +8 -0
- package/dist/types/components/composites/tx-preview/operations/PoolWithdrawView.d.ts +11 -0
- package/dist/types/components/composites/tx-preview/operations/index.d.ts +5 -0
- package/dist/types/components/composites/tx-preview/state-change/BalanceChangeGroup.d.ts +11 -0
- package/dist/types/components/composites/tx-preview/state-change/BalanceChangeRow.d.ts +14 -0
- package/dist/types/components/composites/tx-preview/state-change/PoolStateChangeCard.d.ts +18 -0
- package/dist/types/components/composites/tx-preview/state-change/StateChangeCard.d.ts +21 -0
- package/dist/types/components/composites/tx-preview/state-change/index.d.ts +4 -0
- package/dist/types/components/composites/tx-preview/types.d.ts +19 -0
- package/dist/types/components/composites/tx-preview/utils/addressLabels.d.ts +16 -0
- package/dist/types/components/composites/tx-preview/utils/index.d.ts +2 -0
- package/dist/types/components/composites/tx-preview/utils/poolTokenInfo.d.ts +14 -0
- package/dist/types/components/confirm-menu/confirm-menu.d.ts +4 -2
- package/dist/types/components/help-tip/help-tip.d.ts +2 -2
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/layout/app-footer/app-footer.d.ts +62 -0
- package/dist/types/components/layout/app-footer/index.d.ts +1 -0
- package/dist/types/components/layout/app-header/app-header.d.ts +67 -0
- package/dist/types/components/layout/app-header/index.d.ts +1 -0
- package/dist/types/components/layout/index.d.ts +2 -0
- package/dist/types/components/layout/main-aside-layout/main-aside-layout.d.ts +24 -0
- package/dist/types/components/legal-agreement/index.d.ts +5 -1
- package/dist/types/components/legal-agreement/legal-agreement-awaiting-panel.d.ts +10 -0
- package/dist/types/components/legal-agreement/legal-agreement-dialog.d.ts +19 -52
- package/dist/types/components/legal-agreement/legal-agreement-link.d.ts +11 -0
- package/dist/types/components/legal-agreement/legal-agreement-panel.d.ts +16 -0
- package/dist/types/components/legal-agreement/legal-agreement-theme.d.ts +36 -0
- package/dist/types/components/legal-agreement/legal-agreement.stories-config.d.ts +11 -0
- package/dist/types/components/smart-number-input/smart-number-input.d.ts +41 -1
- package/dist/types/components/tip-card/tip-card.d.ts +1 -1
- package/dist/types/components/vertical-indicator/vertical-indicator.d.ts +6 -0
- package/dist/types/hooks/use-filter.d.ts +46 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/locale/en.json.d.ts +6 -0
- package/dist/types/types/footer.d.ts +24 -3
- package/package.json +16 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const alertBadgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "success" | "warning" | "primary" | "alert" | "info" | null | undefined;
|
|
4
|
+
variant?: "none" | "default" | "success" | "warning" | "primary" | "alert" | "info" | null | undefined;
|
|
5
5
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
6
6
|
fullWidth?: boolean | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { BlockSyncProps } from '../../types/footer';
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
export interface BlockSyncPillProps extends BlockSyncProps {
|
|
4
|
+
/**
|
|
5
|
+
* Label rendered inside the status pill. Defaults to `Status`.
|
|
6
|
+
*/
|
|
7
|
+
statusLabel?: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Additional class names applied to the pill wrapper.
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* BlockSyncPill — backend-sync status rendered as an {@link AppFooter}-style
|
|
15
|
+
* pill: a thin bordered, rounded badge with a status dot and a label.
|
|
16
|
+
*
|
|
17
|
+
* Reflects the **liveness** of the data-refresh loop rather than raw block age:
|
|
18
|
+
* - **loading** (no successful sync yet): the dot is a pulsing neutral gray;
|
|
19
|
+
* - **synced** (within `syncIntervalMs * staleMultiplier`, no errors): green,
|
|
20
|
+
* pulsing while a refresh is in flight;
|
|
21
|
+
* - **error / stalled**: red.
|
|
22
|
+
*
|
|
23
|
+
* Hovering reveals per-chain block numbers and the local time of the last sync.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* <BlockSyncPill
|
|
28
|
+
* blockByChain={blockByChain}
|
|
29
|
+
* explorerAddresses={explorerAddresses}
|
|
30
|
+
* networkById={networkById}
|
|
31
|
+
* syncIntervalMs={300000}
|
|
32
|
+
* />
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare function BlockSyncPill({ blockByChain, explorerAddresses, networkById, syncIntervalMs, staleMultiplier, statusLabel, className, }: BlockSyncPillProps): React.ReactElement;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BlockByChain } from '../../types/footer';
|
|
2
|
+
/**
|
|
3
|
+
* Liveness state of the data-refresh loop, derived from per-chain sync info:
|
|
4
|
+
* - `loading` — nothing has successfully synced yet (initial state);
|
|
5
|
+
* - `synced` — at least one chain synced and none are stale/failing;
|
|
6
|
+
* - `error` — a chain reported an error, or the oldest sync is stale.
|
|
7
|
+
*/
|
|
8
|
+
export type BlockSyncState = "loading" | "synced" | "error";
|
|
9
|
+
export interface BlockSyncStatus {
|
|
10
|
+
state: BlockSyncState;
|
|
11
|
+
/** True while any chain has a refresh in flight. */
|
|
12
|
+
isSyncing: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface GetBlockSyncStatusProps {
|
|
15
|
+
blockByChain: BlockByChain | undefined;
|
|
16
|
+
/** Reference "now" timestamp (ms) used to evaluate staleness. */
|
|
17
|
+
now: number;
|
|
18
|
+
/** Age (ms) after which the oldest sync is considered stale. */
|
|
19
|
+
staleAfterMs: number;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Pure derivation of the {@link BlockSyncState} from chain sync info.
|
|
23
|
+
*
|
|
24
|
+
* A chain counts as "synced" only when it has both a real block (`> 0`) and a
|
|
25
|
+
* local sync timestamp. Staleness is measured against the **oldest** synced
|
|
26
|
+
* chain, so a single lagging chain is enough to flag the whole indicator.
|
|
27
|
+
* Errors take priority over everything else.
|
|
28
|
+
*/
|
|
29
|
+
export declare function getBlockSyncStatus({ blockByChain, now, staleAfterMs, }: GetBlockSyncStatusProps): BlockSyncStatus;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './block-sync-pill';
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "link" | "text" | "default" | "success" | "destructive" | "ghost" | "outline" | "secondary" | "white" | "neutral" | "pink" | "pink-outline" | "blue" | "blue-outline" | null | undefined;
|
|
5
|
-
size?: "default" | "icon" | "auto" | "xs" | "sm" | "lg" | null | undefined;
|
|
5
|
+
size?: "default" | "icon" | "auto" | "xs" | "sm" | "lg" | "md" | null | undefined;
|
|
6
6
|
width?: "compact" | "wide" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
/**
|
|
@@ -43,8 +43,9 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
43
43
|
* Sizes (size):
|
|
44
44
|
* - `auto` — automatic height without padding.
|
|
45
45
|
* - `xs` — extra small (rounded-full, px-3, text-xs).
|
|
46
|
-
* - `sm` — small (h-
|
|
47
|
-
* - `
|
|
46
|
+
* - `sm` — small (h-7, px-3, text-xs).
|
|
47
|
+
* - `md` — medium (h-8, px-3.5, text-sm).
|
|
48
|
+
* - `default` — standard (h-10, px-4).
|
|
48
49
|
* - `lg` — large (h-10, px-8).
|
|
49
50
|
* - `icon` — square button for icons (h-9 w-9).
|
|
50
51
|
*
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Address } from 'viem';
|
|
2
|
+
import { AddressRole } from './addressLabel';
|
|
3
|
+
export interface AddressAvatarProps {
|
|
4
|
+
address: Address;
|
|
5
|
+
role?: AddressRole;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Small round avatar for an operation party. Picks an icon based on `role`:
|
|
9
|
+
* wallet / credit-account get a Font Awesome glyph, pools get the Gearbox brand
|
|
10
|
+
* logo, and everything else falls back to an address-derived {@link Identicon}.
|
|
11
|
+
*/
|
|
12
|
+
export declare function AddressAvatar({ address, role, }: AddressAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Address } from 'viem';
|
|
2
|
+
import { AddressLabel } from './addressLabel';
|
|
3
|
+
export interface AddressPartyProps {
|
|
4
|
+
address: Address;
|
|
5
|
+
/** Optional resolved label; controls the displayed name and avatar. */
|
|
6
|
+
label?: AddressLabel;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* One side of a transfer: an avatar plus a name (the resolved label, when
|
|
10
|
+
* present) and the shortened, copyable address. The copy affordance sits on the
|
|
11
|
+
* address line itself (not centered against the whole block). Purely
|
|
12
|
+
* presentational; labels are resolved by the caller.
|
|
13
|
+
*/
|
|
14
|
+
export declare function AddressParty({ address, label }: AddressPartyProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Address } from 'viem';
|
|
2
|
+
export interface AddressRowProps {
|
|
3
|
+
label: string;
|
|
4
|
+
address: Address;
|
|
5
|
+
}
|
|
6
|
+
/** A labeled row showing a shortened, copyable address. */
|
|
7
|
+
export declare function AddressRow({ label, address }: AddressRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface AmountRowToken {
|
|
2
|
+
symbol: string;
|
|
3
|
+
decimals: number;
|
|
4
|
+
}
|
|
5
|
+
export interface AmountRowProps {
|
|
6
|
+
value: bigint | string | number;
|
|
7
|
+
token: AmountRowToken;
|
|
8
|
+
/** Row label shown on the left. */
|
|
9
|
+
label?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A two-column row: a label on the left and a token amount (icon + formatted
|
|
13
|
+
* value + symbol) on the right.
|
|
14
|
+
*/
|
|
15
|
+
export declare function AmountRow({ value, token, label }: AmountRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface CollapsibleCardProps {
|
|
3
|
+
/** Unique value identifying the accordion item within the card. */
|
|
4
|
+
value: string;
|
|
5
|
+
/** Header title, rendered inside a `CardTitle`. */
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the card is expanded by default.
|
|
9
|
+
* @default true
|
|
10
|
+
*/
|
|
11
|
+
defaultOpen?: boolean;
|
|
12
|
+
/** Extra classes merged into the content wrapper (default `flex flex-col gap-3 pt-0`). */
|
|
13
|
+
contentClassName?: string;
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Collapsible card shell: a `Card` wrapping a single-item `SimpleAccordion`
|
|
18
|
+
* whose header is the `title` and whose body is `children`. Encapsulates the
|
|
19
|
+
* repeated `Card -> SimpleAccordion -> SimpleAccordionItem` pattern used across
|
|
20
|
+
* the decode feature cards.
|
|
21
|
+
*/
|
|
22
|
+
export declare function CollapsibleCard({ value, title, defaultOpen, contentClassName, children, }: CollapsibleCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface SectionDividerProps {
|
|
2
|
+
/** Section heading rendered between the two separator rules. */
|
|
3
|
+
title: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* A labeled divider: a centered, uppercase heading flanked by horizontal rules.
|
|
7
|
+
* Used to introduce a section inside an operation card (e.g. "Transfers" or the
|
|
8
|
+
* per-address balance groups in the state-changes card).
|
|
9
|
+
*/
|
|
10
|
+
export declare function SectionDivider({ title }: SectionDividerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Address } from 'viem';
|
|
2
|
+
import { AddressLabels } from './addressLabel';
|
|
3
|
+
import { Transfer, TransferListToken } from './TransferRow';
|
|
4
|
+
export interface TransferListProps {
|
|
5
|
+
transfers: Transfer[];
|
|
6
|
+
/** Resolved labels for the involved addresses (drives names, avatars, color). */
|
|
7
|
+
labels: AddressLabels;
|
|
8
|
+
/** Resolves token metadata (symbol/decimals) for a token address. */
|
|
9
|
+
resolveToken: (token: Address) => TransferListToken;
|
|
10
|
+
/** Section heading shown in the divider; pass `null` to omit it. */
|
|
11
|
+
title?: string | null;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Renders a list of {@link TransferRow}s, separated from the rest of the card by
|
|
15
|
+
* a labeled divider. All rows share one symmetric five-column grid so the
|
|
16
|
+
* arrows, amounts and avatars align across rows. Renders nothing when there are
|
|
17
|
+
* no transfers.
|
|
18
|
+
*/
|
|
19
|
+
export declare function TransferList({ transfers, labels, resolveToken, title, }: TransferListProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Address } from 'viem';
|
|
2
|
+
import { AddressLabels } from './addressLabel';
|
|
3
|
+
export interface TransferListToken {
|
|
4
|
+
symbol: string;
|
|
5
|
+
decimals: number;
|
|
6
|
+
}
|
|
7
|
+
export interface Transfer {
|
|
8
|
+
token: Address;
|
|
9
|
+
amount: bigint;
|
|
10
|
+
from: Address;
|
|
11
|
+
to: Address;
|
|
12
|
+
}
|
|
13
|
+
export interface TransferRowProps {
|
|
14
|
+
transfer: Transfer;
|
|
15
|
+
/** Resolved labels for the involved addresses (drives names, avatars, color). */
|
|
16
|
+
labels: AddressLabels;
|
|
17
|
+
token: TransferListToken;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* One transfer as five grid cells (the parent `TransferList` owns the shared,
|
|
21
|
+
* left-right symmetric grid template so columns line up across rows): sender,
|
|
22
|
+
* arrow, token amount, arrow, receiver. Sender/receiver are left-aligned in the
|
|
23
|
+
* flexible outer columns; the centered amount sits at the row's horizontal
|
|
24
|
+
* center with the two arrows symmetric around it. The arrows and amount are
|
|
25
|
+
* colored by direction relative to "our" addresses: red when an owned address
|
|
26
|
+
* is the sender (outgoing), green when it is the receiver (incoming), muted
|
|
27
|
+
* otherwise. Purely presentational; labels/token metadata are resolved by the
|
|
28
|
+
* caller.
|
|
29
|
+
*/
|
|
30
|
+
export declare function TransferRow({ transfer, labels, token }: TransferRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Address } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* Visual category for a labeled address; drives the avatar rendering.
|
|
4
|
+
* `external` is the fallback for addresses we do not specifically recognize.
|
|
5
|
+
*/
|
|
6
|
+
export type AddressRole = "wallet" | "creditAccount" | "pool" | "external";
|
|
7
|
+
/**
|
|
8
|
+
* UI-only description of an address involved in an operation.
|
|
9
|
+
*
|
|
10
|
+
* `ours` is a presentation-layer concept (it colors transfers red/green) and is
|
|
11
|
+
* derived by the feature that builds the labels; it is intentionally decoupled
|
|
12
|
+
* from the simulation watch set in `src/simulate`.
|
|
13
|
+
*/
|
|
14
|
+
export interface AddressLabel {
|
|
15
|
+
/** Label shown in transfer rows, e.g. "Your wallet", "LP shares receiver", "Pool XYZ". */
|
|
16
|
+
transferLabel?: string;
|
|
17
|
+
/** Label shown as the state-changes divider, e.g. "Wallet balances", "Receiver balances". */
|
|
18
|
+
balancesLabel?: string;
|
|
19
|
+
/** Visual category, drives the avatar. */
|
|
20
|
+
role: AddressRole;
|
|
21
|
+
/** Whether this is one of "our" addresses; drives transfer color (red/green). */
|
|
22
|
+
ours: boolean;
|
|
23
|
+
}
|
|
24
|
+
/** Address -> label lookup, keyed by checksummed address. */
|
|
25
|
+
export type AddressLabels = ReadonlyMap<Address, AddressLabel>;
|
|
26
|
+
/** Resolves an address's label, normalizing the key to checksummed form. */
|
|
27
|
+
export declare function getAddressLabel(labels: AddressLabels, address: Address): AddressLabel | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './AddressAvatar';
|
|
2
|
+
export * from './AddressParty';
|
|
3
|
+
export * from './AddressRow';
|
|
4
|
+
export * from './AmountRow';
|
|
5
|
+
export * from './addressLabel';
|
|
6
|
+
export * from './CollapsibleCard';
|
|
7
|
+
export * from './SectionDivider';
|
|
8
|
+
export * from './TransferList';
|
|
9
|
+
export * from './TransferRow';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TokenFullData } from '../../../../../types/common';
|
|
3
|
+
export interface TransactionConfirmAmountFieldProps {
|
|
4
|
+
readonly label: React.ReactNode;
|
|
5
|
+
readonly amount: bigint;
|
|
6
|
+
readonly token?: Omit<TokenFullData, "address">;
|
|
7
|
+
readonly usdMoney?: bigint;
|
|
8
|
+
readonly loading?: boolean;
|
|
9
|
+
readonly position: "primary" | "receive";
|
|
10
|
+
readonly size?: "sm" | "md";
|
|
11
|
+
readonly maxLength?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function TransactionConfirmAmountField({ label, amount, token, usdMoney, loading, position, size, maxLength, }: TransactionConfirmAmountFieldProps): React.ReactElement;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TokenFullData } from '../../../../../types/common';
|
|
3
|
+
export interface TransactionConfirmAmountPairProps {
|
|
4
|
+
readonly primaryLabel: React.ReactNode;
|
|
5
|
+
readonly primaryAmount: bigint;
|
|
6
|
+
readonly primaryToken?: Omit<TokenFullData, "address">;
|
|
7
|
+
readonly primaryUsdMoney?: bigint;
|
|
8
|
+
readonly receiveLabel: React.ReactNode;
|
|
9
|
+
readonly receiveAmount: bigint;
|
|
10
|
+
readonly receiveToken?: Omit<TokenFullData, "address">;
|
|
11
|
+
readonly receiveUsdMoney?: bigint;
|
|
12
|
+
readonly loading?: boolean;
|
|
13
|
+
readonly size?: "sm" | "md";
|
|
14
|
+
readonly maxLength?: number;
|
|
15
|
+
}
|
|
16
|
+
export declare function TransactionConfirmAmountPair({ primaryLabel, primaryAmount, primaryToken, primaryUsdMoney, receiveLabel, receiveAmount, receiveToken, receiveUsdMoney, loading, size, maxLength, }: TransactionConfirmAmountPairProps): React.ReactElement;
|
package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmDialogView.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TransactionExecutionStepView } from '../stepper/transactionExecutionStepTypes';
|
|
3
|
+
import { TransactionConfirmPhase } from './transactionConfirmPhase';
|
|
4
|
+
export interface TransactionConfirmDialogViewProps {
|
|
5
|
+
readonly open: boolean;
|
|
6
|
+
readonly onClose: () => void;
|
|
7
|
+
readonly phase?: TransactionConfirmPhase;
|
|
8
|
+
readonly title: React.ReactNode;
|
|
9
|
+
readonly titleAddon?: React.ReactNode;
|
|
10
|
+
readonly preview: React.ReactNode;
|
|
11
|
+
readonly previewLoading?: boolean;
|
|
12
|
+
readonly previewError?: Error | null;
|
|
13
|
+
readonly previewErrorTitle?: string;
|
|
14
|
+
readonly previewClassName?: string;
|
|
15
|
+
readonly containerClassName?: string;
|
|
16
|
+
readonly containerTestId?: string;
|
|
17
|
+
readonly shellTestId?: string;
|
|
18
|
+
readonly execution: React.ReactNode;
|
|
19
|
+
readonly progressSteps?: ReadonlyArray<TransactionExecutionStepView>;
|
|
20
|
+
readonly renderProgressStepLabel?: (step: TransactionExecutionStepView) => React.ReactNode;
|
|
21
|
+
readonly result?: React.ReactNode;
|
|
22
|
+
readonly hideTitleAddonOnResult?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare function TransactionConfirmDialogView({ open, onClose, phase, title, titleAddon, preview, previewLoading, previewError, previewErrorTitle, previewClassName, containerClassName, containerTestId, shellTestId, execution, progressSteps, renderProgressStepLabel, result, hideTitleAddonOnResult, }: TransactionConfirmDialogViewProps): React.ReactElement | null;
|
package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TransactionExecutionStepView } from '../stepper/transactionExecutionStepTypes';
|
|
3
|
+
import { TransactionConfirmPhase } from './transactionConfirmPhase';
|
|
4
|
+
export interface TransactionConfirmPageViewProps {
|
|
5
|
+
readonly phase?: TransactionConfirmPhase;
|
|
6
|
+
readonly onClose?: () => void;
|
|
7
|
+
readonly title: React.ReactNode;
|
|
8
|
+
readonly titleAddon?: React.ReactNode;
|
|
9
|
+
readonly preview: React.ReactNode;
|
|
10
|
+
readonly previewLoading?: boolean;
|
|
11
|
+
readonly previewError?: Error | null;
|
|
12
|
+
readonly previewErrorTitle?: string;
|
|
13
|
+
readonly previewClassName?: string;
|
|
14
|
+
readonly execution: React.ReactNode;
|
|
15
|
+
readonly progressSteps?: ReadonlyArray<TransactionExecutionStepView>;
|
|
16
|
+
readonly renderProgressStepLabel?: (step: TransactionExecutionStepView) => React.ReactNode;
|
|
17
|
+
readonly result?: React.ReactNode;
|
|
18
|
+
readonly hideTitleAddonOnResult?: boolean;
|
|
19
|
+
readonly containerClassName?: string;
|
|
20
|
+
readonly containerTestId?: string;
|
|
21
|
+
readonly shellTestId?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function TransactionConfirmPageView({ onClose, phase, title, titleAddon, preview, previewLoading, previewError, previewErrorTitle, previewClassName, execution, progressSteps, renderProgressStepLabel, result, hideTitleAddonOnResult, containerClassName, containerTestId, shellTestId, }: TransactionConfirmPageViewProps): React.ReactElement;
|
package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TransactionExecutionStepView } from '../stepper/transactionExecutionStepTypes';
|
|
3
|
+
import { TransactionConfirmPhase } from './transactionConfirmPhase';
|
|
4
|
+
export interface TransactionConfirmShellProps {
|
|
5
|
+
readonly phase?: TransactionConfirmPhase;
|
|
6
|
+
readonly header?: React.ReactNode;
|
|
7
|
+
readonly preview: React.ReactNode;
|
|
8
|
+
readonly previewLoading?: boolean;
|
|
9
|
+
readonly previewError?: Error | null;
|
|
10
|
+
readonly previewErrorTitle?: string;
|
|
11
|
+
readonly previewClassName?: string;
|
|
12
|
+
readonly execution: React.ReactNode;
|
|
13
|
+
readonly progressSteps?: ReadonlyArray<TransactionExecutionStepView>;
|
|
14
|
+
readonly renderProgressStepLabel?: (step: TransactionExecutionStepView) => React.ReactNode;
|
|
15
|
+
readonly result?: React.ReactNode;
|
|
16
|
+
readonly className?: string;
|
|
17
|
+
readonly "data-testid"?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function TransactionConfirmShell({ phase, header, preview, previewLoading, previewError, previewErrorTitle, previewClassName, execution, progressSteps, renderProgressStepLabel, result, className, "data-testid": dataTestId, }: TransactionConfirmShellProps): React.ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TransactionConfirmPhase } from './transactionConfirmPhase';
|
|
2
|
+
export interface TransactionConfirmDialogLayout {
|
|
3
|
+
readonly showPreview: boolean;
|
|
4
|
+
readonly showExecution: boolean;
|
|
5
|
+
readonly showProgressStepper: boolean;
|
|
6
|
+
readonly showResult: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function computeTransactionConfirmDialogLayout(phase: TransactionConfirmPhase, hasProgressSteps: boolean): TransactionConfirmDialogLayout;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class TransactionConfirmDialogTest {
|
|
2
|
+
static root: string;
|
|
3
|
+
static execution: string;
|
|
4
|
+
static progress: string;
|
|
5
|
+
static result: string;
|
|
6
|
+
}
|
|
7
|
+
/** Outer dialog card: mobile-first full width, fixed 560px from md up. */
|
|
8
|
+
export declare const transactionConfirmDialogShellVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
9
|
+
/**
|
|
10
|
+
* Modal confirm: use available viewport height; inner preview scrolls only when
|
|
11
|
+
* content overflows (see `transactionConfirmPreviewScrollVariants`).
|
|
12
|
+
*/
|
|
13
|
+
export declare const transactionConfirmModalContainerVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
14
|
+
/** Scrollable preview column inside confirm / execute body. */
|
|
15
|
+
export declare const transactionConfirmPreviewScrollVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
16
|
+
/** Inner shell content: fill the padded dialog container without re-applying width. */
|
|
17
|
+
export declare const transactionConfirmShellContentVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './computeTransactionConfirmDialogLayout';
|
|
2
|
+
export * from './constants';
|
|
3
|
+
export * from './TransactionConfirmDialogView';
|
|
4
|
+
export * from './TransactionConfirmPageView';
|
|
5
|
+
export * from './TransactionConfirmShell';
|
|
6
|
+
export * from './TransactionConfirmShell.constants';
|
|
7
|
+
export * from './transactionConfirmPhase';
|
|
8
|
+
export * from './useTransactionConfirmDialog';
|
package/dist/types/components/composites/tx-preview/confirm/dialog/useTransactionConfirmDialog.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface UseTransactionConfirmDialogReturn {
|
|
2
|
+
open: boolean;
|
|
3
|
+
openDialog: () => void;
|
|
4
|
+
closeDialog: () => void;
|
|
5
|
+
refreshNonce: number;
|
|
6
|
+
bumpRefreshNonce: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function useTransactionConfirmDialog(): UseTransactionConfirmDialogReturn;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ButtonProps } from '../../../../buttons/button/button';
|
|
3
|
+
export interface TransactionConfirmExecuteButtonProps extends ButtonProps {
|
|
4
|
+
readonly isLoading?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function TransactionConfirmExecuteButton({ isLoading, disabled, children, width, size, ...rest }: TransactionConfirmExecuteButtonProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TransactionConfirmExecuteButton';
|
package/dist/types/components/composites/tx-preview/confirm/preview/OperationPreviewContent.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Operation, PoolSimulationResult } from '@gearbox-protocol/sdk/preview';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { Address } from 'viem';
|
|
4
|
+
import { GearboxSDKLike } from '../../types';
|
|
5
|
+
export interface OperationPreviewContentProps {
|
|
6
|
+
sdk: GearboxSDKLike;
|
|
7
|
+
operation: Operation;
|
|
8
|
+
simulation: PoolSimulationResult | undefined;
|
|
9
|
+
isSimulating: boolean;
|
|
10
|
+
wallet: Address;
|
|
11
|
+
}
|
|
12
|
+
export declare function OperationPreviewContent({ sdk, operation, simulation, isSimulating, wallet, }: OperationPreviewContentProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './OperationPreviewContent';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface TransactionConfirmFailureResultProps {
|
|
3
|
+
readonly title: React.ReactNode;
|
|
4
|
+
readonly description: React.ReactNode;
|
|
5
|
+
readonly footerAction?: React.ReactNode;
|
|
6
|
+
readonly iconSize?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function TransactionConfirmFailureResult({ title, description, footerAction, iconSize, }: TransactionConfirmFailureResultProps): React.ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface TransactionConfirmSuccessResultProps {
|
|
3
|
+
readonly headline: React.ReactNode;
|
|
4
|
+
readonly subtitle: React.ReactNode;
|
|
5
|
+
readonly txHashRow?: React.ReactNode;
|
|
6
|
+
readonly footerAction?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function TransactionConfirmSuccessResult({ headline, subtitle, txHashRow, footerAction, }: TransactionConfirmSuccessResultProps): React.ReactElement;
|
package/dist/types/components/composites/tx-preview/confirm/result/TransactionConfirmTxHashRow.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface TransactionConfirmTxHashRowProps {
|
|
3
|
+
readonly txHashLink: React.ReactNode;
|
|
4
|
+
readonly addToWalletLink?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare function TransactionConfirmTxHashRow({ txHashLink, addToWalletLink, }: TransactionConfirmTxHashRowProps): React.ReactElement;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class TransactionConfirmSuccessResultTest {
|
|
2
|
+
static root: string;
|
|
3
|
+
static headline: string;
|
|
4
|
+
static subtitle: string;
|
|
5
|
+
static footer: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class TransactionConfirmFailureResultTest {
|
|
8
|
+
static root: string;
|
|
9
|
+
static footer: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class TransactionConfirmTxHashRowTest {
|
|
12
|
+
static root: string;
|
|
13
|
+
static txHashLink: string;
|
|
14
|
+
static addToWallet: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class TransactionConfirmExecuteButtonTest {
|
|
17
|
+
static root: string;
|
|
18
|
+
}
|
package/dist/types/components/composites/tx-preview/confirm/stepper/TransactionProgressStepper.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TransactionExecutionStepView } from './transactionExecutionStepTypes';
|
|
3
|
+
export interface TransactionProgressStepperProps {
|
|
4
|
+
readonly steps: ReadonlyArray<TransactionExecutionStepView>;
|
|
5
|
+
readonly renderLabel: (step: TransactionExecutionStepView) => React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function TransactionProgressStepper({ steps, renderLabel, }: TransactionProgressStepperProps): React.ReactElement;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type TransactionExecutionStepId = "approve" | "auth" | "execute";
|
|
2
|
+
export type TransactionExecutionPrerequisiteStepId = Exclude<TransactionExecutionStepId, "execute">;
|
|
3
|
+
export type StepStatus = "completed" | "active" | "upcoming";
|
|
4
|
+
export type TransactionExecutionStepLabelKey = "approve" | "approveBatch" | "auth" | "execute";
|
|
5
|
+
export interface TransactionExecutionStepView {
|
|
6
|
+
id: TransactionExecutionStepId;
|
|
7
|
+
labelKey: TransactionExecutionStepLabelKey;
|
|
8
|
+
status: StepStatus;
|
|
9
|
+
}
|
|
10
|
+
export declare function shouldShowTransactionProgressStepper(steps: ReadonlyArray<Pick<TransactionExecutionStepView, "id">>): boolean;
|
package/dist/types/components/composites/tx-preview/confirm/summary/PoolOperationConfirmDetails.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface PoolOperationConfirmDetailsProps {
|
|
3
|
+
readonly apyLabel?: React.ReactNode;
|
|
4
|
+
readonly apy?: React.ReactNode;
|
|
5
|
+
readonly apyLoading?: boolean;
|
|
6
|
+
readonly poolTvlLabel: React.ReactNode;
|
|
7
|
+
readonly poolTvl: React.ReactNode;
|
|
8
|
+
readonly poolUtilizationLabel: React.ReactNode;
|
|
9
|
+
readonly poolUtilization: React.ReactNode;
|
|
10
|
+
readonly curatorLabel: React.ReactNode;
|
|
11
|
+
readonly curatorValue: React.ReactNode;
|
|
12
|
+
readonly poolLabel: React.ReactNode;
|
|
13
|
+
readonly poolContractValue: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare function PoolOperationConfirmDetails({ apyLabel, apy, apyLoading, poolTvlLabel, poolTvl, poolUtilizationLabel, poolUtilization, curatorLabel, curatorValue, poolLabel, poolContractValue, }: PoolOperationConfirmDetailsProps): React.ReactElement;
|