@gearbox-protocol/permissionless-ui 1.17.9 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_virtual/ResizeObserver.es.cjs +1 -0
- package/dist/cjs/_virtual/_commonjsHelpers.cjs +1 -1
- package/dist/cjs/_virtual/arrows.cjs +1 -0
- package/dist/cjs/_virtual/default-props.cjs +1 -0
- package/dist/cjs/_virtual/dots.cjs +1 -0
- package/dist/cjs/_virtual/index2.cjs +1 -0
- package/dist/cjs/_virtual/index3.cjs +1 -0
- package/dist/cjs/_virtual/index4.cjs +1 -0
- package/dist/cjs/_virtual/initial-state.cjs +1 -0
- package/dist/cjs/_virtual/inner-slider.cjs +1 -0
- package/dist/cjs/_virtual/innerSliderUtils.cjs +1 -0
- package/dist/cjs/_virtual/slider.cjs +1 -0
- package/dist/cjs/_virtual/track.cjs +1 -0
- package/dist/cjs/components/address/address.cjs +1 -0
- package/dist/cjs/components/address/index.cjs +1 -0
- package/dist/cjs/components/alert-modal/alert-modal.cjs +1 -0
- package/dist/cjs/components/alert-modal/index.cjs +1 -0
- package/dist/cjs/components/apy/apy.cjs +1 -0
- package/dist/cjs/components/apy/index.cjs +1 -0
- package/dist/cjs/components/arc-loader/arc-loader.cjs +1 -0
- package/dist/cjs/components/arc-loader/index.cjs +1 -0
- package/dist/cjs/components/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/cjs/components/button-checkbox/button-checkbox.cjs +1 -0
- package/dist/cjs/components/button-checkbox/index.cjs +1 -0
- package/dist/cjs/components/carousel/carousel.cjs +5 -0
- package/dist/cjs/components/carousel/index.cjs +1 -0
- package/dist/cjs/components/complex-input/complex-input.cjs +1 -0
- package/dist/cjs/components/complex-input/index.cjs +1 -0
- package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
- package/dist/cjs/components/confirm-menu/confirm-menu.cjs +1 -0
- package/dist/cjs/components/confirm-menu/index.cjs +1 -0
- package/dist/cjs/components/currency-button/currency-button.cjs +1 -0
- package/dist/cjs/components/currency-button/index.cjs +1 -0
- package/dist/cjs/components/detailed-apy/detailed-apy.cjs +1 -0
- package/dist/cjs/components/detailed-apy/index.cjs +1 -0
- package/dist/cjs/components/detailed-page-title/detailed-page-title.cjs +1 -1
- package/dist/cjs/components/dropdown-label/dropdown-label.cjs +1 -0
- package/dist/cjs/components/dropdown-label/index.cjs +1 -0
- package/dist/cjs/components/edit-input/edit-input.cjs +1 -0
- package/dist/cjs/components/edit-input/index.cjs +1 -0
- package/dist/cjs/components/explorer-links-dropdown/explorer-links-dropdown.cjs +1 -0
- package/dist/cjs/components/explorer-links-dropdown/index.cjs +1 -0
- package/dist/cjs/components/filter/filter-block.cjs +1 -1
- package/dist/cjs/components/filter/filter-dropdown-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-modal-item.cjs +1 -1
- package/dist/cjs/components/formatted-number/formatted-number.cjs +1 -0
- package/dist/cjs/components/formatted-number/index.cjs +1 -0
- package/dist/cjs/components/general-asset-list/general-asset-list.cjs +1 -0
- package/dist/cjs/components/general-asset-list/index.cjs +1 -0
- package/dist/cjs/components/graph/graph-view.cjs +1 -1
- package/dist/cjs/components/graph/graph.cjs +1 -1
- package/dist/cjs/components/grid-td-cell/grid-td-cell.cjs +1 -0
- package/dist/cjs/components/grid-td-cell/index.cjs +1 -0
- package/dist/cjs/components/help-sections/help-sections.cjs +1 -0
- package/dist/cjs/components/help-sections/index.cjs +1 -0
- package/dist/cjs/components/hide-on/hide-on.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/layout/col/col.cjs +1 -1
- package/dist/cjs/components/markdown-viewer/markdown-viewer.cjs +1 -1
- package/dist/cjs/components/navbar-logo/index.cjs +1 -0
- package/dist/cjs/components/navbar-logo/navbar-logo.cjs +1 -0
- package/dist/cjs/components/network-icon/index.cjs +1 -0
- package/dist/cjs/components/network-icon/network-icon.cjs +1 -0
- package/dist/cjs/components/overflow/index.cjs +1 -0
- package/dist/cjs/components/overflow/overflow.cjs +1 -0
- package/dist/cjs/components/overflow-container/index.cjs +1 -0
- package/dist/cjs/components/overflow-container/overflow-container.cjs +1 -0
- package/dist/cjs/components/page-title/page-title.cjs +1 -1
- package/dist/cjs/components/pool-apy-tooltip/index.cjs +1 -0
- package/dist/cjs/components/pool-apy-tooltip/pool-apy-tooltip.cjs +1 -0
- package/dist/cjs/components/pool-indicator-icon/index.cjs +1 -0
- package/dist/cjs/components/pool-indicator-icon/pool-indicator-icon.cjs +1 -0
- package/dist/cjs/components/rounded-image/index.cjs +1 -0
- package/dist/cjs/components/rounded-image/rounded-image.cjs +1 -0
- package/dist/cjs/components/row/index.cjs +1 -0
- package/dist/cjs/components/row/row.cjs +1 -0
- package/dist/cjs/components/segmented-control/segmented-control.cjs +1 -1
- package/dist/cjs/components/slider/slider.cjs +1 -1
- package/dist/cjs/components/slider-token/index.cjs +1 -0
- package/dist/cjs/components/slider-token/slider-token.cjs +1 -0
- package/dist/cjs/components/smart-number-input/smart-number-input.cjs +1 -1
- package/dist/cjs/components/split-list/index.cjs +1 -0
- package/dist/cjs/components/split-list/split-list.cjs +1 -0
- package/dist/cjs/components/stat-badge/stat-badge.cjs +1 -1
- package/dist/cjs/components/status-triangle/status-triangle.cjs +1 -1
- package/dist/cjs/components/styled-dropdown/index.cjs +1 -0
- package/dist/cjs/components/styled-dropdown/styled-dropdown.cjs +1 -0
- package/dist/cjs/components/table/grid-table.cjs +1 -1
- package/dist/cjs/components/text-button/index.cjs +1 -0
- package/dist/cjs/components/text-button/text-button.cjs +1 -0
- package/dist/cjs/components/time-to-liquidation/index.cjs +1 -0
- package/dist/cjs/components/time-to-liquidation/time-to-liquidation.cjs +1 -0
- package/dist/cjs/components/tokens-list-cell/index.cjs +1 -0
- package/dist/cjs/components/tokens-list-cell/tokens-list-cell.cjs +1 -0
- package/dist/cjs/components/with-filter-button/with-filter-button.cjs +1 -1
- package/dist/cjs/components/with-title/index.cjs +1 -0
- package/dist/cjs/components/with-title/with-title.cjs +1 -0
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/hooks/use-debounce-call.cjs +1 -0
- package/dist/cjs/hooks/use-debounce.cjs +1 -1
- package/dist/cjs/hooks/use-pool-points-tips.cjs +1 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.cjs +5 -0
- package/dist/cjs/node_modules/.pnpm/json2mq@0.2.0/node_modules/json2mq/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash.debounce@4.0.8/node_modules/lodash.debounce/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/arrows.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/default-props.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/dots.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/initial-state.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/inner-slider.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/slider.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/track.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/utils/innerSliderUtils.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/string-convert@0.2.1/node_modules/string-convert/camel2hyphen.cjs +1 -0
- package/dist/cjs/utils/bn-to-pretty-view.cjs +1 -0
- package/dist/cjs/utils/format-money.cjs +1 -1
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/cjs/utils/network-icons.cjs +1 -0
- package/dist/cjs/utils/parse-input-to-bn.cjs +1 -0
- package/dist/cjs/utils/plural.cjs +1 -0
- package/dist/cjs/utils/ranges.cjs +1 -0
- package/dist/cjs/utils/search.cjs +1 -0
- package/dist/cjs/utils/shorten-string.cjs +1 -0
- package/dist/cjs/utils/ttl.cjs +1 -1
- package/dist/cjs/utils/window.cjs +1 -0
- package/dist/esm/_virtual/ResizeObserver.es.js +6 -0
- package/dist/esm/_virtual/_commonjsHelpers.js +25 -3
- package/dist/esm/_virtual/arrows.js +4 -0
- package/dist/esm/_virtual/default-props.js +4 -0
- package/dist/esm/_virtual/dots.js +4 -0
- package/dist/esm/_virtual/index2.js +7 -0
- package/dist/esm/_virtual/index3.js +4 -0
- package/dist/esm/_virtual/index4.js +4 -0
- package/dist/esm/_virtual/initial-state.js +4 -0
- package/dist/esm/_virtual/inner-slider.js +4 -0
- package/dist/esm/_virtual/innerSliderUtils.js +4 -0
- package/dist/esm/_virtual/slider.js +4 -0
- package/dist/esm/_virtual/track.js +4 -0
- package/dist/esm/components/address/address.js +21 -0
- package/dist/esm/components/address/index.js +4 -0
- package/dist/esm/components/alert-modal/alert-modal.js +32 -0
- package/dist/esm/components/alert-modal/index.js +4 -0
- package/dist/esm/components/apy/apy.js +32 -0
- package/dist/esm/components/apy/index.js +4 -0
- package/dist/esm/components/arc-loader/arc-loader.js +45 -0
- package/dist/esm/components/arc-loader/index.js +4 -0
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +60 -30
- package/dist/esm/components/button-checkbox/button-checkbox.js +53 -0
- package/dist/esm/components/button-checkbox/index.js +4 -0
- package/dist/esm/components/carousel/carousel.js +65 -0
- package/dist/esm/components/carousel/index.js +4 -0
- package/dist/esm/components/complex-input/complex-input.js +85 -0
- package/dist/esm/components/complex-input/index.js +4 -0
- package/dist/esm/components/compound-apy/compound-apy.js +91 -74
- package/dist/esm/components/confirm-menu/confirm-menu.js +31 -0
- package/dist/esm/components/confirm-menu/index.js +4 -0
- package/dist/esm/components/currency-button/currency-button.js +84 -0
- package/dist/esm/components/currency-button/index.js +4 -0
- package/dist/esm/components/detailed-apy/detailed-apy.js +73 -0
- package/dist/esm/components/detailed-apy/index.js +4 -0
- package/dist/esm/components/detailed-page-title/detailed-page-title.js +11 -11
- package/dist/esm/components/dropdown-label/dropdown-label.js +44 -0
- package/dist/esm/components/dropdown-label/index.js +4 -0
- package/dist/esm/components/edit-input/edit-input.js +96 -0
- package/dist/esm/components/edit-input/index.js +4 -0
- package/dist/esm/components/explorer-links-dropdown/explorer-links-dropdown.js +80 -0
- package/dist/esm/components/explorer-links-dropdown/index.js +4 -0
- package/dist/esm/components/filter/filter-block.js +14 -11
- package/dist/esm/components/filter/filter-dropdown-item.js +47 -17
- package/dist/esm/components/filter/filter-modal-item.js +53 -18
- package/dist/esm/components/formatted-number/formatted-number.js +15 -0
- package/dist/esm/components/formatted-number/index.js +4 -0
- package/dist/esm/components/general-asset-list/general-asset-list.js +42 -0
- package/dist/esm/components/general-asset-list/index.js +4 -0
- package/dist/esm/components/graph/graph-view.js +97 -84
- package/dist/esm/components/graph/graph.js +80 -70
- package/dist/esm/components/grid-td-cell/grid-td-cell.js +11 -0
- package/dist/esm/components/grid-td-cell/index.js +4 -0
- package/dist/esm/components/help-sections/help-sections.js +18 -0
- package/dist/esm/components/help-sections/index.js +5 -0
- package/dist/esm/components/hide-on/hide-on.js +50 -26
- package/dist/esm/components/index.js +530 -468
- package/dist/esm/components/layout/col/col.js +4 -4
- package/dist/esm/components/markdown-viewer/markdown-viewer.js +71 -68
- package/dist/esm/components/navbar-logo/index.js +4 -0
- package/dist/esm/components/navbar-logo/navbar-logo.js +30 -0
- package/dist/esm/components/network-icon/index.js +4 -0
- package/dist/esm/components/network-icon/network-icon.js +48 -0
- package/dist/esm/components/overflow/index.js +5 -0
- package/dist/esm/components/overflow/overflow.js +20 -0
- package/dist/esm/components/overflow-container/index.js +4 -0
- package/dist/esm/components/overflow-container/overflow-container.js +38 -0
- package/dist/esm/components/page-title/page-title.js +49 -36
- package/dist/esm/components/pool-apy-tooltip/index.js +4 -0
- package/dist/esm/components/pool-apy-tooltip/pool-apy-tooltip.js +83 -0
- package/dist/esm/components/pool-indicator-icon/index.js +4 -0
- package/dist/esm/components/pool-indicator-icon/pool-indicator-icon.js +25 -0
- package/dist/esm/components/rounded-image/index.js +4 -0
- package/dist/esm/components/rounded-image/rounded-image.js +32 -0
- package/dist/esm/components/row/index.js +4 -0
- package/dist/esm/components/row/row.js +55 -0
- package/dist/esm/components/segmented-control/segmented-control.js +64 -63
- package/dist/esm/components/slider/slider.js +123 -41
- package/dist/esm/components/slider-token/index.js +4 -0
- package/dist/esm/components/slider-token/slider-token.js +68 -0
- package/dist/esm/components/smart-number-input/smart-number-input.js +113 -67
- package/dist/esm/components/split-list/index.js +4 -0
- package/dist/esm/components/split-list/split-list.js +39 -0
- package/dist/esm/components/stat-badge/stat-badge.js +63 -53
- package/dist/esm/components/status-triangle/status-triangle.js +20 -13
- package/dist/esm/components/styled-dropdown/index.js +4 -0
- package/dist/esm/components/styled-dropdown/styled-dropdown.js +106 -0
- package/dist/esm/components/table/grid-table.js +132 -92
- package/dist/esm/components/text-button/index.js +4 -0
- package/dist/esm/components/text-button/text-button.js +55 -0
- package/dist/esm/components/time-to-liquidation/index.js +4 -0
- package/dist/esm/components/time-to-liquidation/time-to-liquidation.js +45 -0
- package/dist/esm/components/tokens-list-cell/index.js +4 -0
- package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +72 -0
- package/dist/esm/components/with-filter-button/with-filter-button.js +53 -44
- package/dist/esm/components/with-title/index.js +4 -0
- package/dist/esm/components/with-title/with-title.js +30 -0
- package/dist/esm/hooks/index.js +42 -39
- package/dist/esm/hooks/use-debounce-call.js +17 -0
- package/dist/esm/hooks/use-debounce.js +14 -25
- package/dist/esm/hooks/use-pool-points-tips.js +17 -0
- package/dist/esm/index.js +660 -575
- package/dist/esm/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js +42 -0
- package/dist/esm/node_modules/.pnpm/json2mq@0.2.0/node_modules/json2mq/index.js +25 -0
- package/dist/esm/node_modules/.pnpm/lodash.debounce@4.0.8/node_modules/lodash.debounce/index.js +85 -0
- package/dist/esm/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/arrows.js +210 -0
- package/dist/esm/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/default-props.js +81 -0
- package/dist/esm/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/dots.js +170 -0
- package/dist/esm/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/index.js +18 -0
- package/dist/esm/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/initial-state.js +44 -0
- package/dist/esm/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/inner-slider.js +547 -0
- package/dist/esm/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/slider.js +258 -0
- package/dist/esm/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/track.js +234 -0
- package/dist/esm/node_modules/.pnpm/react-slick@0.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/utils/innerSliderUtils.js +390 -0
- package/dist/esm/node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +290 -0
- package/dist/esm/node_modules/.pnpm/string-convert@0.2.1/node_modules/string-convert/camel2hyphen.js +14 -0
- package/dist/esm/utils/bn-to-pretty-view.js +6 -0
- package/dist/esm/utils/format-money.js +41 -24
- package/dist/esm/utils/index.js +73 -51
- package/dist/esm/utils/network-icons.js +56 -0
- package/dist/esm/utils/parse-input-to-bn.js +20 -0
- package/dist/esm/utils/plural.js +11 -0
- package/dist/esm/utils/ranges.js +24 -0
- package/dist/esm/utils/search.js +6 -0
- package/dist/esm/utils/shorten-string.js +6 -0
- package/dist/esm/utils/ttl.js +13 -3
- package/dist/esm/utils/window.js +6 -0
- package/dist/globals.css +1 -1
- package/dist/permissionless-ui.css +1 -0
- package/dist/types/components/address/address.d.ts +56 -0
- package/dist/types/components/address/index.d.ts +1 -0
- package/dist/types/components/alert-modal/alert-modal.d.ts +78 -0
- package/dist/types/components/alert-modal/index.d.ts +1 -0
- package/dist/types/components/apy/apy.d.ts +35 -0
- package/dist/types/components/apy/index.d.ts +1 -0
- package/dist/types/components/arc-loader/arc-loader.d.ts +31 -0
- package/dist/types/components/arc-loader/index.d.ts +1 -0
- package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +40 -3
- package/dist/types/components/button-checkbox/button-checkbox.d.ts +39 -0
- package/dist/types/components/button-checkbox/index.d.ts +1 -0
- package/dist/types/components/card-grid/card-grid.d.ts +1 -1
- package/dist/types/components/carousel/carousel.d.ts +30 -0
- package/dist/types/components/carousel/index.d.ts +2 -0
- package/dist/types/components/colored-text/colored-text.d.ts +1 -1
- package/dist/types/components/complex-input/complex-input.d.ts +78 -0
- package/dist/types/components/complex-input/index.d.ts +1 -0
- package/dist/types/components/compound-apy/compound-apy.d.ts +38 -2
- package/dist/types/components/confirm-menu/confirm-menu.d.ts +27 -0
- package/dist/types/components/confirm-menu/index.d.ts +1 -0
- package/dist/types/components/currency-button/currency-button.d.ts +79 -0
- package/dist/types/components/currency-button/index.d.ts +1 -0
- package/dist/types/components/detailed-apy/detailed-apy.d.ts +54 -0
- package/dist/types/components/detailed-apy/index.d.ts +1 -0
- package/dist/types/components/detailed-page-title/detailed-page-title.d.ts +3 -5
- package/dist/types/components/dropdown-label/dropdown-label.d.ts +47 -0
- package/dist/types/components/dropdown-label/index.d.ts +1 -0
- package/dist/types/components/edit-input/edit-input.d.ts +55 -0
- package/dist/types/components/edit-input/index.d.ts +1 -0
- package/dist/types/components/explorer-links-dropdown/explorer-links-dropdown.d.ts +82 -0
- package/dist/types/components/explorer-links-dropdown/index.d.ts +1 -0
- package/dist/types/components/filter/filter-block.d.ts +22 -0
- package/dist/types/components/filter/filter-dropdown-item.d.ts +40 -2
- package/dist/types/components/filter/filter-modal-item.d.ts +26 -2
- package/dist/types/components/formatted-number/formatted-number.d.ts +11 -0
- package/dist/types/components/formatted-number/index.d.ts +1 -0
- package/dist/types/components/general-asset-list/general-asset-list.d.ts +59 -0
- package/dist/types/components/general-asset-list/index.d.ts +1 -0
- package/dist/types/components/graph/formatters.d.ts +1 -1
- package/dist/types/components/graph/graph-view.d.ts +19 -3
- package/dist/types/components/grid-td-cell/grid-td-cell.d.ts +8 -0
- package/dist/types/components/grid-td-cell/index.d.ts +1 -0
- package/dist/types/components/help-sections/help-sections.d.ts +33 -0
- package/dist/types/components/help-sections/index.d.ts +1 -0
- package/dist/types/components/hide-on/hide-on.d.ts +61 -12
- package/dist/types/components/index.d.ts +30 -0
- package/dist/types/components/layout/col/col.d.ts +1 -1
- package/dist/types/components/markdown-viewer/markdown-viewer.d.ts +4 -1
- package/dist/types/components/navbar-logo/index.d.ts +1 -0
- package/dist/types/components/navbar-logo/navbar-logo.d.ts +11 -0
- package/dist/types/components/network-icon/index.d.ts +2 -0
- package/dist/types/components/network-icon/network-icon.d.ts +21 -0
- package/dist/types/components/overflow/index.d.ts +1 -0
- package/dist/types/components/overflow/overflow.d.ts +19 -0
- package/dist/types/components/overflow-container/index.d.ts +1 -0
- package/dist/types/components/overflow-container/overflow-container.d.ts +47 -0
- package/dist/types/components/page-title/page-title.d.ts +4 -0
- package/dist/types/components/pool-apy-tooltip/index.d.ts +1 -0
- package/dist/types/components/pool-apy-tooltip/pool-apy-tooltip.d.ts +59 -0
- package/dist/types/components/pool-indicator-icon/index.d.ts +1 -0
- package/dist/types/components/pool-indicator-icon/pool-indicator-icon.d.ts +20 -0
- package/dist/types/components/rounded-image/index.d.ts +1 -0
- package/dist/types/components/rounded-image/rounded-image.d.ts +11 -0
- package/dist/types/components/row/index.d.ts +1 -0
- package/dist/types/components/row/row.d.ts +59 -0
- package/dist/types/components/segmented-control/segmented-control.d.ts +49 -32
- package/dist/types/components/skeleton/skeleton.d.ts +1 -1
- package/dist/types/components/slider/slider.d.ts +66 -2
- package/dist/types/components/slider-token/index.d.ts +1 -0
- package/dist/types/components/slider-token/slider-token.d.ts +70 -0
- package/dist/types/components/smart-number-input/smart-number-input.d.ts +70 -8
- package/dist/types/components/split-list/index.d.ts +1 -0
- package/dist/types/components/split-list/split-list.d.ts +37 -0
- package/dist/types/components/stat-badge/stat-badge.d.ts +17 -3
- package/dist/types/components/status-triangle/status-triangle.d.ts +11 -4
- package/dist/types/components/styled-dropdown/index.d.ts +1 -0
- package/dist/types/components/styled-dropdown/styled-dropdown.d.ts +95 -0
- package/dist/types/components/table/grid-table.d.ts +13 -1
- package/dist/types/components/text-button/index.d.ts +1 -0
- package/dist/types/components/text-button/text-button.d.ts +48 -0
- package/dist/types/components/time-to-liquidation/index.d.ts +1 -0
- package/dist/types/components/time-to-liquidation/time-to-liquidation.d.ts +20 -0
- package/dist/types/components/tokens-list-cell/index.d.ts +1 -0
- package/dist/types/components/tokens-list-cell/tokens-list-cell.d.ts +92 -0
- package/dist/types/components/typed-intl/index.d.ts +2 -0
- package/dist/types/components/vertical-indicator/vertical-indicator.d.ts +1 -1
- package/dist/types/components/with-filter-button/with-filter-button.d.ts +30 -1
- package/dist/types/components/with-title/index.d.ts +1 -0
- package/dist/types/components/with-title/with-title.d.ts +31 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/use-debounce-call.d.ts +19 -0
- package/dist/types/hooks/use-debounce.d.ts +0 -14
- package/dist/types/hooks/use-pool-points-tips.d.ts +40 -0
- package/dist/types/index.d.ts +29 -0
- package/dist/types/types/graph.d.ts +3 -1
- package/dist/types/utils/bn-to-pretty-view.d.ts +15 -0
- package/dist/types/utils/format-money.d.ts +16 -0
- package/dist/types/utils/index.d.ts +9 -1
- package/dist/types/utils/network-icons.d.ts +47 -0
- package/dist/types/utils/parse-input-to-bn.d.ts +16 -0
- package/dist/types/utils/plural.d.ts +36 -0
- package/dist/types/utils/ranges.d.ts +17 -0
- package/dist/types/utils/search.d.ts +15 -0
- package/dist/types/utils/shorten-string.d.ts +15 -0
- package/dist/types/utils/ttl.d.ts +24 -0
- package/dist/types/utils/window.d.ts +15 -0
- package/package.json +8 -3
- package/src/styles/theme.css +85 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import S from "react";
|
|
3
3
|
import { cn as f } from "../../../utils/cn.js";
|
|
4
4
|
const C = {
|
|
@@ -76,7 +76,7 @@ const C = {
|
|
|
76
76
|
12: "xl:col-span-12",
|
|
77
77
|
full: "xl:col-span-full",
|
|
78
78
|
auto: "xl:col-auto"
|
|
79
|
-
}, s = (l, o) => l ? o === "sm" ? g[l] || "" : o === "md" ? _[l] || "" : o === "lg" ? x[l] || "" : o === "xl" ? L[l] || "" : C[l] || ""
|
|
79
|
+
}, s = (l, o) => !l || l === 1 && !o ? "" : o === "sm" ? g[l] || "" : o === "md" ? _[l] || "" : o === "lg" ? x[l] || "" : o === "xl" ? L[l] || "" : C[l] || "", A = {
|
|
80
80
|
1: "col-start-1",
|
|
81
81
|
2: "col-start-2",
|
|
82
82
|
3: "col-start-3",
|
|
@@ -108,10 +108,10 @@ const C = {
|
|
|
108
108
|
last: "order-last",
|
|
109
109
|
none: "order-none"
|
|
110
110
|
}, E = (l) => l && A[l] || "", O = (l) => l && i[l] || "", N = S.forwardRef(
|
|
111
|
-
({ span: l =
|
|
111
|
+
({ span: l = 1, sm: o, md: c, lg: a, xl: n, start: r, order: t, className: p, children: m, ...d }, u) => /* @__PURE__ */ e(
|
|
112
112
|
"div",
|
|
113
113
|
{
|
|
114
|
-
ref:
|
|
114
|
+
ref: u,
|
|
115
115
|
className: f(
|
|
116
116
|
s(l),
|
|
117
117
|
s(o, "sm"),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as f } from "react";
|
|
3
|
+
import x from "react-markdown";
|
|
4
|
+
import g from "remark-gfm";
|
|
5
5
|
import "clsx";
|
|
6
6
|
import "tailwind-merge";
|
|
7
7
|
import "sonner";
|
|
@@ -13,165 +13,168 @@ import "../layout/grid/grid.js";
|
|
|
13
13
|
import "../layout/header/header.js";
|
|
14
14
|
import "../layout/layout/layout.js";
|
|
15
15
|
import "../base-link/base-link.js";
|
|
16
|
-
import { PageLayout as
|
|
17
|
-
function
|
|
16
|
+
import { PageLayout as b } from "../layout/page-layout/page-layout.js";
|
|
17
|
+
function y(e) {
|
|
18
18
|
return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-");
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
return typeof e == "string" ? e : typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(
|
|
20
|
+
function u(e) {
|
|
21
|
+
return typeof e == "string" ? e : typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(u).join("") : e && typeof e == "object" && "props" in e && typeof e.props == "object" && e.props !== null && "children" in e.props ? u(
|
|
22
22
|
e.props.children
|
|
23
23
|
) : "";
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
const i =
|
|
25
|
+
function c(e) {
|
|
26
|
+
const i = u(e), l = i.match(/\{#([a-z0-9-]+)\}\s*$/i);
|
|
27
27
|
if (l) {
|
|
28
|
-
const
|
|
28
|
+
const a = l[1];
|
|
29
29
|
if (typeof e == "string") {
|
|
30
|
-
const
|
|
31
|
-
return { id:
|
|
30
|
+
const m = i.replace(/\s*\{#[a-z0-9-]+\}\s*$/i, "").trim();
|
|
31
|
+
return { id: a, displayText: m };
|
|
32
32
|
}
|
|
33
|
-
return { id:
|
|
33
|
+
return { id: a, displayText: e };
|
|
34
34
|
}
|
|
35
|
-
return { id:
|
|
35
|
+
return { id: y(i), displayText: e };
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function B({
|
|
38
38
|
content: e,
|
|
39
39
|
title: i,
|
|
40
|
-
backButton: l
|
|
40
|
+
backButton: l,
|
|
41
|
+
bare: a = !1
|
|
41
42
|
}) {
|
|
42
|
-
|
|
43
|
+
f(() => {
|
|
43
44
|
const t = window.location.hash;
|
|
44
45
|
t && setTimeout(() => {
|
|
45
|
-
const
|
|
46
|
-
|
|
46
|
+
const r = document.getElementById(t.slice(1));
|
|
47
|
+
r && r.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
47
48
|
}, 100);
|
|
48
|
-
}, [])
|
|
49
|
-
|
|
49
|
+
}, []);
|
|
50
|
+
const m = /* @__PURE__ */ o("article", { className: "prose prose-invert prose-lg max-w-none", children: /* @__PURE__ */ o(
|
|
51
|
+
x,
|
|
50
52
|
{
|
|
51
|
-
remarkPlugins: [
|
|
53
|
+
remarkPlugins: [g],
|
|
52
54
|
components: {
|
|
53
|
-
h1: ({ children: t, ...
|
|
54
|
-
const { id:
|
|
55
|
-
return /* @__PURE__ */
|
|
55
|
+
h1: ({ children: t, ...r }) => {
|
|
56
|
+
const { id: n, displayText: s } = c(t);
|
|
57
|
+
return /* @__PURE__ */ o(
|
|
56
58
|
"h1",
|
|
57
59
|
{
|
|
58
|
-
id:
|
|
60
|
+
id: n,
|
|
59
61
|
className: "text-3xl font-bold text-foreground mt-8 mb-4 scroll-mt-24",
|
|
60
|
-
...
|
|
61
|
-
children:
|
|
62
|
+
...r,
|
|
63
|
+
children: s
|
|
62
64
|
}
|
|
63
65
|
);
|
|
64
66
|
},
|
|
65
|
-
h2: ({ children: t, ...
|
|
66
|
-
const { id:
|
|
67
|
-
return /* @__PURE__ */
|
|
67
|
+
h2: ({ children: t, ...r }) => {
|
|
68
|
+
const { id: n, displayText: s } = c(t);
|
|
69
|
+
return /* @__PURE__ */ o(
|
|
68
70
|
"h2",
|
|
69
71
|
{
|
|
70
|
-
id:
|
|
72
|
+
id: n,
|
|
71
73
|
className: "text-2xl font-semibold text-foreground mt-6 mb-3 scroll-mt-24",
|
|
72
|
-
...
|
|
73
|
-
children:
|
|
74
|
+
...r,
|
|
75
|
+
children: s
|
|
74
76
|
}
|
|
75
77
|
);
|
|
76
78
|
},
|
|
77
|
-
h3: ({ children: t, ...
|
|
78
|
-
const { id:
|
|
79
|
-
return /* @__PURE__ */
|
|
79
|
+
h3: ({ children: t, ...r }) => {
|
|
80
|
+
const { id: n, displayText: s } = c(t);
|
|
81
|
+
return /* @__PURE__ */ o(
|
|
80
82
|
"h3",
|
|
81
83
|
{
|
|
82
|
-
id:
|
|
84
|
+
id: n,
|
|
83
85
|
className: "text-xl font-semibold text-foreground mt-5 mb-2 scroll-mt-24",
|
|
84
|
-
...
|
|
85
|
-
children:
|
|
86
|
+
...r,
|
|
87
|
+
children: s
|
|
86
88
|
}
|
|
87
89
|
);
|
|
88
90
|
},
|
|
89
|
-
h4: ({ children: t, ...
|
|
90
|
-
const { id:
|
|
91
|
-
return /* @__PURE__ */
|
|
91
|
+
h4: ({ children: t, ...r }) => {
|
|
92
|
+
const { id: n, displayText: s } = c(t);
|
|
93
|
+
return /* @__PURE__ */ o(
|
|
92
94
|
"h4",
|
|
93
95
|
{
|
|
94
|
-
id:
|
|
96
|
+
id: n,
|
|
95
97
|
className: "text-lg font-semibold text-foreground mt-4 mb-2 scroll-mt-24",
|
|
96
|
-
...
|
|
97
|
-
children:
|
|
98
|
+
...r,
|
|
99
|
+
children: s
|
|
98
100
|
}
|
|
99
101
|
);
|
|
100
102
|
},
|
|
101
|
-
p: ({ ...t }) => /* @__PURE__ */
|
|
103
|
+
p: ({ ...t }) => /* @__PURE__ */ o(
|
|
102
104
|
"p",
|
|
103
105
|
{
|
|
104
106
|
className: "text-muted-foreground mb-4 leading-relaxed",
|
|
105
107
|
...t
|
|
106
108
|
}
|
|
107
109
|
),
|
|
108
|
-
a: ({ href: t, ...
|
|
110
|
+
a: ({ href: t, ...r }) => t?.startsWith("#") && t ? /* @__PURE__ */ o(
|
|
109
111
|
"a",
|
|
110
112
|
{
|
|
111
113
|
href: t,
|
|
112
114
|
className: "text-blue-400 hover:text-blue-300 underline transition-colors duration-200",
|
|
113
|
-
onClick: (
|
|
114
|
-
|
|
115
|
-
const
|
|
116
|
-
|
|
115
|
+
onClick: (s) => {
|
|
116
|
+
s.preventDefault();
|
|
117
|
+
const p = t.slice(1), d = document.getElementById(p);
|
|
118
|
+
d && (d.scrollIntoView({
|
|
117
119
|
behavior: "smooth",
|
|
118
120
|
block: "start"
|
|
119
121
|
}), window.history.pushState(null, "", t));
|
|
120
122
|
},
|
|
121
|
-
...
|
|
123
|
+
...r
|
|
122
124
|
}
|
|
123
|
-
) : /* @__PURE__ */
|
|
125
|
+
) : /* @__PURE__ */ o(
|
|
124
126
|
"a",
|
|
125
127
|
{
|
|
126
128
|
href: t,
|
|
127
129
|
className: "text-blue-400 hover:text-blue-300 underline transition-colors duration-200",
|
|
128
130
|
target: "_blank",
|
|
129
131
|
rel: "noopener noreferrer",
|
|
130
|
-
...
|
|
132
|
+
...r
|
|
131
133
|
}
|
|
132
134
|
),
|
|
133
|
-
ul: ({ ...t }) => /* @__PURE__ */
|
|
135
|
+
ul: ({ ...t }) => /* @__PURE__ */ o(
|
|
134
136
|
"ul",
|
|
135
137
|
{
|
|
136
138
|
className: "list-disc list-inside mb-4 text-muted-foreground space-y-2",
|
|
137
139
|
...t
|
|
138
140
|
}
|
|
139
141
|
),
|
|
140
|
-
ol: ({ ...t }) => /* @__PURE__ */
|
|
142
|
+
ol: ({ ...t }) => /* @__PURE__ */ o(
|
|
141
143
|
"ol",
|
|
142
144
|
{
|
|
143
145
|
className: "list-decimal list-inside mb-4 text-muted-foreground space-y-2",
|
|
144
146
|
...t
|
|
145
147
|
}
|
|
146
148
|
),
|
|
147
|
-
li: ({ ...t }) => /* @__PURE__ */
|
|
148
|
-
blockquote: ({ ...t }) => /* @__PURE__ */
|
|
149
|
+
li: ({ ...t }) => /* @__PURE__ */ o("li", { className: "ml-4 text-muted-foreground", ...t }),
|
|
150
|
+
blockquote: ({ ...t }) => /* @__PURE__ */ o(
|
|
149
151
|
"blockquote",
|
|
150
152
|
{
|
|
151
153
|
className: "border-l-4 border-gray-700 pl-4 my-4 italic text-muted-foreground",
|
|
152
154
|
...t
|
|
153
155
|
}
|
|
154
156
|
),
|
|
155
|
-
code: ({ className: t, ...
|
|
157
|
+
code: ({ className: t, ...r }) => !t?.includes("language-") ? /* @__PURE__ */ o(
|
|
156
158
|
"code",
|
|
157
159
|
{
|
|
158
160
|
className: "bg-gray-800 text-gray-200 px-1.5 py-0.5 rounded text-sm font-mono",
|
|
159
|
-
...
|
|
161
|
+
...r
|
|
160
162
|
}
|
|
161
|
-
) : /* @__PURE__ */
|
|
163
|
+
) : /* @__PURE__ */ o(
|
|
162
164
|
"code",
|
|
163
165
|
{
|
|
164
166
|
className: "block bg-gray-800 text-gray-200 p-4 rounded-lg my-4 font-mono text-sm overflow-x-auto",
|
|
165
|
-
...
|
|
167
|
+
...r
|
|
166
168
|
}
|
|
167
169
|
),
|
|
168
|
-
strong: ({ ...t }) => /* @__PURE__ */
|
|
169
|
-
em: ({ ...t }) => /* @__PURE__ */
|
|
170
|
+
strong: ({ ...t }) => /* @__PURE__ */ o("strong", { className: "font-bold text-foreground", ...t }),
|
|
171
|
+
em: ({ ...t }) => /* @__PURE__ */ o("em", { className: "italic text-foreground", ...t })
|
|
170
172
|
},
|
|
171
173
|
children: e
|
|
172
174
|
}
|
|
173
|
-
) })
|
|
175
|
+
) });
|
|
176
|
+
return a ? m : /* @__PURE__ */ o(b, { title: i || "", backButton: l, children: m });
|
|
174
177
|
}
|
|
175
178
|
export {
|
|
176
|
-
|
|
179
|
+
B as MarkdownViewer
|
|
177
180
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn as m } from "../../utils/cn.js";
|
|
4
|
+
import "sonner";
|
|
5
|
+
import "@gearbox-protocol/sdk";
|
|
6
|
+
function s({
|
|
7
|
+
size: o,
|
|
8
|
+
className: t,
|
|
9
|
+
style: i,
|
|
10
|
+
...r
|
|
11
|
+
}) {
|
|
12
|
+
const n = o ? { width: o, height: o } : {};
|
|
13
|
+
return (
|
|
14
|
+
// biome-ignore lint/performance/noImgElement: Universal component that works outside Next.js
|
|
15
|
+
/* @__PURE__ */ a(
|
|
16
|
+
"img",
|
|
17
|
+
{
|
|
18
|
+
alt: "Logo",
|
|
19
|
+
className: m("object-contain", t),
|
|
20
|
+
style: { ...n, ...i },
|
|
21
|
+
loading: "lazy",
|
|
22
|
+
decoding: "async",
|
|
23
|
+
...r
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
s as NavBarLogo
|
|
30
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as E } from "react/jsx-runtime";
|
|
2
|
+
import { useState as i, useRef as L, useEffect as p } from "react";
|
|
3
|
+
import { cn as w } from "../../utils/cn.js";
|
|
4
|
+
const l = "https://static.gearbox.finance", o = `${l}/chains/allnetworks.svg`, d = /* @__PURE__ */ new Set();
|
|
5
|
+
function f(t) {
|
|
6
|
+
if (!t) return o;
|
|
7
|
+
const r = t.toLowerCase(), e = `${l}/chains/${r}.svg`;
|
|
8
|
+
return d.has(e) ? o : e;
|
|
9
|
+
}
|
|
10
|
+
function N({
|
|
11
|
+
network: t,
|
|
12
|
+
size: r = 20,
|
|
13
|
+
className: e
|
|
14
|
+
}) {
|
|
15
|
+
const u = f(t), [s, c] = i(u), [h, a] = i(!1), n = L(!1);
|
|
16
|
+
p(() => {
|
|
17
|
+
const S = f(t);
|
|
18
|
+
c(S), a(!1), n.current = !1;
|
|
19
|
+
}, [t]);
|
|
20
|
+
const g = () => {
|
|
21
|
+
n.current || (n.current = !0, d.add(s), c(o));
|
|
22
|
+
}, m = () => {
|
|
23
|
+
a(!0);
|
|
24
|
+
};
|
|
25
|
+
return (
|
|
26
|
+
// biome-ignore lint/performance/noImgElement: Simple img for CDN icons with browser caching
|
|
27
|
+
/* @__PURE__ */ E(
|
|
28
|
+
"img",
|
|
29
|
+
{
|
|
30
|
+
src: s,
|
|
31
|
+
alt: "",
|
|
32
|
+
width: r,
|
|
33
|
+
height: r,
|
|
34
|
+
className: w(
|
|
35
|
+
"object-contain shrink-0",
|
|
36
|
+
!h && "bg-gray-200 dark:bg-gray-700 rounded-full",
|
|
37
|
+
e
|
|
38
|
+
),
|
|
39
|
+
style: { width: r, height: r },
|
|
40
|
+
onError: g,
|
|
41
|
+
onLoad: m
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
N as NetworkIcon
|
|
48
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn as t } from "../../utils/cn.js";
|
|
4
|
+
import "sonner";
|
|
5
|
+
import "@gearbox-protocol/sdk";
|
|
6
|
+
function c({ children: r, className: o, ...e }) {
|
|
7
|
+
return /* @__PURE__ */ i("div", { className: t("overflow-hidden", o), ...e, children: r });
|
|
8
|
+
}
|
|
9
|
+
function d({
|
|
10
|
+
children: r,
|
|
11
|
+
className: o,
|
|
12
|
+
size: e,
|
|
13
|
+
...m
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ i("div", { className: t("break-words", o), ...m, children: r });
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
c as Overflow,
|
|
19
|
+
d as OverflowWrap
|
|
20
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn as a } from "../../utils/cn.js";
|
|
4
|
+
import "sonner";
|
|
5
|
+
import "@gearbox-protocol/sdk";
|
|
6
|
+
const i = {
|
|
7
|
+
default: "rounded-lg",
|
|
8
|
+
small: "rounded-md"
|
|
9
|
+
}, f = {
|
|
10
|
+
default: "border border-border",
|
|
11
|
+
light: "border border-border/50",
|
|
12
|
+
none: ""
|
|
13
|
+
};
|
|
14
|
+
function v({
|
|
15
|
+
children: o,
|
|
16
|
+
maxHeight: e,
|
|
17
|
+
minHeight: l = e,
|
|
18
|
+
size: t = "default",
|
|
19
|
+
borderColor: s = "default",
|
|
20
|
+
innerPadding: d = "0 22px 0 16px",
|
|
21
|
+
className: n
|
|
22
|
+
}) {
|
|
23
|
+
return /* @__PURE__ */ r(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: a(
|
|
27
|
+
"overflow-hidden",
|
|
28
|
+
i[t],
|
|
29
|
+
f[s],
|
|
30
|
+
n
|
|
31
|
+
),
|
|
32
|
+
children: /* @__PURE__ */ r("div", { className: "overflow-auto", style: { maxHeight: e, minHeight: l }, children: d !== null ? /* @__PURE__ */ r("div", { style: { padding: d }, children: o }) : o })
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
v as OverflowContainer
|
|
38
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { cva as
|
|
2
|
+
import { cva as d } from "class-variance-authority";
|
|
3
3
|
import * as u from "react";
|
|
4
|
-
import { cn as
|
|
4
|
+
import { cn as r } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
|
-
const
|
|
7
|
+
const v = d(
|
|
8
8
|
"font-semibold leading-tight tracking-tight flex items-center gap-2",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
@@ -26,7 +26,7 @@ const h = m(
|
|
|
26
26
|
variant: "default"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
),
|
|
29
|
+
), N = d(
|
|
30
30
|
"flex flex-col md:flex-row items-start md:items-center",
|
|
31
31
|
{
|
|
32
32
|
variants: {
|
|
@@ -40,42 +40,55 @@ const h = m(
|
|
|
40
40
|
spacing: "default"
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
),
|
|
43
|
+
), w = u.forwardRef(
|
|
44
44
|
({
|
|
45
|
-
className:
|
|
46
|
-
size:
|
|
47
|
-
variant:
|
|
45
|
+
className: n,
|
|
46
|
+
size: x,
|
|
47
|
+
variant: f,
|
|
48
48
|
spacing: c,
|
|
49
|
-
backButton:
|
|
50
|
-
icon:
|
|
51
|
-
actions:
|
|
49
|
+
backButton: i,
|
|
50
|
+
icon: m,
|
|
51
|
+
actions: a,
|
|
52
52
|
subtitle: s,
|
|
53
|
-
as:
|
|
54
|
-
children:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
53
|
+
as: g = "h1",
|
|
54
|
+
children: p,
|
|
55
|
+
actionsPosition: l = "left",
|
|
56
|
+
...o
|
|
57
|
+
}, h) => /* @__PURE__ */ t("div", { ref: h, className: r("w-full", n), ...o, children: [
|
|
58
|
+
i && /* @__PURE__ */ e("div", { className: "shrink-0 flex items-center mb-4", children: i }),
|
|
59
|
+
/* @__PURE__ */ t(
|
|
60
|
+
"div",
|
|
61
|
+
{
|
|
62
|
+
className: r(
|
|
63
|
+
N({ spacing: c }),
|
|
64
|
+
l === "right" && "justify-between w-full"
|
|
65
|
+
),
|
|
66
|
+
children: [
|
|
67
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col md:flex-row md:items-center gap-4 w-full md:w-auto", children: /* @__PURE__ */ t("div", { className: "flex items-center gap-3 min-w-0", children: [
|
|
68
|
+
m && /* @__PURE__ */ e("div", { className: "shrink-0", children: m }),
|
|
69
|
+
/* @__PURE__ */ t("div", { className: "min-w-0", children: [
|
|
70
|
+
/* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
|
|
71
|
+
/* @__PURE__ */ e(
|
|
72
|
+
g,
|
|
73
|
+
{
|
|
74
|
+
className: r(v({ size: x, variant: f }), "m-0"),
|
|
75
|
+
children: p
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
a && l === "left" && /* @__PURE__ */ e("div", { className: "shrink-0 flex items-center gap-2", children: a })
|
|
79
|
+
] }),
|
|
80
|
+
s && /* @__PURE__ */ e("div", { className: "text-sm text-muted-foreground mt-1", children: s })
|
|
81
|
+
] })
|
|
82
|
+
] }) }),
|
|
83
|
+
a && l === "right" && /* @__PURE__ */ e("div", { className: "shrink-0 flex items-center gap-2", children: a })
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
)
|
|
74
87
|
] })
|
|
75
88
|
);
|
|
76
|
-
|
|
89
|
+
w.displayName = "PageTitle";
|
|
77
90
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
91
|
+
w as PageTitle,
|
|
92
|
+
N as pageTitleRootVariants,
|
|
93
|
+
v as pageTitleVariants
|
|
81
94
|
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { TooltipProvider as f, Tooltip as v, TooltipTrigger as y, TooltipContent as g } from "../tooltip/tooltip.js";
|
|
3
|
+
function w({
|
|
4
|
+
children: o,
|
|
5
|
+
totalAPY: s,
|
|
6
|
+
extraAPYTotal: i,
|
|
7
|
+
loading7DAgo: c,
|
|
8
|
+
loading: h,
|
|
9
|
+
baseAPY: d,
|
|
10
|
+
extraAPY: a,
|
|
11
|
+
apy7DAgo: l,
|
|
12
|
+
tokensList: p,
|
|
13
|
+
className: u
|
|
14
|
+
}) {
|
|
15
|
+
if (!(s !== void 0 || d?.length || a?.length) || h)
|
|
16
|
+
return /* @__PURE__ */ t("span", { className: u, children: o });
|
|
17
|
+
const m = typeof l == "object" ? l?.value : l;
|
|
18
|
+
return /* @__PURE__ */ t(f, { children: /* @__PURE__ */ n(v, { children: [
|
|
19
|
+
/* @__PURE__ */ t(y, { asChild: !0, children: /* @__PURE__ */ t("span", { className: u, children: o }) }),
|
|
20
|
+
/* @__PURE__ */ t(g, { className: "max-w-xs", children: /* @__PURE__ */ n("div", { className: "space-y-2 text-sm", children: [
|
|
21
|
+
d && d.length > 0 && /* @__PURE__ */ n("div", { children: [
|
|
22
|
+
/* @__PURE__ */ t("div", { className: "font-medium text-muted-foreground mb-1", children: "Base APY" }),
|
|
23
|
+
d.map((e, r) => /* @__PURE__ */ n(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: "flex justify-between gap-4",
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ t("span", { children: e.type === "supplyAPY" ? "Supply" : e.type || "Base" }),
|
|
29
|
+
/* @__PURE__ */ n("span", { className: "tabular-nums", children: [
|
|
30
|
+
e.apy.toFixed(2),
|
|
31
|
+
"%"
|
|
32
|
+
] })
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
`base-${e.type || r}-${e.apy}`
|
|
36
|
+
))
|
|
37
|
+
] }),
|
|
38
|
+
a && a.length > 0 && /* @__PURE__ */ n("div", { children: [
|
|
39
|
+
/* @__PURE__ */ t("div", { className: "font-medium text-muted-foreground mb-1", children: "Rewards" }),
|
|
40
|
+
a.map((e, r) => {
|
|
41
|
+
const x = e.token && p ? p[e.token]?.symbol : e.token;
|
|
42
|
+
return /* @__PURE__ */ n(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
className: "flex justify-between gap-4",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ t("span", { children: x || e.type || "Reward" }),
|
|
48
|
+
/* @__PURE__ */ n("span", { className: "tabular-nums", children: [
|
|
49
|
+
e.apy.toFixed(2),
|
|
50
|
+
"%"
|
|
51
|
+
] })
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
`extra-${e.token || r}-${e.apy}`
|
|
55
|
+
);
|
|
56
|
+
}),
|
|
57
|
+
i !== void 0 && /* @__PURE__ */ n("div", { className: "flex justify-between gap-4 text-muted-foreground", children: [
|
|
58
|
+
/* @__PURE__ */ t("span", { children: "Total Extra" }),
|
|
59
|
+
/* @__PURE__ */ n("span", { className: "tabular-nums", children: [
|
|
60
|
+
i.toFixed(2),
|
|
61
|
+
"%"
|
|
62
|
+
] })
|
|
63
|
+
] })
|
|
64
|
+
] }),
|
|
65
|
+
s !== void 0 && /* @__PURE__ */ n("div", { className: "border-t pt-2 flex justify-between gap-4 font-medium", children: [
|
|
66
|
+
/* @__PURE__ */ t("span", { children: "Total APY" }),
|
|
67
|
+
/* @__PURE__ */ n("span", { className: "tabular-nums", children: [
|
|
68
|
+
s.toFixed(2),
|
|
69
|
+
"%"
|
|
70
|
+
] })
|
|
71
|
+
] }),
|
|
72
|
+
m !== void 0 && !c && /* @__PURE__ */ n("div", { className: "text-xs text-muted-foreground", children: [
|
|
73
|
+
"7d ago: ",
|
|
74
|
+
m.toFixed(2),
|
|
75
|
+
"%"
|
|
76
|
+
] }),
|
|
77
|
+
c && /* @__PURE__ */ t("div", { className: "text-xs text-muted-foreground", children: "Loading 7d data..." })
|
|
78
|
+
] }) })
|
|
79
|
+
] }) });
|
|
80
|
+
}
|
|
81
|
+
export {
|
|
82
|
+
w as PoolAPYTooltip
|
|
83
|
+
};
|