@redneckz/wildless-cms-uni-blocks 0.2.83 → 0.2.86
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 -945
- package/bundle/bundle.umd.js +203 -198
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +29 -10
- package/dist/components/Accordion/AccordionItem.d.ts +2 -2
- package/dist/components/Accordion/AccordionItem.js +5 -6
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/BaseTile/BaseTile.d.ts +2 -2
- package/dist/components/BaseTile/BaseTile.js +1 -1
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/BaseTile/BaseTileProps.d.ts +31 -0
- package/dist/{model/SitemapContent.js → components/BaseTile/BaseTileProps.js} +1 -1
- package/dist/components/BaseTile/BaseTileProps.js.map +1 -0
- package/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +2 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +14 -1
- package/dist/components/BlockContent.d.ts +4 -1
- package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +45 -2
- package/dist/components/ComparisonTable/HeaderCell.d.ts +2 -2
- package/dist/components/ContentPage/ContentPage.d.ts +3 -2
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +4 -0
- package/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +4 -0
- package/dist/components/Footer/Contacts.js +2 -2
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +35 -9
- package/dist/components/Footer/FooterLink.d.ts +2 -2
- package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/dist/components/Footer/Sitemap.d.ts +1 -1
- package/dist/components/Footer/Sitemap.js +1 -1
- package/dist/components/Footer/Sitemap.js.map +1 -1
- package/dist/components/Footer/SocialMedia.d.ts +2 -2
- package/dist/components/Footer/SocialMedia.js +2 -2
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Footer/TextInformation.js.map +1 -1
- package/dist/components/Gallery/GalleryContent.d.ts +13 -0
- package/dist/components/Header/HeaderContent.d.ts +10 -2
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenuButton.js +1 -1
- package/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/dist/components/Header/isSubItemActive.d.ts +2 -2
- package/dist/components/Header/isSubItemActive.js.map +1 -1
- package/dist/components/Header/isTopItemActive.d.ts +2 -2
- package/dist/components/Header/isTopItemActive.js.map +1 -1
- package/dist/components/MiniGallery/MiniGallery.d.ts +3 -3
- package/dist/components/MiniGallery/MiniGalleryContent.d.ts +6 -0
- package/dist/components/MiniGallery/MiniGalleryContent.js +2 -0
- package/dist/components/MiniGallery/MiniGalleryContent.js.map +1 -0
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +11 -2
- package/dist/components/Placeholder/PlaceholderContent.d.ts +3 -0
- package/dist/components/ProductBlock/ProductBlock.mobile.d.ts +2 -2
- package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -5
- package/dist/components/ProductBlock/ProductBlockInner.d.ts +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryContent.d.ts +17 -2
- package/dist/components/ProductTile/ProductTileContent.d.ts +6 -2
- package/dist/components/PromoTile/PromoTileContent.d.ts +6 -2
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +13 -0
- package/dist/components/TextBlock/TextBlockContent.d.ts +13 -0
- package/dist/components/Tile/TileContent.d.ts +5 -2
- package/dist/hooks/useLink.d.ts +3 -3
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/index.d.ts +12 -12
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/mergeTopItems.d.ts +2 -2
- package/dist/mergeTopItems.js.map +1 -1
- package/dist/model/BlockVersion.d.ts +4 -0
- package/dist/model/ButtonVersion.d.ts +4 -0
- package/dist/model/LinkProps.d.ts +21 -0
- package/dist/model/{LinkContent.js → LinkProps.js} +1 -1
- package/dist/model/LinkProps.js.map +1 -0
- package/dist/model/Picture.d.ts +11 -0
- package/dist/model/SitemapProps.d.ts +13 -0
- package/dist/{components/BaseTile/BaseTileContent.js → model/SitemapProps.js} +1 -1
- package/dist/model/SitemapProps.js.map +1 -0
- package/dist/types.d.ts +2 -2
- package/dist/ui-kit/Breadcrumb.d.ts +2 -2
- package/dist/ui-kit/Button/Button.d.ts +6 -3
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/ButtonProps.d.ts +15 -12
- package/dist/ui-kit/Icon/Icon.js +7 -1
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +50 -19
- package/dist/ui-kit/Icon/IconProps.js +21 -18
- package/dist/ui-kit/Icon/IconProps.js.map +1 -1
- package/dist/ui-kit/TopItem/TopItem.d.ts +2 -2
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.js +1 -1
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +29 -10
- package/lib/components/Accordion/AccordionItem.d.ts +2 -2
- package/lib/components/Accordion/AccordionItem.js +5 -6
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/BaseTile/BaseTile.d.ts +2 -2
- package/lib/components/BaseTile/BaseTile.js +1 -1
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/BaseTile/BaseTileProps.d.ts +31 -0
- package/lib/components/BaseTile/BaseTileProps.js +2 -0
- package/lib/components/BaseTile/BaseTileProps.js.map +1 -0
- package/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +2 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +14 -1
- package/lib/components/BlockContent.d.ts +4 -1
- package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +45 -2
- package/lib/components/ComparisonTable/HeaderCell.d.ts +2 -2
- package/lib/components/ContentPage/ContentPage.d.ts +3 -2
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +4 -0
- package/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +4 -0
- package/lib/components/Footer/Contacts.js +2 -2
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +35 -9
- package/lib/components/Footer/FooterLink.d.ts +2 -2
- package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/lib/components/Footer/Sitemap.d.ts +1 -1
- package/lib/components/Footer/Sitemap.js +1 -1
- package/lib/components/Footer/Sitemap.js.map +1 -1
- package/lib/components/Footer/SocialMedia.d.ts +2 -2
- package/lib/components/Footer/SocialMedia.js +2 -2
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Footer/TextInformation.js.map +1 -1
- package/lib/components/Gallery/GalleryContent.d.ts +13 -0
- package/lib/components/Header/HeaderContent.d.ts +10 -2
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenuButton.js +1 -1
- package/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/lib/components/Header/isSubItemActive.d.ts +2 -2
- package/lib/components/Header/isSubItemActive.js.map +1 -1
- package/lib/components/Header/isTopItemActive.d.ts +2 -2
- package/lib/components/Header/isTopItemActive.js.map +1 -1
- package/lib/components/MiniGallery/MiniGallery.d.ts +3 -3
- package/lib/components/MiniGallery/MiniGalleryContent.d.ts +6 -0
- package/lib/components/MiniGallery/MiniGalleryContent.js +2 -0
- package/lib/components/MiniGallery/MiniGalleryContent.js.map +1 -0
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +11 -2
- package/lib/components/Placeholder/PlaceholderContent.d.ts +3 -0
- package/lib/components/ProductBlock/ProductBlock.mobile.d.ts +2 -2
- package/lib/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -5
- package/lib/components/ProductBlock/ProductBlockInner.d.ts +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryContent.d.ts +17 -2
- package/lib/components/ProductTile/ProductTileContent.d.ts +6 -2
- package/lib/components/PromoTile/PromoTileContent.d.ts +6 -2
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +13 -0
- package/lib/components/TextBlock/TextBlockContent.d.ts +13 -0
- package/lib/components/Tile/TileContent.d.ts +5 -2
- package/lib/hooks/useLink.d.ts +3 -3
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/index.d.ts +12 -12
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/lib/mergeTopItems.d.ts +2 -2
- package/lib/mergeTopItems.js.map +1 -1
- package/lib/model/BlockVersion.d.ts +4 -0
- package/lib/model/ButtonVersion.d.ts +4 -0
- package/lib/model/LinkProps.d.ts +21 -0
- package/lib/model/LinkProps.js +2 -0
- package/lib/model/LinkProps.js.map +1 -0
- package/lib/model/Picture.d.ts +11 -0
- package/lib/model/SitemapProps.d.ts +13 -0
- package/lib/model/SitemapProps.js +2 -0
- package/lib/model/SitemapProps.js.map +1 -0
- package/lib/types.d.ts +2 -2
- package/lib/ui-kit/Breadcrumb.d.ts +2 -2
- package/lib/ui-kit/Button/Button.d.ts +6 -3
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/ButtonProps.d.ts +15 -12
- package/lib/ui-kit/Icon/Icon.js +7 -1
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +50 -19
- package/lib/ui-kit/Icon/IconProps.js +21 -18
- package/lib/ui-kit/Icon/IconProps.js.map +1 -1
- package/lib/ui-kit/TopItem/TopItem.d.ts +2 -2
- package/package.json +17 -36
- package/src/components/Accordion/Accordion.example.json +74 -0
- package/src/components/Accordion/Accordion.fixture.tsx +1 -16
- package/src/components/Accordion/Accordion.tsx +1 -1
- package/src/components/Accordion/AccordionContent.ts +31 -11
- package/src/components/Accordion/AccordionItem.tsx +10 -10
- package/src/components/BaseTile/BaseTile.tsx +4 -5
- package/src/components/BaseTile/BaseTileProps.ts +33 -0
- package/src/components/BenefitsBlock/BenefitsBlock.example.json +13 -0
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -2
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +14 -1
- package/src/components/BlockContent.ts +4 -1
- package/src/components/ComparisonTable/ComparisonTable.example.json +84 -0
- package/src/components/ComparisonTable/ComparisonTableContent.ts +46 -3
- package/src/components/ComparisonTable/HeaderCell.tsx +2 -2
- package/src/components/ContentPage/ContentPage.tsx +7 -5
- package/src/components/CreditCalculator/CreditCalculatorContent.ts +4 -0
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +2 -2
- package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +4 -0
- package/src/components/Footer/Contacts.tsx +2 -2
- package/src/components/Footer/FooterContent.ts +36 -9
- package/src/components/Footer/FooterLink.ts +2 -2
- package/src/components/Footer/HorizontalNavigation.tsx +2 -2
- package/src/components/Footer/Sitemap.tsx +5 -5
- package/src/components/Footer/SocialMedia.tsx +5 -12
- package/src/components/Footer/TextInformation.tsx +2 -2
- package/src/components/Gallery/Gallery.example.json +71 -0
- package/src/components/Gallery/GalleryContent.ts +13 -0
- package/src/components/Header/HeaderContent.ts +10 -2
- package/src/components/Header/HeaderSecondaryMenu.tsx +4 -8
- package/src/components/Header/HeaderSecondaryMenuButton.tsx +1 -1
- package/src/components/Header/isSubItemActive.ts +3 -3
- package/src/components/Header/isTopItemActive.ts +3 -3
- package/src/components/MiniGallery/MiniGallery.example.json +61 -0
- package/src/components/MiniGallery/MiniGallery.tsx +3 -3
- package/src/components/MiniGallery/MiniGalleryContent.ts +6 -0
- package/src/components/MobileAppTile/MobileAppTile.example.json +20 -0
- package/src/components/MobileAppTile/MobileAppTileContent.ts +11 -2
- package/src/components/Placeholder/PlaceholderContent.ts +3 -0
- package/src/components/ProductBlock/ProductBlock.example.json +17 -0
- package/src/components/ProductBlock/ProductBlock.mobile.tsx +3 -3
- package/src/components/ProductBlock/ProductBlockContent.ts +10 -5
- package/src/components/ProductBlock/ProductBlockInner.tsx +4 -4
- package/src/components/ProductGallery/ProductGallery.example.json +21 -0
- package/src/components/ProductGallery/ProductGallery.tsx +3 -3
- package/src/components/ProductGallery/ProductGalleryContent.ts +17 -2
- package/src/components/ProductTile/ProductTile.example.json +30 -0
- package/src/components/ProductTile/ProductTileContent.ts +6 -2
- package/src/components/PromoTile/PromoTile.example.json +13 -0
- package/src/components/PromoTile/PromoTileContent.ts +6 -2
- package/src/components/StepsBlock/StepsBlock.example.json +17 -0
- package/src/components/StepsBlock/StepsBlockContent.ts +13 -0
- package/src/components/TextBlock/TextBlock.example.json +6 -0
- package/src/components/TextBlock/TextBlockContent.ts +14 -0
- package/src/components/Tile/Tile.example.json +18 -0
- package/src/components/Tile/TileContent.ts +5 -2
- package/src/hooks/useLink.ts +2 -2
- package/src/icons/GridIcon.svg +4 -7
- package/src/index.ts +14 -21
- package/src/mergeTopItems.ts +5 -5
- package/src/model/BlockVersion.ts +4 -0
- package/src/model/ButtonVersion.ts +4 -0
- package/src/model/LinkProps.ts +22 -0
- package/src/model/Picture.ts +11 -0
- package/src/model/SitemapProps.ts +15 -0
- package/src/types.ts +2 -2
- package/src/ui-kit/Breadcrumb.tsx +2 -2
- package/src/ui-kit/Button/Button.tsx +7 -3
- package/src/ui-kit/Button/ButtonProps.ts +16 -13
- package/src/ui-kit/Icon/Icon.tsx +23 -9
- package/src/ui-kit/Icon/IconProps.ts +36 -5
- package/src/ui-kit/TopItem/TopItem.tsx +2 -2
- package/dist/components/BaseTile/BaseTileContent.d.ts +0 -13
- package/dist/components/BaseTile/BaseTileContent.js.map +0 -1
- package/dist/model/LinkContent.d.ts +0 -5
- package/dist/model/LinkContent.js.map +0 -1
- package/dist/model/SitemapContent.d.ts +0 -7
- package/dist/model/SitemapContent.js.map +0 -1
- package/lib/components/BaseTile/BaseTileContent.d.ts +0 -13
- package/lib/components/BaseTile/BaseTileContent.js +0 -2
- package/lib/components/BaseTile/BaseTileContent.js.map +0 -1
- package/lib/model/LinkContent.d.ts +0 -5
- package/lib/model/LinkContent.js +0 -2
- package/lib/model/LinkContent.js.map +0 -1
- package/lib/model/SitemapContent.d.ts +0 -7
- package/lib/model/SitemapContent.js +0 -2
- package/lib/model/SitemapContent.js.map +0 -1
- package/src/components/BaseTile/BaseTileContent.ts +0 -14
- package/src/model/LinkContent.ts +0 -5
- package/src/model/SitemapContent.ts +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGallery.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"ProductGallery.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,yEAAsE;AAKzD,QAAA,cAAc,GAAG,IAAA,aAAG,EAC/B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,GAAG,CAAC,EAAE,MAAM,GAAG,EAAE,EAAE,EAAE,EAAE;IACpD,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAC5C,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IACxD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEpE,OAAO,CACL,qCAAS,SAAS,EAAE,4CAA4C,SAAS,IAAI,EAAE,EAAE,aAC/E,gCACE,SAAS,EAAE,oBAAoB,EAC/B,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,gBAAgB,MAAM,EAAE,EAC3D,IAAI,EAAC,MAAM,YAEV,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,GAC3D,EAEN,gCAAK,SAAS,EAAE,gDAAgD,YAC7D,UAAU,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAC3B,eAAe,CAAC;oBACd,KAAK;oBACL,CAAC;oBACD,gBAAgB;oBAChB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC;oBACrC,QAAQ;iBACT,CAAC,CACH,GACG,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,kBAAkB,CAAC,KAAmC,EAAE,CAAS,EAAE,OAAO;IACjF,OAAO,CACL,oCAAyB,SAAS,EAAC,iCAAiC,EAAC,IAAI,EAAC,UAAU,YAClF,gCAAK,SAAS,EAAC,gBAAgB,YAC7B,uBAAC,qCAAiB,IAChB,SAAS,EAAC,mCAAmC,EAC7C,OAAO,EAAE,OAAO,KACZ,KAAK,GACT,GACE,IAPM,MAAM,CAAC,CAAC,CAAC,CAQb,CACX,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,gBAAgB,EAAE,OAAO,EAAE,QAAQ,EAAE;IACxE,MAAM,WAAW,GAAG,CAAC,KAAK,gBAAgB,CAAC;IAC3C,MAAM,oBAAoB,GAAG,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IAChE,MAAM,iBAAiB,GAAG,WAAW,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,qBAAqB,CAAC;IACpF,OAAO,CACL,oCACE,IAAI,EAAC,QAAQ,EAEb,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,oGAAoG,aAE/G,iCAAK,SAAS,EAAC,yDAAyD,aACtE,gCAAK,SAAS,EAAE,qDAAqD,iBAAiB,EAAE,YACrF,KAAK,EAAE,KAAK,GACT,EACN,gCAAK,SAAS,EAAC,6BAA6B,YAAE,KAAK,CAAC,IAAI,GAAO,IAC3D,EACN,gCACE,SAAS,EAAE,6EAA6E,oBAAoB,EAAE,EAC9G,KAAK,EAAE,EAAE,iBAAiB,EAAE,GAAG,QAAQ,GAAG,EAAE,GACvC,KAbF,MAAM,CAAC,CAAC,CAAC,CAcP,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,14 +1,29 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ProductBlockInnerCommonProps } from '../ProductBlock/ProductBlockContent';
|
|
2
|
+
/** @title Кнопка под слайдом */
|
|
2
3
|
interface ProductGalleryNav {
|
|
4
|
+
/** @title Заголовок */
|
|
3
5
|
title: string;
|
|
6
|
+
/** @title Описание */
|
|
4
7
|
desc: string;
|
|
5
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* @title Слайд
|
|
11
|
+
*/
|
|
6
12
|
export interface ProductSlideContent {
|
|
7
13
|
nav: ProductGalleryNav;
|
|
8
|
-
|
|
14
|
+
/** @title Содержимое слайда */
|
|
15
|
+
productBlock: ProductBlockInnerCommonProps;
|
|
9
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* @title Продуктовая галерея
|
|
19
|
+
*/
|
|
10
20
|
export interface ProductGalleryContent {
|
|
21
|
+
/**
|
|
22
|
+
* @title Задержка
|
|
23
|
+
* @hidden //! temporary not used
|
|
24
|
+
*/
|
|
11
25
|
duration?: number;
|
|
26
|
+
/** @title Слайды */
|
|
12
27
|
slides?: ProductSlideContent[];
|
|
13
28
|
}
|
|
14
29
|
export {};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
|
|
2
2
|
import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @title Продуктовая плитка
|
|
5
|
+
*/
|
|
6
|
+
export interface ProductTileContent extends BaseTileCommonProps {
|
|
7
|
+
/** @title Преимущества */
|
|
4
8
|
benefits?: Benefit[];
|
|
5
9
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
|
|
2
|
+
/**
|
|
3
|
+
* @title Акции
|
|
4
|
+
*/
|
|
5
|
+
export interface PromoTileContent extends BaseTileCommonProps {
|
|
6
|
+
/** @title Дата публикации */
|
|
3
7
|
date?: string;
|
|
4
8
|
}
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
2
|
+
/**
|
|
3
|
+
* @title Шаг
|
|
4
|
+
*/
|
|
2
5
|
export interface Step {
|
|
6
|
+
/** @title Название */
|
|
3
7
|
label: string;
|
|
8
|
+
/** @title Описание */
|
|
4
9
|
description?: string;
|
|
5
10
|
icon?: IconName;
|
|
6
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* @title Блок шаги
|
|
14
|
+
*/
|
|
7
15
|
export interface StepsBlockContent {
|
|
16
|
+
/** @title Заголовок */
|
|
8
17
|
title?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @title Шаги
|
|
20
|
+
* @maxItems 6
|
|
21
|
+
*/
|
|
9
22
|
steps?: Step[];
|
|
10
23
|
}
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import type { Picture } from '../../model/Picture';
|
|
2
|
+
/**
|
|
3
|
+
* @title Цвет плитки
|
|
4
|
+
* @enumNames ["Основная", "Второстепенная", "Второстепенная прозрачная"]
|
|
5
|
+
*/
|
|
2
6
|
export declare type TextBlockVersion = 'primary' | 'secondary' | 'secondary-light';
|
|
7
|
+
/**
|
|
8
|
+
* @title Размер иконки
|
|
9
|
+
* @enumNames ["Нет", "Маленькая", "Большая"]
|
|
10
|
+
*/
|
|
3
11
|
export declare type TextBlockIconVersion = 'none' | 'small' | 'big';
|
|
12
|
+
/**
|
|
13
|
+
* @title Текстовый блок
|
|
14
|
+
*/
|
|
4
15
|
export interface TextBlockContent {
|
|
16
|
+
/** @title Заголовок */
|
|
5
17
|
title?: string;
|
|
18
|
+
/** @title Описание */
|
|
6
19
|
description?: string;
|
|
7
20
|
blockVersion?: TextBlockVersion;
|
|
8
21
|
iconVersion?: TextBlockIconVersion;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
|
|
2
|
+
/**
|
|
3
|
+
* @title Плитка
|
|
4
|
+
*/
|
|
5
|
+
export declare type TileContent = BaseTileCommonProps;
|
package/dist/hooks/useLink.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { HandlerDecorator, Router } from '../components/ContentPage/ContentPageContext';
|
|
2
|
-
import type {
|
|
2
|
+
import type { LinkProps } from '../model/LinkProps';
|
|
3
3
|
export declare function useLink({ router, handlerDecorator, }: {
|
|
4
4
|
router: Router;
|
|
5
5
|
handlerDecorator?: HandlerDecorator;
|
|
6
|
-
}, link: Partial<
|
|
6
|
+
}, link: Partial<LinkProps & {
|
|
7
7
|
className: string;
|
|
8
8
|
}>): {
|
|
9
9
|
href: string | undefined;
|
|
10
10
|
ariaLabel: string | undefined;
|
|
11
11
|
onClick: (ev: MouseEvent) => void;
|
|
12
12
|
text?: string | undefined;
|
|
13
|
-
target?:
|
|
13
|
+
target?: import("../model/LinkProps").Target | undefined;
|
|
14
14
|
className?: string | undefined;
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLink.js","sourceRoot":"","sources":["../../src/hooks/useLink.ts"],"names":[],"mappings":";;AAEA,sCAAiD;AAEjD,MAAM,uBAAuB,GAAqB,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,CAAC,OAAO,CAAC;AAEtF,SAAgB,OAAO,CACrB,EACE,MAAM,EACN,gBAAgB,GAAG,uBAAuB,GACc,EAC1D,
|
|
1
|
+
{"version":3,"file":"useLink.js","sourceRoot":"","sources":["../../src/hooks/useLink.ts"],"names":[],"mappings":";;AAEA,sCAAiD;AAEjD,MAAM,uBAAuB,GAAqB,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,CAAC,OAAO,CAAC;AAEtF,SAAgB,OAAO,CACrB,EACE,MAAM,EACN,gBAAgB,GAAG,uBAAuB,GACc,EAC1D,IAAgD;IAEhD,MAAM,IAAI,GAAG,IAAA,gBAAU,EAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC3C,OAAO;QACL,GAAG,IAAI;QACP,IAAI;QACJ,SAAS,EAAE,IAAI,CAAC,IAAI;QACpB,OAAO,EAAE,gBAAgB,CAAC,CAAC,EAAc,EAAE,EAAE;YAC3C,MAAM,WAAW,GAAG,IAAI,IAAI,CAAC,IAAA,WAAK,EAAC,IAAI,CAAC,CAAC;YACzC,MAAM,aAAa,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,KAAK,OAAO,CAAC;YAC9D,IAAI,WAAW,IAAI,aAAa,EAAE;gBAChC,EAAE,CAAC,cAAc,EAAE,CAAC;gBACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACnB;QACH,CAAC,EAAE,IAAI,CAAC;KACT,CAAC;AACJ,CAAC;AArBD,0BAqBC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export { setup } from '@redneckz/uni-jsx';
|
|
2
|
-
export type { ProjectSettings } from './ProjectSettings';
|
|
3
|
-
export { projectSettings } from './ProjectSettings';
|
|
4
|
-
export { LikeAPI } from './api/LikeAPI';
|
|
5
2
|
export { DaDataAPI } from './api/DaDataAPI';
|
|
6
|
-
export
|
|
7
|
-
export type {
|
|
8
|
-
export
|
|
9
|
-
export type { ContentPageContext, Router, AsyncDataHook, GeolocationHook, LikeService, HandlerDecorator, Search, } from './components/ContentPage/ContentPageContext';
|
|
10
|
-
export { ContentPageHead } from './components/ContentPage/ContentPageHead';
|
|
11
|
-
export type { BlockDecorator } from './components/ContentPage/ContentPage';
|
|
3
|
+
export { LikeAPI } from './api/LikeAPI';
|
|
4
|
+
export type { BlockContent } from './components/BlockContent';
|
|
5
|
+
export { Blocks } from './components/Blocks';
|
|
12
6
|
export { ContentPage } from './components/ContentPage/ContentPage';
|
|
7
|
+
export type { BlockDecorator } from './components/ContentPage/ContentPage';
|
|
8
|
+
export type { AsyncDataHook, ContentPageContext, GeolocationHook, HandlerDecorator, LikeService, Router, Search, } from './components/ContentPage/ContentPageContext';
|
|
9
|
+
export { ContentPageHead } from './components/ContentPage/ContentPageHead';
|
|
13
10
|
export { toMobilePage } from './components/ContentPage/toMobilePage';
|
|
14
|
-
export { Blocks } from './components/Blocks';
|
|
15
|
-
export type { BlockContent } from './components/BlockContent';
|
|
16
11
|
export { MobileBlocks } from './components/MobileBlocks';
|
|
17
|
-
export
|
|
12
|
+
export type { Img, ImgSource, Picture } from './model/Picture';
|
|
13
|
+
export type { SitemapProps as SitemapContent } from './model/SitemapProps';
|
|
14
|
+
export { projectSettings } from './ProjectSettings';
|
|
15
|
+
export type { ProjectSettings } from './ProjectSettings';
|
|
16
|
+
export type { BlockDef, ContentPageDef, ContentPageMeta, UniBlockProps } from './types';
|
|
18
17
|
export { joinList } from './utils/joinList';
|
|
18
|
+
export * as url from './utils/url';
|
package/dist/index.js
CHANGED
|
@@ -22,26 +22,26 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
return result;
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.url = exports.joinList = exports.projectSettings = exports.MobileBlocks = exports.toMobilePage = exports.ContentPageHead = exports.ContentPage = exports.Blocks = exports.LikeAPI = exports.DaDataAPI = exports.setup = void 0;
|
|
26
26
|
var uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
27
27
|
Object.defineProperty(exports, "setup", { enumerable: true, get: function () { return uni_jsx_1.setup; } });
|
|
28
|
-
var ProjectSettings_1 = require("./ProjectSettings");
|
|
29
|
-
Object.defineProperty(exports, "projectSettings", { enumerable: true, get: function () { return ProjectSettings_1.projectSettings; } });
|
|
30
|
-
var LikeAPI_1 = require("./api/LikeAPI");
|
|
31
|
-
Object.defineProperty(exports, "LikeAPI", { enumerable: true, get: function () { return LikeAPI_1.LikeAPI; } });
|
|
32
28
|
var DaDataAPI_1 = require("./api/DaDataAPI");
|
|
33
29
|
Object.defineProperty(exports, "DaDataAPI", { enumerable: true, get: function () { return DaDataAPI_1.DaDataAPI; } });
|
|
34
|
-
var
|
|
35
|
-
Object.defineProperty(exports, "
|
|
30
|
+
var LikeAPI_1 = require("./api/LikeAPI");
|
|
31
|
+
Object.defineProperty(exports, "LikeAPI", { enumerable: true, get: function () { return LikeAPI_1.LikeAPI; } });
|
|
32
|
+
var Blocks_1 = require("./components/Blocks");
|
|
33
|
+
Object.defineProperty(exports, "Blocks", { enumerable: true, get: function () { return Blocks_1.Blocks; } });
|
|
36
34
|
var ContentPage_1 = require("./components/ContentPage/ContentPage");
|
|
37
35
|
Object.defineProperty(exports, "ContentPage", { enumerable: true, get: function () { return ContentPage_1.ContentPage; } });
|
|
36
|
+
var ContentPageHead_1 = require("./components/ContentPage/ContentPageHead");
|
|
37
|
+
Object.defineProperty(exports, "ContentPageHead", { enumerable: true, get: function () { return ContentPageHead_1.ContentPageHead; } });
|
|
38
38
|
var toMobilePage_1 = require("./components/ContentPage/toMobilePage");
|
|
39
39
|
Object.defineProperty(exports, "toMobilePage", { enumerable: true, get: function () { return toMobilePage_1.toMobilePage; } });
|
|
40
|
-
var Blocks_1 = require("./components/Blocks");
|
|
41
|
-
Object.defineProperty(exports, "Blocks", { enumerable: true, get: function () { return Blocks_1.Blocks; } });
|
|
42
40
|
var MobileBlocks_1 = require("./components/MobileBlocks");
|
|
43
41
|
Object.defineProperty(exports, "MobileBlocks", { enumerable: true, get: function () { return MobileBlocks_1.MobileBlocks; } });
|
|
44
|
-
|
|
42
|
+
var ProjectSettings_1 = require("./ProjectSettings");
|
|
43
|
+
Object.defineProperty(exports, "projectSettings", { enumerable: true, get: function () { return ProjectSettings_1.projectSettings; } });
|
|
45
44
|
var joinList_1 = require("./utils/joinList");
|
|
46
45
|
Object.defineProperty(exports, "joinList", { enumerable: true, get: function () { return joinList_1.joinList; } });
|
|
46
|
+
exports.url = __importStar(require("./utils/url"));
|
|
47
47
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA0C;AAAjC,gGAAA,KAAK,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA0C;AAAjC,gGAAA,KAAK,OAAA;AACd,6CAA4C;AAAnC,sGAAA,SAAS,OAAA;AAClB,yCAAwC;AAA/B,kGAAA,OAAO,OAAA;AAEhB,8CAA6C;AAApC,gGAAA,MAAM,OAAA;AACf,oEAAmE;AAA1D,0GAAA,WAAW,OAAA;AAWpB,4EAA2E;AAAlE,kHAAA,eAAe,OAAA;AACxB,sEAAqE;AAA5D,4GAAA,YAAY,OAAA;AACrB,0DAAyD;AAAhD,4GAAA,YAAY,OAAA;AAGrB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AAGxB,6CAA4C;AAAnC,oGAAA,QAAQ,OAAA;AACjB,mDAAmC"}
|
package/dist/mergeTopItems.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function mergeTopItems<L extends
|
|
1
|
+
import type { LinkProps } from './model/LinkProps';
|
|
2
|
+
export declare function mergeTopItems<L extends LinkProps>(left?: L[], right?: L[]): L[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeTopItems.js","sourceRoot":"","sources":["../src/mergeTopItems.ts"],"names":[],"mappings":";;AAEA,MAAM,GAAG,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"mergeTopItems.js","sourceRoot":"","sources":["../src/mergeTopItems.ts"],"names":[],"mappings":";;AAEA,MAAM,GAAG,GAAG,CAAC,CAAa,EAAE,EAAE,CAAC,CAAC,CAAa,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,KAAK,CAAC,EAAE,IAAI,CAAC;AAEtE,MAAM,UAAU,GAAG,CAAsB,KAAW,EAAE,YAAkB,EAAO,EAAE,CAC/E,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAE5D,MAAM,QAAQ,GAAG,CAAsB,OAAa,EAAE,UAAgB,EAAO,EAAE,CAC7E,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE3D,SAAgB,aAAa,CAAsB,IAAU,EAAE,KAAW;IACxE,OAAO,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AAC/D,CAAC;AAFD,sCAEC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @title Таргет (target)
|
|
3
|
+
* @enumNames [
|
|
4
|
+
* "self (текущее окно или фрейм)",
|
|
5
|
+
* "blank (новое окно)",
|
|
6
|
+
* "parent (фрейм-родитель)",
|
|
7
|
+
* "top (текущее окно)"
|
|
8
|
+
* ]
|
|
9
|
+
*/
|
|
10
|
+
export declare type Target = '_blank' | '_self' | '_parent' | '_top';
|
|
11
|
+
/**
|
|
12
|
+
* @title Ссылка
|
|
13
|
+
* @required ["text", "href"]
|
|
14
|
+
*/
|
|
15
|
+
export interface LinkProps {
|
|
16
|
+
/** @title Текст */
|
|
17
|
+
text?: string;
|
|
18
|
+
/** @title URL (href) */
|
|
19
|
+
href?: string;
|
|
20
|
+
target?: Target;
|
|
21
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=LinkProps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkProps.js","sourceRoot":"","sources":["../../src/model/LinkProps.ts"],"names":[],"mappings":""}
|
package/dist/model/Picture.d.ts
CHANGED
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
export interface Img {
|
|
2
|
+
/** @title Картинка */
|
|
2
3
|
src: string;
|
|
4
|
+
/** @title Альтернативный текст (alt) */
|
|
3
5
|
alt?: string;
|
|
6
|
+
/** @title Текст подсказки (title) */
|
|
4
7
|
title?: string;
|
|
5
8
|
}
|
|
6
9
|
export interface ImgSource {
|
|
10
|
+
/** @title Картинка */
|
|
7
11
|
src: string;
|
|
12
|
+
/** @title Формат */
|
|
8
13
|
format?: 'jpeg' | 'jpg' | 'png' | 'gif' | 'webp' | 'heif' | 'avif';
|
|
14
|
+
/** @hidden */
|
|
9
15
|
options?: Record<string, any>;
|
|
16
|
+
/** @title Размер изображения */
|
|
10
17
|
size?: {
|
|
18
|
+
/** @title Ширина */
|
|
11
19
|
width?: number;
|
|
20
|
+
/** @title Высота */
|
|
12
21
|
height?: number;
|
|
13
22
|
};
|
|
14
23
|
}
|
|
24
|
+
/** @title Изображение */
|
|
15
25
|
export interface Picture extends Img, ImgSource {
|
|
26
|
+
/** @title Другие форматы */
|
|
16
27
|
sources?: ImgSource[];
|
|
17
28
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { LinkProps } from './LinkProps';
|
|
2
|
+
/**
|
|
3
|
+
* @title Ссылка
|
|
4
|
+
* @required ["text", "href"]
|
|
5
|
+
*/
|
|
6
|
+
export interface TopMenuItem extends LinkProps {
|
|
7
|
+
/** @hidden */
|
|
8
|
+
items?: LinkProps[];
|
|
9
|
+
}
|
|
10
|
+
export interface SitemapProps {
|
|
11
|
+
/** @title Дополнительное меню */
|
|
12
|
+
topItems?: TopMenuItem[];
|
|
13
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=SitemapProps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SitemapProps.js","sourceRoot":"","sources":["../../src/model/SitemapProps.ts"],"names":[],"mappings":""}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { BlockContent } from './components/BlockContent';
|
|
2
2
|
import type { ContentPageContext } from './components/ContentPage/ContentPageContext';
|
|
3
3
|
import type { BlockVersion } from './model/BlockVersion';
|
|
4
|
-
export declare type ColorPalette = 'pc' | 'bc' | 'eo';
|
|
4
|
+
export declare type ColorPalette = 'pc' | 'bc' | 'eo' | 'eo2' | 'eo3' | 'eo4';
|
|
5
5
|
export interface BlockDef {
|
|
6
6
|
type: string;
|
|
7
7
|
style?: string[];
|
|
8
|
-
version?: BlockVersion;
|
|
9
8
|
content?: BlockContent;
|
|
9
|
+
version?: BlockVersion;
|
|
10
10
|
blocks?: BlockDef[];
|
|
11
11
|
mobile?: Pick<BlockDef, 'content' | 'style'> & {
|
|
12
12
|
hidden?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface BreadcrumbProps extends
|
|
1
|
+
import type { LinkProps } from '../model/LinkProps';
|
|
2
|
+
export interface BreadcrumbProps extends LinkProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
onClick?: (ev: MouseEvent) => any;
|
|
5
5
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
import type { ButtonProps, ButtonWithIconProps } from './ButtonProps';
|
|
2
|
+
export interface ButtonCommonProps extends ButtonProps, ButtonWithIconProps {
|
|
3
|
+
}
|
|
4
|
+
export declare type ButtonInner = Pick<ButtonCommonProps, 'text' | 'aboveText' | 'appendLeft' | 'rounded'>;
|
|
5
|
+
export declare const Button: (props: import("@redneckz/uni-jsx").PropsWithChildren<ButtonCommonProps, any>, context?: any) => any;
|
|
6
|
+
export declare const ButtonInner: (props: import("@redneckz/uni-jsx").PropsWithChildren<ButtonInner, any>, context?: any) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/Button.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,MAAM,cAAc,GAAkC;IACpD,OAAO,EAAE,4EAA4E;IACrF,SAAS,EACP,0FAA0F;CAC7F,CAAC;AAEF,MAAM,sBAAsB,GAAkC;IAC5D,OAAO,EAAE,uCAAuC;IAChD,SAAS,EAAE,wCAAwC;CACpD,CAAC;AAEF,MAAM,WAAW,GAAG,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/Button.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,MAAM,cAAc,GAAkC;IACpD,OAAO,EAAE,4EAA4E;IACrF,SAAS,EACP,0FAA0F;CAC7F,CAAC;AAEF,MAAM,sBAAsB,GAAkC;IAC5D,OAAO,EAAE,uCAAuC;IAChD,SAAS,EAAE,wCAAwC;CACpD,CAAC;AAEF,MAAM,WAAW,GAAG,gDAAgD,CAAC;AAMxD,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EACC,SAAS,EACT,IAAI,EACJ,SAAS,EACT,UAAU,EACV,IAAI,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,OAAO,GAAG,MAAM,EAChB,SAAS,EACT,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,WAAW,GAAG,QAAQ,IAAI,CAC9B,uBAAC,mBAAW,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,CAC5F,CAAC;IAEF,IAAI,QAAQ,EAAE;QACZ,OAAO,CACL,gCACE,IAAI,EAAC,QAAQ,mBACC,MAAM,gBACR,SAAS,EACrB,QAAQ,EAAC,IAAI,EACb,SAAS,EAAE,GAAG,WAAW,IAAI,sBAAsB,CAAC,OAAO,CAAC,IAAI,EAAE,IAChE,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAC7B,IAAI,SAAS,IAAI,EAAE,EAAE,YAEpB,WAAW,GACR,CACP,CAAC;KACH;IAED,OAAO,CACL,8BACE,SAAS,EAAE,GAAG,WAAW,gCAAgC,cAAc,CAAC,OAAO,CAAC,IAAI,EAAE,IACpF,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAC7B,IAAI,SAAS,IAAI,EAAE,EAAE,EACrB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,gBACJ,SAAS,EACrB,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,KAC3B,IAAI,YAEP,WAAW,GACV,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,aAAG,EAAc,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE;IACvF,MAAM,WAAW,GAAG,CAAC,IAAI,IAAI,CAAC,SAAS,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IAE/D,MAAM,kBAAkB,GAAG,oCACzB,WAAW,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,cAAc,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,EAC9F,IAAI,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAEpC,OAAO,CACL,iCAAK,SAAS,EAAE,kBAAkB,aAC/B,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,EAC9B,CAAC,WAAW,CAAC,CAAC,CAAC,CACd,4CACE,gCAAK,SAAS,EAAC,oBAAoB,YAAE,SAAS,GAAO,EACrD,gCAAK,SAAS,EAAC,+BAA+B,YAAE,IAAI,GAAO,IACvD,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
appendLeft?: any;
|
|
8
|
-
rounded?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface ButtonProps extends LinkContent, ButtonInnerProps {
|
|
2
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
3
|
+
/**
|
|
4
|
+
* @hidden
|
|
5
|
+
*/
|
|
6
|
+
export interface ButtonAdditionalProps {
|
|
11
7
|
className?: string;
|
|
12
|
-
version?: ButtonVersion;
|
|
13
8
|
disabled?: boolean;
|
|
14
9
|
rel?: string;
|
|
15
10
|
ariaLabel?: string;
|
|
16
|
-
/** @hidden */
|
|
17
11
|
onClick?: (ev: MouseEvent) => any;
|
|
18
12
|
}
|
|
13
|
+
export interface ButtonProps extends ButtonAdditionalProps, LinkProps {
|
|
14
|
+
text?: string;
|
|
15
|
+
version?: ButtonVersion;
|
|
16
|
+
}
|
|
19
17
|
export interface ButtonWithIconProps extends ButtonProps {
|
|
20
|
-
|
|
18
|
+
/** @hidden */
|
|
19
|
+
aboveText?: string;
|
|
20
|
+
/** @hidden */
|
|
21
|
+
appendLeft?: any;
|
|
22
|
+
/** @hidden */
|
|
23
|
+
rounded?: boolean;
|
|
21
24
|
}
|
package/dist/ui-kit/Icon/Icon.js
CHANGED
|
@@ -3,5 +3,11 @@ exports.Icon = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const ProjectSettings_1 = require("../../ProjectSettings");
|
|
6
|
-
exports.Icon = (0, uni_jsx_1.JSX)(({ className, name, alt = `Icon ${name}`, title = alt,
|
|
6
|
+
exports.Icon = (0, uni_jsx_1.JSX)(({ className, name, alt = `Icon ${name}`, title = alt, asSVG, ...imgProps }) => {
|
|
7
|
+
const href = `${ProjectSettings_1.projectSettings.CDN || ''}icons/${name}.svg`;
|
|
8
|
+
if (asSVG) {
|
|
9
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { className: className, ...imgProps, "aria-hidden": "true", children: [title ? (0, jsx_runtime_1.jsx)("title", { children: title }) : null, alt ? (0, jsx_runtime_1.jsx)("desc", { children: alt }) : null, (0, jsx_runtime_1.jsx)("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }));
|
|
10
|
+
}
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)("img", { className: className, src: href, alt: alt, title: title, ...imgProps, "aria-hidden": "true" }));
|
|
12
|
+
});
|
|
7
13
|
//# sourceMappingURL=Icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/ui-kit/Icon/Icon.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AAG3C,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,GAAG,QAAQ,IAAI,EAAE,EAAE,KAAK,GAAG,GAAG,EAAE,GAAG,QAAQ,EAAE,EAAE,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/ui-kit/Icon/Icon.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AAG3C,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,GAAG,QAAQ,IAAI,EAAE,EAAE,KAAK,GAAG,GAAG,EAAE,KAAK,EAAE,GAAG,QAAQ,EAAE,EAAE,EAAE;IAC7E,MAAM,IAAI,GAAG,GAAG,iCAAe,CAAC,GAAG,IAAI,EAAE,SAAS,IAAI,MAAM,CAAC;IAE7D,IAAI,KAAK,EAAE;QACT,OAAO,CACL,iCAAK,SAAS,EAAE,SAAS,KAAM,QAAQ,iBAAc,MAAM,aACxD,KAAK,CAAC,CAAC,CAAC,4CAAQ,KAAK,GAAS,CAAC,CAAC,CAAC,IAAI,EACrC,GAAG,CAAC,CAAC,CAAC,2CAAO,GAAG,GAAQ,CAAC,CAAC,CAAC,IAAI,EAChC,gCAAK,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,OAAO,GAAI,IACpD,CACP,CAAC;KACH;IAED,OAAO,CACL,gCACE,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,KACR,QAAQ,iBACA,MAAM,GAClB,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,28 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icons sorted by name
|
|
3
|
+
*/
|
|
1
4
|
export declare enum IconMap {
|
|
2
5
|
'ActualBalanceIcon' = 0,
|
|
3
6
|
'AppleIcon' = 1,
|
|
4
7
|
'CalendarIcon' = 2,
|
|
5
8
|
'ClockIcon' = 3,
|
|
6
9
|
'ComfortableCompIcon' = 4,
|
|
7
|
-
'
|
|
8
|
-
'
|
|
9
|
-
'
|
|
10
|
-
'
|
|
11
|
-
'
|
|
12
|
-
'
|
|
13
|
-
'
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
'
|
|
10
|
+
'DocIcon' = 5,
|
|
11
|
+
'DollarIcon' = 6,
|
|
12
|
+
'EmptyWalletIcon' = 7,
|
|
13
|
+
'EuroIcon' = 8,
|
|
14
|
+
'GlassIcon' = 9,
|
|
15
|
+
'GridIcon' = 10,
|
|
16
|
+
'LoupeIcon' = 11,
|
|
17
|
+
'MinusIcon' = 12,
|
|
18
|
+
'NewDocIcon' = 13,
|
|
19
|
+
'OkIcon' = 14,
|
|
20
|
+
'PassSendIcon' = 15,
|
|
21
|
+
'PercentageSquareIcon' = 16,
|
|
22
|
+
'PlayMarketIcon' = 17,
|
|
23
|
+
'PlusIcon' = 18,
|
|
24
|
+
'ProfileIcon' = 19,
|
|
25
|
+
'SignDocsIcon' = 20,
|
|
26
|
+
'TelegramIcon' = 21,
|
|
27
|
+
'VKIcon' = 22
|
|
25
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* @title Иконка
|
|
31
|
+
* @enumNames [
|
|
32
|
+
* "Деньги",
|
|
33
|
+
* "Лого «Apple»",
|
|
34
|
+
* "Календарь",
|
|
35
|
+
* "Часы",
|
|
36
|
+
* "Кресло",
|
|
37
|
+
* "Документ",
|
|
38
|
+
* "Доллар",
|
|
39
|
+
* "Кошелек",
|
|
40
|
+
* "Евро",
|
|
41
|
+
* "Зеркало",
|
|
42
|
+
* "Сетка",
|
|
43
|
+
* "Лупа",
|
|
44
|
+
* "Минус",
|
|
45
|
+
* "Новый документ",
|
|
46
|
+
* "Лого «Одноклассники»",
|
|
47
|
+
* "Бизнес",
|
|
48
|
+
* "Проценты",
|
|
49
|
+
* "Лого «PlayMarket»",
|
|
50
|
+
* "Плюс",
|
|
51
|
+
* "Профиль",
|
|
52
|
+
* "Подписанные документы",
|
|
53
|
+
* "Лого «Telegram»",
|
|
54
|
+
* "Лого «VK»"
|
|
55
|
+
* ]
|
|
56
|
+
*/
|
|
26
57
|
export declare type IconName = keyof typeof IconMap;
|
|
27
58
|
export interface IconProps {
|
|
28
59
|
className?: string;
|
|
@@ -31,5 +62,5 @@ export interface IconProps {
|
|
|
31
62
|
title?: string;
|
|
32
63
|
width?: string;
|
|
33
64
|
height?: string;
|
|
34
|
-
|
|
65
|
+
asSVG?: boolean;
|
|
35
66
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.IconMap = void 0;
|
|
3
|
+
/**
|
|
4
|
+
* Icons sorted by name
|
|
5
|
+
*/
|
|
3
6
|
var IconMap;
|
|
4
7
|
(function (IconMap) {
|
|
5
8
|
IconMap[IconMap["ActualBalanceIcon"] = 0] = "ActualBalanceIcon";
|
|
@@ -7,23 +10,23 @@ var IconMap;
|
|
|
7
10
|
IconMap[IconMap["CalendarIcon"] = 2] = "CalendarIcon";
|
|
8
11
|
IconMap[IconMap["ClockIcon"] = 3] = "ClockIcon";
|
|
9
12
|
IconMap[IconMap["ComfortableCompIcon"] = 4] = "ComfortableCompIcon";
|
|
10
|
-
IconMap[IconMap["
|
|
11
|
-
IconMap[IconMap["
|
|
12
|
-
IconMap[IconMap["
|
|
13
|
-
IconMap[IconMap["
|
|
14
|
-
IconMap[IconMap["
|
|
15
|
-
IconMap[IconMap["
|
|
16
|
-
IconMap[IconMap["
|
|
17
|
-
IconMap[IconMap["
|
|
18
|
-
IconMap[IconMap["
|
|
19
|
-
IconMap[IconMap["
|
|
20
|
-
IconMap[IconMap["
|
|
21
|
-
IconMap[IconMap["
|
|
22
|
-
IconMap[IconMap["
|
|
23
|
-
IconMap[IconMap["
|
|
24
|
-
IconMap[IconMap["
|
|
25
|
-
IconMap[IconMap["
|
|
26
|
-
IconMap[IconMap["
|
|
27
|
-
IconMap[IconMap["
|
|
13
|
+
IconMap[IconMap["DocIcon"] = 5] = "DocIcon";
|
|
14
|
+
IconMap[IconMap["DollarIcon"] = 6] = "DollarIcon";
|
|
15
|
+
IconMap[IconMap["EmptyWalletIcon"] = 7] = "EmptyWalletIcon";
|
|
16
|
+
IconMap[IconMap["EuroIcon"] = 8] = "EuroIcon";
|
|
17
|
+
IconMap[IconMap["GlassIcon"] = 9] = "GlassIcon";
|
|
18
|
+
IconMap[IconMap["GridIcon"] = 10] = "GridIcon";
|
|
19
|
+
IconMap[IconMap["LoupeIcon"] = 11] = "LoupeIcon";
|
|
20
|
+
IconMap[IconMap["MinusIcon"] = 12] = "MinusIcon";
|
|
21
|
+
IconMap[IconMap["NewDocIcon"] = 13] = "NewDocIcon";
|
|
22
|
+
IconMap[IconMap["OkIcon"] = 14] = "OkIcon";
|
|
23
|
+
IconMap[IconMap["PassSendIcon"] = 15] = "PassSendIcon";
|
|
24
|
+
IconMap[IconMap["PercentageSquareIcon"] = 16] = "PercentageSquareIcon";
|
|
25
|
+
IconMap[IconMap["PlayMarketIcon"] = 17] = "PlayMarketIcon";
|
|
26
|
+
IconMap[IconMap["PlusIcon"] = 18] = "PlusIcon";
|
|
27
|
+
IconMap[IconMap["ProfileIcon"] = 19] = "ProfileIcon";
|
|
28
|
+
IconMap[IconMap["SignDocsIcon"] = 20] = "SignDocsIcon";
|
|
29
|
+
IconMap[IconMap["TelegramIcon"] = 21] = "TelegramIcon";
|
|
30
|
+
IconMap[IconMap["VKIcon"] = 22] = "VKIcon";
|
|
28
31
|
})(IconMap = exports.IconMap || (exports.IconMap = {}));
|
|
29
32
|
//# sourceMappingURL=IconProps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconProps.js","sourceRoot":"","sources":["../../../src/ui-kit/Icon/IconProps.ts"],"names":[],"mappings":";;AAAA,IAAY,OAwBX;AAxBD,WAAY,OAAO;IACjB,+DAAmB,CAAA;IACnB,+CAAW,CAAA;IACX,qDAAc,CAAA;IACd,+CAAW,CAAA;IACX,mEAAqB,CAAA;IACrB,iDAAY,CAAA;IACZ,2DAAiB,CAAA;IACjB,6CAAU,CAAA;IACV,
|
|
1
|
+
{"version":3,"file":"IconProps.js","sourceRoot":"","sources":["../../../src/ui-kit/Icon/IconProps.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,IAAY,OAwBX;AAxBD,WAAY,OAAO;IACjB,+DAAmB,CAAA;IACnB,+CAAW,CAAA;IACX,qDAAc,CAAA;IACd,+CAAW,CAAA;IACX,mEAAqB,CAAA;IACrB,2CAAS,CAAA;IACT,iDAAY,CAAA;IACZ,2DAAiB,CAAA;IACjB,6CAAU,CAAA;IACV,+CAAW,CAAA;IACX,8CAAU,CAAA;IACV,gDAAW,CAAA;IACX,gDAAW,CAAA;IACX,kDAAY,CAAA;IACZ,0CAAQ,CAAA;IACR,sDAAc,CAAA;IACd,sEAAsB,CAAA;IACtB,0DAAgB,CAAA;IAChB,8CAAU,CAAA;IACV,oDAAa,CAAA;IACb,sDAAc,CAAA;IACd,sDAAc,CAAA;IACd,0CAAQ,CAAA;AACV,CAAC,EAxBW,OAAO,GAAP,eAAO,KAAP,eAAO,QAwBlB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface TopItemContent extends
|
|
1
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
+
export interface TopItemContent extends LinkProps {
|
|
3
3
|
active?: boolean;
|
|
4
4
|
}
|
|
5
5
|
export interface TopItemProps extends TopItemContent {
|