@finam/web-ui-kit-components 3.25.4 → 3.26.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/CHANGELOG.md +5 -0
- package/dist/ProductCard/ProductCard.d.ts +4 -0
- package/dist/ProductCard/ProductCard.d.ts.map +1 -0
- package/dist/ProductCard/ProductCard.js +75 -0
- package/dist/ProductCard/ProductCard.js.map +1 -0
- package/dist/ProductCard/ProductCard.styles.css +2 -0
- package/dist/ProductCard/ProductCard.styles.d.ts +9 -0
- package/dist/ProductCard/ProductCard.styles.d.ts.map +1 -0
- package/dist/ProductCard/ProductCard.styles.js +15 -0
- package/dist/ProductCard/ProductCard.styles.js.map +1 -0
- package/dist/ProductCard/ProductCardBadgesHeader/ProductCardBadgesHeader.d.ts +24 -0
- package/dist/ProductCard/ProductCardBadgesHeader/ProductCardBadgesHeader.d.ts.map +1 -0
- package/dist/ProductCard/ProductCardBadgesHeader/ProductCardBadgesHeader.js +53 -0
- package/dist/ProductCard/ProductCardBadgesHeader/ProductCardBadgesHeader.js.map +1 -0
- package/dist/ProductCard/ProductCardBadgesHeader/ProductCardBadgesHeader.styles.css +12 -0
- package/dist/ProductCard/ProductCardBadgesHeader/ProductCardBadgesHeader.styles.d.ts +13 -0
- package/dist/ProductCard/ProductCardBadgesHeader/ProductCardBadgesHeader.styles.d.ts.map +1 -0
- package/dist/ProductCard/ProductCardBadgesHeader/ProductCardBadgesHeader.styles.js +27 -0
- package/dist/ProductCard/ProductCardBadgesHeader/ProductCardBadgesHeader.styles.js.map +1 -0
- package/dist/ProductCard/ProductCardBadgesHeader/index.d.ts +3 -0
- package/dist/ProductCard/ProductCardBadgesHeader/index.d.ts.map +1 -0
- package/dist/ProductCard/ProductCardBadgesHeader/index.js +2 -0
- package/dist/ProductCard/ProductCardBadgesHeader/index.js.map +1 -0
- package/dist/ProductCard/ProductCardContent/ProductCardContent.d.ts +11 -0
- package/dist/ProductCard/ProductCardContent/ProductCardContent.d.ts.map +1 -0
- package/dist/ProductCard/ProductCardContent/ProductCardContent.js +9 -0
- package/dist/ProductCard/ProductCardContent/ProductCardContent.js.map +1 -0
- package/dist/ProductCard/ProductCardContent/ProductCardContent.styles.css +1 -0
- package/dist/ProductCard/ProductCardContent/ProductCardContent.styles.d.ts +2 -0
- package/dist/ProductCard/ProductCardContent/ProductCardContent.styles.d.ts.map +1 -0
- package/dist/ProductCard/ProductCardContent/ProductCardContent.styles.js +8 -0
- package/dist/ProductCard/ProductCardContent/ProductCardContent.styles.js.map +1 -0
- package/dist/ProductCard/ProductCardContent/index.d.ts +2 -0
- package/dist/ProductCard/ProductCardContent/index.d.ts.map +1 -0
- package/dist/ProductCard/ProductCardContent/index.js +2 -0
- package/dist/ProductCard/ProductCardContent/index.js.map +1 -0
- package/dist/ProductCard/ProductCardContext.d.ts +12 -0
- package/dist/ProductCard/ProductCardContext.d.ts.map +1 -0
- package/dist/ProductCard/ProductCardContext.js +12 -0
- package/dist/ProductCard/ProductCardContext.js.map +1 -0
- package/dist/ProductCard/ProductCardFooter/ProductCardFooter.d.ts +9 -0
- package/dist/ProductCard/ProductCardFooter/ProductCardFooter.d.ts.map +1 -0
- package/dist/ProductCard/ProductCardFooter/ProductCardFooter.js +16 -0
- package/dist/ProductCard/ProductCardFooter/ProductCardFooter.js.map +1 -0
- package/dist/ProductCard/ProductCardFooter/ProductCardFooter.styles.css +1 -0
- package/dist/ProductCard/ProductCardFooter/ProductCardFooter.styles.d.ts +2 -0
- package/dist/ProductCard/ProductCardFooter/ProductCardFooter.styles.d.ts.map +1 -0
- package/dist/ProductCard/ProductCardFooter/ProductCardFooter.styles.js +8 -0
- package/dist/ProductCard/ProductCardFooter/ProductCardFooter.styles.js.map +1 -0
- package/dist/ProductCard/ProductCardFooter/index.d.ts +2 -0
- package/dist/ProductCard/ProductCardFooter/index.d.ts.map +1 -0
- package/dist/ProductCard/ProductCardFooter/index.js +2 -0
- package/dist/ProductCard/ProductCardFooter/index.js.map +1 -0
- package/dist/ProductCard/ProductCardHeader/ProductCardHeader.d.ts +9 -0
- package/dist/ProductCard/ProductCardHeader/ProductCardHeader.d.ts.map +1 -0
- package/dist/ProductCard/ProductCardHeader/ProductCardHeader.js +16 -0
- package/dist/ProductCard/ProductCardHeader/ProductCardHeader.js.map +1 -0
- package/dist/ProductCard/ProductCardHeader/ProductCardHeader.styles.css +1 -0
- package/dist/ProductCard/ProductCardHeader/ProductCardHeader.styles.d.ts +2 -0
- package/dist/ProductCard/ProductCardHeader/ProductCardHeader.styles.d.ts.map +1 -0
- package/dist/ProductCard/ProductCardHeader/ProductCardHeader.styles.js +8 -0
- package/dist/ProductCard/ProductCardHeader/ProductCardHeader.styles.js.map +1 -0
- package/dist/ProductCard/ProductCardHeader/index.d.ts +2 -0
- package/dist/ProductCard/ProductCardHeader/index.d.ts.map +1 -0
- package/dist/ProductCard/ProductCardHeader/index.js +2 -0
- package/dist/ProductCard/ProductCardHeader/index.js.map +1 -0
- package/dist/ProductCard/ProductCardTitle/ProductCardTitle.d.ts +9 -0
- package/dist/ProductCard/ProductCardTitle/ProductCardTitle.d.ts.map +1 -0
- package/dist/ProductCard/ProductCardTitle/ProductCardTitle.js +16 -0
- package/dist/ProductCard/ProductCardTitle/ProductCardTitle.js.map +1 -0
- package/dist/ProductCard/ProductCardTitle/ProductCardTitle.styles.css +1 -0
- package/dist/ProductCard/ProductCardTitle/ProductCardTitle.styles.d.ts +2 -0
- package/dist/ProductCard/ProductCardTitle/ProductCardTitle.styles.d.ts.map +1 -0
- package/dist/ProductCard/ProductCardTitle/ProductCardTitle.styles.js +8 -0
- package/dist/ProductCard/ProductCardTitle/ProductCardTitle.styles.js.map +1 -0
- package/dist/ProductCard/ProductCardTitle/index.d.ts +2 -0
- package/dist/ProductCard/ProductCardTitle/index.d.ts.map +1 -0
- package/dist/ProductCard/ProductCardTitle/index.js +2 -0
- package/dist/ProductCard/ProductCardTitle/index.js.map +1 -0
- package/dist/ProductCard/badges/ProductCardIpoRatingBadge/ProductCardIpoRatingBadge.d.ts +11 -0
- package/dist/ProductCard/badges/ProductCardIpoRatingBadge/ProductCardIpoRatingBadge.d.ts.map +1 -0
- package/dist/ProductCard/badges/ProductCardIpoRatingBadge/ProductCardIpoRatingBadge.js +22 -0
- package/dist/ProductCard/badges/ProductCardIpoRatingBadge/ProductCardIpoRatingBadge.js.map +1 -0
- package/dist/ProductCard/badges/ProductCardIpoRatingBadge/ProductCardIpoRatingBadge.styles.css +2 -0
- package/dist/ProductCard/badges/ProductCardIpoRatingBadge/ProductCardIpoRatingBadge.styles.d.ts +4 -0
- package/dist/ProductCard/badges/ProductCardIpoRatingBadge/ProductCardIpoRatingBadge.styles.d.ts.map +1 -0
- package/dist/ProductCard/badges/ProductCardIpoRatingBadge/ProductCardIpoRatingBadge.styles.js +5 -0
- package/dist/ProductCard/badges/ProductCardIpoRatingBadge/ProductCardIpoRatingBadge.styles.js.map +1 -0
- package/dist/ProductCard/badges/ProductCardIpoRatingBadge/index.d.ts +2 -0
- package/dist/ProductCard/badges/ProductCardIpoRatingBadge/index.d.ts.map +1 -0
- package/dist/ProductCard/badges/ProductCardIpoRatingBadge/index.js +2 -0
- package/dist/ProductCard/badges/ProductCardIpoRatingBadge/index.js.map +1 -0
- package/dist/ProductCard/badges/ProductCardRiskBadge/ProductCardRiskBadge.d.ts +23 -0
- package/dist/ProductCard/badges/ProductCardRiskBadge/ProductCardRiskBadge.d.ts.map +1 -0
- package/dist/ProductCard/badges/ProductCardRiskBadge/ProductCardRiskBadge.js +42 -0
- package/dist/ProductCard/badges/ProductCardRiskBadge/ProductCardRiskBadge.js.map +1 -0
- package/dist/ProductCard/badges/ProductCardRiskBadge/ProductCardRiskBadge.styles.css +2 -0
- package/dist/ProductCard/badges/ProductCardRiskBadge/ProductCardRiskBadge.styles.d.ts +3 -0
- package/dist/ProductCard/badges/ProductCardRiskBadge/ProductCardRiskBadge.styles.d.ts.map +1 -0
- package/dist/ProductCard/badges/ProductCardRiskBadge/ProductCardRiskBadge.styles.js +9 -0
- package/dist/ProductCard/badges/ProductCardRiskBadge/ProductCardRiskBadge.styles.js.map +1 -0
- package/dist/ProductCard/badges/ProductCardRiskBadge/index.d.ts +4 -0
- package/dist/ProductCard/badges/ProductCardRiskBadge/index.d.ts.map +1 -0
- package/dist/ProductCard/badges/ProductCardRiskBadge/index.js +4 -0
- package/dist/ProductCard/badges/ProductCardRiskBadge/index.js.map +1 -0
- package/dist/ProductCard/badges/utils.css +9 -0
- package/dist/ProductCard/badges/utils.d.ts +9 -0
- package/dist/ProductCard/badges/utils.d.ts.map +1 -0
- package/dist/ProductCard/badges/utils.js +35 -0
- package/dist/ProductCard/badges/utils.js.map +1 -0
- package/dist/ProductCard/index.d.ts +23 -0
- package/dist/ProductCard/index.d.ts.map +1 -0
- package/dist/ProductCard/index.js +21 -0
- package/dist/ProductCard/index.js.map +1 -0
- package/dist/ProductCard/layoutConfig.d.ts +8 -0
- package/dist/ProductCard/layoutConfig.d.ts.map +1 -0
- package/dist/ProductCard/layoutConfig.js +9 -0
- package/dist/ProductCard/layoutConfig.js.map +1 -0
- package/dist/ProductCard/layouts/common/Content.d.ts +8 -0
- package/dist/ProductCard/layouts/common/Content.d.ts.map +1 -0
- package/dist/ProductCard/layouts/common/Content.js +23 -0
- package/dist/ProductCard/layouts/common/Content.js.map +1 -0
- package/dist/ProductCard/layouts/common/Content.styles.css +2 -0
- package/dist/ProductCard/layouts/common/Content.styles.d.ts +3 -0
- package/dist/ProductCard/layouts/common/Content.styles.d.ts.map +1 -0
- package/dist/ProductCard/layouts/common/Content.styles.js +13 -0
- package/dist/ProductCard/layouts/common/Content.styles.js.map +1 -0
- package/dist/ProductCard/layouts/common/Footer.d.ts +13 -0
- package/dist/ProductCard/layouts/common/Footer.d.ts.map +1 -0
- package/dist/ProductCard/layouts/common/Footer.js +15 -0
- package/dist/ProductCard/layouts/common/Footer.js.map +1 -0
- package/dist/ProductCard/layouts/common/Footer.styles.css +4 -0
- package/dist/ProductCard/layouts/common/Footer.styles.d.ts +5 -0
- package/dist/ProductCard/layouts/common/Footer.styles.d.ts.map +1 -0
- package/dist/ProductCard/layouts/common/Footer.styles.js +15 -0
- package/dist/ProductCard/layouts/common/Footer.styles.js.map +1 -0
- package/dist/ProductCard/layouts/common/Title.d.ts +7 -0
- package/dist/ProductCard/layouts/common/Title.d.ts.map +1 -0
- package/dist/ProductCard/layouts/common/Title.js +15 -0
- package/dist/ProductCard/layouts/common/Title.js.map +1 -0
- package/dist/ProductCard/layouts/common/chartUtils.d.ts +22 -0
- package/dist/ProductCard/layouts/common/chartUtils.d.ts.map +1 -0
- package/dist/ProductCard/layouts/common/chartUtils.js +72 -0
- package/dist/ProductCard/layouts/common/chartUtils.js.map +1 -0
- package/dist/ProductCard/layouts/common/index.d.ts +8 -0
- package/dist/ProductCard/layouts/common/index.d.ts.map +1 -0
- package/dist/ProductCard/layouts/common/index.js +5 -0
- package/dist/ProductCard/layouts/common/index.js.map +1 -0
- package/dist/ProductCard/layouts/iip/Background.d.ts +8 -0
- package/dist/ProductCard/layouts/iip/Background.d.ts.map +1 -0
- package/dist/ProductCard/layouts/iip/Background.js +6 -0
- package/dist/ProductCard/layouts/iip/Background.js.map +1 -0
- package/dist/ProductCard/layouts/iip/Background.styles.css +1 -0
- package/dist/ProductCard/layouts/iip/Background.styles.d.ts +2 -0
- package/dist/ProductCard/layouts/iip/Background.styles.d.ts.map +1 -0
- package/dist/ProductCard/layouts/iip/Background.styles.js +3 -0
- package/dist/ProductCard/layouts/iip/Background.styles.js.map +1 -0
- package/dist/ProductCard/layouts/iip/Footer.d.ts +14 -0
- package/dist/ProductCard/layouts/iip/Footer.d.ts.map +1 -0
- package/dist/ProductCard/layouts/iip/Footer.js +23 -0
- package/dist/ProductCard/layouts/iip/Footer.js.map +1 -0
- package/dist/ProductCard/layouts/iip/Footer.styles.css +4 -0
- package/dist/ProductCard/layouts/iip/Footer.styles.d.ts +5 -0
- package/dist/ProductCard/layouts/iip/Footer.styles.d.ts.map +1 -0
- package/dist/ProductCard/layouts/iip/Footer.styles.js +19 -0
- package/dist/ProductCard/layouts/iip/Footer.styles.js.map +1 -0
- package/dist/ProductCard/layouts/iip/SecurityIcons/ProductCardIipSecurityIcons.d.ts +13 -0
- package/dist/ProductCard/layouts/iip/SecurityIcons/ProductCardIipSecurityIcons.d.ts.map +1 -0
- package/dist/ProductCard/layouts/iip/SecurityIcons/ProductCardIipSecurityIcons.js +31 -0
- package/dist/ProductCard/layouts/iip/SecurityIcons/ProductCardIipSecurityIcons.js.map +1 -0
- package/dist/ProductCard/layouts/iip/SecurityIcons/ProductCardIipSecurityIcons.styles.css +5 -0
- package/dist/ProductCard/layouts/iip/SecurityIcons/ProductCardIipSecurityIcons.styles.d.ts +11 -0
- package/dist/ProductCard/layouts/iip/SecurityIcons/ProductCardIipSecurityIcons.styles.d.ts.map +1 -0
- package/dist/ProductCard/layouts/iip/SecurityIcons/ProductCardIipSecurityIcons.styles.js +37 -0
- package/dist/ProductCard/layouts/iip/SecurityIcons/ProductCardIipSecurityIcons.styles.js.map +1 -0
- package/dist/ProductCard/layouts/iip/SecurityIcons/index.d.ts +3 -0
- package/dist/ProductCard/layouts/iip/SecurityIcons/index.d.ts.map +1 -0
- package/dist/ProductCard/layouts/iip/SecurityIcons/index.js +2 -0
- package/dist/ProductCard/layouts/iip/SecurityIcons/index.js.map +1 -0
- package/dist/ProductCard/layouts/iip/Title.d.ts +8 -0
- package/dist/ProductCard/layouts/iip/Title.d.ts.map +1 -0
- package/dist/ProductCard/layouts/iip/Title.js +12 -0
- package/dist/ProductCard/layouts/iip/Title.js.map +1 -0
- package/dist/ProductCard/layouts/iip/index.d.ts +9 -0
- package/dist/ProductCard/layouts/iip/index.d.ts.map +1 -0
- package/dist/ProductCard/layouts/iip/index.js +5 -0
- package/dist/ProductCard/layouts/iip/index.js.map +1 -0
- package/dist/ProductCard/layouts/ipo/Content.d.ts +12 -0
- package/dist/ProductCard/layouts/ipo/Content.d.ts.map +1 -0
- package/dist/ProductCard/layouts/ipo/Content.js +22 -0
- package/dist/ProductCard/layouts/ipo/Content.js.map +1 -0
- package/dist/ProductCard/layouts/ipo/Content.styles.css +6 -0
- package/dist/ProductCard/layouts/ipo/Content.styles.d.ts +8 -0
- package/dist/ProductCard/layouts/ipo/Content.styles.d.ts.map +1 -0
- package/dist/ProductCard/layouts/ipo/Content.styles.js +30 -0
- package/dist/ProductCard/layouts/ipo/Content.styles.js.map +1 -0
- package/dist/ProductCard/layouts/ipo/Footer.d.ts +20 -0
- package/dist/ProductCard/layouts/ipo/Footer.d.ts.map +1 -0
- package/dist/ProductCard/layouts/ipo/Footer.js +19 -0
- package/dist/ProductCard/layouts/ipo/Footer.js.map +1 -0
- package/dist/ProductCard/layouts/ipo/FooterDesktop/FooterDesktop.d.ts +9 -0
- package/dist/ProductCard/layouts/ipo/FooterDesktop/FooterDesktop.d.ts.map +1 -0
- package/dist/ProductCard/layouts/ipo/FooterDesktop/FooterDesktop.js +10 -0
- package/dist/ProductCard/layouts/ipo/FooterDesktop/FooterDesktop.js.map +1 -0
- package/dist/ProductCard/layouts/ipo/FooterDesktop/FooterDesktop.styles.css +4 -0
- package/dist/ProductCard/layouts/ipo/FooterDesktop/FooterDesktop.styles.d.ts +5 -0
- package/dist/ProductCard/layouts/ipo/FooterDesktop/FooterDesktop.styles.d.ts.map +1 -0
- package/dist/ProductCard/layouts/ipo/FooterDesktop/FooterDesktop.styles.js +23 -0
- package/dist/ProductCard/layouts/ipo/FooterDesktop/FooterDesktop.styles.js.map +1 -0
- package/dist/ProductCard/layouts/ipo/FooterDesktop/index.d.ts +3 -0
- package/dist/ProductCard/layouts/ipo/FooterDesktop/index.d.ts.map +1 -0
- package/dist/ProductCard/layouts/ipo/FooterDesktop/index.js +2 -0
- package/dist/ProductCard/layouts/ipo/FooterDesktop/index.js.map +1 -0
- package/dist/ProductCard/layouts/ipo/FooterMobile/FooterMobile.d.ts +14 -0
- package/dist/ProductCard/layouts/ipo/FooterMobile/FooterMobile.d.ts.map +1 -0
- package/dist/ProductCard/layouts/ipo/FooterMobile/FooterMobile.js +14 -0
- package/dist/ProductCard/layouts/ipo/FooterMobile/FooterMobile.js.map +1 -0
- package/dist/ProductCard/layouts/ipo/FooterMobile/FooterMobile.styles.css +4 -0
- package/dist/ProductCard/layouts/ipo/FooterMobile/FooterMobile.styles.d.ts +6 -0
- package/dist/ProductCard/layouts/ipo/FooterMobile/FooterMobile.styles.d.ts.map +1 -0
- package/dist/ProductCard/layouts/ipo/FooterMobile/FooterMobile.styles.js +20 -0
- package/dist/ProductCard/layouts/ipo/FooterMobile/FooterMobile.styles.js.map +1 -0
- package/dist/ProductCard/layouts/ipo/FooterMobile/index.d.ts +3 -0
- package/dist/ProductCard/layouts/ipo/FooterMobile/index.d.ts.map +1 -0
- package/dist/ProductCard/layouts/ipo/FooterMobile/index.js +2 -0
- package/dist/ProductCard/layouts/ipo/FooterMobile/index.js.map +1 -0
- package/dist/ProductCard/layouts/ipo/SecurityIcon/ProductCardIpoSecurityIcon.d.ts +14 -0
- package/dist/ProductCard/layouts/ipo/SecurityIcon/ProductCardIpoSecurityIcon.d.ts.map +1 -0
- package/dist/ProductCard/layouts/ipo/SecurityIcon/ProductCardIpoSecurityIcon.js +12 -0
- package/dist/ProductCard/layouts/ipo/SecurityIcon/ProductCardIpoSecurityIcon.js.map +1 -0
- package/dist/ProductCard/layouts/ipo/SecurityIcon/ProductCardIpoSecurityIcon.styles.css +3 -0
- package/dist/ProductCard/layouts/ipo/SecurityIcon/ProductCardIpoSecurityIcon.styles.d.ts +4 -0
- package/dist/ProductCard/layouts/ipo/SecurityIcon/ProductCardIpoSecurityIcon.styles.d.ts.map +1 -0
- package/dist/ProductCard/layouts/ipo/SecurityIcon/ProductCardIpoSecurityIcon.styles.js +5 -0
- package/dist/ProductCard/layouts/ipo/SecurityIcon/ProductCardIpoSecurityIcon.styles.js.map +1 -0
- package/dist/ProductCard/layouts/ipo/SecurityIcon/index.d.ts +3 -0
- package/dist/ProductCard/layouts/ipo/SecurityIcon/index.d.ts.map +1 -0
- package/dist/ProductCard/layouts/ipo/SecurityIcon/index.js +2 -0
- package/dist/ProductCard/layouts/ipo/SecurityIcon/index.js.map +1 -0
- package/dist/ProductCard/layouts/ipo/Title.d.ts +20 -0
- package/dist/ProductCard/layouts/ipo/Title.d.ts.map +1 -0
- package/dist/ProductCard/layouts/ipo/Title.js +20 -0
- package/dist/ProductCard/layouts/ipo/Title.js.map +1 -0
- package/dist/ProductCard/layouts/ipo/Title.styles.css +8 -0
- package/dist/ProductCard/layouts/ipo/Title.styles.d.ts +9 -0
- package/dist/ProductCard/layouts/ipo/Title.styles.d.ts.map +1 -0
- package/dist/ProductCard/layouts/ipo/Title.styles.js +31 -0
- package/dist/ProductCard/layouts/ipo/Title.styles.js.map +1 -0
- package/dist/ProductCard/layouts/ipo/contentUtils.d.ts +11 -0
- package/dist/ProductCard/layouts/ipo/contentUtils.d.ts.map +1 -0
- package/dist/ProductCard/layouts/ipo/contentUtils.js +14 -0
- package/dist/ProductCard/layouts/ipo/contentUtils.js.map +1 -0
- package/dist/ProductCard/layouts/ipo/index.d.ts +9 -0
- package/dist/ProductCard/layouts/ipo/index.d.ts.map +1 -0
- package/dist/ProductCard/layouts/ipo/index.js +5 -0
- package/dist/ProductCard/layouts/ipo/index.js.map +1 -0
- package/dist/ProductCard/layouts/shared/MediaTitle.d.ts +12 -0
- package/dist/ProductCard/layouts/shared/MediaTitle.d.ts.map +1 -0
- package/dist/ProductCard/layouts/shared/MediaTitle.js +20 -0
- package/dist/ProductCard/layouts/shared/MediaTitle.js.map +1 -0
- package/dist/ProductCard/layouts/shared/MediaTitle.styles.css +3 -0
- package/dist/ProductCard/layouts/shared/MediaTitle.styles.d.ts +5 -0
- package/dist/ProductCard/layouts/shared/MediaTitle.styles.d.ts.map +1 -0
- package/dist/ProductCard/layouts/shared/MediaTitle.styles.js +6 -0
- package/dist/ProductCard/layouts/shared/MediaTitle.styles.js.map +1 -0
- package/dist/ProductCard/layouts/shared/index.d.ts +3 -0
- package/dist/ProductCard/layouts/shared/index.d.ts.map +1 -0
- package/dist/ProductCard/layouts/shared/index.js +2 -0
- package/dist/ProductCard/layouts/shared/index.js.map +1 -0
- package/dist/ProductCard/layouts/zhek/Background.d.ts +8 -0
- package/dist/ProductCard/layouts/zhek/Background.d.ts.map +1 -0
- package/dist/ProductCard/layouts/zhek/Background.js +6 -0
- package/dist/ProductCard/layouts/zhek/Background.js.map +1 -0
- package/dist/ProductCard/layouts/zhek/Background.styles.css +6 -0
- package/dist/ProductCard/layouts/zhek/Background.styles.d.ts +3 -0
- package/dist/ProductCard/layouts/zhek/Background.styles.d.ts.map +1 -0
- package/dist/ProductCard/layouts/zhek/Background.styles.js +9 -0
- package/dist/ProductCard/layouts/zhek/Background.styles.js.map +1 -0
- package/dist/ProductCard/layouts/zhek/Footer.d.ts +13 -0
- package/dist/ProductCard/layouts/zhek/Footer.d.ts.map +1 -0
- package/dist/ProductCard/layouts/zhek/Footer.js +18 -0
- package/dist/ProductCard/layouts/zhek/Footer.js.map +1 -0
- package/dist/ProductCard/layouts/zhek/Footer.styles.css +4 -0
- package/dist/ProductCard/layouts/zhek/Footer.styles.d.ts +9 -0
- package/dist/ProductCard/layouts/zhek/Footer.styles.d.ts.map +1 -0
- package/dist/ProductCard/layouts/zhek/Footer.styles.js +20 -0
- package/dist/ProductCard/layouts/zhek/Footer.styles.js.map +1 -0
- package/dist/ProductCard/layouts/zhek/Title.d.ts +5 -0
- package/dist/ProductCard/layouts/zhek/Title.d.ts.map +1 -0
- package/dist/ProductCard/layouts/zhek/Title.js +8 -0
- package/dist/ProductCard/layouts/zhek/Title.js.map +1 -0
- package/dist/ProductCard/layouts/zhek/index.d.ts +7 -0
- package/dist/ProductCard/layouts/zhek/index.d.ts.map +1 -0
- package/dist/ProductCard/layouts/zhek/index.js +4 -0
- package/dist/ProductCard/layouts/zhek/index.js.map +1 -0
- package/dist/ProductCard/shared/ProductCardBackgroundImage.d.ts +13 -0
- package/dist/ProductCard/shared/ProductCardBackgroundImage.d.ts.map +1 -0
- package/dist/ProductCard/shared/ProductCardBackgroundImage.js +51 -0
- package/dist/ProductCard/shared/ProductCardBackgroundImage.js.map +1 -0
- package/dist/ProductCard/shared/ProductCardBackgroundImage.styles.css +6 -0
- package/dist/ProductCard/shared/ProductCardBackgroundImage.styles.d.ts +7 -0
- package/dist/ProductCard/shared/ProductCardBackgroundImage.styles.d.ts.map +1 -0
- package/dist/ProductCard/shared/ProductCardBackgroundImage.styles.js +17 -0
- package/dist/ProductCard/shared/ProductCardBackgroundImage.styles.js.map +1 -0
- package/dist/ProductCard/skeleton/ProductCardSkeleton.d.ts +8 -0
- package/dist/ProductCard/skeleton/ProductCardSkeleton.d.ts.map +1 -0
- package/dist/ProductCard/skeleton/ProductCardSkeleton.js +17 -0
- package/dist/ProductCard/skeleton/ProductCardSkeleton.js.map +1 -0
- package/dist/ProductCard/skeleton/ProductCardSkeleton.styles.css +1 -0
- package/dist/ProductCard/skeleton/ProductCardSkeleton.styles.d.ts +2 -0
- package/dist/ProductCard/skeleton/ProductCardSkeleton.styles.d.ts.map +1 -0
- package/dist/ProductCard/skeleton/ProductCardSkeleton.styles.js +8 -0
- package/dist/ProductCard/skeleton/ProductCardSkeleton.styles.js.map +1 -0
- package/dist/ProductCard/skeleton/variants/common/ProductCardCommonChartSkeleton.d.ts +3 -0
- package/dist/ProductCard/skeleton/variants/common/ProductCardCommonChartSkeleton.d.ts.map +1 -0
- package/dist/ProductCard/skeleton/variants/common/ProductCardCommonChartSkeleton.js +9 -0
- package/dist/ProductCard/skeleton/variants/common/ProductCardCommonChartSkeleton.js.map +1 -0
- package/dist/ProductCard/skeleton/variants/common/ProductCardCommonSkeleton.d.ts +3 -0
- package/dist/ProductCard/skeleton/variants/common/ProductCardCommonSkeleton.d.ts.map +1 -0
- package/dist/ProductCard/skeleton/variants/common/ProductCardCommonSkeleton.js +14 -0
- package/dist/ProductCard/skeleton/variants/common/ProductCardCommonSkeleton.js.map +1 -0
- package/dist/ProductCard/skeleton/variants/common/ProductCardCommonSkeleton.styles.css +5 -0
- package/dist/ProductCard/skeleton/variants/common/ProductCardCommonSkeleton.styles.d.ts +6 -0
- package/dist/ProductCard/skeleton/variants/common/ProductCardCommonSkeleton.styles.d.ts.map +1 -0
- package/dist/ProductCard/skeleton/variants/common/ProductCardCommonSkeleton.styles.js +28 -0
- package/dist/ProductCard/skeleton/variants/common/ProductCardCommonSkeleton.styles.js.map +1 -0
- package/dist/ProductCard/skeleton/variants/iip/ProductCardIipSkeleton.d.ts +3 -0
- package/dist/ProductCard/skeleton/variants/iip/ProductCardIipSkeleton.d.ts.map +1 -0
- package/dist/ProductCard/skeleton/variants/iip/ProductCardIipSkeleton.js +15 -0
- package/dist/ProductCard/skeleton/variants/iip/ProductCardIipSkeleton.js.map +1 -0
- package/dist/ProductCard/skeleton/variants/iip/ProductCardIipSkeleton.styles.css +1 -0
- package/dist/ProductCard/skeleton/variants/iip/ProductCardIipSkeleton.styles.d.ts +2 -0
- package/dist/ProductCard/skeleton/variants/iip/ProductCardIipSkeleton.styles.d.ts.map +1 -0
- package/dist/ProductCard/skeleton/variants/iip/ProductCardIipSkeleton.styles.js +8 -0
- package/dist/ProductCard/skeleton/variants/iip/ProductCardIipSkeleton.styles.js.map +1 -0
- package/dist/ProductCard/skeleton/variants/ipo/ProductCardIpoSkeleton.d.ts +3 -0
- package/dist/ProductCard/skeleton/variants/ipo/ProductCardIpoSkeleton.d.ts.map +1 -0
- package/dist/ProductCard/skeleton/variants/ipo/ProductCardIpoSkeleton.js +15 -0
- package/dist/ProductCard/skeleton/variants/ipo/ProductCardIpoSkeleton.js.map +1 -0
- package/dist/ProductCard/skeleton/variants/ipo/ProductCardIpoSkeleton.styles.css +8 -0
- package/dist/ProductCard/skeleton/variants/ipo/ProductCardIpoSkeleton.styles.d.ts +9 -0
- package/dist/ProductCard/skeleton/variants/ipo/ProductCardIpoSkeleton.styles.d.ts.map +1 -0
- package/dist/ProductCard/skeleton/variants/ipo/ProductCardIpoSkeleton.styles.js +43 -0
- package/dist/ProductCard/skeleton/variants/ipo/ProductCardIpoSkeleton.styles.js.map +1 -0
- package/dist/ProductCard/skeleton/variants/zhek/ProductCardZhekSkeleton.d.ts +3 -0
- package/dist/ProductCard/skeleton/variants/zhek/ProductCardZhekSkeleton.d.ts.map +1 -0
- package/dist/ProductCard/skeleton/variants/zhek/ProductCardZhekSkeleton.js +15 -0
- package/dist/ProductCard/skeleton/variants/zhek/ProductCardZhekSkeleton.js.map +1 -0
- package/dist/ProductCard/skeleton/variants/zhek/ProductCardZhekSkeleton.styles.css +1 -0
- package/dist/ProductCard/skeleton/variants/zhek/ProductCardZhekSkeleton.styles.d.ts +2 -0
- package/dist/ProductCard/skeleton/variants/zhek/ProductCardZhekSkeleton.styles.d.ts.map +1 -0
- package/dist/ProductCard/skeleton/variants/zhek/ProductCardZhekSkeleton.styles.js +8 -0
- package/dist/ProductCard/skeleton/variants/zhek/ProductCardZhekSkeleton.styles.js.map +1 -0
- package/dist/ProductCard/types.d.ts +93 -0
- package/dist/ProductCard/types.d.ts.map +1 -0
- package/dist/ProductCard/types.js +29 -0
- package/dist/ProductCard/types.js.map +1 -0
- package/dist/ProductCard/utils.d.ts +5 -0
- package/dist/ProductCard/utils.d.ts.map +1 -0
- package/dist/ProductCard/utils.js +24 -0
- package/dist/ProductCard/utils.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ProductCard/ProductCardHeader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { Root } from './ProductCardTitle.styles.js';
|
|
3
|
+
export interface ProductCardTitleProps extends Omit<ComponentPropsWithoutRef<typeof Root>, 'className'> {
|
|
4
|
+
/** Дополнительный CSS-класс. */
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const MemoizedProductCardTitle: import("react").NamedExoticComponent<ProductCardTitleProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export default MemoizedProductCardTitle;
|
|
9
|
+
//# sourceMappingURL=ProductCardTitle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCardTitle.d.ts","sourceRoot":"","sources":["../../../src/ProductCard/ProductCardTitle/ProductCardTitle.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEpD,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,wBAAwB,CAAC,OAAO,IAAI,CAAC,EAAE,WAAW,CAAC;IACrG,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAmBD,QAAA,MAAM,wBAAwB,6GAAyB,CAAC;AAGxD,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef, memo } from 'react';
|
|
4
|
+
import classNames from 'clsx';
|
|
5
|
+
import { useProductCardContext } from '../ProductCardContext.js';
|
|
6
|
+
import { Root } from './ProductCardTitle.styles.js';
|
|
7
|
+
const ProductCardTitle = forwardRef((_a, ref) => {
|
|
8
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
9
|
+
const { view } = useProductCardContext();
|
|
10
|
+
return (_jsx(Root, Object.assign({ ref: ref, className: classNames(view, className) }, props)));
|
|
11
|
+
});
|
|
12
|
+
ProductCardTitle.displayName = 'ProductCardTitle';
|
|
13
|
+
const MemoizedProductCardTitle = memo(ProductCardTitle);
|
|
14
|
+
MemoizedProductCardTitle.displayName = 'ProductCardTitle';
|
|
15
|
+
export default MemoizedProductCardTitle;
|
|
16
|
+
//# sourceMappingURL=ProductCardTitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCardTitle.js","sourceRoot":"","sources":["../../../src/ProductCard/ProductCardTitle/ProductCardTitle.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,UAAU,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAOpD,MAAM,gBAAgB,GAAG,UAAU,CAAwC,CAAC,EAG3E,EAAE,GAAG,EAAE,EAAE;QAHkE,EAC1E,SAAS,OAEV,EADI,KAAK,cAFkE,aAG3E,CADS;IAER,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,OAAO,CACL,KAAC,IAAI,kBACH,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,UAAU,CAAC,IAAI,EAAE,SAAS,CAAC,IAClC,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,MAAM,wBAAwB,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC;AACxD,wBAAwB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAE1D,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ui_components_r1ijj84j{min-width:0;padding:0 var(--ui-spacing-l);margin-top:var(--ui-spacing-s);}.ui_components_r1ijj84j.mobile{padding:0 var(--ui-spacing-s);}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCardTitle.styles.d.ts","sourceRoot":"","sources":["../../../src/ProductCard/ProductCardTitle/ProductCardTitle.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,qKAQhB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCardTitle.styles.js","sourceRoot":"","sources":["../../../src/ProductCard/ProductCardTitle/ProductCardTitle.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAA;;eAEf,MAAM,CAAC,OAAO,CAAC,CAAC;gBACf,MAAM,CAAC,OAAO,CAAC,CAAC;;MAE1B,eAAe,CAAC,MAAM;iBACX,MAAM,CAAC,OAAO,CAAC,CAAC;;CAEhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ProductCard/ProductCardTitle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ProductCard/ProductCardTitle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type TagProps } from '../../../Tag/index.js';
|
|
2
|
+
import { ProductCardView } from '../../types.js';
|
|
3
|
+
export interface ProductCardIpoRatingBadgeProps extends Omit<TagProps, 'children' | 'icon' | 'variant' | 'color'> {
|
|
4
|
+
/** Строка рейтинга (например, «AA+»). */
|
|
5
|
+
rating: string;
|
|
6
|
+
/** Вариант отображения для расчёта размера. */
|
|
7
|
+
view?: ProductCardView;
|
|
8
|
+
}
|
|
9
|
+
declare const MemoizedProductCardIpoRatingBadge: import("react").MemoExoticComponent<({ rating, view, title, className, ...props }: ProductCardIpoRatingBadgeProps) => import("react/jsx-runtime").JSX.Element>;
|
|
10
|
+
export default MemoizedProductCardIpoRatingBadge;
|
|
11
|
+
//# sourceMappingURL=ProductCardIpoRatingBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCardIpoRatingBadge.d.ts","sourceRoot":"","sources":["../../../../src/ProductCard/badges/ProductCardIpoRatingBadge/ProductCardIpoRatingBadge.tsx"],"names":[],"mappings":"AAIA,OAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAIjD,MAAM,WAAW,8BAA+B,SAAQ,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAC/G,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB;AAkCD,QAAA,MAAM,iCAAiC,qFA1BpC,8BAA8B,6CA0BwC,CAAC;AAG1E,eAAe,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { memo } from 'react';
|
|
4
|
+
import classNames from 'clsx';
|
|
5
|
+
import StarFilled from '@finam/web-ui-kit-icons/Star/StarFilled';
|
|
6
|
+
import Tooltip from '../../../Tooltip/index.js';
|
|
7
|
+
import Tag from '../../../Tag/index.js';
|
|
8
|
+
import { ProductCardView } from '../../types.js';
|
|
9
|
+
import { getIpoBadgeSizeByView } from '../utils.js';
|
|
10
|
+
import { ratingText, root as rootStyles } from './ProductCardIpoRatingBadge.styles.js';
|
|
11
|
+
const ProductCardIpoRatingBadge = (_a) => {
|
|
12
|
+
var { rating, view = ProductCardView.DESKTOP, title, className } = _a, props = __rest(_a, ["rating", "view", "title", "className"]);
|
|
13
|
+
const tag = (_jsx(Tag, Object.assign({}, props, { className: classNames(rootStyles, className), color: "info", priority: "low", variant: "outline", size: getIpoBadgeSizeByView(view), icon: _jsx(StarFilled, {}), children: _jsx("span", { className: ratingText, children: rating }) })));
|
|
14
|
+
if (title == null) {
|
|
15
|
+
return tag;
|
|
16
|
+
}
|
|
17
|
+
return (_jsx(Tooltip, { title: title, placement: "bottom-start", children: tag }));
|
|
18
|
+
};
|
|
19
|
+
const MemoizedProductCardIpoRatingBadge = memo(ProductCardIpoRatingBadge);
|
|
20
|
+
MemoizedProductCardIpoRatingBadge.displayName = 'ProductCardIpoRatingBadge';
|
|
21
|
+
export default MemoizedProductCardIpoRatingBadge;
|
|
22
|
+
//# sourceMappingURL=ProductCardIpoRatingBadge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCardIpoRatingBadge.js","sourceRoot":"","sources":["../../../../src/ProductCard/badges/ProductCardIpoRatingBadge/ProductCardIpoRatingBadge.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAC7B,OAAO,UAAU,MAAM,MAAM,CAAC;AAC9B,OAAO,UAAU,MAAM,yCAAyC,CAAC;AACjE,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,GAAsB,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,uCAAuC,CAAC;AASvF,MAAM,yBAAyB,GAAG,CAAC,EAMF,EAAE,EAAE;QANF,EACjC,MAAM,EACN,IAAI,GAAG,eAAe,CAAC,OAAO,EAC9B,KAAK,EACL,SAAS,OAEsB,EAD5B,KAAK,cALyB,wCAMlC,CADS;IAER,MAAM,GAAG,GAAG,CACV,KAAC,GAAG,oBACE,KAAK,IACT,SAAS,EAAE,UAAU,CAAC,UAAU,EAAE,SAAS,CAAC,EAC5C,KAAK,EAAC,MAAM,EACZ,QAAQ,EAAC,KAAK,EACd,OAAO,EAAC,SAAS,EACjB,IAAI,EAAE,qBAAqB,CAAC,IAAI,CAAC,EACjC,IAAI,EAAE,KAAC,UAAU,KAAG,YAEpB,eAAM,SAAS,EAAE,UAAU,YAAG,MAAM,GAAQ,IACxC,CACP,CAAC;IAEF,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,OAAO,GAAG,CAAC;IACb,CAAC;IAED,OAAO,CACL,KAAC,OAAO,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAC,cAAc,YAC5C,GAAG,GACI,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,iCAAiC,GAAG,IAAI,CAAC,yBAAyB,CAAC,CAAC;AAC1E,iCAAiC,CAAC,WAAW,GAAG,2BAA2B,CAAC;AAE5E,eAAe,iCAAiC,CAAC"}
|
package/dist/ProductCard/badges/ProductCardIpoRatingBadge/ProductCardIpoRatingBadge.styles.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Стили rating-тега как в tx-web (`Tag.styles.ts`, type="rating"). */
|
|
2
|
+
export declare const root: import("@linaria/core").LinariaClassName;
|
|
3
|
+
export declare const ratingText: import("@linaria/core").LinariaClassName;
|
|
4
|
+
//# sourceMappingURL=ProductCardIpoRatingBadge.styles.d.ts.map
|
package/dist/ProductCard/badges/ProductCardIpoRatingBadge/ProductCardIpoRatingBadge.styles.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCardIpoRatingBadge.styles.d.ts","sourceRoot":"","sources":["../../../../src/ProductCard/badges/ProductCardIpoRatingBadge/ProductCardIpoRatingBadge.styles.ts"],"names":[],"mappings":"AAGA,uEAAuE;AACvE,eAAO,MAAM,IAAI,0CAQhB,CAAC;AAEF,eAAO,MAAM,UAAU,0CAGtB,CAAC"}
|
package/dist/ProductCard/badges/ProductCardIpoRatingBadge/ProductCardIpoRatingBadge.styles.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCardIpoRatingBadge.styles.js","sourceRoot":"","sources":["../../../../src/ProductCard/badges/ProductCardIpoRatingBadge/ProductCardIpoRatingBadge.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAE/D,uEAAuE;AACvE,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAA;;oBAEH,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO;;;;YAIlD,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO;;CAEnD,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA;WAClB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO;;CAEjD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ProductCard/badges/ProductCardIpoRatingBadge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ProductCard/badges/ProductCardIpoRatingBadge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type TagProps } from '../../../Tag/index.js';
|
|
2
|
+
import { ProductCardRiskLevel, ProductCardRiskBadgeVariantEnum, ProductCardView } from '../../types.js';
|
|
3
|
+
declare const ProductCardRiskBadgeSize: {
|
|
4
|
+
readonly L: "l";
|
|
5
|
+
readonly M: "m";
|
|
6
|
+
readonly S: "s";
|
|
7
|
+
readonly XS: "xs";
|
|
8
|
+
};
|
|
9
|
+
type ProductCardRiskBadgeVariant = (typeof ProductCardRiskBadgeVariantEnum)[keyof typeof ProductCardRiskBadgeVariantEnum];
|
|
10
|
+
type ProductCardRiskBadgeSize = NonNullable<TagProps['size']>;
|
|
11
|
+
interface ProductCardRiskBadgeProps extends Omit<TagProps, 'children' | 'icon' | 'color' | 'size' | 'variant'> {
|
|
12
|
+
riskLevel: ProductCardRiskLevel;
|
|
13
|
+
view?: ProductCardView;
|
|
14
|
+
size?: ProductCardRiskBadgeSize;
|
|
15
|
+
variant?: ProductCardRiskBadgeVariant;
|
|
16
|
+
}
|
|
17
|
+
declare const ProductCardRiskBadge: {
|
|
18
|
+
({ riskLevel, view, size, variant, className, ...props }: ProductCardRiskBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
21
|
+
export default ProductCardRiskBadge;
|
|
22
|
+
export { ProductCardRiskBadgeSize };
|
|
23
|
+
//# sourceMappingURL=ProductCardRiskBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCardRiskBadge.d.ts","sourceRoot":"","sources":["../../../../src/ProductCard/badges/ProductCardRiskBadge/ProductCardRiskBadge.tsx"],"names":[],"mappings":"AAGA,OAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,oBAAoB,EAEpB,+BAA+B,EAC/B,eAAe,EAChB,MAAM,gBAAgB,CAAC;AAMxB,QAAA,MAAM,wBAAwB;;;;;CAKpB,CAAC;AAEX,KAAK,2BAA2B,GAAG,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,OAAO,+BAA+B,CAAC,CAAC;AAC1H,KAAK,wBAAwB,GAAG,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;AAE9D,UAAU,yBAA0B,SAAQ,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IAC5G,SAAS,EAAE,oBAAoB,CAAC;IAChC,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC,OAAO,CAAC,EAAE,2BAA2B,CAAC;CACvC;AAcD,QAAA,MAAM,oBAAoB;8DAOvB,yBAAyB;;CA4B3B,CAAC;AAIF,eAAe,oBAAoB,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import classNames from 'clsx';
|
|
4
|
+
import { tagIconWrapper } from '@finam/web-ui-kit-core/styles/tag';
|
|
5
|
+
import Flash from '@finam/web-ui-kit-icons/Small/Flash';
|
|
6
|
+
import Tag from '../../../Tag/index.js';
|
|
7
|
+
import { ProductCardRiskLevel, ProductCardRiskTone, ProductCardRiskBadgeVariantEnum, ProductCardView, } from '../../types.js';
|
|
8
|
+
import { root, Icons, } from './ProductCardRiskBadge.styles.js';
|
|
9
|
+
const ProductCardRiskBadgeSize = {
|
|
10
|
+
L: 'l',
|
|
11
|
+
M: 'm',
|
|
12
|
+
S: 's',
|
|
13
|
+
XS: 'xs',
|
|
14
|
+
};
|
|
15
|
+
const mapRiskToTone = {
|
|
16
|
+
[ProductCardRiskLevel.HIGH]: ProductCardRiskTone.NEGATIVE,
|
|
17
|
+
[ProductCardRiskLevel.MEDIUM]: ProductCardRiskTone.WARNING,
|
|
18
|
+
[ProductCardRiskLevel.LOW]: ProductCardRiskTone.POSITIVE,
|
|
19
|
+
};
|
|
20
|
+
const mapToneToTagColor = {
|
|
21
|
+
[ProductCardRiskTone.NEGATIVE]: 'danger',
|
|
22
|
+
[ProductCardRiskTone.WARNING]: 'warning',
|
|
23
|
+
[ProductCardRiskTone.POSITIVE]: 'success',
|
|
24
|
+
};
|
|
25
|
+
const ProductCardRiskBadge = (_a) => {
|
|
26
|
+
var { riskLevel, view = ProductCardView.DESKTOP, size, variant = ProductCardRiskBadgeVariantEnum.FILL, className } = _a, props = __rest(_a, ["riskLevel", "view", "size", "variant", "className"]);
|
|
27
|
+
const resolvedSize = size !== null && size !== void 0 ? size : (view === ProductCardView.MOBILE
|
|
28
|
+
? ProductCardRiskBadgeSize.XS
|
|
29
|
+
: ProductCardRiskBadgeSize.S);
|
|
30
|
+
const tone = mapRiskToTone[riskLevel];
|
|
31
|
+
const resolvedVariant = variant === ProductCardRiskBadgeVariantEnum.GHOST
|
|
32
|
+
? ProductCardRiskBadgeVariantEnum.OUTLINE
|
|
33
|
+
: variant;
|
|
34
|
+
const resolvedPriority = variant === ProductCardRiskBadgeVariantEnum.FILL
|
|
35
|
+
? 'low'
|
|
36
|
+
: 'high';
|
|
37
|
+
return (_jsx(Tag, Object.assign({}, props, { className: classNames(root, className, riskLevel, { ghost: variant === ProductCardRiskBadgeVariantEnum.GHOST }), color: mapToneToTagColor[tone], priority: resolvedPriority, size: resolvedSize, variant: resolvedVariant, children: _jsxs(Icons, { className: tagIconWrapper.center, children: [_jsx(Flash, { color: "inherit" }), _jsx(Flash, { color: "inherit" }), _jsx(Flash, { color: "inherit" })] }) })));
|
|
38
|
+
};
|
|
39
|
+
ProductCardRiskBadge.displayName = 'ProductCardRiskBadge';
|
|
40
|
+
export default ProductCardRiskBadge;
|
|
41
|
+
export { ProductCardRiskBadgeSize };
|
|
42
|
+
//# sourceMappingURL=ProductCardRiskBadge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCardRiskBadge.js","sourceRoot":"","sources":["../../../../src/ProductCard/badges/ProductCardRiskBadge/ProductCardRiskBadge.tsx"],"names":[],"mappings":";;AAAA,OAAO,UAAU,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,KAAK,MAAM,qCAAqC,CAAC;AACxD,OAAO,GAAsB,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,+BAA+B,EAC/B,eAAe,GAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,IAAI,EACJ,KAAK,GACN,MAAM,kCAAkC,CAAC;AAE1C,MAAM,wBAAwB,GAAG;IAC/B,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,EAAE,EAAE,IAAI;CACA,CAAC;AAYX,MAAM,aAAa,GAAG;IACpB,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,mBAAmB,CAAC,QAAQ;IACzD,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC,OAAO;IAC1D,CAAC,oBAAoB,CAAC,GAAG,CAAC,EAAE,mBAAmB,CAAC,QAAQ;CACzD,CAAC;AAEF,MAAM,iBAAiB,GAAgE;IACrF,CAAC,mBAAmB,CAAC,QAAQ,CAAC,EAAE,QAAQ;IACxC,CAAC,mBAAmB,CAAC,OAAO,CAAC,EAAE,SAAS;IACxC,CAAC,mBAAmB,CAAC,QAAQ,CAAC,EAAE,SAAS;CAC1C,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,EAOF,EAAE,EAAE;QAPF,EAC5B,SAAS,EACT,IAAI,GAAG,eAAe,CAAC,OAAO,EAC9B,IAAI,EACJ,OAAO,GAAG,+BAA+B,CAAC,IAAI,EAC9C,SAAS,OAEiB,EADvB,KAAK,cANoB,qDAO7B,CADS;IAER,MAAM,YAAY,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,CAAC,IAAI,KAAK,eAAe,CAAC,MAAM;QAC3D,CAAC,CAAC,wBAAwB,CAAC,EAAE;QAC7B,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;IAChC,MAAM,IAAI,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC;IACtC,MAAM,eAAe,GAAqC,OAAO,KAAK,+BAA+B,CAAC,KAAK;QACzG,CAAC,CAAC,+BAA+B,CAAC,OAAO;QACzC,CAAC,CAAC,OAAO,CAAC;IACZ,MAAM,gBAAgB,GAAsC,OAAO,KAAK,+BAA+B,CAAC,IAAI;QAC1G,CAAC,CAAC,KAAK;QACP,CAAC,CAAC,MAAM,CAAC;IAEX,OAAO,CACL,KAAC,GAAG,oBACE,KAAK,IACT,SAAS,EAAE,UAAU,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,OAAO,KAAK,+BAA+B,CAAC,KAAK,EAAE,CAAC,EAC/G,KAAK,EAAE,iBAAiB,CAAC,IAAI,CAAC,EAC9B,QAAQ,EAAE,gBAAgB,EAC1B,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,eAAe,YAExB,MAAC,KAAK,IAAC,SAAS,EAAE,cAAc,CAAC,MAAM,aACrC,KAAC,KAAK,IAAC,KAAK,EAAC,SAAS,GAAG,EACzB,KAAC,KAAK,IAAC,KAAK,EAAC,SAAS,GAAG,EACzB,KAAC,KAAK,IAAC,KAAK,EAAC,SAAS,GAAG,IACnB,IACJ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,WAAW,GAAG,sBAAsB,CAAC;AAE1D,eAAe,oBAAoB,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.ui_components_r1s4wk7a.ui_core_s0fw3c{padding:var(--ui-spacing-2xs);border-radius:var(--ui-radius-badgeL);}.ui_components_r1s4wk7a.ui_core_s0fw3d{padding:3px;border-radius:var(--ui-radius-badgeM);}.ui_components_r1s4wk7a.ui_core_s0fw3e{padding:3px;border-radius:var(--ui-radius-badgeS);}.ui_components_r1s4wk7a.ui_core_s0fw3f{padding:2px;border-radius:var(--ui-radius-badgeS);}.ui_components_r1s4wk7a.ui_core_s0fw3b.ui_core_s0fw3c{padding:calc(var(--ui-spacing-2xs) - 1px);}.ui_components_r1s4wk7a.ui_core_s0fw3b.ui_core_s0fw3d{padding:2px;}.ui_components_r1s4wk7a.ui_core_s0fw3b.ui_core_s0fw3e{padding:2px;}.ui_components_r1s4wk7a.ui_core_s0fw3b.ui_core_s0fw3f{padding:1px;}.ui_components_r1s4wk7a.ui_core_s0fw3b.ui_core_s0fw34:not(.ghost){border-color:var(--ui-colors-border-negative);}.ui_components_r1s4wk7a.ui_core_s0fw3b.ui_core_s0fw35:not(.ghost){border-color:var(--ui-colors-border-warning);}.ui_components_r1s4wk7a.ui_core_s0fw3b.ui_core_s0fw33:not(.ghost){border-color:var(--ui-colors-border-positive);}.ui_components_r1s4wk7a.ghost{background:transparent;border-color:transparent;}
|
|
2
|
+
.ui_components_ii0qy9n{display:inline-flex;align-items:center;}.medium .ui_components_ii0qy9n>:last-child{opacity:0.5;}.low .ui_components_ii0qy9n>:nth-child(2),.low .ui_components_ii0qy9n>:nth-child(3){opacity:0.5;}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const root: import("@linaria/core").LinariaClassName;
|
|
2
|
+
export declare const Icons: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
3
|
+
//# sourceMappingURL=ProductCardRiskBadge.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCardRiskBadge.styles.d.ts","sourceRoot":"","sources":["../../../../src/ProductCard/badges/ProductCardRiskBadge/ProductCardRiskBadge.styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,IAAI,0CAqDhB,CAAC;AAEF,eAAO,MAAM,KAAK,uKAYjB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { styled } from '@linaria/react';
|
|
2
|
+
export const root = "ui_components_r1s4wk7a";
|
|
3
|
+
export const Icons = /*#__PURE__*/styled('span')({
|
|
4
|
+
name: "Icons",
|
|
5
|
+
class: "ui_components_ii0qy9n",
|
|
6
|
+
propsAsIs: false
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
import "./ProductCardRiskBadge.styles.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCardRiskBadge.styles.js","sourceRoot":"","sources":["../../../../src/ProductCard/badges/ProductCardRiskBadge/ProductCardRiskBadge.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAE/D,MAAM,iBAAiB,GAAG,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC;AACvD,MAAM,oBAAoB,GAAG,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC;AAC7D,MAAM,kBAAkB,GAAG,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC;AAEzD,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAA;MACjB,iBAAiB,CAAC,CAAC;eACV,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;qBACf,MAAM,CAAC,MAAM,CAAC,MAAM;;;MAGnC,iBAAiB,CAAC,CAAC;;qBAEJ,MAAM,CAAC,MAAM,CAAC,MAAM;;;MAGnC,iBAAiB,CAAC,CAAC;;qBAEJ,MAAM,CAAC,MAAM,CAAC,MAAM;;;MAGnC,iBAAiB,CAAC,EAAE;;qBAEL,MAAM,CAAC,MAAM,CAAC,MAAM;;;MAGnC,oBAAoB,CAAC,OAAO,IAAI,iBAAiB,CAAC,CAAC;oBACrC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;;;MAGnC,oBAAoB,CAAC,OAAO,IAAI,iBAAiB,CAAC,CAAC;;;;MAInD,oBAAoB,CAAC,OAAO,IAAI,iBAAiB,CAAC,CAAC;;;;MAInD,oBAAoB,CAAC,OAAO,IAAI,iBAAiB,CAAC,EAAE;;;;MAIpD,oBAAoB,CAAC,OAAO,IAAI,kBAAkB,CAAC,MAAM;oBAC3C,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO;;;MAG3D,oBAAoB,CAAC,OAAO,IAAI,kBAAkB,CAAC,OAAO;oBAC5C,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO;;;MAG1D,oBAAoB,CAAC,OAAO,IAAI,kBAAkB,CAAC,OAAO;oBAC5C,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO;;;;;;;CAOhE,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAA;;;;;;;;;;;;CAY/B,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default } from './ProductCardRiskBadge.js';
|
|
2
|
+
export { ProductCardRiskBadgeSize } from './ProductCardRiskBadge.js';
|
|
3
|
+
export { ProductCardRiskBadgeVariantEnum, type ProductCardRiskTone, type ProductCardRiskBadgeVariant, } from '../../types.js';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ProductCard/badges/ProductCardRiskBadge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EACL,+BAA+B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,GACjC,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ProductCard/badges/ProductCardRiskBadge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EACL,+BAA+B,GAGhC,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
.ui_components_a123wm6b{border-radius:var(--ui-radius-badgeS);background:linear-gradient(
|
|
2
|
+
303deg,
|
|
3
|
+
#feda3b -16.34%,
|
|
4
|
+
#ef5541 27.28%,
|
|
5
|
+
#801fdb 68.81%,
|
|
6
|
+
#7e2a89 98.5%
|
|
7
|
+
);color:var(--ui-colors-text-ondark);padding:var(--ui-spacing-micro) var(--ui-spacing-2xs);}
|
|
8
|
+
.ui_components_c11a11qa{align-items:center;justify-content:center;}
|
|
9
|
+
.ui_components_crhbv61{display:block;}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ProductCardLayoutId, ProductCardView } from '../types.js';
|
|
2
|
+
import type { Size } from '../../Tag/types.js';
|
|
3
|
+
export declare const getIpoBadgeSizeByView: (view: string) => Size;
|
|
4
|
+
/** Размер `Tag` для бейджей в шапке ProductCard (слоты, risk, placeholder). */
|
|
5
|
+
export declare const getHeaderBadgeSize: (layoutId: ProductCardLayoutId, view: ProductCardView) => Size;
|
|
6
|
+
export declare const accentBadge: import("@linaria/core").LinariaClassName;
|
|
7
|
+
export declare const centeredTag: import("@linaria/core").LinariaClassName;
|
|
8
|
+
export declare const centeredIcon: import("@linaria/core").LinariaClassName;
|
|
9
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/ProductCard/badges/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAS/C,eAAO,MAAM,qBAAqB,GAAI,MAAM,MAAM,KAAG,IAA0D,CAAC;AAwBhH,+EAA+E;AAC/E,eAAO,MAAM,kBAAkB,GAC7B,UAAU,mBAAmB,EAC7B,MAAM,eAAe,KACpB,IAAyC,CAAC;AAE7C,eAAO,MAAM,WAAW,0CAWvB,CAAC;AAEF,eAAO,MAAM,WAAW,0CAGvB,CAAC;AAEF,eAAO,MAAM,YAAY,0CAExB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ProductCardLayoutId, ProductCardView } from '../types.js';
|
|
2
|
+
const IPO_BADGE_SIZE_BY_VIEW = {
|
|
3
|
+
desktop: 's',
|
|
4
|
+
mobile: 's'
|
|
5
|
+
};
|
|
6
|
+
const IPO_BADGE_TAG_SIZE = IPO_BADGE_SIZE_BY_VIEW.desktop;
|
|
7
|
+
export const getIpoBadgeSizeByView = view => {
|
|
8
|
+
var _a;
|
|
9
|
+
return (_a = IPO_BADGE_SIZE_BY_VIEW[view]) !== null && _a !== void 0 ? _a : IPO_BADGE_TAG_SIZE;
|
|
10
|
+
};
|
|
11
|
+
const HEADER_BADGE_SIZE = {
|
|
12
|
+
[ProductCardLayoutId.COMMON]: {
|
|
13
|
+
[ProductCardView.DESKTOP]: 's',
|
|
14
|
+
[ProductCardView.MOBILE]: 'xs'
|
|
15
|
+
},
|
|
16
|
+
[ProductCardLayoutId.IIP]: {
|
|
17
|
+
[ProductCardView.DESKTOP]: 's',
|
|
18
|
+
[ProductCardView.MOBILE]: 'xs'
|
|
19
|
+
},
|
|
20
|
+
[ProductCardLayoutId.ZHEK]: {
|
|
21
|
+
[ProductCardView.DESKTOP]: 's',
|
|
22
|
+
[ProductCardView.MOBILE]: 'xs'
|
|
23
|
+
},
|
|
24
|
+
[ProductCardLayoutId.IPO]: {
|
|
25
|
+
[ProductCardView.DESKTOP]: 'xs',
|
|
26
|
+
[ProductCardView.MOBILE]: 'xs'
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
/** Размер `Tag` для бейджей в шапке ProductCard (слоты, risk, placeholder). */
|
|
30
|
+
export const getHeaderBadgeSize = (layoutId, view) => HEADER_BADGE_SIZE[layoutId][view];
|
|
31
|
+
export const accentBadge = "ui_components_a123wm6b";
|
|
32
|
+
export const centeredTag = "ui_components_c11a11qa";
|
|
33
|
+
export const centeredIcon = "ui_components_crhbv61";
|
|
34
|
+
|
|
35
|
+
import "./utils.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/ProductCard/badges/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnE,MAAM,sBAAsB,GAAyB;IACnD,OAAO,EAAE,GAAG;IACZ,MAAM,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,kBAAkB,GAAS,sBAAsB,CAAC,OAAO,CAAC;AAEhE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,IAAY,EAAQ,EAAE,WAAC,OAAA,MAAA,sBAAsB,CAAC,IAAI,CAAC,mCAAI,kBAAkB,CAAA,EAAA,CAAC;AAEhH,MAAM,iBAAiB,GAGnB;IACF,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAE;QAC5B,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,GAAG;QAC9B,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,IAAI;KAC/B;IACD,CAAC,mBAAmB,CAAC,GAAG,CAAC,EAAE;QACzB,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,GAAG;QAC9B,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,IAAI;KAC/B;IACD,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE;QAC1B,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,GAAG;QAC9B,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,IAAI;KAC/B;IACD,CAAC,mBAAmB,CAAC,GAAG,CAAC,EAAE;QACzB,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,IAAI;QAC/B,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,IAAI;KAC/B;CACF,CAAC;AAEF,+EAA+E;AAC/E,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,QAA6B,EAC7B,IAAqB,EACf,EAAE,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC;AAE7C,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;qBACT,MAAM,CAAC,MAAM,CAAC,MAAM;;;;;;;;aAQ5B,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO;eACvC,MAAM,CAAC,OAAO,CAAC,KAAK,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;CAC3D,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;;;CAG7B,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAA;;CAE9B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { ProductCardProvider } from './ProductCardContext.js';
|
|
2
|
+
export { default } from './ProductCard.js';
|
|
3
|
+
export { default as ProductCardHeader } from './ProductCardHeader/index.js';
|
|
4
|
+
export { default as ProductCardBadgesHeader } from './ProductCardBadgesHeader/index.js';
|
|
5
|
+
export type { ProductCardBadgesHeaderProps } from './ProductCardBadgesHeader/index.js';
|
|
6
|
+
export { default as ProductCardTitle } from './ProductCardTitle/index.js';
|
|
7
|
+
export { default as ProductCardContent } from './ProductCardContent/index.js';
|
|
8
|
+
export { default as ProductCardFooter } from './ProductCardFooter/index.js';
|
|
9
|
+
export { default as ProductCardRiskBadge } from './badges/ProductCardRiskBadge/index.js';
|
|
10
|
+
export { default as ProductCardIpoRatingBadge } from './badges/ProductCardIpoRatingBadge/index.js';
|
|
11
|
+
export { ProductCardCommonTitle, ProductCardCommonContent, ProductCardCommonFooter, type ProductCardCommonTitleProps, type ProductCardCommonContentProps, type ProductCardCommonFooterProps, } from './layouts/common/index.js';
|
|
12
|
+
export { productCardChartPresets, type ProductCardChartPreset, type ProductCardChartTrend, } from './layouts/common/index.js';
|
|
13
|
+
export { ProductCardIpoTitle, ProductCardIpoContent, ProductCardIpoFooter, ProductCardIpoFooterDesktop, ProductCardIpoFooterMobile, ProductCardIpoSecurityIcon, type ProductCardIpoTitleProps, type ProductCardIpoContentProps, type ProductCardIpoContentRow, type ProductCardIpoContentRowId, type ProductCardIpoFooterProps, type ProductCardIpoFooterDesktopProps, type ProductCardIpoFooterMobileProps, type ProductCardIpoSecurityIconProps, type ProductCardIpoSecurityIconSize, } from './layouts/ipo/index.js';
|
|
14
|
+
export { ProductCardMediaTitle, type ProductCardMediaTitleProps, type ProductCardMediaTitleLayout, } from './layouts/shared/index.js';
|
|
15
|
+
export { ProductCardIipTitle, ProductCardIipFooter, ProductCardIipBackground, ProductCardIipSecurityIcons, type ProductCardIipTitleProps, type ProductCardIipFooterProps, type ProductCardIipBackgroundProps, type ProductCardIipSecurityIconItem, type ProductCardIipSecurityIconsProps, } from './layouts/iip/index.js';
|
|
16
|
+
export { ProductCardZhekTitle, ProductCardZhekFooter, ProductCardZhekBackground, type ProductCardZhekTitleProps, type ProductCardZhekFooterProps, type ProductCardZhekBackgroundProps, } from './layouts/zhek/index.js';
|
|
17
|
+
export type { ProductCardProps, ProductCardIpoNotification, ProductCardIpoStatus, ProductCardIpoStatusColor, } from './types.js';
|
|
18
|
+
export { ProductCardRiskBadgeSize, } from './badges/ProductCardRiskBadge/index.js';
|
|
19
|
+
export { getIpoBadgeSizeByView, getHeaderBadgeSize, } from './badges/utils.js';
|
|
20
|
+
export { ProductCardLayoutId, ProductCardRiskLevel, ProductCardView, type ProductCardDesktopSize, } from './types.js';
|
|
21
|
+
export { type ProductCardRiskTone, ProductCardRiskBadgeVariantEnum, type ProductCardRiskBadgeVariant, } from './types.js';
|
|
22
|
+
export { accentBadge, centeredTag, centeredIcon, } from './badges/utils.js';
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ProductCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AACxF,YAAY,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,GAClC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,uBAAuB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,EACrC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,8BAA8B,GACpC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,qBAAqB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,GACjC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,2BAA2B,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,GACtC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,GACpC,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,gBAAgB,EAChB,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,wBAAwB,GACzB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,EACf,KAAK,sBAAsB,GAC5B,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,KAAK,mBAAmB,EACxB,+BAA+B,EAC/B,KAAK,2BAA2B,GACjC,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,WAAW,EACX,WAAW,EACX,YAAY,GACb,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { ProductCardProvider } from './ProductCardContext.js';
|
|
2
|
+
export { default } from './ProductCard.js';
|
|
3
|
+
export { default as ProductCardHeader } from './ProductCardHeader/index.js';
|
|
4
|
+
export { default as ProductCardBadgesHeader } from './ProductCardBadgesHeader/index.js';
|
|
5
|
+
export { default as ProductCardTitle } from './ProductCardTitle/index.js';
|
|
6
|
+
export { default as ProductCardContent } from './ProductCardContent/index.js';
|
|
7
|
+
export { default as ProductCardFooter } from './ProductCardFooter/index.js';
|
|
8
|
+
export { default as ProductCardRiskBadge } from './badges/ProductCardRiskBadge/index.js';
|
|
9
|
+
export { default as ProductCardIpoRatingBadge } from './badges/ProductCardIpoRatingBadge/index.js';
|
|
10
|
+
export { ProductCardCommonTitle, ProductCardCommonContent, ProductCardCommonFooter, } from './layouts/common/index.js';
|
|
11
|
+
export { productCardChartPresets, } from './layouts/common/index.js';
|
|
12
|
+
export { ProductCardIpoTitle, ProductCardIpoContent, ProductCardIpoFooter, ProductCardIpoFooterDesktop, ProductCardIpoFooterMobile, ProductCardIpoSecurityIcon, } from './layouts/ipo/index.js';
|
|
13
|
+
export { ProductCardMediaTitle, } from './layouts/shared/index.js';
|
|
14
|
+
export { ProductCardIipTitle, ProductCardIipFooter, ProductCardIipBackground, ProductCardIipSecurityIcons, } from './layouts/iip/index.js';
|
|
15
|
+
export { ProductCardZhekTitle, ProductCardZhekFooter, ProductCardZhekBackground, } from './layouts/zhek/index.js';
|
|
16
|
+
export { ProductCardRiskBadgeSize, } from './badges/ProductCardRiskBadge/index.js';
|
|
17
|
+
export { getIpoBadgeSizeByView, getHeaderBadgeSize, } from './badges/utils.js';
|
|
18
|
+
export { ProductCardLayoutId, ProductCardRiskLevel, ProductCardView, } from './types.js';
|
|
19
|
+
export { ProductCardRiskBadgeVariantEnum, } from './types.js';
|
|
20
|
+
export { accentBadge, centeredTag, centeredIcon, } from './badges/utils.js';
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ProductCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAExF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,GAIxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,uBAAuB,GAGxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,GAU3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,qBAAqB,GAGtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,2BAA2B,GAM5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,GAI1B,MAAM,yBAAyB,CAAC;AAOjC,OAAO,EACL,wBAAwB,GACzB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,GAEhB,MAAM,YAAY,CAAC;AACpB,OAAO,EAEL,+BAA+B,GAEhC,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,WAAW,EACX,WAAW,EACX,YAAY,GACb,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ProductCardLayoutId, type ProductCardDesktopSize } from './types.js';
|
|
2
|
+
interface ProductCardLayoutConfig {
|
|
3
|
+
desktopSize: ProductCardDesktopSize;
|
|
4
|
+
mobileSize: ProductCardDesktopSize;
|
|
5
|
+
}
|
|
6
|
+
export declare const getProductCardLayoutConfig: (layoutId: ProductCardLayoutId) => ProductCardLayoutConfig;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=layoutConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layoutConfig.d.ts","sourceRoot":"","sources":["../../src/ProductCard/layoutConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,KAAK,sBAAsB,EAC5B,MAAM,YAAY,CAAC;AAEpB,UAAU,uBAAuB;IAC/B,WAAW,EAAE,sBAAsB,CAAC;IACpC,UAAU,EAAE,sBAAsB,CAAC;CACpC;AASD,eAAO,MAAM,0BAA0B,GAAI,UAAU,mBAAmB,4BAA8B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ProductCardLayoutId, } from './types.js';
|
|
2
|
+
const layoutConfigMap = {
|
|
3
|
+
[ProductCardLayoutId.COMMON]: { desktopSize: 'l', mobileSize: 'm' },
|
|
4
|
+
[ProductCardLayoutId.IPO]: { desktopSize: 'l', mobileSize: 'l' },
|
|
5
|
+
[ProductCardLayoutId.IIP]: { desktopSize: 'm', mobileSize: 'm' },
|
|
6
|
+
[ProductCardLayoutId.ZHEK]: { desktopSize: 'm', mobileSize: 'm' },
|
|
7
|
+
};
|
|
8
|
+
export const getProductCardLayoutConfig = (layoutId) => layoutConfigMap[layoutId];
|
|
9
|
+
//# sourceMappingURL=layoutConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layoutConfig.js","sourceRoot":"","sources":["../../src/ProductCard/layoutConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAEpB,MAAM,YAAY,CAAC;AAOpB,MAAM,eAAe,GAAyD;IAC5E,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAE,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE;IACnE,CAAC,mBAAmB,CAAC,GAAG,CAAC,EAAE,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE;IAChE,CAAC,mBAAmB,CAAC,GAAG,CAAC,EAAE,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE;IAChE,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE;CAClE,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,QAA6B,EAAE,EAAE,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ProductCardPoint } from '../../types.js';
|
|
2
|
+
export interface ProductCardCommonContentProps {
|
|
3
|
+
/** Точки графика доходности. */
|
|
4
|
+
chart?: ProductCardPoint[];
|
|
5
|
+
}
|
|
6
|
+
declare const MemoizedProductCardCommonContent: import("react").MemoExoticComponent<({ chart }: ProductCardCommonContentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default MemoizedProductCardCommonContent;
|
|
8
|
+
//# sourceMappingURL=Content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../src/ProductCard/layouts/common/Content.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAYvD,MAAM,WAAW,6BAA6B;IAC5C,gCAAgC;IAChC,KAAK,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC5B;AA2CD,QAAA,MAAM,gCAAgC,kDAzCO,6BAA6B,6CAyCH,CAAC;AAGxE,eAAe,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { memo, useId } from 'react';
|
|
3
|
+
import ProductCardContent from '../../ProductCardContent/index.js';
|
|
4
|
+
import { useProductCardContext } from '../../ProductCardContext.js';
|
|
5
|
+
import { buildChartPolyline, getProductCardChartColors, getProductCardChartTrend, normalizeChartPoints, } from './chartUtils.js';
|
|
6
|
+
import { ChartSvg, ChartWrap, } from './Content.styles.js';
|
|
7
|
+
const ProductCardCommonContent = ({ chart }) => {
|
|
8
|
+
const { view } = useProductCardContext();
|
|
9
|
+
const gradientId = useId();
|
|
10
|
+
const points = normalizeChartPoints(chart);
|
|
11
|
+
const hasChart = points.length >= 2;
|
|
12
|
+
if (!hasChart) {
|
|
13
|
+
return _jsx(ProductCardContent, {});
|
|
14
|
+
}
|
|
15
|
+
const trend = getProductCardChartTrend(points);
|
|
16
|
+
const colors = getProductCardChartColors(trend);
|
|
17
|
+
const chartPolyline = buildChartPolyline(points);
|
|
18
|
+
return (_jsx(ProductCardContent, { children: _jsx(ChartWrap, { className: view, children: _jsxs(ChartSvg, { viewBox: "0 0 100 32", preserveAspectRatio: "none", children: [_jsx("defs", { children: _jsxs("linearGradient", { id: gradientId, x1: "0%", y1: "0%", x2: "0%", y2: "100%", children: [_jsx("stop", { offset: "0%", stopColor: colors.fillStart }), _jsx("stop", { offset: "100%", stopColor: colors.fillEnd })] }) }), _jsx("polygon", { points: `${chartPolyline} 100,32 0,32`, fill: `url(#${gradientId})` }), _jsx("polyline", { points: chartPolyline, fill: "none", stroke: colors.stroke, strokeWidth: "0.8", vectorEffect: "non-scaling-stroke" })] }) }) }));
|
|
19
|
+
};
|
|
20
|
+
const MemoizedProductCardCommonContent = memo(ProductCardCommonContent);
|
|
21
|
+
MemoizedProductCardCommonContent.displayName = 'ProductCardCommonContent';
|
|
22
|
+
export default MemoizedProductCardCommonContent;
|
|
23
|
+
//# sourceMappingURL=Content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../../src/ProductCard/layouts/common/Content.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,EACL,kBAAkB,EAClB,yBAAyB,EACzB,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,QAAQ,EACR,SAAS,GACV,MAAM,qBAAqB,CAAC;AAO7B,MAAM,wBAAwB,GAAG,CAAC,EAAE,KAAK,EAAiC,EAAE,EAAE;IAC5E,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACzC,MAAM,UAAU,GAAG,KAAK,EAAE,CAAC;IAC3B,MAAM,MAAM,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC;IAEpC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,KAAC,kBAAkB,KAAG,CAAC;IAChC,CAAC;IAED,MAAM,KAAK,GAAG,wBAAwB,CAAC,MAAM,CAAC,CAAC;IAC/C,MAAM,MAAM,GAAG,yBAAyB,CAAC,KAAK,CAAC,CAAC;IAChD,MAAM,aAAa,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAEjD,OAAO,CACL,KAAC,kBAAkB,cACjB,KAAC,SAAS,IAAC,SAAS,EAAE,IAAI,YACxB,MAAC,QAAQ,IAAC,OAAO,EAAC,YAAY,EAAC,mBAAmB,EAAC,MAAM,aACvD,yBACE,0BAAgB,EAAE,EAAE,UAAU,EAAE,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,MAAM,aAC/D,eAAM,MAAM,EAAC,IAAI,EAAC,SAAS,EAAE,MAAM,CAAC,SAAS,GAAI,EACjD,eAAM,MAAM,EAAC,MAAM,EAAC,SAAS,EAAE,MAAM,CAAC,OAAO,GAAI,IAClC,GACZ,EACP,kBACE,MAAM,EAAE,GAAG,aAAa,cAAc,EACtC,IAAI,EAAE,QAAQ,UAAU,GAAG,GAC3B,EACF,mBACE,MAAM,EAAE,aAAa,EACrB,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,WAAW,EAAC,KAAK,EACjB,YAAY,EAAC,oBAAoB,GACjC,IACO,GACD,GACO,CACtB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,gCAAgC,GAAG,IAAI,CAAC,wBAAwB,CAAC,CAAC;AACxE,gCAAgC,CAAC,WAAW,GAAG,0BAA0B,CAAC;AAE1E,eAAe,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.ui_components_c1y3j5e9{height:132px;margin-top:var(--ui-spacing-s);border-radius:0;overflow:hidden;display:flex;align-items:flex-end;position:relative;background:var(--ui-colors-bg-base);}.ui_components_c1y3j5e9.mobile{height:76px;margin-top:var(--ui-spacing-none);}
|
|
2
|
+
.ui_components_c16w9axi{width:100%;height:100%;display:block;}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const ChartWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
|
+
export declare const ChartSvg: import("@linaria/react").StyledComponent<import("react").SVGProps<SVGSVGElement> & Record<never, unknown>>;
|
|
3
|
+
//# sourceMappingURL=Content.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Content.styles.d.ts","sourceRoot":"","sources":["../../../../src/ProductCard/layouts/common/Content.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,qKAcrB,CAAC;AAEF,eAAO,MAAM,QAAQ,4GAIpB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { styled } from '@linaria/react';
|
|
2
|
+
export const ChartWrap = /*#__PURE__*/styled('div')({
|
|
3
|
+
name: "ChartWrap",
|
|
4
|
+
class: "ui_components_c1y3j5e9",
|
|
5
|
+
propsAsIs: false
|
|
6
|
+
});
|
|
7
|
+
export const ChartSvg = /*#__PURE__*/styled('svg')({
|
|
8
|
+
name: "ChartSvg",
|
|
9
|
+
class: "ui_components_c16w9axi",
|
|
10
|
+
propsAsIs: false
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
import "./Content.styles.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Content.styles.js","sourceRoot":"","sources":["../../../../src/ProductCard/layouts/common/Content.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA;;gBAEnB,MAAM,CAAC,OAAO,CAAC,CAAC;;;;;;gBAMhB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO;;MAE/C,eAAe,CAAC,MAAM;;kBAEV,MAAM,CAAC,OAAO,CAAC,IAAI;;CAEpC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIjC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ProductCardCommonFooterProps {
|
|
2
|
+
/** Значение среднегодовой доходности. */
|
|
3
|
+
annualYield: string;
|
|
4
|
+
/** Подпись к доходности (desktop). */
|
|
5
|
+
annualYieldLabel?: string;
|
|
6
|
+
/** Минимальная сумма вложения. */
|
|
7
|
+
minAmount: string;
|
|
8
|
+
/** Подпись к минимальной сумме (desktop). */
|
|
9
|
+
minAmountLabel?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const MemoizedProductCardCommonFooter: import("react").MemoExoticComponent<({ annualYield, annualYieldLabel, minAmount, minAmountLabel, }: ProductCardCommonFooterProps) => import("react/jsx-runtime").JSX.Element>;
|
|
12
|
+
export default MemoizedProductCardCommonFooter;
|
|
13
|
+
//# sourceMappingURL=Footer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../src/ProductCard/layouts/common/Footer.tsx"],"names":[],"mappings":"AAYA,MAAM,WAAW,4BAA4B;IAC3C,yCAAyC;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,6CAA6C;IAC7C,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AA+CD,QAAA,MAAM,+BAA+B,sGAxClC,4BAA4B,6CAwCsC,CAAC;AAGtE,eAAe,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
import Typography from '../../../Typography/index.js';
|
|
4
|
+
import ProductCardFooter from '../../ProductCardFooter/index.js';
|
|
5
|
+
import { useProductCardContext } from '../../ProductCardContext.js';
|
|
6
|
+
import { ProductCardView } from '../../types.js';
|
|
7
|
+
import { footerRootDesktop, rightStatGroup, StatGroup, StatMainRow, } from './Footer.styles.js';
|
|
8
|
+
const ProductCardCommonFooter = ({ annualYield, annualYieldLabel, minAmount, minAmountLabel, }) => {
|
|
9
|
+
const { view } = useProductCardContext();
|
|
10
|
+
return (_jsxs(ProductCardFooter, { className: view === ProductCardView.DESKTOP ? footerRootDesktop : undefined, children: [_jsx(StatGroup, { className: view, children: _jsxs(StatMainRow, { className: view, children: [_jsx(Typography, { variant: view === ProductCardView.MOBILE ? 'body17' : 'h3', weight: "semiBold", children: annualYield }), view === ProductCardView.MOBILE ? (_jsx(Typography, { variant: "caption11", weight: "semiBold", children: minAmount })) : annualYieldLabel ? (_jsx(Typography, { variant: "caption10", color: "secondary", children: annualYieldLabel })) : null] }) }), view === ProductCardView.DESKTOP && minAmountLabel ? (_jsxs(StatGroup, { className: rightStatGroup, children: [_jsx(Typography, { variant: "caption10", color: "secondary", children: minAmountLabel }), _jsx(Typography, { variant: "caption12", weight: "semiBold", children: minAmount })] })) : null] }));
|
|
11
|
+
};
|
|
12
|
+
const MemoizedProductCardCommonFooter = memo(ProductCardCommonFooter);
|
|
13
|
+
MemoizedProductCardCommonFooter.displayName = 'ProductCardCommonFooter';
|
|
14
|
+
export default MemoizedProductCardCommonFooter;
|
|
15
|
+
//# sourceMappingURL=Footer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../../src/ProductCard/layouts/common/Footer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAC7B,OAAO,UAAU,MAAM,8BAA8B,CAAC;AACtD,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,SAAS,EACT,WAAW,GACZ,MAAM,oBAAoB,CAAC;AAa5B,MAAM,uBAAuB,GAAG,CAAC,EAC/B,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,cAAc,GACe,EAAE,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,OAAO,CACL,MAAC,iBAAiB,IAChB,SAAS,EAAE,IAAI,KAAK,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,aAE3E,KAAC,SAAS,IAAC,SAAS,EAAE,IAAI,YACxB,MAAC,WAAW,IAAC,SAAS,EAAE,IAAI,aAC1B,KAAC,UAAU,IACT,OAAO,EAAE,IAAI,KAAK,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAC1D,MAAM,EAAC,UAAU,YAEhB,WAAW,GACD,EACZ,IAAI,KAAK,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CACjC,KAAC,UAAU,IAAC,OAAO,EAAC,WAAW,EAAC,MAAM,EAAC,UAAU,YAC9C,SAAS,GACC,CACd,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,CACrB,KAAC,UAAU,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,WAAW,YAC9C,gBAAgB,GACN,CACd,CAAC,CAAC,CAAC,IAAI,IACI,GACJ,EACX,IAAI,KAAK,eAAe,CAAC,OAAO,IAAI,cAAc,CAAC,CAAC,CAAC,CACpD,MAAC,SAAS,IAAC,SAAS,EAAE,cAAc,aAClC,KAAC,UAAU,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,WAAW,YAC9C,cAAc,GACJ,EACb,KAAC,UAAU,IAAC,OAAO,EAAC,WAAW,EAAC,MAAM,EAAC,UAAU,YAC9C,SAAS,GACC,IACH,CACb,CAAC,CAAC,CAAC,IAAI,IACU,CACrB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,+BAA+B,GAAG,IAAI,CAAC,uBAAuB,CAAC,CAAC;AACtE,+BAA+B,CAAC,WAAW,GAAG,yBAAyB,CAAC;AAExE,eAAe,+BAA+B,CAAC"}
|