@redneckz/wildless-cms-uni-blocks 0.10.0 → 0.10.2
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/bin/migration-scripts/0.10.2.js +31 -0
- package/bin/migration-scripts/0.9.10.js +30 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +60 -58
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/bundle/components/Footer/FooterContent.d.ts +1 -1
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/bundle/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/bundle/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/bundle/components/ProductTile/renderImage.d.ts +1 -1
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/bundle/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/bundle/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/bundle/components/Tile/TileContent.d.ts +2 -0
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/dist/components/CarouselEventCard/CarouselEventCard.js +1 -2
- package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -3
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/dist/components/ComparisonTable/HeaderCell.js +1 -2
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +1 -2
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +1 -1
- package/dist/components/Footer/MediaButton.js +1 -3
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Headline/Headline.js +1 -1
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +5 -4
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +3 -3
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/dist/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/dist/components/LinkDocs/LinkDocsListItem.js +18 -2
- package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +2 -3
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +4 -2
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/dist/components/ProductTile/renderImage.d.ts +1 -1
- package/dist/components/ProductTile/renderImage.js +3 -2
- package/dist/components/ProductTile/renderImage.js.map +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +21 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
- package/dist/components/RollupItem/RollupItem.js +1 -2
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.mobile.js +1 -2
- package/dist/components/RollupItem/RollupItem.mobile.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +5 -5
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/dist/components/StepsBlock/checkCanRenderIcon.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js +1 -2
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/Tile/Tile.js +5 -4
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/Tile/TileContent.d.ts +2 -0
- package/dist/content-page-repository/transformImg.js +11 -3
- package/dist/content-page-repository/transformImg.js.map +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -3
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +4 -3
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.js +2 -1
- package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/dist/ui-kit/Img/ImgInner.js +1 -1
- package/dist/ui-kit/Img/ImgInner.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/lib/components/CarouselEventCard/CarouselEventCard.js +1 -2
- package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -3
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/lib/components/ComparisonTable/HeaderCell.js +1 -2
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +1 -2
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +1 -1
- package/lib/components/Footer/MediaButton.js +1 -3
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Headline/Headline.js +1 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.fixture.mobile.d.ts +1 -3
- package/lib/components/LinkDocs/LinkDocs.js +5 -4
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +3 -3
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/lib/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/lib/components/LinkDocs/LinkDocsListItem.js +19 -3
- package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +0 -1
- package/lib/components/ProductBlock/ProductBlock.js +2 -3
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +4 -2
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/lib/components/ProductTile/renderImage.d.ts +1 -1
- package/lib/components/ProductTile/renderImage.js +3 -2
- package/lib/components/ProductTile/renderImage.js.map +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.d.ts +6 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +19 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
- package/lib/components/RollupItem/RollupItem.js +1 -2
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.mobile.js +1 -2
- package/lib/components/RollupItem/RollupItem.mobile.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +5 -5
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/lib/components/StepsBlock/checkCanRenderIcon.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js +1 -2
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/Tile/Tile.fixture.d.ts +1 -0
- package/lib/components/Tile/Tile.js +5 -4
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/Tile/TileContent.d.ts +2 -0
- package/lib/content-page-repository/transformImg.js +11 -3
- package/lib/content-page-repository/transformImg.js.map +1 -1
- package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -3
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +4 -3
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.js +2 -1
- package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/lib/ui-kit/Img/ImgInner.js +1 -1
- package/lib/ui-kit/Img/ImgInner.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +17 -34
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/mobile/bundle/components/Footer/FooterContent.d.ts +1 -1
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/mobile/bundle/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/mobile/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/mobile/bundle/components/ProductTile/renderImage.d.ts +1 -1
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/mobile/bundle/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/mobile/bundle/components/Tile/TileContent.d.ts +2 -0
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +1 -2
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -3
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/mobile/dist/components/Footer/Footer.js +1 -2
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/FooterContent.d.ts +1 -1
- package/mobile/dist/components/Footer/MediaButton.js +1 -3
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +1 -1
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -3
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js +18 -2
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +4 -2
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/mobile/dist/components/ProductTile/renderImage.d.ts +1 -1
- package/mobile/dist/components/ProductTile/renderImage.js +3 -2
- package/mobile/dist/components/ProductTile/renderImage.js.map +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +21 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
- package/mobile/dist/components/RollupItem/RollupItem.js +1 -2
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/mobile/dist/components/StepsBlock/checkCanRenderIcon.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -2
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +5 -4
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +2 -0
- package/mobile/dist/content-page-repository/transformImg.js +11 -3
- package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -3
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +4 -3
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +2 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgInner.js +1 -1
- package/mobile/dist/ui-kit/Img/ImgInner.js.map +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +1 -2
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -3
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/mobile/lib/components/Footer/Footer.js +1 -2
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/FooterContent.d.ts +1 -1
- package/mobile/lib/components/Footer/MediaButton.js +1 -3
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +1 -1
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -3
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js +19 -3
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +4 -2
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/mobile/lib/components/ProductTile/renderImage.d.ts +1 -1
- package/mobile/lib/components/ProductTile/renderImage.js +3 -2
- package/mobile/lib/components/ProductTile/renderImage.js.map +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +19 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
- package/mobile/lib/components/RollupItem/RollupItem.js +1 -2
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/mobile/lib/components/StepsBlock/checkCanRenderIcon.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -2
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +5 -4
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +2 -0
- package/mobile/lib/content-page-repository/transformImg.js +11 -3
- package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -3
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +4 -3
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +2 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgInner.js +1 -1
- package/mobile/lib/ui-kit/Img/ImgInner.js.map +1 -1
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +4 -2
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +1 -2
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -2
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -2
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +10 -2
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +23 -14
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +18 -1
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +10 -2
- package/mobile/src/components/Footer/Footer.tsx +1 -4
- package/mobile/src/components/Footer/FooterContent.ts +1 -1
- package/mobile/src/components/Footer/MediaButton.tsx +2 -5
- package/mobile/src/components/Headline/Headline.tsx +1 -5
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +0 -2
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +27 -12
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +0 -5
- package/mobile/src/components/LinkDocs/LinkDocsListItem.tsx +48 -11
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +1 -2
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +0 -2
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
- package/mobile/src/components/ProductTile/ProductTile.tsx +11 -6
- package/mobile/src/components/ProductTile/ProductTileContent.ts +1 -1
- package/mobile/src/components/ProductTile/renderImage.tsx +3 -2
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +10 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +81 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +20 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +22 -0
- package/mobile/src/components/RollupItem/RollupItem.tsx +2 -15
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +3 -2
- package/mobile/src/components/StepsBlock/checkCanRenderIcon.ts +2 -1
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -8
- package/mobile/src/components/Tile/Tile.example.json +2 -1
- package/mobile/src/components/Tile/Tile.tsx +26 -17
- package/mobile/src/components/Tile/TileContent.ts +2 -0
- package/mobile/src/content-page-repository/transformImg.ts +14 -4
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +5 -3
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +4 -3
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +2 -1
- package/mobile/src/ui-kit/Img/ImgInner.tsx +1 -1
- package/package.json +2 -2
- package/src/components/Blocks.ts +2 -0
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +4 -2
- package/src/components/CarouselEventCard/CarouselEventCard.tsx +1 -2
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -2
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +10 -2
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +9 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +23 -14
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +18 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +10 -2
- package/src/components/ComparisonTable/HeaderCell.tsx +1 -2
- package/src/components/Footer/Footer.mobile.tsx +1 -4
- package/src/components/Footer/FooterContent.ts +1 -1
- package/src/components/Footer/MediaButton.tsx +2 -5
- package/src/components/Headline/Headline.tsx +1 -5
- package/src/components/LinkDocs/LinkDocs.example.json +0 -2
- package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +1 -11
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +27 -12
- package/src/components/LinkDocs/LinkDocs.tsx +24 -9
- package/src/components/LinkDocs/LinkDocsContent.ts +0 -5
- package/src/components/LinkDocs/LinkDocsListItem.tsx +48 -13
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +1 -2
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +14 -22
- package/src/components/ProductBlock/ProductBlock.tsx +5 -6
- package/src/components/ProductBlock/ProductBlockContent.ts +0 -2
- package/src/components/ProductBlock/ProductBlockInner.tsx +21 -25
- package/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
- package/src/components/ProductTile/ProductTile.fixture.tsx +6 -2
- package/src/components/ProductTile/ProductTile.tsx +11 -6
- package/src/components/ProductTile/ProductTileContent.ts +1 -1
- package/src/components/ProductTile/renderImage.tsx +3 -2
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +10 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +37 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +81 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +20 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +22 -0
- package/src/components/RollupItem/RollupItem.mobile.tsx +2 -15
- package/src/components/RollupItem/RollupItem.tsx +1 -2
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +3 -2
- package/src/components/StepsBlock/StepsBlock.tsx +14 -8
- package/src/components/StepsBlock/checkCanRenderIcon.ts +2 -1
- package/src/components/TariffsTable/TariffsTableRow.tsx +1 -8
- package/src/components/Tile/Tile.example.json +2 -1
- package/src/components/Tile/Tile.fixture.tsx +5 -0
- package/src/components/Tile/Tile.tsx +26 -17
- package/src/components/Tile/TileContent.ts +2 -0
- package/src/content-page-repository/transformImg.ts +14 -4
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +5 -3
- package/src/ui-kit/Button/ButtonInner.tsx +4 -3
- package/src/ui-kit/Button/renderButtonsSection.tsx +2 -1
- package/src/ui-kit/Img/ImgInner.tsx +1 -1
- package/bundle/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/bundle/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/bundle/components/LinkDocs/LinkDocsListItem.mobile.d.ts +0 -2
- package/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/bundle/utils/getIconWithVersion.d.ts +0 -3
- package/dist/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js +0 -10
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
- package/dist/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/dist/components/LinkDocs/LinkDocsList.js +0 -9
- package/dist/components/LinkDocs/LinkDocsList.js.map +0 -1
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.d.ts +0 -2
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.js +0 -7
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.js.map +0 -1
- package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/dist/components/LinkDocs/LinkDocsListItemBase.js +0 -24
- package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/dist/components/LinkDocs/LinkDocsVerticalList.js +0 -11
- package/dist/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
- package/dist/utils/getIconWithVersion.d.ts +0 -3
- package/dist/utils/getIconWithVersion.js +0 -8
- package/dist/utils/getIconWithVersion.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js +0 -8
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/lib/components/LinkDocs/LinkDocsList.js +0 -7
- package/lib/components/LinkDocs/LinkDocsList.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.d.ts +0 -2
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.js +0 -5
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/lib/components/LinkDocs/LinkDocsListItemBase.js +0 -22
- package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/lib/components/LinkDocs/LinkDocsVerticalList.js +0 -9
- package/lib/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
- package/lib/utils/getIconWithVersion.d.ts +0 -3
- package/lib/utils/getIconWithVersion.js +0 -5
- package/lib/utils/getIconWithVersion.js.map +0 -1
- package/mobile/bundle/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/mobile/bundle/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/mobile/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/mobile/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/mobile/bundle/utils/getIconWithVersion.d.ts +0 -3
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js +0 -10
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
- package/mobile/dist/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/mobile/dist/components/LinkDocs/LinkDocsList.js +0 -9
- package/mobile/dist/components/LinkDocs/LinkDocsList.js.map +0 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js +0 -24
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js +0 -11
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
- package/mobile/dist/utils/getIconWithVersion.d.ts +0 -3
- package/mobile/dist/utils/getIconWithVersion.js +0 -8
- package/mobile/dist/utils/getIconWithVersion.js.map +0 -1
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js +0 -8
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
- package/mobile/lib/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/mobile/lib/components/LinkDocs/LinkDocsList.js +0 -7
- package/mobile/lib/components/LinkDocs/LinkDocsList.js.map +0 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js +0 -22
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js +0 -9
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
- package/mobile/lib/utils/getIconWithVersion.d.ts +0 -3
- package/mobile/lib/utils/getIconWithVersion.js +0 -5
- package/mobile/lib/utils/getIconWithVersion.js.map +0 -1
- package/mobile/src/components/LinkDocs/LinkDocsHorizontalList.tsx +0 -21
- package/mobile/src/components/LinkDocs/LinkDocsList.tsx +0 -33
- package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +0 -63
- package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +0 -33
- package/mobile/src/utils/getIconWithVersion.ts +0 -7
- package/src/components/LinkDocs/LinkDocsHorizontalList.tsx +0 -21
- package/src/components/LinkDocs/LinkDocsList.tsx +0 -33
- package/src/components/LinkDocs/LinkDocsListItem.mobile.tsx +0 -12
- package/src/components/LinkDocs/LinkDocsListItemBase.tsx +0 -63
- package/src/components/LinkDocs/LinkDocsVerticalList.tsx +0 -33
- package/src/utils/getIconWithVersion.ts +0 -7
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.LinkDocsListItemBase = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const Img_1 = require("../../ui-kit/Img/Img");
|
|
6
|
-
const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
|
|
7
|
-
exports.LinkDocsListItemBase = (0, uni_jsx_1.JSX)(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
|
|
8
|
-
const { text, fileSize, ...linkProps } = doc;
|
|
9
|
-
return ((0, jsx_runtime_1.jsxs)("a", { className: className, role: "link", ...linkProps, children: [icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: iconClassName, image: (0, getIconWithVersion_1.getIconWithVersion)(icon), width: "24", height: "24", asSVG: true })) : null, text ? ((0, jsx_runtime_1.jsxs)("span", { className: textClassName, children: [text, (0, jsx_runtime_1.jsx)("span", { className: suffixClassName, children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
|
|
10
|
-
});
|
|
11
|
-
const formatSuffix = (ext, fileSize) => {
|
|
12
|
-
const prefix = ext || fileSize ? ',' : '';
|
|
13
|
-
const extension = ext ? ` ${ext}` : '';
|
|
14
|
-
const size = fileSize ? ` (${fileSize})` : '';
|
|
15
|
-
return prefix + extension + size;
|
|
16
|
-
};
|
|
17
|
-
const getExtFromHref = (href) => {
|
|
18
|
-
if (!href) {
|
|
19
|
-
return '';
|
|
20
|
-
}
|
|
21
|
-
const index = href.lastIndexOf('.');
|
|
22
|
-
return index !== -1 ? href.substring(index + 1) : '';
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=LinkDocsListItemBase.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsListItemBase.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsListItemBase.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,8CAA2C;AAC3C,uEAAoE;AAevD,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;IAC1E,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,GAAG,CAAC;IAE7C,OAAO,CACL,+BAAG,SAAS,EAAE,SAAS,EAAE,IAAI,EAAC,MAAM,KAAK,SAAS,aAC/C,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IACF,SAAS,EAAE,aAAa,EACxB,KAAK,EAAE,IAAA,uCAAkB,EAAC,IAAI,CAAC,EAC/B,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,CAAC,CAAC,CACN,kCAAM,SAAS,EAAE,aAAa,aAC3B,IAAI,EACL,iCAAM,SAAS,EAAE,eAAe,YAC7B,SAAS,EAAE,IAAI,IAAI,YAAY,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,GACrE,IACF,CACR,CAAC,CAAC,CAAC,IAAI,IACN,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,GAAY,EAAE,QAAiB,EAAE,EAAE;IACvD,MAAM,MAAM,GAAG,GAAG,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1C,MAAM,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACvC,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAE9C,OAAO,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE;IACtC,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAEpC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACvD,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Picture } from '../../model/Picture';
|
|
2
|
-
import type { LinkDocsItem } from './LinkDocsContent';
|
|
3
|
-
export interface LinkDocsVerticalListProps {
|
|
4
|
-
hasBorder?: boolean;
|
|
5
|
-
documents?: LinkDocsItem[];
|
|
6
|
-
icon?: Picture;
|
|
7
|
-
}
|
|
8
|
-
export declare const LinkDocsVerticalList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsVerticalListProps, any, any>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.LinkDocsVerticalList = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const LinkDocsListItem_1 = require("./LinkDocsListItem");
|
|
6
|
-
exports.LinkDocsVerticalList = (0, uni_jsx_1.JSX)(({ hasBorder = true, documents, icon }) => {
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: `text-s text-primary-main flex flex-col mt-5 ${hasBorder ? 'gap-3.5' : 'gap-2'}`, role: "list", children: documents?.length
|
|
8
|
-
? documents.map((doc, i) => ((0, jsx_runtime_1.jsx)("div", { role: "listitem", children: (0, jsx_runtime_1.jsx)(LinkDocsListItem_1.LinkDocsListItem, { className: hasBorder ? 'rounded-md border-gray border border-solid p-4' : '', doc: doc, icon: icon }) }, String(i))))
|
|
9
|
-
: null }));
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=LinkDocsVerticalList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsVerticalList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsVerticalList.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,yDAAsD;AAQzC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE;IACxC,OAAO,CACL,gCACE,SAAS,EAAE,+CAA+C,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EAAE,EAC3F,IAAI,EAAC,MAAM,YAEV,SAAS,EAAE,MAAM;YAChB,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,gCAAqB,IAAI,EAAC,UAAU,YAClC,uBAAC,mCAAgB,IACf,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,gDAAgD,CAAC,CAAC,CAAC,EAAE,EAC5E,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,GACV,IALM,MAAM,CAAC,CAAC,CAAC,CAMb,CACP,CAAC;YACJ,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.getIconWithVersion = void 0;
|
|
3
|
-
const getIconWithVersion = (icon, version = 'primary') => ({
|
|
4
|
-
...icon,
|
|
5
|
-
iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
|
|
6
|
-
});
|
|
7
|
-
exports.getIconWithVersion = getIconWithVersion;
|
|
8
|
-
//# sourceMappingURL=getIconWithVersion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getIconWithVersion.js","sourceRoot":"","sources":["../../src/utils/getIconWithVersion.ts"],"names":[],"mappings":";;AAGO,MAAM,kBAAkB,GAAG,CAAC,IAAa,EAAE,UAAwB,SAAS,EAAW,EAAE,CAAC,CAAC;IAChG,GAAG,IAAI;IACP,WAAW,EAAE,IAAI,EAAE,WAAW,IAAI,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;CAChF,CAAC,CAAC;AAHU,QAAA,kBAAkB,sBAG5B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl.js';
|
|
4
|
-
import { LinkDocsListItem } from './LinkDocsListItem.js';
|
|
5
|
-
export const LinkDocsHorizontalList = JSX(({ hasBorder = true, documents, icon }) => (_jsx(SwipeListControl, { className: "text-s text-primary-main mt-5", children: documents?.length
|
|
6
|
-
? documents.map((doc, i) => (_jsx(LinkDocsListItem, { className: hasBorder ? 'rounded-md border-gray border border-solid p-4' : '', doc: doc, icon: icon }, String(i))))
|
|
7
|
-
: null })));
|
|
8
|
-
//# sourceMappingURL=LinkDocsHorizontalList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsHorizontalList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsHorizontalList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CACvC,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CACzC,KAAC,gBAAgB,IAAC,SAAS,EAAC,+BAA+B,YACxD,SAAS,EAAE,MAAM;QAChB,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,KAAC,gBAAgB,IAEf,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,gDAAgD,CAAC,CAAC,CAAC,EAAE,EAC5E,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,IAHL,MAAM,CAAC,CAAC,CAAC,CAId,CACH,CAAC;QACJ,CAAC,CAAC,IAAI,GACS,CACpB,CACF,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Picture } from '../../model/Picture';
|
|
2
|
-
import type { LinkColumnsMode, LinkDocsItem } from './LinkDocsContent';
|
|
3
|
-
export interface LinkDocsListProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
documents?: LinkDocsItem[];
|
|
6
|
-
columnsMode?: LinkColumnsMode;
|
|
7
|
-
icon?: Picture;
|
|
8
|
-
}
|
|
9
|
-
export declare const LinkDocsList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListProps, any, any>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { LinkDocsListItem } from './LinkDocsListItem.js';
|
|
4
|
-
export const LinkDocsList = JSX(({ className, documents, columnsMode = 'double', icon }) => {
|
|
5
|
-
return documents?.length ? (_jsx("div", { className: className, role: "list", children: documents.map((doc, i) => (_jsx("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: _jsx(LinkDocsListItem, { className: "group/item flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main", doc: doc, icon: icon }) }, String(i)))) })) : null;
|
|
6
|
-
});
|
|
7
|
-
//# sourceMappingURL=LinkDocsList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAStD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,GAAG,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE;IACzD,OAAO,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,CACzB,cAAK,SAAS,EAAE,SAAS,EAAE,IAAI,EAAC,MAAM,YACnC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACzB,cAEE,SAAS,EAAE,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,EACnE,IAAI,EAAC,UAAU,YAEf,KAAC,gBAAgB,IACf,SAAS,EAAC,iGAAiG,EAC3G,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,GACV,IARG,MAAM,CAAC,CAAC,CAAC,CASV,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { LinkDocsListItemBase } from './LinkDocsListItemBase.js';
|
|
4
|
-
export const LinkDocsListItem = JSX(({ className = '', doc, icon }) => (_jsx(LinkDocsListItemBase, { className: `flex h-full box-border ${className}`, iconClassName: "mr-3 min-w-6 min-h-6", doc: doc, icon: icon })));
|
|
5
|
-
//# sourceMappingURL=LinkDocsListItem.mobile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsListItem.mobile.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsListItem.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAwB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5F,KAAC,oBAAoB,IACnB,SAAS,EAAE,0BAA0B,SAAS,EAAE,EAChD,aAAa,EAAC,sBAAsB,EACpC,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,GACV,CACH,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Picture } from '../../model/Picture';
|
|
2
|
-
import type { LinkDocsItem } from './LinkDocsContent';
|
|
3
|
-
export interface LinkDocsListItemProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
doc: LinkDocsItem;
|
|
6
|
-
icon?: Picture;
|
|
7
|
-
}
|
|
8
|
-
export interface LinkDocsListItemBaseProps extends LinkDocsListItemProps {
|
|
9
|
-
iconClassName?: string;
|
|
10
|
-
textClassName?: string;
|
|
11
|
-
suffixClassName?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const LinkDocsListItemBase: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListItemBaseProps, any, any>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { Img } from '../../ui-kit/Img/Img.js';
|
|
4
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion.js';
|
|
5
|
-
export const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
|
|
6
|
-
const { text, fileSize, ...linkProps } = doc;
|
|
7
|
-
return (_jsxs("a", { className: className, role: "link", ...linkProps, children: [icon ? (_jsx(Img, { className: iconClassName, image: getIconWithVersion(icon), width: "24", height: "24", asSVG: true })) : null, text ? (_jsxs("span", { className: textClassName, children: [text, _jsx("span", { className: suffixClassName, children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
|
|
8
|
-
});
|
|
9
|
-
const formatSuffix = (ext, fileSize) => {
|
|
10
|
-
const prefix = ext || fileSize ? ',' : '';
|
|
11
|
-
const extension = ext ? ` ${ext}` : '';
|
|
12
|
-
const size = fileSize ? ` (${fileSize})` : '';
|
|
13
|
-
return prefix + extension + size;
|
|
14
|
-
};
|
|
15
|
-
const getExtFromHref = (href) => {
|
|
16
|
-
if (!href) {
|
|
17
|
-
return '';
|
|
18
|
-
}
|
|
19
|
-
const index = href.lastIndexOf('.');
|
|
20
|
-
return index !== -1 ? href.substring(index + 1) : '';
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=LinkDocsListItemBase.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsListItemBase.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsListItemBase.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAepE,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;IAC1E,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,GAAG,CAAC;IAE7C,OAAO,CACL,aAAG,SAAS,EAAE,SAAS,EAAE,IAAI,EAAC,MAAM,KAAK,SAAS,aAC/C,IAAI,CAAC,CAAC,CAAC,CACN,KAAC,GAAG,IACF,SAAS,EAAE,aAAa,EACxB,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC,EAC/B,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,CAAC,CAAC,CACN,gBAAM,SAAS,EAAE,aAAa,aAC3B,IAAI,EACL,eAAM,SAAS,EAAE,eAAe,YAC7B,SAAS,EAAE,IAAI,IAAI,YAAY,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,GACrE,IACF,CACR,CAAC,CAAC,CAAC,IAAI,IACN,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,GAAY,EAAE,QAAiB,EAAE,EAAE;IACvD,MAAM,MAAM,GAAG,GAAG,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1C,MAAM,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACvC,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAE9C,OAAO,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE;IACtC,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAEpC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACvD,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Picture } from '../../model/Picture';
|
|
2
|
-
import type { LinkDocsItem } from './LinkDocsContent';
|
|
3
|
-
export interface LinkDocsVerticalListProps {
|
|
4
|
-
hasBorder?: boolean;
|
|
5
|
-
documents?: LinkDocsItem[];
|
|
6
|
-
icon?: Picture;
|
|
7
|
-
}
|
|
8
|
-
export declare const LinkDocsVerticalList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsVerticalListProps, any, any>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { LinkDocsListItem } from './LinkDocsListItem.js';
|
|
4
|
-
export const LinkDocsVerticalList = JSX(({ hasBorder = true, documents, icon }) => {
|
|
5
|
-
return (_jsx("div", { className: `text-s text-primary-main flex flex-col mt-5 ${hasBorder ? 'gap-3.5' : 'gap-2'}`, role: "list", children: documents?.length
|
|
6
|
-
? documents.map((doc, i) => (_jsx("div", { role: "listitem", children: _jsx(LinkDocsListItem, { className: hasBorder ? 'rounded-md border-gray border border-solid p-4' : '', doc: doc, icon: icon }) }, String(i))))
|
|
7
|
-
: null }));
|
|
8
|
-
});
|
|
9
|
-
//# sourceMappingURL=LinkDocsVerticalList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsVerticalList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsVerticalList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQtD,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE;IACxC,OAAO,CACL,cACE,SAAS,EAAE,+CAA+C,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EAAE,EAC3F,IAAI,EAAC,MAAM,YAEV,SAAS,EAAE,MAAM;YAChB,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,cAAqB,IAAI,EAAC,UAAU,YAClC,KAAC,gBAAgB,IACf,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,gDAAgD,CAAC,CAAC,CAAC,EAAE,EAC5E,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,GACV,IALM,MAAM,CAAC,CAAC,CAAC,CAMb,CACP,CAAC;YACJ,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getIconWithVersion.js","sourceRoot":"","sources":["../../src/utils/getIconWithVersion.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAa,EAAE,UAAwB,SAAS,EAAW,EAAE,CAAC,CAAC;IAChG,GAAG,IAAI;IACP,WAAW,EAAE,IAAI,EAAE,WAAW,IAAI,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;CAChF,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Picture } from '../../model/Picture';
|
|
2
|
-
import type { LinkColumnsMode, LinkDocsItem } from './LinkDocsContent';
|
|
3
|
-
export interface LinkDocsListProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
documents?: LinkDocsItem[];
|
|
6
|
-
columnsMode?: LinkColumnsMode;
|
|
7
|
-
icon?: Picture;
|
|
8
|
-
}
|
|
9
|
-
export declare const LinkDocsList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListProps, any, any>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Picture } from '../../model/Picture';
|
|
2
|
-
import type { LinkDocsItem } from './LinkDocsContent';
|
|
3
|
-
export interface LinkDocsListItemProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
doc: LinkDocsItem;
|
|
6
|
-
icon?: Picture;
|
|
7
|
-
}
|
|
8
|
-
export interface LinkDocsListItemBaseProps extends LinkDocsListItemProps {
|
|
9
|
-
iconClassName?: string;
|
|
10
|
-
textClassName?: string;
|
|
11
|
-
suffixClassName?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const LinkDocsListItemBase: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListItemBaseProps, any, any>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Picture } from '../../model/Picture';
|
|
2
|
-
import type { LinkDocsItem } from './LinkDocsContent';
|
|
3
|
-
export interface LinkDocsVerticalListProps {
|
|
4
|
-
hasBorder?: boolean;
|
|
5
|
-
documents?: LinkDocsItem[];
|
|
6
|
-
icon?: Picture;
|
|
7
|
-
}
|
|
8
|
-
export declare const LinkDocsVerticalList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsVerticalListProps, any, any>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.LinkDocsHorizontalList = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const SwipeListControl_1 = require("../../ui-kit/SwipeListControl/SwipeListControl");
|
|
6
|
-
const LinkDocsListItem_1 = require("./LinkDocsListItem");
|
|
7
|
-
exports.LinkDocsHorizontalList = (0, uni_jsx_1.JSX)(({ hasBorder = true, documents, icon }) => ((0, jsx_runtime_1.jsx)(SwipeListControl_1.SwipeListControl, { className: "text-s text-primary-main mt-5", children: documents?.length
|
|
8
|
-
? documents.map((doc, i) => ((0, jsx_runtime_1.jsx)(LinkDocsListItem_1.LinkDocsListItem, { className: hasBorder ? 'rounded-md border-gray border border-solid p-4' : '', doc: doc, icon: icon }, String(i))))
|
|
9
|
-
: null })));
|
|
10
|
-
//# sourceMappingURL=LinkDocsHorizontalList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsHorizontalList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsHorizontalList.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qFAAkF;AAClF,yDAAsD;AAGzC,QAAA,sBAAsB,GAAG,IAAA,aAAG,EACvC,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CACzC,uBAAC,mCAAgB,IAAC,SAAS,EAAC,+BAA+B,YACxD,SAAS,EAAE,MAAM;QAChB,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,uBAAC,mCAAgB,IAEf,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,gDAAgD,CAAC,CAAC,CAAC,EAAE,EAC5E,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,IAHL,MAAM,CAAC,CAAC,CAAC,CAId,CACH,CAAC;QACJ,CAAC,CAAC,IAAI,GACS,CACpB,CACF,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Picture } from '../../model/Picture';
|
|
2
|
-
import type { LinkColumnsMode, LinkDocsItem } from './LinkDocsContent';
|
|
3
|
-
export interface LinkDocsListProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
documents?: LinkDocsItem[];
|
|
6
|
-
columnsMode?: LinkColumnsMode;
|
|
7
|
-
icon?: Picture;
|
|
8
|
-
}
|
|
9
|
-
export declare const LinkDocsList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListProps, any, any>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.LinkDocsList = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const LinkDocsListItem_1 = require("./LinkDocsListItem");
|
|
6
|
-
exports.LinkDocsList = (0, uni_jsx_1.JSX)(({ className, documents, columnsMode = 'double', icon }) => {
|
|
7
|
-
return documents?.length ? ((0, jsx_runtime_1.jsx)("div", { className: className, role: "list", children: documents.map((doc, i) => ((0, jsx_runtime_1.jsx)("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: (0, jsx_runtime_1.jsx)(LinkDocsListItem_1.LinkDocsListItem, { className: "group/item flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main", doc: doc, icon: icon }) }, String(i)))) })) : null;
|
|
8
|
-
});
|
|
9
|
-
//# sourceMappingURL=LinkDocsList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsList.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,yDAAsD;AASzC,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,GAAG,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE;IACzD,OAAO,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,CACzB,gCAAK,SAAS,EAAE,SAAS,EAAE,IAAI,EAAC,MAAM,YACnC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACzB,gCAEE,SAAS,EAAE,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,EACnE,IAAI,EAAC,UAAU,YAEf,uBAAC,mCAAgB,IACf,SAAS,EAAC,iGAAiG,EAC3G,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,GACV,IARG,MAAM,CAAC,CAAC,CAAC,CASV,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Picture } from '../../model/Picture';
|
|
2
|
-
import type { LinkDocsItem } from './LinkDocsContent';
|
|
3
|
-
export interface LinkDocsListItemProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
doc: LinkDocsItem;
|
|
6
|
-
icon?: Picture;
|
|
7
|
-
}
|
|
8
|
-
export interface LinkDocsListItemBaseProps extends LinkDocsListItemProps {
|
|
9
|
-
iconClassName?: string;
|
|
10
|
-
textClassName?: string;
|
|
11
|
-
suffixClassName?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const LinkDocsListItemBase: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListItemBaseProps, any, any>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.LinkDocsListItemBase = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const Img_1 = require("../../ui-kit/Img/Img");
|
|
6
|
-
const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
|
|
7
|
-
exports.LinkDocsListItemBase = (0, uni_jsx_1.JSX)(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
|
|
8
|
-
const { text, fileSize, ...linkProps } = doc;
|
|
9
|
-
return ((0, jsx_runtime_1.jsxs)("a", { className: className, role: "link", ...linkProps, children: [icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: iconClassName, image: (0, getIconWithVersion_1.getIconWithVersion)(icon), width: "24", height: "24", asSVG: true })) : null, text ? ((0, jsx_runtime_1.jsxs)("span", { className: textClassName, children: [text, (0, jsx_runtime_1.jsx)("span", { className: suffixClassName, children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
|
|
10
|
-
});
|
|
11
|
-
const formatSuffix = (ext, fileSize) => {
|
|
12
|
-
const prefix = ext || fileSize ? ',' : '';
|
|
13
|
-
const extension = ext ? ` ${ext}` : '';
|
|
14
|
-
const size = fileSize ? ` (${fileSize})` : '';
|
|
15
|
-
return prefix + extension + size;
|
|
16
|
-
};
|
|
17
|
-
const getExtFromHref = (href) => {
|
|
18
|
-
if (!href) {
|
|
19
|
-
return '';
|
|
20
|
-
}
|
|
21
|
-
const index = href.lastIndexOf('.');
|
|
22
|
-
return index !== -1 ? href.substring(index + 1) : '';
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=LinkDocsListItemBase.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsListItemBase.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsListItemBase.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,8CAA2C;AAC3C,uEAAoE;AAevD,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;IAC1E,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,GAAG,CAAC;IAE7C,OAAO,CACL,+BAAG,SAAS,EAAE,SAAS,EAAE,IAAI,EAAC,MAAM,KAAK,SAAS,aAC/C,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IACF,SAAS,EAAE,aAAa,EACxB,KAAK,EAAE,IAAA,uCAAkB,EAAC,IAAI,CAAC,EAC/B,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,CAAC,CAAC,CACN,kCAAM,SAAS,EAAE,aAAa,aAC3B,IAAI,EACL,iCAAM,SAAS,EAAE,eAAe,YAC7B,SAAS,EAAE,IAAI,IAAI,YAAY,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,GACrE,IACF,CACR,CAAC,CAAC,CAAC,IAAI,IACN,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,GAAY,EAAE,QAAiB,EAAE,EAAE;IACvD,MAAM,MAAM,GAAG,GAAG,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1C,MAAM,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACvC,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAE9C,OAAO,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE;IACtC,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAEpC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACvD,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Picture } from '../../model/Picture';
|
|
2
|
-
import type { LinkDocsItem } from './LinkDocsContent';
|
|
3
|
-
export interface LinkDocsVerticalListProps {
|
|
4
|
-
hasBorder?: boolean;
|
|
5
|
-
documents?: LinkDocsItem[];
|
|
6
|
-
icon?: Picture;
|
|
7
|
-
}
|
|
8
|
-
export declare const LinkDocsVerticalList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsVerticalListProps, any, any>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.LinkDocsVerticalList = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const LinkDocsListItem_1 = require("./LinkDocsListItem");
|
|
6
|
-
exports.LinkDocsVerticalList = (0, uni_jsx_1.JSX)(({ hasBorder = true, documents, icon }) => {
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: `text-s text-primary-main flex flex-col mt-5 ${hasBorder ? 'gap-3.5' : 'gap-2'}`, role: "list", children: documents?.length
|
|
8
|
-
? documents.map((doc, i) => ((0, jsx_runtime_1.jsx)("div", { role: "listitem", children: (0, jsx_runtime_1.jsx)(LinkDocsListItem_1.LinkDocsListItem, { className: hasBorder ? 'rounded-md border-gray border border-solid p-4' : '', doc: doc, icon: icon }) }, String(i))))
|
|
9
|
-
: null }));
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=LinkDocsVerticalList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsVerticalList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsVerticalList.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,yDAAsD;AAQzC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE;IACxC,OAAO,CACL,gCACE,SAAS,EAAE,+CAA+C,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EAAE,EAC3F,IAAI,EAAC,MAAM,YAEV,SAAS,EAAE,MAAM;YAChB,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,gCAAqB,IAAI,EAAC,UAAU,YAClC,uBAAC,mCAAgB,IACf,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,gDAAgD,CAAC,CAAC,CAAC,EAAE,EAC5E,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,GACV,IALM,MAAM,CAAC,CAAC,CAAC,CAMb,CACP,CAAC;YACJ,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.getIconWithVersion = void 0;
|
|
3
|
-
const getIconWithVersion = (icon, version = 'primary') => ({
|
|
4
|
-
...icon,
|
|
5
|
-
iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
|
|
6
|
-
});
|
|
7
|
-
exports.getIconWithVersion = getIconWithVersion;
|
|
8
|
-
//# sourceMappingURL=getIconWithVersion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getIconWithVersion.js","sourceRoot":"","sources":["../../src/utils/getIconWithVersion.ts"],"names":[],"mappings":";;AAGO,MAAM,kBAAkB,GAAG,CAAC,IAAa,EAAE,UAAwB,SAAS,EAAW,EAAE,CAAC,CAAC;IAChG,GAAG,IAAI;IACP,WAAW,EAAE,IAAI,EAAE,WAAW,IAAI,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;CAChF,CAAC,CAAC;AAHU,QAAA,kBAAkB,sBAG5B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl.js';
|
|
4
|
-
import { LinkDocsListItem } from './LinkDocsListItem.js';
|
|
5
|
-
export const LinkDocsHorizontalList = JSX(({ hasBorder = true, documents, icon }) => (_jsx(SwipeListControl, { className: "text-s text-primary-main mt-5", children: documents?.length
|
|
6
|
-
? documents.map((doc, i) => (_jsx(LinkDocsListItem, { className: hasBorder ? 'rounded-md border-gray border border-solid p-4' : '', doc: doc, icon: icon }, String(i))))
|
|
7
|
-
: null })));
|
|
8
|
-
//# sourceMappingURL=LinkDocsHorizontalList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsHorizontalList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsHorizontalList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CACvC,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CACzC,KAAC,gBAAgB,IAAC,SAAS,EAAC,+BAA+B,YACxD,SAAS,EAAE,MAAM;QAChB,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,KAAC,gBAAgB,IAEf,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,gDAAgD,CAAC,CAAC,CAAC,EAAE,EAC5E,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,IAHL,MAAM,CAAC,CAAC,CAAC,CAId,CACH,CAAC;QACJ,CAAC,CAAC,IAAI,GACS,CACpB,CACF,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Picture } from '../../model/Picture';
|
|
2
|
-
import type { LinkColumnsMode, LinkDocsItem } from './LinkDocsContent';
|
|
3
|
-
export interface LinkDocsListProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
documents?: LinkDocsItem[];
|
|
6
|
-
columnsMode?: LinkColumnsMode;
|
|
7
|
-
icon?: Picture;
|
|
8
|
-
}
|
|
9
|
-
export declare const LinkDocsList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListProps, any, any>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { LinkDocsListItem } from './LinkDocsListItem.js';
|
|
4
|
-
export const LinkDocsList = JSX(({ className, documents, columnsMode = 'double', icon }) => {
|
|
5
|
-
return documents?.length ? (_jsx("div", { className: className, role: "list", children: documents.map((doc, i) => (_jsx("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: _jsx(LinkDocsListItem, { className: "group/item flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main", doc: doc, icon: icon }) }, String(i)))) })) : null;
|
|
6
|
-
});
|
|
7
|
-
//# sourceMappingURL=LinkDocsList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAStD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,GAAG,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE;IACzD,OAAO,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,CACzB,cAAK,SAAS,EAAE,SAAS,EAAE,IAAI,EAAC,MAAM,YACnC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACzB,cAEE,SAAS,EAAE,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,EACnE,IAAI,EAAC,UAAU,YAEf,KAAC,gBAAgB,IACf,SAAS,EAAC,iGAAiG,EAC3G,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,GACV,IARG,MAAM,CAAC,CAAC,CAAC,CASV,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Picture } from '../../model/Picture';
|
|
2
|
-
import type { LinkDocsItem } from './LinkDocsContent';
|
|
3
|
-
export interface LinkDocsListItemProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
doc: LinkDocsItem;
|
|
6
|
-
icon?: Picture;
|
|
7
|
-
}
|
|
8
|
-
export interface LinkDocsListItemBaseProps extends LinkDocsListItemProps {
|
|
9
|
-
iconClassName?: string;
|
|
10
|
-
textClassName?: string;
|
|
11
|
-
suffixClassName?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const LinkDocsListItemBase: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListItemBaseProps, any, any>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { Img } from '../../ui-kit/Img/Img.js';
|
|
4
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion.js';
|
|
5
|
-
export const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
|
|
6
|
-
const { text, fileSize, ...linkProps } = doc;
|
|
7
|
-
return (_jsxs("a", { className: className, role: "link", ...linkProps, children: [icon ? (_jsx(Img, { className: iconClassName, image: getIconWithVersion(icon), width: "24", height: "24", asSVG: true })) : null, text ? (_jsxs("span", { className: textClassName, children: [text, _jsx("span", { className: suffixClassName, children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
|
|
8
|
-
});
|
|
9
|
-
const formatSuffix = (ext, fileSize) => {
|
|
10
|
-
const prefix = ext || fileSize ? ',' : '';
|
|
11
|
-
const extension = ext ? ` ${ext}` : '';
|
|
12
|
-
const size = fileSize ? ` (${fileSize})` : '';
|
|
13
|
-
return prefix + extension + size;
|
|
14
|
-
};
|
|
15
|
-
const getExtFromHref = (href) => {
|
|
16
|
-
if (!href) {
|
|
17
|
-
return '';
|
|
18
|
-
}
|
|
19
|
-
const index = href.lastIndexOf('.');
|
|
20
|
-
return index !== -1 ? href.substring(index + 1) : '';
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=LinkDocsListItemBase.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsListItemBase.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsListItemBase.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAepE,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;IAC1E,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,GAAG,CAAC;IAE7C,OAAO,CACL,aAAG,SAAS,EAAE,SAAS,EAAE,IAAI,EAAC,MAAM,KAAK,SAAS,aAC/C,IAAI,CAAC,CAAC,CAAC,CACN,KAAC,GAAG,IACF,SAAS,EAAE,aAAa,EACxB,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC,EAC/B,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,CAAC,CAAC,CACN,gBAAM,SAAS,EAAE,aAAa,aAC3B,IAAI,EACL,eAAM,SAAS,EAAE,eAAe,YAC7B,SAAS,EAAE,IAAI,IAAI,YAAY,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,GACrE,IACF,CACR,CAAC,CAAC,CAAC,IAAI,IACN,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,GAAY,EAAE,QAAiB,EAAE,EAAE;IACvD,MAAM,MAAM,GAAG,GAAG,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1C,MAAM,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACvC,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAE9C,OAAO,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE;IACtC,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAEpC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACvD,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Picture } from '../../model/Picture';
|
|
2
|
-
import type { LinkDocsItem } from './LinkDocsContent';
|
|
3
|
-
export interface LinkDocsVerticalListProps {
|
|
4
|
-
hasBorder?: boolean;
|
|
5
|
-
documents?: LinkDocsItem[];
|
|
6
|
-
icon?: Picture;
|
|
7
|
-
}
|
|
8
|
-
export declare const LinkDocsVerticalList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsVerticalListProps, any, any>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { LinkDocsListItem } from './LinkDocsListItem.js';
|
|
4
|
-
export const LinkDocsVerticalList = JSX(({ hasBorder = true, documents, icon }) => {
|
|
5
|
-
return (_jsx("div", { className: `text-s text-primary-main flex flex-col mt-5 ${hasBorder ? 'gap-3.5' : 'gap-2'}`, role: "list", children: documents?.length
|
|
6
|
-
? documents.map((doc, i) => (_jsx("div", { role: "listitem", children: _jsx(LinkDocsListItem, { className: hasBorder ? 'rounded-md border-gray border border-solid p-4' : '', doc: doc, icon: icon }) }, String(i))))
|
|
7
|
-
: null }));
|
|
8
|
-
});
|
|
9
|
-
//# sourceMappingURL=LinkDocsVerticalList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsVerticalList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsVerticalList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQtD,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE;IACxC,OAAO,CACL,cACE,SAAS,EAAE,+CAA+C,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EAAE,EAC3F,IAAI,EAAC,MAAM,YAEV,SAAS,EAAE,MAAM;YAChB,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,cAAqB,IAAI,EAAC,UAAU,YAClC,KAAC,gBAAgB,IACf,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,gDAAgD,CAAC,CAAC,CAAC,EAAE,EAC5E,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,GACV,IALM,MAAM,CAAC,CAAC,CAAC,CAMb,CACP,CAAC;YACJ,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getIconWithVersion.js","sourceRoot":"","sources":["../../src/utils/getIconWithVersion.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAa,EAAE,UAAwB,SAAS,EAAW,EAAE,CAAC,CAAC;IAChG,GAAG,IAAI;IACP,WAAW,EAAE,IAAI,EAAE,WAAW,IAAI,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;CAChF,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl';
|
|
3
|
-
import { LinkDocsListItem } from './LinkDocsListItem';
|
|
4
|
-
import type { LinkDocsVerticalListProps } from './LinkDocsVerticalList';
|
|
5
|
-
|
|
6
|
-
export const LinkDocsHorizontalList = JSX<LinkDocsVerticalListProps>(
|
|
7
|
-
({ hasBorder = true, documents, icon }) => (
|
|
8
|
-
<SwipeListControl className="text-s text-primary-main mt-5">
|
|
9
|
-
{documents?.length
|
|
10
|
-
? documents.map((doc, i) => (
|
|
11
|
-
<LinkDocsListItem
|
|
12
|
-
key={String(i)}
|
|
13
|
-
className={hasBorder ? 'rounded-md border-gray border border-solid p-4' : ''}
|
|
14
|
-
doc={doc}
|
|
15
|
-
icon={icon}
|
|
16
|
-
/>
|
|
17
|
-
))
|
|
18
|
-
: null}
|
|
19
|
-
</SwipeListControl>
|
|
20
|
-
),
|
|
21
|
-
);
|