@redneckz/wildless-cms-uni-blocks 0.3.21 → 0.3.24
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +222 -71
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/Accordion.js +6 -2
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +8 -1
- package/dist/components/Accordion/AccordionItem.js +14 -5
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.js +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionItemInner.js +2 -2
- package/dist/components/Accordion/AccordionItemInner.js.map +1 -1
- package/dist/components/Accordion/AccordionItemInner.mobile.js +2 -2
- package/dist/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
- package/dist/components/Accordion/useActiveHandler.d.ts +7 -0
- package/dist/components/Accordion/{utils/useActiveHandler.js → useActiveHandler.js} +2 -2
- package/dist/components/Accordion/useActiveHandler.js.map +1 -0
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js +17 -5
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +18 -2
- package/dist/components/ComparisonTable/HeaderCell.d.ts +1 -0
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/ComparisonTable/TableColumn.d.ts +3 -2
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +4 -4
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +3 -8
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryContent.d.ts +4 -3
- package/dist/components/Headline/Headline.js +1 -1
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +4 -10
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/dist/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
- package/dist/components/OtherProducts/OtherProductsContent.d.ts +4 -1
- package/dist/components/OtherProducts/OtherProductsItem.js +4 -4
- package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/dist/components/OtherProducts/useActiveHandler.d.ts +7 -0
- package/dist/components/OtherProducts/{utils/useActiveHandler.js → useActiveHandler.js} +2 -2
- package/dist/components/OtherProducts/useActiveHandler.js.map +1 -0
- package/dist/components/ProductBlock/ProductBlock.mobile.js +7 -5
- package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +4 -0
- package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +8 -3
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.mobile.d.ts +2 -1
- package/dist/components/ProductBlock/renderBenefit.mobile.js +1 -1
- package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryContent.d.ts +4 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js +4 -4
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.js +4 -2
- package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.mobile.js +1 -1
- package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/dist/components/TextBlock/TextBlockContent.d.ts +1 -1
- package/dist/components/Tile/Tile.js +1 -1
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/content-page-repository/transformPicture.js +2 -1
- package/dist/content-page-repository/transformPicture.js.map +1 -1
- package/dist/icons/IconName.d.ts +77 -0
- package/dist/icons/IconName.js +79 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/BlockVersion.d.ts +1 -1
- package/dist/model/Picture.d.ts +2 -2
- package/dist/ui-kit/BlocksList/BlocksListProps.d.ts +46 -18
- package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +4 -2
- package/dist/ui-kit/BlocksList/renderBlocksList.js +3 -3
- package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/dist/ui-kit/Icon/Icon.js +4 -2
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +2 -2
- package/dist/ui-kit/Img/Img.js +3 -1
- package/dist/ui-kit/Img/Img.js.map +1 -1
- package/dist/ui-kit/List/List.d.ts +1 -1
- package/dist/ui-kit/List/List.js +7 -2
- package/dist/ui-kit/List/List.js.map +1 -1
- package/dist/ui-kit/List/ListItem.d.ts +1 -1
- package/dist/ui-kit/List/ListItem.js +4 -9
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/dist/ui-kit/List/ListProps.d.ts +2 -0
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.js +6 -2
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +8 -1
- package/lib/components/Accordion/AccordionItem.js +14 -5
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.js +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionItemInner.js +2 -2
- package/lib/components/Accordion/AccordionItemInner.js.map +1 -1
- package/lib/components/Accordion/AccordionItemInner.mobile.js +2 -2
- package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
- package/lib/components/Accordion/useActiveHandler.d.ts +7 -0
- package/{mobile/lib/components/Accordion/utils → lib/components/Accordion}/useActiveHandler.js +2 -2
- package/lib/components/Accordion/useActiveHandler.js.map +1 -0
- package/lib/components/BaseTile/getTileHeadingType.d.ts +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js +17 -5
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +18 -2
- package/lib/components/ComparisonTable/HeaderCell.d.ts +1 -0
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/ComparisonTable/TableColumn.d.ts +3 -2
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +4 -4
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +3 -8
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryContent.d.ts +4 -3
- package/lib/components/Headline/Headline.js +1 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +4 -10
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/lib/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
- package/lib/components/OtherProducts/OtherProductsContent.d.ts +4 -1
- package/lib/components/OtherProducts/OtherProductsItem.js +4 -4
- package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/lib/components/OtherProducts/useActiveHandler.d.ts +7 -0
- package/lib/components/OtherProducts/{utils/useActiveHandler.js → useActiveHandler.js} +2 -2
- package/lib/components/OtherProducts/useActiveHandler.js.map +1 -0
- package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +4 -0
- package/lib/components/ProductBlock/ProductBlock.mobile.js +7 -5
- package/lib/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +4 -0
- package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +8 -3
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.mobile.d.ts +2 -1
- package/lib/components/ProductBlock/renderBenefit.mobile.js +1 -1
- package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryContent.d.ts +4 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js +4 -4
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.js +4 -2
- package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.mobile.js +1 -1
- package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/lib/components/TextBlock/TextBlockContent.d.ts +1 -1
- package/lib/components/Tile/Tile.js +1 -1
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/content-page-repository/transformPicture.js +2 -1
- package/lib/content-page-repository/transformPicture.js.map +1 -1
- package/lib/icons/IconName.d.ts +77 -0
- package/lib/icons/IconName.js +78 -0
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/BlockVersion.d.ts +1 -1
- package/lib/model/Picture.d.ts +2 -2
- package/lib/ui-kit/BlocksList/BlocksListProps.d.ts +46 -18
- package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +4 -2
- package/lib/ui-kit/BlocksList/renderBlocksList.js +3 -3
- package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/lib/ui-kit/Icon/Icon.js +4 -2
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +2 -2
- package/lib/ui-kit/Img/Img.js +3 -1
- package/lib/ui-kit/Img/Img.js.map +1 -1
- package/lib/ui-kit/List/List.d.ts +1 -1
- package/lib/ui-kit/List/List.fixture.d.ts +10 -0
- package/lib/ui-kit/List/List.js +7 -2
- package/lib/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/List/ListItem.d.ts +1 -1
- package/lib/ui-kit/List/ListItem.js +4 -9
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/lib/ui-kit/List/ListProps.d.ts +2 -0
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +234 -77
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +8 -1
- package/mobile/dist/components/Accordion/AccordionItem.js +1 -1
- package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionItemInner.js +2 -2
- package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
- package/mobile/dist/components/Accordion/useActiveHandler.d.ts +7 -0
- package/mobile/dist/components/Accordion/{utils/useActiveHandler.js → useActiveHandler.js} +2 -2
- package/mobile/dist/components/Accordion/useActiveHandler.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js +17 -5
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +18 -2
- package/mobile/dist/components/ComparisonTable/TableColumn.d.ts +3 -2
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +4 -4
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +3 -8
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContent.d.ts +4 -3
- package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +4 -10
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/mobile/dist/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +4 -1
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js +4 -4
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/mobile/dist/components/OtherProducts/useActiveHandler.d.ts +7 -0
- package/mobile/dist/components/OtherProducts/{utils/useActiveHandler.js → useActiveHandler.js} +2 -2
- package/mobile/dist/components/OtherProducts/useActiveHandler.js.map +1 -0
- package/mobile/dist/components/ProductBlock/ProductBlock.js +7 -5
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +4 -0
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +8 -3
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBenefit.d.ts +2 -1
- package/mobile/dist/components/ProductBlock/renderBenefit.js +1 -1
- package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +4 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +4 -4
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +4 -2
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +1 -1
- package/mobile/dist/components/Tile/Tile.js +1 -1
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/content-page-repository/transformPicture.js +2 -1
- package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +77 -0
- package/mobile/dist/icons/IconName.js +79 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/BlockVersion.d.ts +1 -1
- package/mobile/dist/model/Picture.d.ts +2 -2
- package/mobile/dist/ui-kit/BlocksList/BlocksListProps.d.ts +46 -18
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +4 -2
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +3 -3
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js +4 -2
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +2 -2
- package/mobile/dist/ui-kit/List/List.d.ts +1 -1
- package/mobile/dist/ui-kit/List/List.js +7 -2
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListItem.d.ts +1 -1
- package/mobile/dist/ui-kit/List/ListItem.js +4 -9
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListProps.d.ts +2 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionContent.d.ts +8 -1
- package/mobile/lib/components/Accordion/AccordionItem.js +1 -1
- package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionItemInner.js +2 -2
- package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
- package/mobile/lib/components/Accordion/useActiveHandler.d.ts +7 -0
- package/{lib/components/Accordion/utils → mobile/lib/components/Accordion}/useActiveHandler.js +2 -2
- package/mobile/lib/components/Accordion/useActiveHandler.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js +17 -5
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +18 -2
- package/mobile/lib/components/ComparisonTable/TableColumn.d.ts +3 -2
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +4 -4
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +3 -8
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContent.d.ts +4 -3
- package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +4 -10
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/mobile/lib/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +4 -1
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js +4 -4
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/mobile/lib/components/OtherProducts/useActiveHandler.d.ts +7 -0
- package/mobile/lib/components/OtherProducts/{utils/useActiveHandler.js → useActiveHandler.js} +2 -2
- package/mobile/lib/components/OtherProducts/useActiveHandler.js.map +1 -0
- package/mobile/lib/components/ProductBlock/ProductBlock.js +7 -5
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +4 -0
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +8 -3
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBenefit.d.ts +2 -1
- package/mobile/lib/components/ProductBlock/renderBenefit.js +1 -1
- package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +4 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +4 -4
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +4 -2
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +1 -1
- package/mobile/lib/components/Tile/Tile.js +1 -1
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/content-page-repository/transformPicture.js +2 -1
- package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +77 -0
- package/mobile/lib/icons/IconName.js +78 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/BlockVersion.d.ts +1 -1
- package/mobile/lib/model/Picture.d.ts +2 -2
- package/mobile/lib/ui-kit/BlocksList/BlocksListProps.d.ts +46 -18
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +4 -2
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +3 -3
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js +4 -2
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +2 -2
- package/mobile/lib/ui-kit/List/List.d.ts +1 -1
- package/mobile/lib/ui-kit/List/List.js +7 -2
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListItem.d.ts +1 -1
- package/mobile/lib/ui-kit/List/ListItem.js +4 -9
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListProps.d.ts +2 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/src/components/Accordion/AccordionContent.ts +9 -2
- package/mobile/src/components/Accordion/AccordionItem.tsx +1 -1
- package/mobile/src/components/Accordion/AccordionItemInner.tsx +11 -9
- package/mobile/src/components/Accordion/{utils/useActiveHandler.ts → useActiveHandler.ts} +4 -3
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +51 -30
- package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +21 -2
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +3 -2
- package/mobile/src/components/ContentPage/ContentPage.page.json +1 -1
- package/mobile/src/components/ContentPage/ContentPage.tsx +0 -1
- package/mobile/src/components/Gallery/Gallery.example.json +2 -20
- package/mobile/src/components/Gallery/Gallery.tsx +5 -4
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +12 -17
- package/mobile/src/components/Gallery/GalleryContent.ts +4 -3
- package/mobile/src/components/Headline/Headline.example.json +8 -1
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +2 -2
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +3 -1
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +4 -11
- package/mobile/src/components/LinkDocs/LinkDocsHorizontalList.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +4 -2
- package/mobile/src/components/MiniGallery/MiniGalleryContent.ts +1 -0
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/mobile/src/components/OtherProducts/OtherProductsContent.ts +4 -1
- package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +29 -27
- package/{src/components/OtherProducts/utils → mobile/src/components/OtherProducts}/useActiveHandler.ts +4 -3
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +3 -1
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +17 -12
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +4 -0
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +25 -5
- package/mobile/src/components/ProductBlock/renderBenefit.tsx +2 -1
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +2 -1
- package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +4 -1
- package/mobile/src/components/StepsBlock/StepsBlock.example.json +1 -0
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +3 -1
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +28 -27
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +33 -31
- package/mobile/src/components/TextBlock/TextBlock.example.json +4 -3
- package/mobile/src/components/TextBlock/TextBlock.tsx +2 -2
- package/mobile/src/components/TextBlock/TextBlockContent.ts +1 -1
- package/mobile/src/components/Tile/Tile.tsx +3 -1
- package/mobile/src/content-page-repository/transformPicture.ts +2 -1
- package/mobile/src/icons/IconName.ts +4 -0
- package/mobile/src/model/BlockVersion.ts +1 -1
- package/mobile/src/model/Picture.ts +2 -2
- package/mobile/src/ui-kit/BlocksList/BlocksListProps.ts +27 -29
- package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +12 -4
- package/mobile/src/ui-kit/Icon/Icon.tsx +9 -2
- package/mobile/src/ui-kit/Icon/IconProps.ts +2 -2
- package/mobile/src/ui-kit/List/List.tsx +9 -3
- package/mobile/src/ui-kit/List/ListItem.tsx +5 -12
- package/mobile/src/ui-kit/List/ListProps.ts +2 -0
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +1 -1
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.tsx +27 -14
- package/src/components/Accordion/AccordionContent.ts +9 -2
- package/src/components/Accordion/AccordionItem.mobile.tsx +1 -1
- package/src/components/Accordion/AccordionItem.tsx +48 -26
- package/src/components/Accordion/AccordionItemInner.mobile.tsx +11 -9
- package/src/components/Accordion/AccordionItemInner.tsx +10 -8
- package/src/components/Accordion/{utils/useActiveHandler.ts → useActiveHandler.ts} +4 -3
- package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +1 -1
- package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +51 -30
- package/src/components/ComparisonTable/ComparisonTableContent.ts +21 -2
- package/src/components/ComparisonTable/HeaderCell.tsx +1 -0
- package/src/components/ComparisonTable/TableColumn.tsx +3 -2
- package/src/components/ContentPage/ContentPage.page.json +1 -1
- package/src/components/ContentPage/ContentPage.tsx +0 -1
- package/src/components/Gallery/Gallery.example.json +2 -20
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +3 -2
- package/src/components/Gallery/Gallery.mobile.tsx +5 -4
- package/src/components/Gallery/GalleryCardInner.tsx +12 -17
- package/src/components/Gallery/GalleryContent.ts +4 -3
- package/src/components/Headline/Headline.example.json +8 -1
- package/src/components/Headline/Headline.tsx +4 -2
- package/src/components/LinkDocs/LinkDocs.example.json +2 -2
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +3 -1
- package/src/components/LinkDocs/LinkDocsContent.ts +4 -11
- package/src/components/LinkDocs/LinkDocsHorizontalList.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsVerticalList.tsx +4 -2
- package/src/components/MiniGallery/MiniGalleryContent.ts +1 -0
- package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +1 -1
- package/src/components/OtherProducts/OtherProductsContent.ts +4 -1
- package/src/components/OtherProducts/OtherProductsItem.tsx +29 -27
- package/{mobile/src/components/OtherProducts/utils → src/components/OtherProducts}/useActiveHandler.ts +4 -3
- package/src/components/ProductBlock/ProductBlock.example.json +3 -1
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +49 -13
- package/src/components/ProductBlock/ProductBlock.mobile.tsx +17 -12
- package/src/components/ProductBlock/ProductBlockContent.ts +4 -0
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +25 -5
- package/src/components/ProductBlock/ProductBlockInner.tsx +8 -1
- package/src/components/ProductBlock/renderBenefit.mobile.tsx +2 -1
- package/src/components/ProductGallery/ProductGallery.example.json +2 -1
- package/src/components/ProductGallery/ProductGalleryContent.ts +4 -1
- package/src/components/StepsBlock/StepsBlock.example.json +1 -0
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +3 -1
- package/src/components/TariffsTable/TariffsTableCell.tsx +28 -27
- package/src/components/TariffsTable/TariffsTableContent.ts +1 -1
- package/src/components/TariffsTable/TariffsTableTileCell.tsx +33 -31
- package/src/components/TextBlock/TextBlock.example.json +4 -3
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +8 -0
- package/src/components/TextBlock/TextBlock.mobile.tsx +2 -2
- package/src/components/TextBlock/TextBlockContent.ts +1 -1
- package/src/components/Tile/Tile.tsx +3 -1
- package/src/content-page-repository/transformPicture.ts +2 -1
- package/src/icons/IconName.ts +78 -0
- package/src/model/BlockVersion.ts +1 -1
- package/src/model/Picture.ts +2 -2
- package/src/ui-kit/BlocksList/BlocksListProps.ts +27 -29
- package/src/ui-kit/BlocksList/renderBlocksList.tsx +12 -4
- package/src/ui-kit/Heading/Heading.tsx +1 -3
- package/src/ui-kit/Icon/Icon.tsx +9 -2
- package/src/ui-kit/Icon/IconProps.ts +2 -2
- package/src/ui-kit/Img/Img.tsx +5 -2
- package/src/ui-kit/List/List.fixture.tsx +37 -0
- package/src/ui-kit/List/List.tsx +9 -3
- package/src/ui-kit/List/ListItem.tsx +5 -12
- package/src/ui-kit/List/ListProps.ts +2 -0
- package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +1 -1
- package/dist/components/Accordion/utils/useActiveHandler.d.ts +0 -9
- package/dist/components/Accordion/utils/useActiveHandler.js.map +0 -1
- package/dist/components/OtherProducts/utils/useActiveHandler.d.ts +0 -9
- package/dist/components/OtherProducts/utils/useActiveHandler.js.map +0 -1
- package/dist/ui-kit/BlockItem/BlockItem.d.ts +0 -2
- package/dist/ui-kit/BlockItem/BlockItem.js +0 -23
- package/dist/ui-kit/BlockItem/BlockItem.js.map +0 -1
- package/dist/ui-kit/BlockItem/BlockItemProps.d.ts +0 -21
- package/dist/ui-kit/BlockItem/BlockItemProps.js +0 -2
- package/dist/ui-kit/BlockItem/BlockItemProps.js.map +0 -1
- package/lib/components/Accordion/utils/useActiveHandler.d.ts +0 -9
- package/lib/components/Accordion/utils/useActiveHandler.js.map +0 -1
- package/lib/components/OtherProducts/utils/useActiveHandler.d.ts +0 -9
- package/lib/components/OtherProducts/utils/useActiveHandler.js.map +0 -1
- package/lib/ui-kit/BlockItem/BlockItem.d.ts +0 -2
- package/lib/ui-kit/BlockItem/BlockItem.fixture.d.ts +0 -8
- package/lib/ui-kit/BlockItem/BlockItem.js +0 -21
- package/lib/ui-kit/BlockItem/BlockItem.js.map +0 -1
- package/lib/ui-kit/BlockItem/BlockItemProps.d.ts +0 -21
- package/lib/ui-kit/BlockItem/BlockItemProps.js +0 -2
- package/lib/ui-kit/BlockItem/BlockItemProps.js.map +0 -1
- package/mobile/dist/components/Accordion/utils/useActiveHandler.d.ts +0 -9
- package/mobile/dist/components/Accordion/utils/useActiveHandler.js.map +0 -1
- package/mobile/dist/components/OtherProducts/utils/useActiveHandler.d.ts +0 -9
- package/mobile/dist/components/OtherProducts/utils/useActiveHandler.js.map +0 -1
- package/mobile/dist/ui-kit/BlockItem/BlockItem.d.ts +0 -2
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js +0 -23
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +0 -1
- package/mobile/dist/ui-kit/BlockItem/BlockItemProps.d.ts +0 -21
- package/mobile/dist/ui-kit/BlockItem/BlockItemProps.js +0 -2
- package/mobile/dist/ui-kit/BlockItem/BlockItemProps.js.map +0 -1
- package/mobile/lib/components/Accordion/utils/useActiveHandler.d.ts +0 -9
- package/mobile/lib/components/Accordion/utils/useActiveHandler.js.map +0 -1
- package/mobile/lib/components/OtherProducts/utils/useActiveHandler.d.ts +0 -9
- package/mobile/lib/components/OtherProducts/utils/useActiveHandler.js.map +0 -1
- package/mobile/lib/ui-kit/BlockItem/BlockItem.d.ts +0 -2
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js +0 -21
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +0 -1
- package/mobile/lib/ui-kit/BlockItem/BlockItemProps.d.ts +0 -21
- package/mobile/lib/ui-kit/BlockItem/BlockItemProps.js +0 -2
- package/mobile/lib/ui-kit/BlockItem/BlockItemProps.js.map +0 -1
- package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +0 -33
- package/mobile/src/ui-kit/BlockItem/BlockItemProps.ts +0 -23
- package/src/ui-kit/BlockItem/BlockItem.fixture.tsx +0 -12
- package/src/ui-kit/BlockItem/BlockItem.tsx +0 -33
- package/src/ui-kit/BlockItem/BlockItemProps.ts +0 -23
|
@@ -2,19 +2,27 @@ import type { JSXBlock } from '../../components/ContentPage/ContentPage';
|
|
|
2
2
|
import type { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
|
|
3
3
|
import type { BlockDef, ColumnsCount } from './BlocksListProps';
|
|
4
4
|
import { EmbeddableBlocks } from './EmbeddableBlocks';
|
|
5
|
+
import { BlockVersion } from '../../model/BlockVersion';
|
|
5
6
|
|
|
6
7
|
type EmbeddableBlocksProps = {
|
|
7
8
|
blocks?: BlockDef[];
|
|
8
9
|
context: ContentPageContext;
|
|
9
10
|
columns?: ColumnsCount;
|
|
10
11
|
className?: string;
|
|
12
|
+
version?: BlockVersion;
|
|
11
13
|
};
|
|
12
14
|
|
|
13
|
-
export const renderBlocksList = ({
|
|
14
|
-
blocks
|
|
15
|
+
export const renderBlocksList = ({
|
|
16
|
+
blocks,
|
|
17
|
+
context,
|
|
18
|
+
className,
|
|
19
|
+
columns,
|
|
20
|
+
version,
|
|
21
|
+
}: EmbeddableBlocksProps) =>
|
|
22
|
+
blocks?.length ? blocks.map(renderBlock({ context, className, columns, version })) : null;
|
|
15
23
|
|
|
16
24
|
export const renderBlock =
|
|
17
|
-
({ context, columns, className }: EmbeddableBlocksProps) =>
|
|
25
|
+
({ context, columns, className, version }: EmbeddableBlocksProps) =>
|
|
18
26
|
(block: BlockDef, i: number) => {
|
|
19
27
|
const type = block?.blockListType;
|
|
20
28
|
if (!type || !(type in EmbeddableBlocks)) {
|
|
@@ -24,7 +32,7 @@ export const renderBlock =
|
|
|
24
32
|
const EmbeddedBlock: JSXBlock = EmbeddableBlocks[type];
|
|
25
33
|
return (
|
|
26
34
|
<div className={`${className} ${columnsCountClass}`} key={`block_${i}`}>
|
|
27
|
-
<EmbeddedBlock context={context} {...block} className="!p-0" />
|
|
35
|
+
<EmbeddedBlock context={context} {...block} blockVersion={version} className="!p-0" />
|
|
28
36
|
</div>
|
|
29
37
|
);
|
|
30
38
|
};
|
|
@@ -22,9 +22,7 @@ export const Heading = JSX<HeadingProps>((props) => {
|
|
|
22
22
|
const Tag = headingType;
|
|
23
23
|
|
|
24
24
|
return (
|
|
25
|
-
<Tag
|
|
26
|
-
className={`font-sans font-medium m-0 ${HEADING_STYLE_MAP[headingType]} ${className}`}
|
|
27
|
-
>
|
|
25
|
+
<Tag className={`font-sans font-medium m-0 ${HEADING_STYLE_MAP[headingType]} ${className}`}>
|
|
28
26
|
{title}
|
|
29
27
|
</Tag>
|
|
30
28
|
);
|
package/src/ui-kit/Icon/Icon.tsx
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { projectSettings } from '../../ProjectSettings';
|
|
3
3
|
import type { IconColor, IconProps } from './IconProps';
|
|
4
|
+
import { IconTitleMap } from '../../icons/IconName';
|
|
4
5
|
|
|
5
6
|
const svgColorsMap: Record<IconColor, string> = {
|
|
6
7
|
none: '',
|
|
7
8
|
primary: 'text-primary-main',
|
|
9
|
+
secondary: 'text-primary-text',
|
|
8
10
|
};
|
|
9
11
|
|
|
10
12
|
export const Icon = JSX<IconProps>(
|
|
11
13
|
({
|
|
12
14
|
className = '',
|
|
13
15
|
name,
|
|
14
|
-
alt =
|
|
16
|
+
alt = `Иконка ${IconTitleMap[name] || name}`,
|
|
15
17
|
title = alt,
|
|
16
18
|
asSVG,
|
|
17
19
|
color = 'primary',
|
|
@@ -21,7 +23,12 @@ export const Icon = JSX<IconProps>(
|
|
|
21
23
|
|
|
22
24
|
if (asSVG) {
|
|
23
25
|
return (
|
|
24
|
-
<svg
|
|
26
|
+
<svg
|
|
27
|
+
className={`${svgColorsMap[color]} ${className}`}
|
|
28
|
+
{...imgProps}
|
|
29
|
+
aria-hidden="true"
|
|
30
|
+
style={color === 'secondary' ? { filter: 'invert(1)' } : null}
|
|
31
|
+
>
|
|
25
32
|
{title ? <title>{title}</title> : null}
|
|
26
33
|
{alt ? <desc>{alt}</desc> : null}
|
|
27
34
|
<use href={`${href}#icon`} xlinkHref={`${href}#icon`} />
|
|
@@ -4,9 +4,9 @@ export type { IconName };
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @title Цвет иконки (svg)
|
|
7
|
-
* @enumNames ["Нет", "Основной"]
|
|
7
|
+
* @enumNames ["Нет", "Основной", "Второстепенный"]
|
|
8
8
|
*/
|
|
9
|
-
export type IconColor = 'none' | 'primary';
|
|
9
|
+
export type IconColor = 'none' | 'primary' | 'secondary';
|
|
10
10
|
|
|
11
11
|
export interface IconProps {
|
|
12
12
|
className?: string;
|
package/src/ui-kit/Img/Img.tsx
CHANGED
|
@@ -14,6 +14,9 @@ export const Img = JSX<ImageProps>(
|
|
|
14
14
|
height: size?.height ? `${size?.height}px` : '100%',
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
+
const title = image.title || '';
|
|
18
|
+
const alt = image.alt || title;
|
|
19
|
+
|
|
17
20
|
return (
|
|
18
21
|
<picture className={`flex-none ${className}`}>
|
|
19
22
|
{image.sources?.length
|
|
@@ -24,8 +27,8 @@ export const Img = JSX<ImageProps>(
|
|
|
24
27
|
<img
|
|
25
28
|
className={imageClassName}
|
|
26
29
|
src={image.src}
|
|
27
|
-
alt={
|
|
28
|
-
title={
|
|
30
|
+
alt={alt}
|
|
31
|
+
title={title}
|
|
29
32
|
style={style}
|
|
30
33
|
{...size}
|
|
31
34
|
/>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import '../../setup-fixture';
|
|
2
|
+
import { List } from './List';
|
|
3
|
+
|
|
4
|
+
const items = ['List Item #1', 'List Item #2', 'List Item #3', 'List Item #4'];
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
'primary dotted (default)': (
|
|
8
|
+
<div className="bg-white p-12">
|
|
9
|
+
<List items={items} />
|
|
10
|
+
</div>
|
|
11
|
+
),
|
|
12
|
+
'primary w/o dots': (
|
|
13
|
+
<div className="bg-white p-12">
|
|
14
|
+
<List items={items} isDotted={false} />
|
|
15
|
+
</div>
|
|
16
|
+
),
|
|
17
|
+
'secondary dotted': (
|
|
18
|
+
<div className="bg-primary-main p-12">
|
|
19
|
+
<List items={items} version="secondary" />
|
|
20
|
+
</div>
|
|
21
|
+
),
|
|
22
|
+
'secondary w/o dots': (
|
|
23
|
+
<div className="bg-primary-main p-12">
|
|
24
|
+
<List items={items} version="secondary" isDotted={false} />
|
|
25
|
+
</div>
|
|
26
|
+
),
|
|
27
|
+
'gray dotted': (
|
|
28
|
+
<div className="bg-white p-12">
|
|
29
|
+
<List items={items} version="gray" />
|
|
30
|
+
</div>
|
|
31
|
+
),
|
|
32
|
+
'gray w/o dots': (
|
|
33
|
+
<div className="bg-white p-12">
|
|
34
|
+
<List items={items} version="gray" isDotted={false} />
|
|
35
|
+
</div>
|
|
36
|
+
),
|
|
37
|
+
};
|
package/src/ui-kit/List/List.tsx
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { ListItem } from './ListItem';
|
|
3
|
-
import { ListProps } from './ListProps';
|
|
3
|
+
import type { ListProps, ListItemVersion } from './ListProps';
|
|
4
|
+
|
|
5
|
+
const TEXT_STYLE_MAP: Record<ListItemVersion, string> = {
|
|
6
|
+
primary: 'text-primary-text',
|
|
7
|
+
secondary: 'text-white',
|
|
8
|
+
gray: 'text-secondary-text',
|
|
9
|
+
};
|
|
4
10
|
|
|
5
11
|
export const List = JSX<ListProps>((props) => {
|
|
6
|
-
const { className = '', itemClassName, isDotted, items, version } = props;
|
|
12
|
+
const { className = '', itemClassName, isDotted, items, version = 'primary' } = props;
|
|
7
13
|
|
|
8
14
|
return (
|
|
9
|
-
<section className={`${className}`} role="list">
|
|
15
|
+
<section className={`${TEXT_STYLE_MAP[version]} ${className}`} role="list">
|
|
10
16
|
{items?.length
|
|
11
17
|
? items.map((_, i) => (
|
|
12
18
|
<ListItem
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { ListItemVersion } from './ListProps';
|
|
2
|
+
import type { ListItemVersion } from './ListProps';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @title Параметры элемента списка
|
|
@@ -13,13 +13,7 @@ export interface ListItemProps {
|
|
|
13
13
|
|
|
14
14
|
const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3 mt-2';
|
|
15
15
|
|
|
16
|
-
const
|
|
17
|
-
primary: 'text-primary-text',
|
|
18
|
-
secondary: 'text-white',
|
|
19
|
-
gray: 'text-secondary-text',
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const LIST_STYLE_MAP: Record<ListItemVersion, string> = {
|
|
16
|
+
const LIST_DOT_STYLE_MAP: Record<ListItemVersion, string> = {
|
|
23
17
|
primary: 'bg-primary-main',
|
|
24
18
|
secondary: 'bg-white',
|
|
25
19
|
gray: 'bg-secondary-text',
|
|
@@ -30,14 +24,13 @@ export const ListItem = JSX<ListItemProps>(
|
|
|
30
24
|
return (
|
|
31
25
|
<div className={`font-sans flex items-start ${className}`} role="listitem">
|
|
32
26
|
{isDotted && <div className={getListStyle(version)} />}
|
|
33
|
-
<span
|
|
27
|
+
<span>{children}</span>
|
|
34
28
|
</div>
|
|
35
29
|
);
|
|
36
30
|
},
|
|
37
31
|
);
|
|
38
32
|
|
|
39
33
|
const getListStyle = (version: ListItemVersion) => {
|
|
40
|
-
const size =
|
|
41
|
-
|
|
42
|
-
return `${LIST_STYLE_CLASSES} ${LIST_STYLE_MAP[version]} ${size}`;
|
|
34
|
+
const size = version === 'gray' ? 'w-1.5 h-1.5 min-w-1.5 min-h-1.5' : 'w-2 h-2 min-w-2 min-h-2';
|
|
35
|
+
return `${LIST_STYLE_CLASSES} ${LIST_DOT_STYLE_MAP[version]} ${size}`;
|
|
43
36
|
};
|
|
@@ -2,6 +2,7 @@ import type { ListContent } from './ListContent';
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @title Версия списка
|
|
5
|
+
* @enumNames ["Основной", "Второстепенный", "Серый"]
|
|
5
6
|
*/
|
|
6
7
|
export type ListItemVersion = 'primary' | 'secondary' | 'gray';
|
|
7
8
|
|
|
@@ -10,6 +11,7 @@ export type ListItemVersion = 'primary' | 'secondary' | 'gray';
|
|
|
10
11
|
*/
|
|
11
12
|
export interface ListProps extends ListContent {
|
|
12
13
|
className?: string;
|
|
14
|
+
/** @title Буллиты */
|
|
13
15
|
isDotted?: boolean;
|
|
14
16
|
version?: ListItemVersion;
|
|
15
17
|
itemClassName?: string;
|
|
@@ -31,7 +31,7 @@ export const SearchBar = JSX<UniBlockProps>(({ className, context }) => {
|
|
|
31
31
|
placeholder="some search"
|
|
32
32
|
/>
|
|
33
33
|
<button
|
|
34
|
-
className="visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer"
|
|
34
|
+
className="visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none"
|
|
35
35
|
onClick={(e) => {
|
|
36
36
|
e.preventDefault();
|
|
37
37
|
setTerm('');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/Accordion/utils/useActiveHandler.ts"],"names":[],"mappings":";;AAEO,MAAM,gBAAgB,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC;IAE3D,MAAM,eAAe,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC;IAEzE,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC;AApBW,QAAA,gBAAgB,oBAoB3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/OtherProducts/utils/useActiveHandler.ts"],"names":[],"mappings":";;AAEO,MAAM,gBAAgB,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC;IAElE,MAAM,eAAe,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC;IAE7E,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC;AApBW,QAAA,gBAAgB,oBAoB3B"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.BlockItem = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3 mt-2';
|
|
6
|
-
const TEXT_STYLE_MAP = {
|
|
7
|
-
primary: 'text-secondary-text',
|
|
8
|
-
secondary: 'text-white',
|
|
9
|
-
gray: 'text-secondary-text',
|
|
10
|
-
};
|
|
11
|
-
const LIST_STYLE_MAP = {
|
|
12
|
-
primary: 'bg-primary-main',
|
|
13
|
-
secondary: 'bg-white',
|
|
14
|
-
gray: 'bg-secondary-text',
|
|
15
|
-
};
|
|
16
|
-
exports.BlockItem = (0, uni_jsx_1.JSX)(({ className = '', isDotted = true, text, children, version = 'primary' }) => {
|
|
17
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && (0, jsx_runtime_1.jsx)("div", { className: getListStyle(version) }), (0, jsx_runtime_1.jsx)("span", { className: TEXT_STYLE_MAP[version], children: text || children })] }));
|
|
18
|
-
});
|
|
19
|
-
const getListStyle = (version) => {
|
|
20
|
-
const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
|
|
21
|
-
return `${LIST_STYLE_CLASSES} ${LIST_STYLE_MAP[version]} ${size}`;
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=BlockItem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockItem.js","sourceRoot":"","sources":["../../../src/ui-kit/BlockItem/BlockItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,MAAM,kBAAkB,GAAG,qCAAqC,CAAC;AAEjE,MAAM,cAAc,GAAqC;IACvD,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;CAC5B,CAAC;AAEF,MAAM,cAAc,GAAqC;IACvD,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,mBAAmB;CAC1B,CAAC;AAEW,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IAC3E,OAAO,CACL,iCAAK,SAAS,EAAE,8BAA8B,SAAS,EAAE,EAAE,IAAI,EAAC,UAAU,aACvE,QAAQ,IAAI,gCAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,GAAI,EACtD,iCAAM,SAAS,EAAE,cAAc,CAAC,OAAO,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,IAC/D,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,OAAyB,EAAE,EAAE;IACjD,MAAM,IAAI,GACR,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,yCAAyC,CAAC,CAAC,CAAC,yBAAyB,CAAC;IAC7F,OAAO,GAAG,kBAAkB,IAAI,cAAc,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;AACpE,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title Версия списка
|
|
3
|
-
* @enumNames ["Основной", "Второстепенный", "Белый"]
|
|
4
|
-
*/
|
|
5
|
-
export declare type BlockItemVersion = 'primary' | 'secondary' | 'gray';
|
|
6
|
-
/**
|
|
7
|
-
* @title Содержимое элемента блока
|
|
8
|
-
*/
|
|
9
|
-
export interface BlockItemContent {
|
|
10
|
-
/** @title Текст */
|
|
11
|
-
text?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @title Параметры элемента блока
|
|
15
|
-
*/
|
|
16
|
-
export interface BlockItemProps extends BlockItemContent {
|
|
17
|
-
className?: string;
|
|
18
|
-
version?: BlockItemVersion;
|
|
19
|
-
/** @title Маркер */
|
|
20
|
-
isDotted?: boolean;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockItemProps.js","sourceRoot":"","sources":["../../../src/ui-kit/BlockItem/BlockItemProps.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/Accordion/utils/useActiveHandler.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC;IAE3D,MAAM,eAAe,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC;IAEzE,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/OtherProducts/utils/useActiveHandler.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC;IAElE,MAAM,eAAe,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC;IAE7E,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3 mt-2';
|
|
4
|
-
const TEXT_STYLE_MAP = {
|
|
5
|
-
primary: 'text-secondary-text',
|
|
6
|
-
secondary: 'text-white',
|
|
7
|
-
gray: 'text-secondary-text',
|
|
8
|
-
};
|
|
9
|
-
const LIST_STYLE_MAP = {
|
|
10
|
-
primary: 'bg-primary-main',
|
|
11
|
-
secondary: 'bg-white',
|
|
12
|
-
gray: 'bg-secondary-text',
|
|
13
|
-
};
|
|
14
|
-
export const BlockItem = JSX(({ className = '', isDotted = true, text, children, version = 'primary' }) => {
|
|
15
|
-
return (_jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && _jsx("div", { className: getListStyle(version) }), _jsx("span", { className: TEXT_STYLE_MAP[version], children: text || children })] }));
|
|
16
|
-
});
|
|
17
|
-
const getListStyle = (version) => {
|
|
18
|
-
const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
|
|
19
|
-
return `${LIST_STYLE_CLASSES} ${LIST_STYLE_MAP[version]} ${size}`;
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=BlockItem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockItem.js","sourceRoot":"","sources":["../../../src/ui-kit/BlockItem/BlockItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,MAAM,kBAAkB,GAAG,qCAAqC,CAAC;AAEjE,MAAM,cAAc,GAAqC;IACvD,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;CAC5B,CAAC;AAEF,MAAM,cAAc,GAAqC;IACvD,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,mBAAmB;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAC1B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IAC3E,OAAO,CACL,eAAK,SAAS,EAAE,8BAA8B,SAAS,EAAE,EAAE,IAAI,EAAC,UAAU,aACvE,QAAQ,IAAI,cAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,GAAI,EACtD,eAAM,SAAS,EAAE,cAAc,CAAC,OAAO,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,IAC/D,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,OAAyB,EAAE,EAAE;IACjD,MAAM,IAAI,GACR,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,yCAAyC,CAAC,CAAC,CAAC,yBAAyB,CAAC;IAC7F,OAAO,GAAG,kBAAkB,IAAI,cAAc,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;AACpE,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title Версия списка
|
|
3
|
-
* @enumNames ["Основной", "Второстепенный", "Белый"]
|
|
4
|
-
*/
|
|
5
|
-
export declare type BlockItemVersion = 'primary' | 'secondary' | 'gray';
|
|
6
|
-
/**
|
|
7
|
-
* @title Содержимое элемента блока
|
|
8
|
-
*/
|
|
9
|
-
export interface BlockItemContent {
|
|
10
|
-
/** @title Текст */
|
|
11
|
-
text?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @title Параметры элемента блока
|
|
15
|
-
*/
|
|
16
|
-
export interface BlockItemProps extends BlockItemContent {
|
|
17
|
-
className?: string;
|
|
18
|
-
version?: BlockItemVersion;
|
|
19
|
-
/** @title Маркер */
|
|
20
|
-
isDotted?: boolean;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockItemProps.js","sourceRoot":"","sources":["../../../src/ui-kit/BlockItem/BlockItemProps.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/Accordion/utils/useActiveHandler.ts"],"names":[],"mappings":";;AAEO,MAAM,gBAAgB,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC;IAE3D,MAAM,eAAe,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC;IAEzE,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC;AApBW,QAAA,gBAAgB,oBAoB3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/OtherProducts/utils/useActiveHandler.ts"],"names":[],"mappings":";;AAEO,MAAM,gBAAgB,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC;IAElE,MAAM,eAAe,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC;IAE7E,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC;AApBW,QAAA,gBAAgB,oBAoB3B"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.BlockItem = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3 mt-2';
|
|
6
|
-
const TEXT_STYLE_MAP = {
|
|
7
|
-
primary: 'text-secondary-text',
|
|
8
|
-
secondary: 'text-white',
|
|
9
|
-
gray: 'text-secondary-text',
|
|
10
|
-
};
|
|
11
|
-
const LIST_STYLE_MAP = {
|
|
12
|
-
primary: 'bg-primary-main',
|
|
13
|
-
secondary: 'bg-white',
|
|
14
|
-
gray: 'bg-secondary-text',
|
|
15
|
-
};
|
|
16
|
-
exports.BlockItem = (0, uni_jsx_1.JSX)(({ className = '', isDotted = true, text, children, version = 'primary' }) => {
|
|
17
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && (0, jsx_runtime_1.jsx)("div", { className: getListStyle(version) }), (0, jsx_runtime_1.jsx)("span", { className: TEXT_STYLE_MAP[version], children: text || children })] }));
|
|
18
|
-
});
|
|
19
|
-
const getListStyle = (version) => {
|
|
20
|
-
const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
|
|
21
|
-
return `${LIST_STYLE_CLASSES} ${LIST_STYLE_MAP[version]} ${size}`;
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=BlockItem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockItem.js","sourceRoot":"","sources":["../../../src/ui-kit/BlockItem/BlockItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,MAAM,kBAAkB,GAAG,qCAAqC,CAAC;AAEjE,MAAM,cAAc,GAAqC;IACvD,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;CAC5B,CAAC;AAEF,MAAM,cAAc,GAAqC;IACvD,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,mBAAmB;CAC1B,CAAC;AAEW,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IAC3E,OAAO,CACL,iCAAK,SAAS,EAAE,8BAA8B,SAAS,EAAE,EAAE,IAAI,EAAC,UAAU,aACvE,QAAQ,IAAI,gCAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,GAAI,EACtD,iCAAM,SAAS,EAAE,cAAc,CAAC,OAAO,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,IAC/D,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,OAAyB,EAAE,EAAE;IACjD,MAAM,IAAI,GACR,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,yCAAyC,CAAC,CAAC,CAAC,yBAAyB,CAAC;IAC7F,OAAO,GAAG,kBAAkB,IAAI,cAAc,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;AACpE,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title Версия списка
|
|
3
|
-
* @enumNames ["Основной", "Второстепенный", "Белый"]
|
|
4
|
-
*/
|
|
5
|
-
export declare type BlockItemVersion = 'primary' | 'secondary' | 'gray';
|
|
6
|
-
/**
|
|
7
|
-
* @title Содержимое элемента блока
|
|
8
|
-
*/
|
|
9
|
-
export interface BlockItemContent {
|
|
10
|
-
/** @title Текст */
|
|
11
|
-
text?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @title Параметры элемента блока
|
|
15
|
-
*/
|
|
16
|
-
export interface BlockItemProps extends BlockItemContent {
|
|
17
|
-
className?: string;
|
|
18
|
-
version?: BlockItemVersion;
|
|
19
|
-
/** @title Маркер */
|
|
20
|
-
isDotted?: boolean;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockItemProps.js","sourceRoot":"","sources":["../../../src/ui-kit/BlockItem/BlockItemProps.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/Accordion/utils/useActiveHandler.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC;IAE3D,MAAM,eAAe,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC;IAEzE,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/OtherProducts/utils/useActiveHandler.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC;IAElE,MAAM,eAAe,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC;IAE7E,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3 mt-2';
|
|
4
|
-
const TEXT_STYLE_MAP = {
|
|
5
|
-
primary: 'text-secondary-text',
|
|
6
|
-
secondary: 'text-white',
|
|
7
|
-
gray: 'text-secondary-text',
|
|
8
|
-
};
|
|
9
|
-
const LIST_STYLE_MAP = {
|
|
10
|
-
primary: 'bg-primary-main',
|
|
11
|
-
secondary: 'bg-white',
|
|
12
|
-
gray: 'bg-secondary-text',
|
|
13
|
-
};
|
|
14
|
-
export const BlockItem = JSX(({ className = '', isDotted = true, text, children, version = 'primary' }) => {
|
|
15
|
-
return (_jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && _jsx("div", { className: getListStyle(version) }), _jsx("span", { className: TEXT_STYLE_MAP[version], children: text || children })] }));
|
|
16
|
-
});
|
|
17
|
-
const getListStyle = (version) => {
|
|
18
|
-
const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
|
|
19
|
-
return `${LIST_STYLE_CLASSES} ${LIST_STYLE_MAP[version]} ${size}`;
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=BlockItem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockItem.js","sourceRoot":"","sources":["../../../src/ui-kit/BlockItem/BlockItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,MAAM,kBAAkB,GAAG,qCAAqC,CAAC;AAEjE,MAAM,cAAc,GAAqC;IACvD,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;CAC5B,CAAC;AAEF,MAAM,cAAc,GAAqC;IACvD,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,mBAAmB;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAC1B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IAC3E,OAAO,CACL,eAAK,SAAS,EAAE,8BAA8B,SAAS,EAAE,EAAE,IAAI,EAAC,UAAU,aACvE,QAAQ,IAAI,cAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,GAAI,EACtD,eAAM,SAAS,EAAE,cAAc,CAAC,OAAO,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,IAC/D,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,OAAyB,EAAE,EAAE;IACjD,MAAM,IAAI,GACR,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,yCAAyC,CAAC,CAAC,CAAC,yBAAyB,CAAC;IAC7F,OAAO,GAAG,kBAAkB,IAAI,cAAc,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;AACpE,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title Версия списка
|
|
3
|
-
* @enumNames ["Основной", "Второстепенный", "Белый"]
|
|
4
|
-
*/
|
|
5
|
-
export declare type BlockItemVersion = 'primary' | 'secondary' | 'gray';
|
|
6
|
-
/**
|
|
7
|
-
* @title Содержимое элемента блока
|
|
8
|
-
*/
|
|
9
|
-
export interface BlockItemContent {
|
|
10
|
-
/** @title Текст */
|
|
11
|
-
text?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @title Параметры элемента блока
|
|
15
|
-
*/
|
|
16
|
-
export interface BlockItemProps extends BlockItemContent {
|
|
17
|
-
className?: string;
|
|
18
|
-
version?: BlockItemVersion;
|
|
19
|
-
/** @title Маркер */
|
|
20
|
-
isDotted?: boolean;
|
|
21
|
-
}
|