@gearbox-protocol/permissionless-ui 1.17.9 → 1.18.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/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/enquire.js@2.1.6/node_modules/enquire.js/src/MediaQuery.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/MediaQueryDispatch.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/QueryHandler.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/Util.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/index.cjs +1 -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.30.3_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.30.3_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.30.3_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.30.3_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.30.3_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.30.3_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.30.3_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.30.3_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.30.3_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/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/enquire.js@2.1.6/node_modules/enquire.js/src/MediaQuery.js +71 -0
- package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/MediaQueryDispatch.js +46 -0
- package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/QueryHandler.js +57 -0
- package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/Util.js +24 -0
- package/dist/esm/node_modules/.pnpm/enquire.js@2.1.6/node_modules/enquire.js/src/index.js +11 -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.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/arrows.js +216 -0
- package/dist/esm/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/default-props.js +80 -0
- package/dist/esm/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/dots.js +176 -0
- package/dist/esm/node_modules/.pnpm/react-slick@0.30.3_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.30.3_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.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/inner-slider.js +549 -0
- package/dist/esm/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/slider.js +261 -0
- package/dist/esm/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/track.js +240 -0
- package/dist/esm/node_modules/.pnpm/react-slick@0.30.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-slick/lib/utils/innerSliderUtils.js +385 -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/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,35 +1,52 @@
|
|
|
1
|
-
import { BigIntMath as
|
|
1
|
+
import { BigIntMath as f, formatBN as a, WAD_DECIMALS_POW as s } from "@gearbox-protocol/sdk";
|
|
2
2
|
const N = 10000000000000000n;
|
|
3
|
-
function
|
|
3
|
+
function b(t) {
|
|
4
4
|
return BigInt(t.toFixed(18).replace(".", ""));
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
const
|
|
6
|
+
function T(t, e) {
|
|
7
|
+
const r = typeof t == "number" && t < 0 || typeof t == "bigint" && t < 0n ? "-" : "", o = typeof t == "number" ? b(Math.abs(t)) : f.abs(t), u = o < N && o > 0n, c = u ? "0.01" : a(o, s, e), i = `${r}$${c}`;
|
|
8
8
|
return u ? `< ${i}` : i;
|
|
9
9
|
}
|
|
10
|
-
const
|
|
11
|
-
function
|
|
12
|
-
const
|
|
13
|
-
return Number.isNaN(
|
|
10
|
+
const y = 1e4;
|
|
11
|
+
function m(t, e, n = !0) {
|
|
12
|
+
const r = typeof t == "number" ? t : Number(t);
|
|
13
|
+
return Number.isNaN(r) || r === void 0 || r === null ? "0" : r === 0 ? 0 : n && r > y ? r.toExponential(e) : r.toFixed(e);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
return `${
|
|
15
|
+
function g(t, e = 2) {
|
|
16
|
+
return `${m(t, e)}%`;
|
|
17
17
|
}
|
|
18
|
-
const
|
|
19
|
-
function
|
|
20
|
-
const
|
|
21
|
-
return `${
|
|
18
|
+
const l = 1e4;
|
|
19
|
+
function A(t, e = 2) {
|
|
20
|
+
const n = Number(t) / Number(l);
|
|
21
|
+
return `${m(n, e)}%`;
|
|
22
22
|
}
|
|
23
|
-
const
|
|
24
|
-
function
|
|
25
|
-
|
|
23
|
+
const p = 1000n;
|
|
24
|
+
function F(t, e) {
|
|
25
|
+
let n;
|
|
26
|
+
return typeof t == "string" ? n = Number.parseFloat(t) || 0 : typeof t == "bigint" ? n = Number(t) : n = t, typeof e == "number" ? new Intl.NumberFormat("en-US", {
|
|
27
|
+
style: "currency",
|
|
28
|
+
currency: "USD",
|
|
29
|
+
minimumFractionDigits: e,
|
|
30
|
+
maximumFractionDigits: e
|
|
31
|
+
}).format(n) : e && typeof e == "object" ? new Intl.NumberFormat("en-US", {
|
|
32
|
+
style: "currency",
|
|
33
|
+
currency: "USD",
|
|
34
|
+
...e
|
|
35
|
+
}).format(n) : new Intl.NumberFormat("en-US", {
|
|
36
|
+
style: "currency",
|
|
37
|
+
currency: "USD"
|
|
38
|
+
}).format(n);
|
|
39
|
+
}
|
|
40
|
+
function S(t, e = 1) {
|
|
41
|
+
return t === void 0 ? "-" : `${(t / Number(p)).toFixed(e)}%`;
|
|
26
42
|
}
|
|
27
43
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
g as
|
|
34
|
-
|
|
44
|
+
l as PERCENTAGE_FACTOR,
|
|
45
|
+
p as SLIPPAGE_DECIMALS,
|
|
46
|
+
T as formatMoney,
|
|
47
|
+
F as formatMoneyAmount,
|
|
48
|
+
m as formatPercentAmount,
|
|
49
|
+
g as percentTemplate,
|
|
50
|
+
A as percentageTemplate,
|
|
51
|
+
S as slippageTemplate
|
|
35
52
|
};
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -1,60 +1,82 @@
|
|
|
1
1
|
import { generateId as o, useFormFieldIds as r } from "./a11y.js";
|
|
2
2
|
import { bnToInputView as m } from "./bn-to-input-view.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
3
|
+
import { bnToPrettyView as p } from "./bn-to-pretty-view.js";
|
|
4
|
+
import { cn as i, cn as l } from "./cn.js";
|
|
5
|
+
import { generateColorsFromBase as T, getCSSVariable as x, hexToRgba as c, resolveCSSColor as g } from "./colors.js";
|
|
6
|
+
import { copyToClipboard as A } from "./copy.js";
|
|
7
|
+
import { convertPercent as N, formatBytecodeSize as d, formatBytecodeVersion as h, formatTimestamp as C, shortenHash as I, significantTrunc as k } from "./format.js";
|
|
8
|
+
import { formatAssetAmount as b } from "./format-asset-amount.js";
|
|
9
|
+
import { PERCENTAGE_FACTOR as P, SLIPPAGE_DECIMALS as F, formatMoney as L, formatMoney as v, formatPercentAmount as B, percentTemplate as E, percentageTemplate as M, slippageTemplate as R } from "./format-money.js";
|
|
10
|
+
import { FORMAT_CONSTANTS as D, formatNumberWithSuffix as O, formatPrice as _, getAdaptiveDecimals as z, isBelowDisplayThreshold as G, isEffectivelyZero as H, toSignificantDigits as W } from "./format-number.js";
|
|
11
|
+
import { getAllNetworks as j, getNetworkByChainId as q, getNetworkConfig as J, getNetworkIcon as K } from "./network-icons.js";
|
|
12
|
+
import { parseInputToBN as U } from "./parse-input-to-bn.js";
|
|
13
|
+
import { pluralize as Y, selectPluralString as $ } from "./plural.js";
|
|
14
|
+
import { getAvailableRanges as te } from "./ranges.js";
|
|
15
|
+
import { extractTextFromLabel as re, serializeValue as ae } from "./react.js";
|
|
16
|
+
import { searchInString as ne } from "./search.js";
|
|
17
|
+
import { createTokenSearchFilter as fe, searchInToken as ie } from "./search-in-token.js";
|
|
18
|
+
import { shortSHA as se } from "./short-sha.js";
|
|
19
|
+
import { shortenString as xe } from "./shorten-string.js";
|
|
20
|
+
import { negativeTokenTemplate as ge, tokenTemplate as Se, tokenTemplateNumber as Ae, tokenTemplateString as ue } from "./templates.js";
|
|
21
|
+
import { TTL_CONSTANTS as de, getTTLZone as he, ttlFromTimestamp as Ce, ttlLeft as Ie, ttlLeftParsed as ke } from "./ttl.js";
|
|
22
|
+
import { openInNewWindow as be } from "./window.js";
|
|
15
23
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
24
|
+
D as FORMAT_CONSTANTS,
|
|
25
|
+
P as PERCENTAGE_FACTOR,
|
|
26
|
+
F as SLIPPAGE_DECIMALS,
|
|
27
|
+
de as TTL_CONSTANTS,
|
|
20
28
|
m as bnToInputView,
|
|
29
|
+
p as bnToPrettyView,
|
|
21
30
|
i as cn,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
N as convertPercent,
|
|
32
|
+
A as copyToClipboard,
|
|
33
|
+
fe as createTokenSearchFilter,
|
|
34
|
+
l as default,
|
|
35
|
+
re as extractTextFromLabel,
|
|
36
|
+
b as formatAssetAmount,
|
|
37
|
+
d as formatBytecodeSize,
|
|
38
|
+
h as formatBytecodeVersion,
|
|
39
|
+
L as formatMoney,
|
|
40
|
+
v as formatMoneyAmount,
|
|
41
|
+
O as formatNumberWithSuffix,
|
|
42
|
+
B as formatPercentAmount,
|
|
43
|
+
_ as formatPrice,
|
|
44
|
+
C as formatTimestamp,
|
|
35
45
|
T as generateColorsFromBase,
|
|
36
46
|
o as generateId,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
ae as
|
|
47
|
+
z as getAdaptiveDecimals,
|
|
48
|
+
j as getAllNetworks,
|
|
49
|
+
te as getAvailableRanges,
|
|
50
|
+
x as getCSSVariable,
|
|
51
|
+
q as getNetworkByChainId,
|
|
52
|
+
J as getNetworkConfig,
|
|
53
|
+
K as getNetworkIcon,
|
|
54
|
+
he as getTTLZone,
|
|
55
|
+
c as hexToRgba,
|
|
56
|
+
G as isBelowDisplayThreshold,
|
|
57
|
+
H as isEffectivelyZero,
|
|
58
|
+
ge as negativeTokenTemplate,
|
|
59
|
+
be as openInNewWindow,
|
|
60
|
+
U as parseInputToBN,
|
|
61
|
+
E as percentTemplate,
|
|
62
|
+
M as percentageTemplate,
|
|
63
|
+
Y as pluralize,
|
|
64
|
+
g as resolveCSSColor,
|
|
65
|
+
ne as searchInString,
|
|
66
|
+
ie as searchInToken,
|
|
67
|
+
$ as selectPluralString,
|
|
68
|
+
ae as serializeValue,
|
|
69
|
+
se as shortSHA,
|
|
70
|
+
I as shortenHash,
|
|
71
|
+
xe as shortenString,
|
|
72
|
+
k as significantTrunc,
|
|
73
|
+
R as slippageTemplate,
|
|
74
|
+
W as toSignificantDigits,
|
|
75
|
+
Se as tokenTemplate,
|
|
76
|
+
Ae as tokenTemplateNumber,
|
|
77
|
+
ue as tokenTemplateString,
|
|
78
|
+
Ce as ttlFromTimestamp,
|
|
79
|
+
Ie as ttlLeft,
|
|
80
|
+
ke as ttlLeftParsed,
|
|
59
81
|
r as useFormFieldIds
|
|
60
82
|
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
const i = {
|
|
2
|
+
Mainnet: {
|
|
3
|
+
name: "Ethereum",
|
|
4
|
+
icon: "/icons/networks/ethereum.svg",
|
|
5
|
+
chainId: 1
|
|
6
|
+
},
|
|
7
|
+
Arbitrum: {
|
|
8
|
+
name: "Arbitrum",
|
|
9
|
+
icon: "/icons/networks/arbitrum.svg",
|
|
10
|
+
chainId: 42161
|
|
11
|
+
},
|
|
12
|
+
Optimism: {
|
|
13
|
+
name: "Optimism",
|
|
14
|
+
icon: "/icons/networks/optimism.svg",
|
|
15
|
+
chainId: 10
|
|
16
|
+
},
|
|
17
|
+
Sonic: {
|
|
18
|
+
name: "Sonic",
|
|
19
|
+
icon: "/icons/networks/sonic.svg",
|
|
20
|
+
chainId: 146
|
|
21
|
+
},
|
|
22
|
+
Monad: {
|
|
23
|
+
name: "Monad",
|
|
24
|
+
icon: "/icons/networks/monad.svg",
|
|
25
|
+
chainId: 0
|
|
26
|
+
// TBD
|
|
27
|
+
},
|
|
28
|
+
AllNetworks: {
|
|
29
|
+
name: "All Networks",
|
|
30
|
+
icon: "/icons/networks/all.svg",
|
|
31
|
+
chainId: 0
|
|
32
|
+
}
|
|
33
|
+
}, o = {
|
|
34
|
+
1: "Mainnet",
|
|
35
|
+
42161: "Arbitrum",
|
|
36
|
+
10: "Optimism",
|
|
37
|
+
146: "Sonic"
|
|
38
|
+
};
|
|
39
|
+
function t(n) {
|
|
40
|
+
return i[n]?.icon || "";
|
|
41
|
+
}
|
|
42
|
+
function e(n) {
|
|
43
|
+
return o[n];
|
|
44
|
+
}
|
|
45
|
+
function c(n) {
|
|
46
|
+
return i[n];
|
|
47
|
+
}
|
|
48
|
+
function r() {
|
|
49
|
+
return Object.values(i);
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
r as getAllNetworks,
|
|
53
|
+
e as getNetworkByChainId,
|
|
54
|
+
c as getNetworkConfig,
|
|
55
|
+
t as getNetworkIcon
|
|
56
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
function p(n, l, r = !1) {
|
|
2
|
+
if (n == null || n === "") return [0n, ""];
|
|
3
|
+
let t = n.replace(/,/g, ".");
|
|
4
|
+
const e = t.split(".");
|
|
5
|
+
if (e.length > 2 && (t = `${e[0]}.${e.slice(1).join("")}`), !(r ? /^-?[0-9]*\.?[0-9]*$/ : /^[0-9]*\.?[0-9]*$/).test(t))
|
|
6
|
+
return [null, null];
|
|
7
|
+
const [c, u = ""] = t.split("."), a = u.padEnd(l, "0").slice(0, l), o = `${c || "0"}${a}`;
|
|
8
|
+
try {
|
|
9
|
+
const s = BigInt(o);
|
|
10
|
+
return [
|
|
11
|
+
r && t.startsWith("-") ? -s : s,
|
|
12
|
+
t
|
|
13
|
+
];
|
|
14
|
+
} catch {
|
|
15
|
+
return [null, null];
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
p as parseInputToBN
|
|
20
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
function u(r, t) {
|
|
2
|
+
const n = r % 10, e = r % 100;
|
|
3
|
+
return n === 1 && e !== 11 ? t[0] : n >= 2 && n <= 4 && (e < 10 || e >= 20) ? t[1] : t[2];
|
|
4
|
+
}
|
|
5
|
+
function i(r, t, n) {
|
|
6
|
+
return r === 1 ? t : n ?? `${t}s`;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
i as pluralize,
|
|
10
|
+
u as selectPluralString
|
|
11
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
function a(t) {
|
|
2
|
+
return {
|
|
3
|
+
from: t.from ?? t.start ?? 0,
|
|
4
|
+
to: t.to ?? t.end ?? 0
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
function s(t, e, c) {
|
|
8
|
+
return c.filter((o) => {
|
|
9
|
+
const { from: r, to: n } = a(o), m = Math.max(t, r), f = Math.min(e, n);
|
|
10
|
+
return m < f;
|
|
11
|
+
}).map((o) => {
|
|
12
|
+
const { from: r, to: n } = a(o);
|
|
13
|
+
return {
|
|
14
|
+
from: Math.max(t, r),
|
|
15
|
+
to: Math.min(e, n),
|
|
16
|
+
start: Math.max(t, r),
|
|
17
|
+
end: Math.min(e, n),
|
|
18
|
+
color: o.color
|
|
19
|
+
};
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
s as getAvailableRanges
|
|
24
|
+
};
|
package/dist/esm/utils/ttl.js
CHANGED
|
@@ -17,7 +17,16 @@ function f(n, r = Date.now()) {
|
|
|
17
17
|
const o = t - r;
|
|
18
18
|
return i(o);
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
function s(n) {
|
|
21
|
+
if (!n) return;
|
|
22
|
+
const r = typeof n == "bigint" ? Number(n) : n;
|
|
23
|
+
if (r <= 0) return;
|
|
24
|
+
const t = r / 2592e6;
|
|
25
|
+
if (t > 3) return { months: Math.floor(t) };
|
|
26
|
+
const o = r / 864e5;
|
|
27
|
+
if (o >= 1) return { day: Math.floor(o) };
|
|
28
|
+
}
|
|
29
|
+
const c = {
|
|
21
30
|
SECOND: 1e3,
|
|
22
31
|
MINUTE: 6e4,
|
|
23
32
|
HOUR: 36e5,
|
|
@@ -26,8 +35,9 @@ const N = {
|
|
|
26
35
|
MONTH: 2592e6
|
|
27
36
|
};
|
|
28
37
|
export {
|
|
29
|
-
|
|
38
|
+
c as TTL_CONSTANTS,
|
|
30
39
|
u as getTTLZone,
|
|
31
40
|
f as ttlFromTimestamp,
|
|
32
|
-
i as ttlLeft
|
|
41
|
+
i as ttlLeft,
|
|
42
|
+
s as ttlLeftParsed
|
|
33
43
|
};
|