@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
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { __exports as T } from "../../../../../../_virtual/slider.js";
|
|
2
|
+
import z from "react";
|
|
3
|
+
import { __require as C } from "./inner-slider.js";
|
|
4
|
+
import { __require as J } from "../../../../json2mq@0.2.0/node_modules/json2mq/index.js";
|
|
5
|
+
import { __require as Q } from "./default-props.js";
|
|
6
|
+
import { __require as F } from "./utils/innerSliderUtils.js";
|
|
7
|
+
import { __require as L } from "../../../../enquire.js@2.1.6/node_modules/enquire.js/src/index.js";
|
|
8
|
+
var M;
|
|
9
|
+
function ne() {
|
|
10
|
+
return M ? T : (M = 1, (function(g) {
|
|
11
|
+
Object.defineProperty(g, "__esModule", {
|
|
12
|
+
value: !0
|
|
13
|
+
}), g.default = void 0;
|
|
14
|
+
var l = S(z), U = C(), w = S(J()), j = S(Q()), _ = F();
|
|
15
|
+
function S(r) {
|
|
16
|
+
return r && r.__esModule ? r : { default: r };
|
|
17
|
+
}
|
|
18
|
+
function h(r) {
|
|
19
|
+
"@babel/helpers - typeof";
|
|
20
|
+
return h = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
21
|
+
return typeof e;
|
|
22
|
+
} : function(e) {
|
|
23
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
24
|
+
}, h(r);
|
|
25
|
+
}
|
|
26
|
+
function P() {
|
|
27
|
+
return P = Object.assign ? Object.assign.bind() : function(r) {
|
|
28
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
29
|
+
var o = arguments[e];
|
|
30
|
+
for (var n in o)
|
|
31
|
+
Object.prototype.hasOwnProperty.call(o, n) && (r[n] = o[n]);
|
|
32
|
+
}
|
|
33
|
+
return r;
|
|
34
|
+
}, P.apply(this, arguments);
|
|
35
|
+
}
|
|
36
|
+
function R(r, e) {
|
|
37
|
+
var o = Object.keys(r);
|
|
38
|
+
if (Object.getOwnPropertySymbols) {
|
|
39
|
+
var n = Object.getOwnPropertySymbols(r);
|
|
40
|
+
e && (n = n.filter(function(i) {
|
|
41
|
+
return Object.getOwnPropertyDescriptor(r, i).enumerable;
|
|
42
|
+
})), o.push.apply(o, n);
|
|
43
|
+
}
|
|
44
|
+
return o;
|
|
45
|
+
}
|
|
46
|
+
function m(r) {
|
|
47
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
48
|
+
var o = arguments[e] != null ? arguments[e] : {};
|
|
49
|
+
e % 2 ? R(Object(o), !0).forEach(function(n) {
|
|
50
|
+
f(r, n, o[n]);
|
|
51
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(o)) : R(Object(o)).forEach(function(n) {
|
|
52
|
+
Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(o, n));
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
return r;
|
|
56
|
+
}
|
|
57
|
+
function x(r, e) {
|
|
58
|
+
if (!(r instanceof e))
|
|
59
|
+
throw new TypeError("Cannot call a class as a function");
|
|
60
|
+
}
|
|
61
|
+
function I(r, e) {
|
|
62
|
+
for (var o = 0; o < e.length; o++) {
|
|
63
|
+
var n = e[o];
|
|
64
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, D(n.key), n);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function H(r, e, o) {
|
|
68
|
+
return e && I(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r;
|
|
69
|
+
}
|
|
70
|
+
function V(r, e) {
|
|
71
|
+
if (typeof e != "function" && e !== null)
|
|
72
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
73
|
+
r.prototype = Object.create(e && e.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), Object.defineProperty(r, "prototype", { writable: !1 }), e && q(r, e);
|
|
74
|
+
}
|
|
75
|
+
function q(r, e) {
|
|
76
|
+
return q = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, i) {
|
|
77
|
+
return n.__proto__ = i, n;
|
|
78
|
+
}, q(r, e);
|
|
79
|
+
}
|
|
80
|
+
function A(r) {
|
|
81
|
+
var e = k();
|
|
82
|
+
return function() {
|
|
83
|
+
var n = O(r), i;
|
|
84
|
+
if (e) {
|
|
85
|
+
var t = O(this).constructor;
|
|
86
|
+
i = Reflect.construct(n, arguments, t);
|
|
87
|
+
} else
|
|
88
|
+
i = n.apply(this, arguments);
|
|
89
|
+
return B(this, i);
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function B(r, e) {
|
|
93
|
+
if (e && (h(e) === "object" || typeof e == "function"))
|
|
94
|
+
return e;
|
|
95
|
+
if (e !== void 0)
|
|
96
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
97
|
+
return c(r);
|
|
98
|
+
}
|
|
99
|
+
function c(r) {
|
|
100
|
+
if (r === void 0)
|
|
101
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
102
|
+
return r;
|
|
103
|
+
}
|
|
104
|
+
function k() {
|
|
105
|
+
try {
|
|
106
|
+
var r = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
107
|
+
}));
|
|
108
|
+
} catch {
|
|
109
|
+
}
|
|
110
|
+
return (k = function() {
|
|
111
|
+
return !!r;
|
|
112
|
+
})();
|
|
113
|
+
}
|
|
114
|
+
function O(r) {
|
|
115
|
+
return O = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(o) {
|
|
116
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
117
|
+
}, O(r);
|
|
118
|
+
}
|
|
119
|
+
function f(r, e, o) {
|
|
120
|
+
return e = D(e), e in r ? Object.defineProperty(r, e, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = o, r;
|
|
121
|
+
}
|
|
122
|
+
function D(r) {
|
|
123
|
+
var e = G(r, "string");
|
|
124
|
+
return h(e) == "symbol" ? e : String(e);
|
|
125
|
+
}
|
|
126
|
+
function G(r, e) {
|
|
127
|
+
if (h(r) != "object" || !r) return r;
|
|
128
|
+
var o = r[Symbol.toPrimitive];
|
|
129
|
+
if (o !== void 0) {
|
|
130
|
+
var n = o.call(r, e);
|
|
131
|
+
if (h(n) != "object") return n;
|
|
132
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
133
|
+
}
|
|
134
|
+
return (e === "string" ? String : Number)(r);
|
|
135
|
+
}
|
|
136
|
+
var N = (0, _.canUseDOM)() && L();
|
|
137
|
+
g.default = /* @__PURE__ */ (function(r) {
|
|
138
|
+
V(o, r);
|
|
139
|
+
var e = A(o);
|
|
140
|
+
function o(n) {
|
|
141
|
+
var i;
|
|
142
|
+
return x(this, o), i = e.call(this, n), f(c(i), "innerSliderRefHandler", function(t) {
|
|
143
|
+
return i.innerSlider = t;
|
|
144
|
+
}), f(c(i), "slickPrev", function() {
|
|
145
|
+
return i.innerSlider.slickPrev();
|
|
146
|
+
}), f(c(i), "slickNext", function() {
|
|
147
|
+
return i.innerSlider.slickNext();
|
|
148
|
+
}), f(c(i), "slickGoTo", function(t) {
|
|
149
|
+
var d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
150
|
+
return i.innerSlider.slickGoTo(t, d);
|
|
151
|
+
}), f(c(i), "slickPause", function() {
|
|
152
|
+
return i.innerSlider.pause("paused");
|
|
153
|
+
}), f(c(i), "slickPlay", function() {
|
|
154
|
+
return i.innerSlider.autoPlay("play");
|
|
155
|
+
}), i.state = {
|
|
156
|
+
breakpoint: null
|
|
157
|
+
}, i._responsiveMediaHandlers = [], i;
|
|
158
|
+
}
|
|
159
|
+
return H(o, [{
|
|
160
|
+
key: "media",
|
|
161
|
+
value: function(i, t) {
|
|
162
|
+
N.register(i, t), this._responsiveMediaHandlers.push({
|
|
163
|
+
query: i,
|
|
164
|
+
handler: t
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
// handles responsive breakpoints
|
|
168
|
+
}, {
|
|
169
|
+
key: "componentDidMount",
|
|
170
|
+
value: function() {
|
|
171
|
+
var i = this;
|
|
172
|
+
if (this.props.responsive) {
|
|
173
|
+
var t = this.props.responsive.map(function(s) {
|
|
174
|
+
return s.breakpoint;
|
|
175
|
+
});
|
|
176
|
+
t.sort(function(s, u) {
|
|
177
|
+
return s - u;
|
|
178
|
+
}), t.forEach(function(s, u) {
|
|
179
|
+
var y;
|
|
180
|
+
u === 0 ? y = (0, w.default)({
|
|
181
|
+
minWidth: 0,
|
|
182
|
+
maxWidth: s
|
|
183
|
+
}) : y = (0, w.default)({
|
|
184
|
+
minWidth: t[u - 1] + 1,
|
|
185
|
+
maxWidth: s
|
|
186
|
+
}), (0, _.canUseDOM)() && i.media(y, function() {
|
|
187
|
+
i.setState({
|
|
188
|
+
breakpoint: s
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
var d = (0, w.default)({
|
|
193
|
+
minWidth: t.slice(-1)[0]
|
|
194
|
+
});
|
|
195
|
+
(0, _.canUseDOM)() && this.media(d, function() {
|
|
196
|
+
i.setState({
|
|
197
|
+
breakpoint: null
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}, {
|
|
203
|
+
key: "componentWillUnmount",
|
|
204
|
+
value: function() {
|
|
205
|
+
this._responsiveMediaHandlers.forEach(function(i) {
|
|
206
|
+
N.unregister(i.query, i.handler);
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
}, {
|
|
210
|
+
key: "render",
|
|
211
|
+
value: function() {
|
|
212
|
+
var i = this, t, d;
|
|
213
|
+
this.state.breakpoint ? (d = this.props.responsive.filter(function(b) {
|
|
214
|
+
return b.breakpoint === i.state.breakpoint;
|
|
215
|
+
}), t = d[0].settings === "unslick" ? "unslick" : m(m(m({}, j.default), this.props), d[0].settings)) : t = m(m({}, j.default), this.props), t.centerMode && (t.slidesToScroll > 1 && process.env.NODE_ENV !== "production" && console.warn("slidesToScroll should be equal to 1 in centerMode, you are using ".concat(t.slidesToScroll)), t.slidesToScroll = 1), t.fade && (t.slidesToShow > 1 && process.env.NODE_ENV !== "production" && console.warn("slidesToShow should be equal to 1 when fade is true, you're using ".concat(t.slidesToShow)), t.slidesToScroll > 1 && process.env.NODE_ENV !== "production" && console.warn("slidesToScroll should be equal to 1 when fade is true, you're using ".concat(t.slidesToScroll)), t.slidesToShow = 1, t.slidesToScroll = 1);
|
|
216
|
+
var s = l.default.Children.toArray(this.props.children);
|
|
217
|
+
s = s.filter(function(b) {
|
|
218
|
+
return typeof b == "string" ? !!b.trim() : !!b;
|
|
219
|
+
}), t.variableWidth && (t.rows > 1 || t.slidesPerRow > 1) && (console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"), t.variableWidth = !1);
|
|
220
|
+
for (var u = [], y = null, a = 0; a < s.length; a += t.rows * t.slidesPerRow) {
|
|
221
|
+
for (var E = [], v = a; v < a + t.rows * t.slidesPerRow; v += t.slidesPerRow) {
|
|
222
|
+
for (var W = [], p = v; p < v + t.slidesPerRow && (t.variableWidth && s[p].props.style && (y = s[p].props.style.width), !(p >= s.length)); p += 1)
|
|
223
|
+
W.push(/* @__PURE__ */ l.default.cloneElement(s[p], {
|
|
224
|
+
key: 100 * a + 10 * v + p,
|
|
225
|
+
tabIndex: -1,
|
|
226
|
+
style: {
|
|
227
|
+
width: "".concat(100 / t.slidesPerRow, "%"),
|
|
228
|
+
display: "inline-block"
|
|
229
|
+
}
|
|
230
|
+
}));
|
|
231
|
+
E.push(/* @__PURE__ */ l.default.createElement("div", {
|
|
232
|
+
key: 10 * a + v
|
|
233
|
+
}, W));
|
|
234
|
+
}
|
|
235
|
+
t.variableWidth ? u.push(/* @__PURE__ */ l.default.createElement("div", {
|
|
236
|
+
key: a,
|
|
237
|
+
style: {
|
|
238
|
+
width: y
|
|
239
|
+
}
|
|
240
|
+
}, E)) : u.push(/* @__PURE__ */ l.default.createElement("div", {
|
|
241
|
+
key: a
|
|
242
|
+
}, E));
|
|
243
|
+
}
|
|
244
|
+
if (t === "unslick") {
|
|
245
|
+
var K = "regular slider " + (this.props.className || "");
|
|
246
|
+
return /* @__PURE__ */ l.default.createElement("div", {
|
|
247
|
+
className: K
|
|
248
|
+
}, s);
|
|
249
|
+
} else u.length <= t.slidesToShow && !t.infinite && (t.unslick = !0);
|
|
250
|
+
return /* @__PURE__ */ l.default.createElement(U.InnerSlider, P({
|
|
251
|
+
style: this.props.style,
|
|
252
|
+
ref: this.innerSliderRefHandler
|
|
253
|
+
}, (0, _.filterSettings)(t)), u);
|
|
254
|
+
}
|
|
255
|
+
}]), o;
|
|
256
|
+
})(l.default.Component);
|
|
257
|
+
})(T), T);
|
|
258
|
+
}
|
|
259
|
+
export {
|
|
260
|
+
ne as __require
|
|
261
|
+
};
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { __exports as b } from "../../../../../../_virtual/track.js";
|
|
2
|
+
import F from "react";
|
|
3
|
+
import { __require as G } from "../../../../classnames@2.5.1/node_modules/classnames/index.js";
|
|
4
|
+
import { __require as J } from "./utils/innerSliderUtils.js";
|
|
5
|
+
var z;
|
|
6
|
+
function Z() {
|
|
7
|
+
if (z) return b;
|
|
8
|
+
z = 1, Object.defineProperty(b, "__esModule", {
|
|
9
|
+
value: !0
|
|
10
|
+
}), b.Track = void 0;
|
|
11
|
+
var s = T(F), m = T(G()), O = J();
|
|
12
|
+
function T(t) {
|
|
13
|
+
return t && t.__esModule ? t : { default: t };
|
|
14
|
+
}
|
|
15
|
+
function y(t) {
|
|
16
|
+
"@babel/helpers - typeof";
|
|
17
|
+
return y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
18
|
+
return typeof e;
|
|
19
|
+
} : function(e) {
|
|
20
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
21
|
+
}, y(t);
|
|
22
|
+
}
|
|
23
|
+
function g() {
|
|
24
|
+
return g = Object.assign ? Object.assign.bind() : function(t) {
|
|
25
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
26
|
+
var r = arguments[e];
|
|
27
|
+
for (var n in r)
|
|
28
|
+
Object.prototype.hasOwnProperty.call(r, n) && (t[n] = r[n]);
|
|
29
|
+
}
|
|
30
|
+
return t;
|
|
31
|
+
}, g.apply(this, arguments);
|
|
32
|
+
}
|
|
33
|
+
function L(t, e) {
|
|
34
|
+
if (!(t instanceof e))
|
|
35
|
+
throw new TypeError("Cannot call a class as a function");
|
|
36
|
+
}
|
|
37
|
+
function D(t, e) {
|
|
38
|
+
for (var r = 0; r < e.length; r++) {
|
|
39
|
+
var n = e[r];
|
|
40
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, R(n.key), n);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function K(t, e, r) {
|
|
44
|
+
return e && D(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
45
|
+
}
|
|
46
|
+
function W(t, e) {
|
|
47
|
+
if (typeof e != "function" && e !== null)
|
|
48
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
49
|
+
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _(t, e);
|
|
50
|
+
}
|
|
51
|
+
function _(t, e) {
|
|
52
|
+
return _ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, l) {
|
|
53
|
+
return n.__proto__ = l, n;
|
|
54
|
+
}, _(t, e);
|
|
55
|
+
}
|
|
56
|
+
function A(t) {
|
|
57
|
+
var e = I();
|
|
58
|
+
return function() {
|
|
59
|
+
var n = S(t), l;
|
|
60
|
+
if (e) {
|
|
61
|
+
var a = S(this).constructor;
|
|
62
|
+
l = Reflect.construct(n, arguments, a);
|
|
63
|
+
} else
|
|
64
|
+
l = n.apply(this, arguments);
|
|
65
|
+
return B(this, l);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function B(t, e) {
|
|
69
|
+
if (e && (y(e) === "object" || typeof e == "function"))
|
|
70
|
+
return e;
|
|
71
|
+
if (e !== void 0)
|
|
72
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
73
|
+
return k(t);
|
|
74
|
+
}
|
|
75
|
+
function k(t) {
|
|
76
|
+
if (t === void 0)
|
|
77
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
78
|
+
return t;
|
|
79
|
+
}
|
|
80
|
+
function I() {
|
|
81
|
+
try {
|
|
82
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
83
|
+
}));
|
|
84
|
+
} catch {
|
|
85
|
+
}
|
|
86
|
+
return (I = function() {
|
|
87
|
+
return !!t;
|
|
88
|
+
})();
|
|
89
|
+
}
|
|
90
|
+
function S(t) {
|
|
91
|
+
return S = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
|
|
92
|
+
return r.__proto__ || Object.getPrototypeOf(r);
|
|
93
|
+
}, S(t);
|
|
94
|
+
}
|
|
95
|
+
function M(t, e) {
|
|
96
|
+
var r = Object.keys(t);
|
|
97
|
+
if (Object.getOwnPropertySymbols) {
|
|
98
|
+
var n = Object.getOwnPropertySymbols(t);
|
|
99
|
+
e && (n = n.filter(function(l) {
|
|
100
|
+
return Object.getOwnPropertyDescriptor(t, l).enumerable;
|
|
101
|
+
})), r.push.apply(r, n);
|
|
102
|
+
}
|
|
103
|
+
return r;
|
|
104
|
+
}
|
|
105
|
+
function u(t) {
|
|
106
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
107
|
+
var r = arguments[e] != null ? arguments[e] : {};
|
|
108
|
+
e % 2 ? M(Object(r), !0).forEach(function(n) {
|
|
109
|
+
C(t, n, r[n]);
|
|
110
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : M(Object(r)).forEach(function(n) {
|
|
111
|
+
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
return t;
|
|
115
|
+
}
|
|
116
|
+
function C(t, e, r) {
|
|
117
|
+
return e = R(e), e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
118
|
+
}
|
|
119
|
+
function R(t) {
|
|
120
|
+
var e = U(t, "string");
|
|
121
|
+
return y(e) == "symbol" ? e : String(e);
|
|
122
|
+
}
|
|
123
|
+
function U(t, e) {
|
|
124
|
+
if (y(t) != "object" || !t) return t;
|
|
125
|
+
var r = t[Symbol.toPrimitive];
|
|
126
|
+
if (r !== void 0) {
|
|
127
|
+
var n = r.call(t, e);
|
|
128
|
+
if (y(n) != "object") return n;
|
|
129
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
130
|
+
}
|
|
131
|
+
return (e === "string" ? String : Number)(t);
|
|
132
|
+
}
|
|
133
|
+
var P = function(e) {
|
|
134
|
+
var r, n, l, a, o;
|
|
135
|
+
e.rtl ? o = e.slideCount - 1 - e.index : o = e.index, l = o < 0 || o >= e.slideCount, e.centerMode ? (a = Math.floor(e.slidesToShow / 2), n = (o - e.currentSlide) % e.slideCount === 0, o > e.currentSlide - a - 1 && o <= e.currentSlide + a && (r = !0)) : r = e.currentSlide <= o && o < e.currentSlide + e.slidesToShow;
|
|
136
|
+
var f;
|
|
137
|
+
e.targetSlide < 0 ? f = e.targetSlide + e.slideCount : e.targetSlide >= e.slideCount ? f = e.targetSlide - e.slideCount : f = e.targetSlide;
|
|
138
|
+
var v = o === f;
|
|
139
|
+
return {
|
|
140
|
+
"slick-slide": !0,
|
|
141
|
+
"slick-active": r,
|
|
142
|
+
"slick-center": n,
|
|
143
|
+
"slick-cloned": l,
|
|
144
|
+
"slick-current": v
|
|
145
|
+
// dubious in case of RTL
|
|
146
|
+
};
|
|
147
|
+
}, H = function(e) {
|
|
148
|
+
var r = {};
|
|
149
|
+
return (e.variableWidth === void 0 || e.variableWidth === !1) && (r.width = e.slideWidth), e.fade && (r.position = "relative", e.vertical ? r.top = -e.index * parseInt(e.slideHeight) : r.left = -e.index * parseInt(e.slideWidth), r.opacity = e.currentSlide === e.index ? 1 : 0, r.zIndex = e.currentSlide === e.index ? 999 : 998, e.useCSS && (r.transition = "opacity " + e.speed + "ms " + e.cssEase + ", visibility " + e.speed + "ms " + e.cssEase)), r;
|
|
150
|
+
}, w = function(e, r) {
|
|
151
|
+
return e.key || r;
|
|
152
|
+
}, $ = function(e) {
|
|
153
|
+
var r, n = [], l = [], a = [], o = s.default.Children.count(e.children), f = (0, O.lazyStartIndex)(e), v = (0, O.lazyEndIndex)(e);
|
|
154
|
+
return s.default.Children.forEach(e.children, function(p, c) {
|
|
155
|
+
var i, j = {
|
|
156
|
+
message: "children",
|
|
157
|
+
index: c,
|
|
158
|
+
slidesToScroll: e.slidesToScroll,
|
|
159
|
+
currentSlide: e.currentSlide
|
|
160
|
+
};
|
|
161
|
+
!e.lazyLoad || e.lazyLoad && e.lazyLoadedList.indexOf(c) >= 0 ? i = p : i = /* @__PURE__ */ s.default.createElement("div", null);
|
|
162
|
+
var x = H(u(u({}, e), {}, {
|
|
163
|
+
index: c
|
|
164
|
+
})), E = i.props.className || "", d = P(u(u({}, e), {}, {
|
|
165
|
+
index: c
|
|
166
|
+
}));
|
|
167
|
+
if (n.push(/* @__PURE__ */ s.default.cloneElement(i, {
|
|
168
|
+
key: "original" + w(i, c),
|
|
169
|
+
"data-index": c,
|
|
170
|
+
className: (0, m.default)(d, E),
|
|
171
|
+
tabIndex: "-1",
|
|
172
|
+
"aria-hidden": !d["slick-active"],
|
|
173
|
+
style: u(u({
|
|
174
|
+
outline: "none"
|
|
175
|
+
}, i.props.style || {}), x),
|
|
176
|
+
onClick: function(h) {
|
|
177
|
+
i.props && i.props.onClick && i.props.onClick(h), e.focusOnSelect && e.focusOnSelect(j);
|
|
178
|
+
}
|
|
179
|
+
})), e.infinite && e.fade === !1) {
|
|
180
|
+
var q = o - c;
|
|
181
|
+
q <= (0, O.getPreClones)(e) && (r = -q, r >= f && (i = p), d = P(u(u({}, e), {}, {
|
|
182
|
+
index: r
|
|
183
|
+
})), l.push(/* @__PURE__ */ s.default.cloneElement(i, {
|
|
184
|
+
key: "precloned" + w(i, r),
|
|
185
|
+
"data-index": r,
|
|
186
|
+
tabIndex: "-1",
|
|
187
|
+
className: (0, m.default)(d, E),
|
|
188
|
+
"aria-hidden": !d["slick-active"],
|
|
189
|
+
style: u(u({}, i.props.style || {}), x),
|
|
190
|
+
onClick: function(h) {
|
|
191
|
+
i.props && i.props.onClick && i.props.onClick(h), e.focusOnSelect && e.focusOnSelect(j);
|
|
192
|
+
}
|
|
193
|
+
}))), r = o + c, r < v && (i = p), d = P(u(u({}, e), {}, {
|
|
194
|
+
index: r
|
|
195
|
+
})), a.push(/* @__PURE__ */ s.default.cloneElement(i, {
|
|
196
|
+
key: "postcloned" + w(i, r),
|
|
197
|
+
"data-index": r,
|
|
198
|
+
tabIndex: "-1",
|
|
199
|
+
className: (0, m.default)(d, E),
|
|
200
|
+
"aria-hidden": !d["slick-active"],
|
|
201
|
+
style: u(u({}, i.props.style || {}), x),
|
|
202
|
+
onClick: function(h) {
|
|
203
|
+
i.props && i.props.onClick && i.props.onClick(h), e.focusOnSelect && e.focusOnSelect(j);
|
|
204
|
+
}
|
|
205
|
+
}));
|
|
206
|
+
}
|
|
207
|
+
}), e.rtl ? l.concat(n, a).reverse() : l.concat(n, a);
|
|
208
|
+
};
|
|
209
|
+
return b.Track = /* @__PURE__ */ (function(t) {
|
|
210
|
+
W(r, t);
|
|
211
|
+
var e = A(r);
|
|
212
|
+
function r() {
|
|
213
|
+
var n;
|
|
214
|
+
L(this, r);
|
|
215
|
+
for (var l = arguments.length, a = new Array(l), o = 0; o < l; o++)
|
|
216
|
+
a[o] = arguments[o];
|
|
217
|
+
return n = e.call.apply(e, [this].concat(a)), C(k(n), "node", null), C(k(n), "handleRef", function(f) {
|
|
218
|
+
n.node = f;
|
|
219
|
+
}), n;
|
|
220
|
+
}
|
|
221
|
+
return K(r, [{
|
|
222
|
+
key: "render",
|
|
223
|
+
value: function() {
|
|
224
|
+
var l = $(this.props), a = this.props, o = a.onMouseEnter, f = a.onMouseOver, v = a.onMouseLeave, p = {
|
|
225
|
+
onMouseEnter: o,
|
|
226
|
+
onMouseOver: f,
|
|
227
|
+
onMouseLeave: v
|
|
228
|
+
};
|
|
229
|
+
return /* @__PURE__ */ s.default.createElement("div", g({
|
|
230
|
+
ref: this.handleRef,
|
|
231
|
+
className: "slick-track",
|
|
232
|
+
style: this.props.trackStyle
|
|
233
|
+
}, p), l);
|
|
234
|
+
}
|
|
235
|
+
}]), r;
|
|
236
|
+
})(s.default.PureComponent), b;
|
|
237
|
+
}
|
|
238
|
+
export {
|
|
239
|
+
Z as __require
|
|
240
|
+
};
|