@redneckz/wildless-cms-uni-blocks 0.2.46 → 0.2.49
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/README.md +3 -0
- package/dist/BenefitsBlock.d.ts +2 -2
- package/dist/Blocks.d.ts +15 -0
- package/dist/Blocks.js +13 -7
- package/dist/Blocks.js.map +1 -1
- package/dist/ContentPage.d.ts +2 -2
- package/dist/ContentPage.js +3 -3
- package/dist/ContentPage.js.map +1 -1
- package/dist/ContentPageContext.d.ts +6 -3
- package/dist/ExchangeRateTile.d.ts +7 -0
- package/dist/ExchangeRateTile.js +32 -0
- package/dist/ExchangeRateTile.js.map +1 -0
- package/dist/Footer/Contacts.d.ts +2 -2
- package/dist/Footer/Footer.d.ts +3 -4
- package/dist/Footer/Footer.js.map +1 -1
- package/dist/Footer/FooterLink.d.ts +2 -2
- package/dist/Footer/Sitemap.d.ts +2 -2
- package/dist/Footer/Sitemap.js +8 -5
- package/dist/Footer/Sitemap.js.map +1 -1
- package/dist/Footer/SocialMedia.d.ts +2 -2
- package/dist/Footer/SocialMedia.js +5 -5
- package/dist/Footer/SocialMedia.js.map +1 -1
- package/dist/Footer/index.d.ts +1 -1
- package/dist/Header/Header.d.ts +2 -2
- package/dist/Header/Header.js +3 -2
- package/dist/Header/Header.js.map +1 -1
- package/dist/Icons/DollarIcon.d.ts +1 -0
- package/dist/Icons/DollarIcon.js +6 -0
- package/dist/Icons/DollarIcon.js.map +1 -0
- package/dist/Icons/EuroIcon.d.ts +1 -0
- package/dist/Icons/EuroIcon.js +6 -0
- package/dist/Icons/EuroIcon.js.map +1 -0
- package/dist/Icons/index.d.ts +17 -16
- package/dist/Icons/index.js +26 -22
- package/dist/Icons/index.js.map +1 -1
- package/dist/Img.js +1 -1
- package/dist/Img.js.map +1 -1
- package/dist/LikeControl.d.ts +2 -2
- package/dist/LikeControl.js.map +1 -1
- package/dist/MobileAppTile.d.ts +8 -0
- package/dist/MobileAppTile.js +9 -0
- package/dist/MobileAppTile.js.map +1 -0
- package/dist/Placeholder.d.ts +3 -1
- package/dist/Placeholder.js +9 -2
- package/dist/Placeholder.js.map +1 -1
- package/dist/ProductBlock.d.ts +2 -2
- package/dist/ProductBlockInner.d.ts +2 -2
- package/dist/ProductBlockInner.js +2 -1
- package/dist/ProductBlockInner.js.map +1 -1
- package/dist/ProductGallery.d.ts +2 -2
- package/dist/ProductGallery.js +3 -3
- package/dist/ProductGallery.js.map +1 -1
- package/dist/ProductTile.d.ts +17 -0
- package/dist/ProductTile.js +27 -0
- package/dist/ProductTile.js.map +1 -0
- package/dist/ProjectSettings.d.ts +18 -0
- package/dist/ProjectSettings.js +30 -0
- package/dist/ProjectSettings.js.map +1 -0
- package/dist/StepsBlock.d.ts +2 -2
- package/dist/StepsBlock.js +7 -3
- package/dist/StepsBlock.js.map +1 -1
- package/dist/Tile.d.ts +2 -2
- package/dist/Tile.js +15 -7
- package/dist/Tile.js.map +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +3 -10
- package/dist/ui-kit/SearchBar.d.ts +2 -2
- package/dist/ui-kit/SearchBar.js.map +1 -1
- package/dist/useSitemap.d.ts +3 -0
- package/dist/useSitemap.js +16 -0
- package/dist/useSitemap.js.map +1 -0
- package/dist/utils/joinList.d.ts +1 -0
- package/dist/utils/joinList.js +7 -0
- package/dist/utils/joinList.js.map +1 -0
- package/lib/BenefitsBlock.d.ts +2 -2
- package/lib/Blocks.d.ts +15 -0
- package/lib/Blocks.js +10 -4
- package/lib/Blocks.js.map +1 -1
- package/lib/ContentPage.d.ts +2 -2
- package/lib/ContentPage.js +3 -3
- package/lib/ContentPage.js.map +1 -1
- package/lib/ContentPageContext.d.ts +6 -3
- package/lib/ExchangeRateTile.d.ts +7 -0
- package/lib/ExchangeRateTile.js +30 -0
- package/lib/ExchangeRateTile.js.map +1 -0
- package/lib/Footer/Contacts.d.ts +2 -2
- package/lib/Footer/Footer.d.ts +3 -4
- package/lib/Footer/Footer.js.map +1 -1
- package/lib/Footer/FooterLink.d.ts +2 -2
- package/lib/Footer/Sitemap.d.ts +2 -2
- package/lib/Footer/Sitemap.js +8 -5
- package/lib/Footer/Sitemap.js.map +1 -1
- package/lib/Footer/SocialMedia.d.ts +2 -2
- package/lib/Footer/SocialMedia.js +5 -5
- package/lib/Footer/SocialMedia.js.map +1 -1
- package/lib/Footer/index.d.ts +1 -1
- package/lib/Header/Header.d.ts +2 -2
- package/lib/Header/Header.js +3 -2
- package/lib/Header/Header.js.map +1 -1
- package/lib/Icons/DollarIcon.d.ts +1 -0
- package/lib/Icons/DollarIcon.js +3 -0
- package/lib/Icons/DollarIcon.js.map +1 -0
- package/lib/Icons/EuroIcon.d.ts +1 -0
- package/lib/Icons/EuroIcon.js +3 -0
- package/lib/Icons/EuroIcon.js.map +1 -0
- package/lib/Icons/index.d.ts +17 -16
- package/lib/Icons/index.js +17 -16
- package/lib/Icons/index.js.map +1 -1
- package/lib/Img.js +1 -1
- package/lib/Img.js.map +1 -1
- package/lib/LikeControl.d.ts +2 -2
- package/lib/LikeControl.js.map +1 -1
- package/lib/MobileAppTile.d.ts +8 -0
- package/lib/MobileAppTile.js +7 -0
- package/lib/MobileAppTile.js.map +1 -0
- package/lib/Placeholder.d.ts +3 -1
- package/lib/Placeholder.js +9 -2
- package/lib/Placeholder.js.map +1 -1
- package/lib/ProductBlock.d.ts +2 -2
- package/lib/ProductBlockInner.d.ts +2 -2
- package/lib/ProductBlockInner.js +2 -1
- package/lib/ProductBlockInner.js.map +1 -1
- package/lib/ProductGallery.d.ts +2 -2
- package/lib/ProductGallery.js +3 -3
- package/lib/ProductGallery.js.map +1 -1
- package/lib/ProductTile.d.ts +17 -0
- package/lib/ProductTile.js +25 -0
- package/lib/ProductTile.js.map +1 -0
- package/lib/ProjectSettings.d.ts +18 -0
- package/lib/ProjectSettings.js +28 -0
- package/lib/ProjectSettings.js.map +1 -0
- package/lib/StepsBlock.d.ts +2 -2
- package/lib/StepsBlock.js +7 -3
- package/lib/StepsBlock.js.map +1 -1
- package/lib/Tile.d.ts +2 -2
- package/lib/Tile.js +15 -7
- package/lib/Tile.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/index.d.ts +6 -3
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/lib/types.d.ts +3 -10
- package/lib/ui-kit/SearchBar.d.ts +2 -2
- package/lib/ui-kit/SearchBar.js.map +1 -1
- package/lib/useSitemap.d.ts +3 -0
- package/lib/useSitemap.js +13 -0
- package/lib/useSitemap.js.map +1 -0
- package/lib/utils/joinList.d.ts +1 -0
- package/lib/utils/joinList.js +4 -0
- package/lib/utils/joinList.js.map +1 -0
- package/package.json +3 -2
- package/src/BenefitsBlock.fixture.tsx +34 -0
- package/src/BenefitsBlock.tsx +45 -0
- package/src/Blocks.ts +39 -0
- package/src/ContentPage.fixture.tsx +38 -0
- package/src/ContentPage.page.json +680 -0
- package/src/ContentPage.tsx +83 -0
- package/src/ContentPageContext.tsx +34 -0
- package/src/ContentPageHead.tsx +26 -0
- package/src/ExchangeRateTile.fixture.tsx +11 -0
- package/src/ExchangeRateTile.tsx +80 -0
- package/src/Footer/Contacts.tsx +71 -0
- package/src/Footer/Footer.fixture.tsx +265 -0
- package/src/Footer/Footer.tsx +47 -0
- package/src/Footer/FooterLink.ts +6 -0
- package/src/Footer/HorizontalNavigation.tsx +46 -0
- package/src/Footer/Sitemap.tsx +57 -0
- package/src/Footer/SocialMedia.tsx +46 -0
- package/src/Footer/TextInformation.tsx +50 -0
- package/src/Footer/index.ts +2 -0
- package/src/Header/Header.fixture.tsx +21 -0
- package/src/Header/Header.tsx +55 -0
- package/src/Header/HeaderContent.ts +6 -0
- package/src/Header/HeaderSecondaryMenu.tsx +42 -0
- package/src/Header/HeaderSecondaryMenuButton.tsx +21 -0
- package/src/Header/index.ts +3 -0
- package/src/Header/isSubItemActive.ts +9 -0
- package/src/Header/isTopItemActive.ts +13 -0
- package/src/Icons/ActualBalanceIcon.tsx +202 -0
- package/src/Icons/CalendarIcon.tsx +19 -0
- package/src/Icons/ClockIcon.tsx +212 -0
- package/src/Icons/ComfortableCompIcon.tsx +379 -0
- package/src/Icons/DollarIcon.tsx +12 -0
- package/src/Icons/EmptyWalletIcon.tsx +25 -0
- package/src/Icons/EuroIcon.tsx +12 -0
- package/src/Icons/GridIcon.tsx +9 -0
- package/src/Icons/LoupeIcon.tsx +11 -0
- package/src/Icons/NewDocIcon.tsx +262 -0
- package/src/Icons/OkIcon.tsx +8 -0
- package/src/Icons/PassSendIcon.tsx +250 -0
- package/src/Icons/PercentageSquareIcon.tsx +18 -0
- package/src/Icons/ProfileIcon.tsx +18 -0
- package/src/Icons/SignDocsIcon.tsx +295 -0
- package/src/Icons/TelegramIcon.tsx +8 -0
- package/src/Icons/VKIcon.tsx +10 -0
- package/src/Icons/index.ts +17 -0
- package/src/Img.tsx +22 -0
- package/src/LikeControl.fixture.tsx +5 -0
- package/src/LikeControl.tsx +23 -0
- package/src/MobileAppTile.fixture.tsx +15 -0
- package/src/MobileAppTile.tsx +34 -0
- package/src/Placeholder.fixture.tsx +5 -0
- package/src/Placeholder.tsx +33 -0
- package/src/ProductBlock.fixture.tsx +95 -0
- package/src/ProductBlock.tsx +15 -0
- package/src/ProductBlockInner.tsx +111 -0
- package/src/ProductGallery.fixture.tsx +138 -0
- package/src/ProductGallery.tsx +88 -0
- package/src/ProductTile.fixture.tsx +147 -0
- package/src/ProductTile.tsx +95 -0
- package/src/ProjectSettings.ts +38 -0
- package/src/StepsBlock.fixture.tsx +23 -0
- package/src/StepsBlock.tsx +65 -0
- package/src/Tile.fixture.tsx +124 -0
- package/src/Tile.tsx +89 -0
- package/src/api/LikeAPI.ts +141 -0
- package/src/common.css +39 -0
- package/src/content-page-repository/ContentPageRepository.ts +38 -0
- package/src/content-page-repository/TransformationOptions.ts +4 -0
- package/src/content-page-repository/index.ts +1 -0
- package/src/content-page-repository/mapJSON.spec.ts +28 -0
- package/src/content-page-repository/mapJSON.ts +23 -0
- package/src/content-page-repository/transformContentPage.ts +26 -0
- package/src/content-page-repository/transformMarkdown.ts +10 -0
- package/src/content-page-repository/transformPicture.ts +61 -0
- package/src/cosmos.decorator.tsx +19 -0
- package/src/index.ts +20 -0
- package/src/mergeTopItems.spec.ts +20 -0
- package/src/mergeTopItems.ts +13 -0
- package/src/setup-fixture.ts +49 -0
- package/src/types.ts +94 -0
- package/src/ui-kit/BlockItem.fixture.tsx +5 -0
- package/src/ui-kit/BlockItem.tsx +36 -0
- package/src/ui-kit/Breadcrumb.tsx +26 -0
- package/src/ui-kit/Button.fixture.tsx +113 -0
- package/src/ui-kit/Button.tsx +66 -0
- package/src/ui-kit/HeaderItem.fixture.tsx +8 -0
- package/src/ui-kit/HeaderItem.tsx +25 -0
- package/src/ui-kit/LikeButton.fixture.tsx +6 -0
- package/src/ui-kit/LikeButton.tsx +41 -0
- package/src/ui-kit/Logo.fixture.tsx +5 -0
- package/src/ui-kit/Logo.tsx +35 -0
- package/src/ui-kit/SVG.tsx +32 -0
- package/src/ui-kit/SearchBar.tsx +33 -0
- package/src/ui-kit/TopItem.fixture.tsx +8 -0
- package/src/ui-kit/TopItem.tsx +37 -0
- package/src/useLink.ts +28 -0
- package/src/useSitemap.ts +17 -0
- package/src/utils/joinList.ts +7 -0
- package/src/utils/url.ts +22 -0
package/README.md
ADDED
package/dist/BenefitsBlock.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { UniBlockProps, Benefit } from './types';
|
|
2
2
|
export interface BenefitsBlockContent {
|
|
3
3
|
title?: string;
|
|
4
4
|
benefits?: Benefit[];
|
|
5
5
|
}
|
|
6
|
-
export interface BenefitsBlockProps extends BenefitsBlockContent,
|
|
6
|
+
export interface BenefitsBlockProps extends BenefitsBlockContent, UniBlockProps {
|
|
7
7
|
}
|
|
8
8
|
export declare const BenefitsBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<BenefitsBlockProps, any>, context?: any) => any;
|
package/dist/Blocks.d.ts
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
|
+
import { BenefitsBlockContent } from './BenefitsBlock';
|
|
2
|
+
import { ExchangeRateTileContent } from './ExchangeRateTile';
|
|
3
|
+
import { FooterContent } from './Footer/index';
|
|
4
|
+
import { HeaderContent } from './Header/index';
|
|
5
|
+
import { MobileAppTileContent } from './MobileAppTile';
|
|
6
|
+
import { PlaceholderContent } from './Placeholder';
|
|
7
|
+
import { ProductBlockInnerContent } from './ProductBlockInner';
|
|
8
|
+
import { ProductGalleryContent } from './ProductGallery';
|
|
9
|
+
import { StepsBlockContent } from './StepsBlock';
|
|
10
|
+
import { ProductTileContent } from './ProductTile';
|
|
11
|
+
import { TileContent } from './Tile';
|
|
1
12
|
export declare const Blocks: {
|
|
2
13
|
Header: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Header/Header").HeaderProps, any>, context?: any) => any;
|
|
3
14
|
Footer: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Footer/Footer").FooterProps, any>, context?: any) => any;
|
|
4
15
|
Placeholder: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Placeholder").PlaceholderProps, any>, context?: any) => any;
|
|
5
16
|
Tile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Tile").TileProps, any>, context?: any) => any;
|
|
17
|
+
ProductTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductTile").ProductTileProps, any>, context?: any) => any;
|
|
6
18
|
ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductBlock").ProductBlockProps, any>, context?: any) => any;
|
|
7
19
|
StepsBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./StepsBlock").StepsBlockProps, any>, context?: any) => any;
|
|
8
20
|
BenefitsBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./BenefitsBlock").BenefitsBlockProps, any>, context?: any) => any;
|
|
9
21
|
ProductGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductGallery").ProductGalleryProps, any>, context?: any) => any;
|
|
22
|
+
ExchangeRateTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ExchangeRateTile").ExchangeRateTileProps, any>, context?: any) => any;
|
|
23
|
+
MobileAppTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./MobileAppTile").MobileAppTileProps, any>, context?: any) => any;
|
|
10
24
|
};
|
|
25
|
+
export declare type BlockContent = HeaderContent | FooterContent | PlaceholderContent | TileContent | ProductTileContent | ProductBlockInnerContent | StepsBlockContent | BenefitsBlockContent | ProductGalleryContent | ExchangeRateTileContent | MobileAppTileContent;
|
package/dist/Blocks.js
CHANGED
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.Blocks = void 0;
|
|
3
|
-
const
|
|
4
|
-
const
|
|
3
|
+
const BenefitsBlock_1 = require("./BenefitsBlock");
|
|
4
|
+
const ExchangeRateTile_1 = require("./ExchangeRateTile");
|
|
5
|
+
const index_1 = require("./Footer/index");
|
|
6
|
+
const index_2 = require("./Header/index");
|
|
7
|
+
const MobileAppTile_1 = require("./MobileAppTile");
|
|
5
8
|
const Placeholder_1 = require("./Placeholder");
|
|
6
|
-
const Tile_1 = require("./Tile");
|
|
7
9
|
const ProductBlock_1 = require("./ProductBlock");
|
|
8
|
-
const StepsBlock_1 = require("./StepsBlock");
|
|
9
|
-
const BenefitsBlock_1 = require("./BenefitsBlock");
|
|
10
10
|
const ProductGallery_1 = require("./ProductGallery");
|
|
11
|
+
const StepsBlock_1 = require("./StepsBlock");
|
|
12
|
+
const ProductTile_1 = require("./ProductTile");
|
|
13
|
+
const Tile_1 = require("./Tile");
|
|
11
14
|
exports.Blocks = {
|
|
12
|
-
Header:
|
|
13
|
-
Footer:
|
|
15
|
+
Header: index_2.Header,
|
|
16
|
+
Footer: index_1.Footer,
|
|
14
17
|
Placeholder: Placeholder_1.Placeholder,
|
|
15
18
|
Tile: Tile_1.Tile,
|
|
19
|
+
ProductTile: ProductTile_1.ProductTile,
|
|
16
20
|
ProductBlock: ProductBlock_1.ProductBlock,
|
|
17
21
|
StepsBlock: StepsBlock_1.StepsBlock,
|
|
18
22
|
BenefitsBlock: BenefitsBlock_1.BenefitsBlock,
|
|
19
23
|
ProductGallery: ProductGallery_1.ProductGallery,
|
|
24
|
+
ExchangeRateTile: ExchangeRateTile_1.ExchangeRateTile,
|
|
25
|
+
MobileAppTile: MobileAppTile_1.MobileAppTile,
|
|
20
26
|
};
|
|
21
27
|
//# sourceMappingURL=Blocks.js.map
|
package/dist/Blocks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../src/Blocks.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../src/Blocks.ts"],"names":[],"mappings":";;AAAA,mDAAsE;AACtE,yDAA+E;AAC/E,0CAAuD;AACvD,0CAAuD;AACvD,mDAAsE;AACtE,+CAAgE;AAChE,iDAA8C;AAE9C,qDAAyE;AACzE,6CAA6D;AAC7D,+CAAgE;AAChE,iCAA2C;AAE9B,QAAA,MAAM,GAAG;IACpB,MAAM,EAAN,cAAM;IACN,MAAM,EAAN,cAAM;IACN,WAAW,EAAX,yBAAW;IACX,IAAI,EAAJ,WAAI;IACJ,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,2BAAY;IACZ,UAAU,EAAV,uBAAU;IACV,aAAa,EAAb,6BAAa;IACb,cAAc,EAAd,+BAAc;IACd,gBAAgB,EAAhB,mCAAgB;IAChB,aAAa,EAAb,6BAAa;CACd,CAAC"}
|
package/dist/ContentPage.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BlockDef, ContentPageDef,
|
|
1
|
+
import type { BlockDef, ContentPageDef, UniBlockProps } from './types';
|
|
2
2
|
interface BlockDecoratorProps<VNode> {
|
|
3
3
|
blockClassName: string;
|
|
4
4
|
block: BlockDef;
|
|
@@ -8,7 +8,7 @@ interface BlockDecoratorProps<VNode> {
|
|
|
8
8
|
}) => VNode;
|
|
9
9
|
}
|
|
10
10
|
export declare type BlockDecorator<VNode = any> = (props: BlockDecoratorProps<VNode>, index?: number | string) => any;
|
|
11
|
-
export interface ContentPageProps extends
|
|
11
|
+
export interface ContentPageProps extends UniBlockProps {
|
|
12
12
|
data: ContentPageDef;
|
|
13
13
|
blockDecorator?: BlockDecorator;
|
|
14
14
|
}
|
package/dist/ContentPage.js
CHANGED
|
@@ -2,8 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.ContentPage = 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
|
-
const Blocks_1 = require("./Blocks");
|
|
5
|
+
const Blocks_1 = require("./Blocks"); // TODO Lazy load
|
|
6
6
|
const LikeControl_1 = require("./LikeControl");
|
|
7
|
+
const Placeholder_1 = require("./Placeholder");
|
|
7
8
|
const defaultBlockDecorator = ({ blockClassName, block, render }) => render({ blockClassName, block });
|
|
8
9
|
exports.ContentPage = (0, uni_jsx_1.JSX)(({ className, data: { style: pageStyle, blocks, likeControl, colorPalette = 'pc' }, context, blockDecorator = defaultBlockDecorator, }) => {
|
|
9
10
|
return ((0, jsx_runtime_1.jsxs)("section", { className: "relative", "data-theme": colorPalette, children: [(0, jsx_runtime_1.jsx)("div", { className: `grid grid-cols-12 gap-1 ${style2className(pageStyle)} ${className}`, children: blocks?.length ? blocks.map(renderBlock) : null }), likeControl && ((0, jsx_runtime_1.jsx)("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: (0, jsx_runtime_1.jsx)(LikeControl_1.LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto", context: context }) }))] }));
|
|
@@ -11,9 +12,8 @@ exports.ContentPage = (0, uni_jsx_1.JSX)(({ className, data: { style: pageStyle,
|
|
|
11
12
|
const { type } = block;
|
|
12
13
|
if (!(type in Blocks_1.Blocks)) {
|
|
13
14
|
console.warn(`No block with "${type}" is registered`);
|
|
14
|
-
return null;
|
|
15
15
|
}
|
|
16
|
-
const BlockComponent = Blocks_1.Blocks[type];
|
|
16
|
+
const BlockComponent = Blocks_1.Blocks[type] || Placeholder_1.Placeholder;
|
|
17
17
|
return blockDecorator({
|
|
18
18
|
blockClassName: style2className(block.style),
|
|
19
19
|
block,
|
package/dist/ContentPage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentPage.js","sourceRoot":"","sources":["../src/ContentPage.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qCAAkC;
|
|
1
|
+
{"version":3,"file":"ContentPage.js","sourceRoot":"","sources":["../src/ContentPage.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qCAAkC,CAAC,iBAAiB;AACpD,+CAA4C;AAC5C,+CAA4C;AAmB5C,MAAM,qBAAqB,GAAmB,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAClF,MAAM,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC;AAEvB,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,EACT,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,GAAG,IAAI,EAAE,EACpE,OAAO,EACP,cAAc,GAAG,qBAAqB,GACvC,EAAE,EAAE;IACH,OAAO,CACL,qCAAS,SAAS,EAAC,UAAU,gBAAa,YAAY,aACpD,gCAAK,SAAS,EAAE,2BAA2B,eAAe,CAAC,SAAS,CAAC,IAAI,SAAS,EAAE,YACjF,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CA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4 +1,3 @@
|
|
|
1
|
-
import type { HeaderContent } from './Header';
|
|
2
1
|
export interface Router {
|
|
3
2
|
pathname: string;
|
|
4
3
|
query: Record<string, string | string[] | undefined>;
|
|
@@ -16,10 +15,14 @@ export interface Search {
|
|
|
16
15
|
term: string;
|
|
17
16
|
setTerm: (t: string) => void;
|
|
18
17
|
}
|
|
18
|
+
export declare type AsyncDataHook = <Data, Error = any>(key: string, fetcher: () => Promise<Data>) => {
|
|
19
|
+
data?: Data;
|
|
20
|
+
error?: Error;
|
|
21
|
+
};
|
|
19
22
|
export interface ContentPageContext {
|
|
20
23
|
useRouter: () => Router;
|
|
21
|
-
useState: <
|
|
22
|
-
|
|
24
|
+
useState: <State>(initialState: State) => [State, (_: State) => void];
|
|
25
|
+
useAsyncData: AsyncDataHook;
|
|
23
26
|
useLikeService: () => LikeService;
|
|
24
27
|
useSearch: () => Search;
|
|
25
28
|
handlerDecorator?: HandlerDecorator;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { UniBlockProps } from './types';
|
|
2
|
+
export interface ExchangeRateTileContent {
|
|
3
|
+
title?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ExchangeRateTileProps extends ExchangeRateTileContent, UniBlockProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const ExchangeRateTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<ExchangeRateTileProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.ExchangeRateTile = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const index_1 = require("./Icons/index");
|
|
6
|
+
const Tile_1 = require("./Tile");
|
|
7
|
+
const CBR_EXCHANGE_RATE_URL = 'https://www.cbr-xml-daily.ru/daily_json.js';
|
|
8
|
+
const CURRENCY_CODES = ['USD', 'EUR'];
|
|
9
|
+
const CURRENCY_ICONS_MAP = {
|
|
10
|
+
USD: index_1.DollarIcon,
|
|
11
|
+
EUR: index_1.EuroIcon,
|
|
12
|
+
};
|
|
13
|
+
const button = {
|
|
14
|
+
text: 'Все показатели',
|
|
15
|
+
href: 'https://cbr.ru/currency_base/daily/',
|
|
16
|
+
};
|
|
17
|
+
exports.ExchangeRateTile = (0, uni_jsx_1.JSX)(({ className, context, title }) => {
|
|
18
|
+
const { data } = context.useAsyncData(CBR_EXCHANGE_RATE_URL, fetchExchangeRate);
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)(Tile_1.Tile, { className: className, context: context, title: title || 'Курсы обмена валют', button: button, children: (0, jsx_runtime_1.jsxs)("table", { children: [(0, jsx_runtime_1.jsx)("thead", { children: (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)(CurrencyTH, { children: "\u0412\u0430\u043B\u044E\u0442\u0430" }), (0, jsx_runtime_1.jsx)(CurrencyTH, { className: "pl-11", children: "\u041A\u0443\u0440\u0441" })] }) }), (0, jsx_runtime_1.jsx)("tbody", { children: CURRENCY_CODES.map((code) => {
|
|
20
|
+
const value = (data?.Valute || {})[code]?.Value;
|
|
21
|
+
return ((0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)(CurrencyTD, { className: "pt-4", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [CURRENCY_ICONS_MAP[code] ? CURRENCY_ICONS_MAP[code]() : null, (0, jsx_runtime_1.jsx)("span", { className: "ml-2", children: code })] }) }), (0, jsx_runtime_1.jsx)(CurrencyTD, { className: "pt-4 pl-11", children: formatCurrency(value) })] }, code));
|
|
22
|
+
}) })] }) }));
|
|
23
|
+
});
|
|
24
|
+
const CurrencyTH = (0, uni_jsx_1.JSX)(({ className = '', children }) => ((0, jsx_runtime_1.jsx)("th", { className: `text-left font-normal text-sm text-secondary-text ${className}`, children: children })));
|
|
25
|
+
const CurrencyTD = (0, uni_jsx_1.JSX)(({ className = '', children }) => ((0, jsx_runtime_1.jsx)("td", { className: `text-left font-normal text-base text-primary-text ${className}`, children: children })));
|
|
26
|
+
async function fetchExchangeRate() {
|
|
27
|
+
const response = await fetch(CBR_EXCHANGE_RATE_URL);
|
|
28
|
+
return await response.json();
|
|
29
|
+
}
|
|
30
|
+
const currencyNumberFormat = new Intl.NumberFormat('ru', { style: 'currency', currency: 'RUB' });
|
|
31
|
+
const formatCurrency = (value) => (value ? currencyNumberFormat.format(value) : '');
|
|
32
|
+
//# sourceMappingURL=ExchangeRateTile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExchangeRateTile.js","sourceRoot":"","sources":["../src/ExchangeRateTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yCAAqD;AACrD,iCAA8B;AAU9B,MAAM,qBAAqB,GAAG,4CAA4C,CAAC;AAE3E,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AACtC,MAAM,kBAAkB,GAAG;IACzB,GAAG,EAAE,kBAAU;IACf,GAAG,EAAE,gBAAQ;CACd,CAAC;AAEF,MAAM,MAAM,GAAgB;IAC1B,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,qCAAqC;CAC5C,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;IAC3F,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC,qBAAqB,EAAE,iBAAiB,CAAC,CAAC;IAChF,OAAO,CACL,uBAAC,WAAI,IACH,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,IAAI,oBAAoB,EACpC,MAAM,EAAE,MAAM,YAEd,8CACE,4CACE,2CACE,uBAAC,UAAU,uDAAoB,EAC/B,uBAAC,UAAU,IAAC,SAAS,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,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;AAEjG,MAAM,cAAc,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,oBAAoB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface ContactsProps extends
|
|
1
|
+
import type { UniBlockProps, ContactInfo } from '../types';
|
|
2
|
+
export interface ContactsProps extends UniBlockProps {
|
|
3
3
|
items?: ContactInfo[];
|
|
4
4
|
hasButton?: boolean;
|
|
5
5
|
}
|
package/dist/Footer/Footer.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import type { LinkContent,
|
|
2
|
-
interface FooterContent {
|
|
1
|
+
import type { LinkContent, UniBlockProps, ContactInfo, TopMenuItem } from '../types';
|
|
2
|
+
export interface FooterContent {
|
|
3
3
|
documents?: LinkContent[];
|
|
4
4
|
relatedEnterprises?: LinkContent[];
|
|
5
5
|
contacts?: ContactInfo[];
|
|
6
6
|
socialMedia?: Omit<LinkContent, 'text'>[];
|
|
7
7
|
topItems?: TopMenuItem[];
|
|
8
8
|
}
|
|
9
|
-
export interface FooterProps extends FooterContent,
|
|
9
|
+
export interface FooterProps extends FooterContent, UniBlockProps {
|
|
10
10
|
}
|
|
11
11
|
export declare const Footer: (props: import("@redneckz/uni-jsx").PropsWithChildren<FooterProps, any>, context?: any) => any;
|
|
12
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../src/Footer/Footer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yCAAsC;AACtC,mDAAgD;AAChD,yCAAsC;AACtC,uCAAoC;AACpC,+CAA4C;AAC5C,iEAA8D;AAC9D,uDAAoD;AAGpD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,SAAS,EAAE,OAAO,EAAE,OAAO,GAAI,IAChD,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LinkContent } from '../types';
|
|
2
|
-
import type {
|
|
3
|
-
export interface FooterLink extends
|
|
2
|
+
import type { UniBlockProps } from '../types';
|
|
3
|
+
export interface FooterLink extends UniBlockProps {
|
|
4
4
|
links?: LinkContent[];
|
|
5
5
|
}
|
package/dist/Footer/Sitemap.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TopMenuItem,
|
|
2
|
-
export interface SitemapProps extends
|
|
1
|
+
import type { TopMenuItem, UniBlockProps } from '../types';
|
|
2
|
+
export interface SitemapProps extends UniBlockProps {
|
|
3
3
|
items?: TopMenuItem[];
|
|
4
4
|
}
|
|
5
5
|
export declare const Sitemap: (props: import("@redneckz/uni-jsx").PropsWithChildren<SitemapProps, any>, context?: any) => any;
|
package/dist/Footer/Sitemap.js
CHANGED
|
@@ -4,14 +4,17 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const mergeTopItems_1 = require("../mergeTopItems");
|
|
6
6
|
const useLink_1 = require("../useLink");
|
|
7
|
+
const useSitemap_1 = require("../useSitemap");
|
|
7
8
|
exports.Sitemap = (0, uni_jsx_1.JSX)(({ className, items, context }) => {
|
|
8
|
-
const sitemap =
|
|
9
|
+
const sitemap = (0, useSitemap_1.useSitemap)(context.useAsyncData);
|
|
9
10
|
const mergedItems = (0, mergeTopItems_1.mergeTopItems)(sitemap.topItems, items);
|
|
10
|
-
|
|
11
|
+
const linkParams = {
|
|
12
|
+
router: context.useRouter(),
|
|
13
|
+
handlerDecorator: context.handlerDecorator,
|
|
14
|
+
};
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: `flex items-start justify-start gap-11 xl:gap-5 ${className || ''}`, children: mergedItems?.map((_, i) => renderColumn(_, i, linkParams)) }));
|
|
11
16
|
});
|
|
12
|
-
const renderColumn = (c, index,
|
|
13
|
-
const router = context.useRouter();
|
|
14
|
-
const { handlerDecorator } = context;
|
|
17
|
+
const renderColumn = (c, index, { router, handlerDecorator }) => {
|
|
15
18
|
const { text, href, items, target } = c;
|
|
16
19
|
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col w-[235px] gap-[14px]", children: [(0, jsx_runtime_1.jsx)("a", { className: "block font-sans font-medium text-base text-primary-text no-underline", href: href, target: target || '_self', children: text || `Раздел ${index}` }), items?.map((_, i) => ((0, jsx_runtime_1.jsx)(ColumnItem, { ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(i))))] }, String(index)));
|
|
17
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sitemap.js","sourceRoot":"","sources":["../../src/Footer/Sitemap.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,oDAAiD;
|
|
1
|
+
{"version":3,"file":"Sitemap.js","sourceRoot":"","sources":["../../src/Footer/Sitemap.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,oDAAiD;AAEjD,wCAAqC;AACrC,8CAA2C;AAK9B,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IACzE,MAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACjD,MAAM,WAAW,GAAG,IAAA,6BAAa,EAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC3D,MAAM,UAAU,GAAG;QACjB,MAAM,EAAE,OAAO,CAAC,SAAS,EAAE;QAC3B,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;KAC3C,CAAC;IAEF,OAAO,CACL,gCAAK,SAAS,EAAE,kDAAkD,SAAS,IAAI,EAAE,EAAE,YAChF,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC,GACvD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,CAAc,EAAE,KAAa,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,EAAE;IACnF,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;IAExC,OAAO,CACL,iCAAyB,SAAS,EAAC,oCAAoC,aACrE,8BACE,SAAS,EAAC,sEAAsE,EAChF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,IAAI,OAAO,YAExB,IAAI,IAAI,UAAU,KAAK,EAAE,GACxB,EACH,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACpB,uBAAC,UAAU,OAAqB,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAAvD,MAAM,CAAC,CAAC,CAAC,CAAkD,CAC7E,CAAC,KAVM,MAAM,CAAC,KAAK,CAAC,CAWjB,CACP,CAAC;AACJ,CAAC,CAAC;AAMF,MAAM,UAAU,GAAG,IAAA,aAAG,EAAkB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACzE,8BACE,SAAS,EAAC,gGAAgG,EAC1G,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,IAAI,OAAO,YAExB,IAAI,IAAI,UAAU,KAAK,EAAE,GACxB,CACL,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { LinkContent,
|
|
2
|
-
export interface SocialMediaProps extends
|
|
1
|
+
import type { LinkContent, UniBlockProps } from '../types';
|
|
2
|
+
export interface SocialMediaProps extends UniBlockProps {
|
|
3
3
|
media?: Omit<LinkContent, 'text'>[];
|
|
4
4
|
}
|
|
5
5
|
export declare const SocialMedia: (props: import("@redneckz/uni-jsx").PropsWithChildren<SocialMediaProps, any>, context?: any) => any;
|
|
@@ -5,9 +5,9 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const index_1 = require("../Icons/index");
|
|
6
6
|
const useLink_1 = require("../useLink");
|
|
7
7
|
const ICONS_MAP = [
|
|
8
|
-
{ origins: ['t.me', 'telegram.org'], icon: index_1.TelegramIcon },
|
|
9
|
-
{ origins: ['vk.com'], icon: index_1.VKIcon },
|
|
10
|
-
{ origins: ['ok.ru'], icon: index_1.OkIcon },
|
|
8
|
+
{ origins: ['t.me', 'telegram.org'], icon: index_1.TelegramIcon, label: 'Телеграм' },
|
|
9
|
+
{ origins: ['vk.com'], icon: index_1.VKIcon, label: 'ВКонтакте' },
|
|
10
|
+
{ origins: ['ok.ru'], icon: index_1.OkIcon, label: 'Одноклассники' },
|
|
11
11
|
];
|
|
12
12
|
exports.SocialMedia = (0, uni_jsx_1.JSX)(({ className, media, context }) => {
|
|
13
13
|
const router = context.useRouter();
|
|
@@ -15,7 +15,7 @@ exports.SocialMedia = (0, uni_jsx_1.JSX)(({ className, media, context }) => {
|
|
|
15
15
|
return ((0, jsx_runtime_1.jsx)("div", { className: `flex items-end justify-end gap-2 py-6 ${className || ''}`, children: media?.map((_, index) => ((0, jsx_runtime_1.jsx)(MediaButton, { ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(index)))) }));
|
|
16
16
|
});
|
|
17
17
|
const MediaButton = (0, uni_jsx_1.JSX)(({ href }) => {
|
|
18
|
-
const { icon: Icon } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
19
|
-
return ((0, jsx_runtime_1.jsx)("a", { className: "flex items-center justify-center border-solid border-1 border-main-divider rounded-full no-underline outline-none w-8 h-8
|
|
18
|
+
const { icon: Icon, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)("a", { className: "flex items-center justify-center border-solid border-1 border-main-divider rounded-full no-underline outline-none w-8 h-8", href: href, target: "_blank", rel: "noopener noreferrer", "aria-label": label, children: Icon && (0, jsx_runtime_1.jsx)(Icon, { className: "block" }) }));
|
|
20
20
|
});
|
|
21
21
|
//# sourceMappingURL=SocialMedia.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../src/Footer/SocialMedia.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0CAA8D;AAC9D,wCAAqC;AAErC,MAAM,SAAS,GAAG;IAChB,EAAE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC,EAAE,IAAI,EAAE,oBAAY,EAAE;
|
|
1
|
+
{"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../src/Footer/SocialMedia.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0CAA8D;AAC9D,wCAAqC;AAErC,MAAM,SAAS,GAAG;IAChB,EAAE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC,EAAE,IAAI,EAAE,oBAAY,EAAE,KAAK,EAAE,UAAU,EAAE;IAC5E,EAAE,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,cAAM,EAAE,KAAK,EAAE,WAAW,EAAE;IACzD,EAAE,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,cAAM,EAAE,KAAK,EAAE,eAAe,EAAE;CAC7D,CAAC;AAMW,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IACjF,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IACrC,OAAO,CACL,gCAAK,SAAS,EAAE,yCAAyC,SAAS,IAAI,EAAE,EAAE,YACvE,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,uBAAC,WAAW,OAAyB,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAA3D,MAAM,CAAC,KAAK,CAAC,CAAkD,CAClF,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAMH,MAAM,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IACrD,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,GACzB,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAChF,OAAO,CACL,8BACE,SAAS,EAAC,2HAA2H,EACrI,IAAI,EAAE,IAAI,EACV,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,gBACb,KAAK,YAEhB,IAAI,IAAI,uBAAC,IAAI,IAAC,SAAS,EAAC,OAAO,GAAG,GACjC,CACL,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/dist/Footer/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Footer } from './Footer';
|
|
2
|
-
export type { FooterProps } from './Footer';
|
|
2
|
+
export type { FooterContent, FooterProps } from './Footer';
|
package/dist/Header/Header.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../types';
|
|
1
2
|
import type { HeaderContent } from './HeaderContent';
|
|
2
|
-
|
|
3
|
-
export interface HeaderProps extends HeaderContent, UniBlocksComponentProps {
|
|
3
|
+
export interface HeaderProps extends HeaderContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const Header: (props: import("@redneckz/uni-jsx").PropsWithChildren<HeaderProps, any>, context?: any) => any;
|
package/dist/Header/Header.js
CHANGED
|
@@ -2,17 +2,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.Header = 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
|
+
const mergeTopItems_1 = require("../mergeTopItems");
|
|
5
6
|
const HeaderItem_1 = require("../ui-kit/HeaderItem");
|
|
6
7
|
const Logo_1 = require("../ui-kit/Logo");
|
|
7
8
|
const TopItem_1 = require("../ui-kit/TopItem");
|
|
8
9
|
const useLink_1 = require("../useLink");
|
|
10
|
+
const useSitemap_1 = require("../useSitemap");
|
|
9
11
|
const HeaderSecondaryMenu_1 = require("./HeaderSecondaryMenu");
|
|
10
12
|
const isSubItemActive_1 = require("./isSubItemActive");
|
|
11
13
|
const isTopItemActive_1 = require("./isTopItemActive");
|
|
12
|
-
const mergeTopItems_1 = require("../mergeTopItems");
|
|
13
14
|
exports.Header = (0, uni_jsx_1.JSX)(({ className, location, context, topItems }) => {
|
|
14
15
|
const router = context.useRouter();
|
|
15
|
-
const sitemap =
|
|
16
|
+
const sitemap = (0, useSitemap_1.useSitemap)(context.useAsyncData);
|
|
16
17
|
const { handlerDecorator } = context;
|
|
17
18
|
const mergedItems = (0, mergeTopItems_1.mergeTopItems)(sitemap.topItems, topItems);
|
|
18
19
|
const activeTopItem = mergedItems.find((0, isTopItemActive_1.isTopItemActive)(router));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../src/Header/Header.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qDAAkD;AAClD,yCAAsC;AACtC,+CAA4C;AAC5C,wCAAqC;
|
|
1
|
+
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C,uBAAC,uBAAU,IAET,SAAS,EAAC,MAAM,EAChB,MAAM,EAAE,CAAC,KAAK,aAAa,KACvB,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAHvC,CAAC,CAAC,IAAI,CAIX,CACH,CAAC,CAAC;IAEH,OAAO,CACL,oCAAQ,SAAS,EAAE,0DAA0D,SAAS,IAAI,EAAE,EAAE,aAC5F,iCAAK,SAAS,EAAC,mBAAmB,aAChC,uBAAC,WAAI,IAAC,SAAS,EAAC,MAAM,GAAG,EACxB,OAAO,EACR,uBAAC,yCAAmB,IAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAC,SAAS,GAAG,IAC3D,EACN,gCAAK,SAAS,EAAC,8BAA8B,GAAG,EAChD,gCAAK,SAAS,EAAC,MAAM,YAAE,OAAO,GAAO,IAC9B,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DollarIcon: () => any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.DollarIcon = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const DollarIcon = () => ((0, jsx_runtime_1.jsxs)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z", fill: "#46B448" }), (0, jsx_runtime_1.jsx)("path", { d: "M14.58 14.5193C14.58 12.0548 7.8413 13.521 7.8413 9.52803C7.8413 8.07753 9.1358 6.82953 11.1165 6.51753V5.26953H12.9105V6.48603C14.3303 6.62703 15.531 7.18803 16.3418 7.99953L15.3128 9.34053C14.3768 8.56053 13.3785 8.20203 12.0683 8.20203C10.914 8.20203 9.7913 8.56053 9.7913 9.48078C9.7913 11.6805 16.5293 10.3703 16.5293 14.3783C16.5293 16.1408 14.9385 17.3895 12.9105 17.5763V18.918H11.1165V17.4975C9.6038 17.2328 8.26205 16.4835 7.5293 15.6105L8.65205 14.2845C9.58805 15.267 10.977 15.8445 12.5048 15.8445C13.815 15.8445 14.5793 15.345 14.5793 14.5185L14.58 14.5193Z", fill: "white" })] }));
|
|
5
|
+
exports.DollarIcon = DollarIcon;
|
|
6
|
+
//# sourceMappingURL=DollarIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DollarIcon.js","sourceRoot":"","sources":["../../src/Icons/DollarIcon.tsx"],"names":[],"mappings":";;;AAAO,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,CAC9B,iCAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,aAC5F,iCACE,CAAC,EAAC,mHAAmH,EACrH,IAAI,EAAC,SAAS,GACd,EACF,iCACE,CAAC,EAAC,4jBAA4jB,EAC9jB,IAAI,EAAC,OAAO,GACZ,IACE,CACP,CAAC;AAXW,QAAA,UAAU,cAWrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EuroIcon: () => any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.EuroIcon = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const EuroIcon = () => ((0, jsx_runtime_1.jsxs)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z", fill: "#3060BF" }), (0, jsx_runtime_1.jsx)("path", { d: "M6.19238 11.4759L6.76988 10.0254H7.77638C8.45738 8.0867 10.1891 6.71045 12.5576 6.71045C13.6526 6.71045 14.5556 6.9467 15.1924 7.3907L14.5556 8.7377C14.0381 8.4272 13.3864 8.24945 12.5576 8.24945C11.2699 8.24945 10.2334 8.91545 9.70013 10.0254H14.2451L13.6976 11.4759H9.27038C9.25538 11.6687 9.24038 11.9799 9.24038 12.2019C9.24038 12.2904 9.24038 12.3497 9.25538 12.4532H13.4156L12.9416 13.9037H9.59663C10.0406 15.0587 11.2691 15.7839 12.7196 15.7839C13.2371 15.7839 14.0516 15.6212 14.5256 15.3099L14.9696 16.6869C14.5549 17.0274 13.5484 17.3087 12.6746 17.3087C10.1584 17.3087 8.39738 16.0802 7.70213 13.9037H6.22088L6.76838 12.4532C7.46438 12.4532 7.46438 12.4382 7.46438 12.4382C7.46438 12.3939 7.44938 12.2754 7.44938 12.1719C7.44938 11.8464 7.46438 11.6544 7.47938 11.4759H6.19238Z", fill: "white" })] }));
|
|
5
|
+
exports.EuroIcon = EuroIcon;
|
|
6
|
+
//# sourceMappingURL=EuroIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EuroIcon.js","sourceRoot":"","sources":["../../src/Icons/EuroIcon.tsx"],"names":[],"mappings":";;;AAAO,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,CAC5B,iCAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,aAC5F,iCACE,CAAC,EAAC,mHAAmH,EACrH,IAAI,EAAC,SAAS,GACd,EACF,iCACE,CAAC,EAAC,sxBAAsxB,EACxxB,IAAI,EAAC,OAAO,GACZ,IACE,CACP,CAAC;AAXW,QAAA,QAAQ,YAWnB"}
|
package/dist/Icons/index.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export {
|
|
1
|
+
export { ActualBalanceIcon } from './ActualBalanceIcon';
|
|
2
|
+
export { CalendarIcon } from './CalendarIcon';
|
|
3
|
+
export { ClockIcon } from './ClockIcon';
|
|
4
|
+
export { ComfortableCompIcon } from './ComfortableCompIcon';
|
|
5
|
+
export { DollarIcon } from './DollarIcon';
|
|
6
|
+
export { EmptyWalletIcon } from './EmptyWalletIcon';
|
|
7
|
+
export { EuroIcon } from './EuroIcon';
|
|
8
|
+
export { GridIcon } from './GridIcon';
|
|
9
|
+
export { LoupeIcon } from './LoupeIcon';
|
|
10
|
+
export { NewDocIcon } from './NewDocIcon';
|
|
11
|
+
export { OkIcon } from './OkIcon';
|
|
12
|
+
export { PassSendIcon } from './PassSendIcon';
|
|
13
|
+
export { PercentageSquareIcon } from './PercentageSquareIcon';
|
|
14
|
+
export { ProfileIcon } from './ProfileIcon';
|
|
15
|
+
export { SignDocsIcon } from './SignDocsIcon';
|
|
16
|
+
export { TelegramIcon } from './TelegramIcon';
|
|
17
|
+
export { VKIcon } from './VKIcon';
|
package/dist/Icons/index.js
CHANGED
|
@@ -1,33 +1,37 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.
|
|
3
|
-
|
|
2
|
+
exports.VKIcon = exports.TelegramIcon = exports.SignDocsIcon = exports.ProfileIcon = exports.PercentageSquareIcon = exports.PassSendIcon = exports.OkIcon = exports.NewDocIcon = exports.LoupeIcon = exports.GridIcon = exports.EuroIcon = exports.EmptyWalletIcon = exports.DollarIcon = exports.ComfortableCompIcon = exports.ClockIcon = exports.CalendarIcon = exports.ActualBalanceIcon = void 0;
|
|
3
|
+
var ActualBalanceIcon_1 = require("./ActualBalanceIcon");
|
|
4
|
+
Object.defineProperty(exports, "ActualBalanceIcon", { enumerable: true, get: function () { return ActualBalanceIcon_1.ActualBalanceIcon; } });
|
|
5
|
+
var CalendarIcon_1 = require("./CalendarIcon");
|
|
4
6
|
Object.defineProperty(exports, "CalendarIcon", { enumerable: true, get: function () { return CalendarIcon_1.CalendarIcon; } });
|
|
5
|
-
|
|
7
|
+
var ClockIcon_1 = require("./ClockIcon");
|
|
8
|
+
Object.defineProperty(exports, "ClockIcon", { enumerable: true, get: function () { return ClockIcon_1.ClockIcon; } });
|
|
9
|
+
var ComfortableCompIcon_1 = require("./ComfortableCompIcon");
|
|
10
|
+
Object.defineProperty(exports, "ComfortableCompIcon", { enumerable: true, get: function () { return ComfortableCompIcon_1.ComfortableCompIcon; } });
|
|
11
|
+
var DollarIcon_1 = require("./DollarIcon");
|
|
12
|
+
Object.defineProperty(exports, "DollarIcon", { enumerable: true, get: function () { return DollarIcon_1.DollarIcon; } });
|
|
13
|
+
var EmptyWalletIcon_1 = require("./EmptyWalletIcon");
|
|
6
14
|
Object.defineProperty(exports, "EmptyWalletIcon", { enumerable: true, get: function () { return EmptyWalletIcon_1.EmptyWalletIcon; } });
|
|
7
|
-
|
|
15
|
+
var EuroIcon_1 = require("./EuroIcon");
|
|
16
|
+
Object.defineProperty(exports, "EuroIcon", { enumerable: true, get: function () { return EuroIcon_1.EuroIcon; } });
|
|
17
|
+
var GridIcon_1 = require("./GridIcon");
|
|
8
18
|
Object.defineProperty(exports, "GridIcon", { enumerable: true, get: function () { return GridIcon_1.GridIcon; } });
|
|
9
|
-
|
|
19
|
+
var LoupeIcon_1 = require("./LoupeIcon");
|
|
10
20
|
Object.defineProperty(exports, "LoupeIcon", { enumerable: true, get: function () { return LoupeIcon_1.LoupeIcon; } });
|
|
11
|
-
|
|
12
|
-
Object.defineProperty(exports, "PercentageSquareIcon", { enumerable: true, get: function () { return PercentageSquareIcon_1.PercentageSquareIcon; } });
|
|
13
|
-
const ProfileIcon_1 = require("./ProfileIcon");
|
|
14
|
-
Object.defineProperty(exports, "ProfileIcon", { enumerable: true, get: function () { return ProfileIcon_1.ProfileIcon; } });
|
|
15
|
-
const NewDocIcon_1 = require("./NewDocIcon");
|
|
21
|
+
var NewDocIcon_1 = require("./NewDocIcon");
|
|
16
22
|
Object.defineProperty(exports, "NewDocIcon", { enumerable: true, get: function () { return NewDocIcon_1.NewDocIcon; } });
|
|
17
|
-
|
|
23
|
+
var OkIcon_1 = require("./OkIcon");
|
|
24
|
+
Object.defineProperty(exports, "OkIcon", { enumerable: true, get: function () { return OkIcon_1.OkIcon; } });
|
|
25
|
+
var PassSendIcon_1 = require("./PassSendIcon");
|
|
18
26
|
Object.defineProperty(exports, "PassSendIcon", { enumerable: true, get: function () { return PassSendIcon_1.PassSendIcon; } });
|
|
19
|
-
|
|
20
|
-
Object.defineProperty(exports, "
|
|
21
|
-
|
|
22
|
-
Object.defineProperty(exports, "
|
|
23
|
-
|
|
27
|
+
var PercentageSquareIcon_1 = require("./PercentageSquareIcon");
|
|
28
|
+
Object.defineProperty(exports, "PercentageSquareIcon", { enumerable: true, get: function () { return PercentageSquareIcon_1.PercentageSquareIcon; } });
|
|
29
|
+
var ProfileIcon_1 = require("./ProfileIcon");
|
|
30
|
+
Object.defineProperty(exports, "ProfileIcon", { enumerable: true, get: function () { return ProfileIcon_1.ProfileIcon; } });
|
|
31
|
+
var SignDocsIcon_1 = require("./SignDocsIcon");
|
|
24
32
|
Object.defineProperty(exports, "SignDocsIcon", { enumerable: true, get: function () { return SignDocsIcon_1.SignDocsIcon; } });
|
|
25
|
-
|
|
26
|
-
Object.defineProperty(exports, "ComfortableCompIcon", { enumerable: true, get: function () { return ComfortableCompIcon_1.ComfortableCompIcon; } });
|
|
27
|
-
const TelegramIcon_1 = require("./TelegramIcon");
|
|
33
|
+
var TelegramIcon_1 = require("./TelegramIcon");
|
|
28
34
|
Object.defineProperty(exports, "TelegramIcon", { enumerable: true, get: function () { return TelegramIcon_1.TelegramIcon; } });
|
|
29
|
-
|
|
35
|
+
var VKIcon_1 = require("./VKIcon");
|
|
30
36
|
Object.defineProperty(exports, "VKIcon", { enumerable: true, get: function () { return VKIcon_1.VKIcon; } });
|
|
31
|
-
const OkIcon_1 = require("./OkIcon");
|
|
32
|
-
Object.defineProperty(exports, "OkIcon", { enumerable: true, get: function () { return OkIcon_1.OkIcon; } });
|
|
33
37
|
//# sourceMappingURL=index.js.map
|
package/dist/Icons/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Icons/index.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Icons/index.ts"],"names":[],"mappings":";;AAAA,yDAAwD;AAA/C,sHAAA,iBAAiB,OAAA;AAC1B,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAC5B,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAC7B,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
|
package/dist/Img.js
CHANGED
|
@@ -4,7 +4,7 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
exports.Img = (0, uni_jsx_1.JSX)(({ className, image }) => ((0, jsx_runtime_1.jsxs)("picture", { className: `${className || ''}`, children: [image.sources?.length
|
|
6
6
|
? image.sources.map(({ src, format }, index) => ((0, jsx_runtime_1.jsx)("source", { srcSet: src, type: formatToMimeType(format) }, `${index}_${src}`)))
|
|
7
|
-
: null, (0, jsx_runtime_1.jsx)("img", { src: image.src, alt: image.alt, title: image.title, ...image?.size })] })));
|
|
7
|
+
: null, (0, jsx_runtime_1.jsx)("img", { src: image.src, alt: image.alt || image.title, title: image.title, ...image?.size })] })));
|
|
8
8
|
function formatToMimeType(format) {
|
|
9
9
|
return format ? `image/${String(format)}` : undefined;
|
|
10
10
|
}
|
package/dist/Img.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Img.js","sourceRoot":"","sources":["../src/Img.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAQ3B,QAAA,GAAG,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACnE,qCAAS,SAAS,EAAE,GAAG,SAAS,IAAI,EAAE,EAAE,aACrC,KAAK,CAAC,OAAO,EAAE,MAAM;YACpB,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,mCAAgC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,IAA9D,GAAG,KAAK,IAAI,GAAG,EAAE,CAAiD,CAChF,CAAC;YACJ,CAAC,CAAC,IAAI,EACR,gCAAK,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,KAAM,KAAK,EAAE,IAAI,GAAI,
|
|
1
|
+
{"version":3,"file":"Img.js","sourceRoot":"","sources":["../src/Img.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAQ3B,QAAA,GAAG,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACnE,qCAAS,SAAS,EAAE,GAAG,SAAS,IAAI,EAAE,EAAE,aACrC,KAAK,CAAC,OAAO,EAAE,MAAM;YACpB,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,mCAAgC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,IAA9D,GAAG,KAAK,IAAI,GAAG,EAAE,CAAiD,CAChF,CAAC;YACJ,CAAC,CAAC,IAAI,EACR,gCAAK,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,KAAM,KAAK,EAAE,IAAI,GAAI,IACnF,CACX,CAAC,CAAC;AAEH,SAAgB,gBAAgB,CAAC,MAA2B;IAC1D,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACxD,CAAC;AAFD,4CAEC"}
|
package/dist/LikeControl.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const LikeControl: (props: import("@redneckz/uni-jsx").PropsWithChildren<
|
|
1
|
+
import type { UniBlockProps } from './types';
|
|
2
|
+
export declare const LikeControl: (props: import("@redneckz/uni-jsx").PropsWithChildren<UniBlockProps, any>, context?: any) => any;
|
package/dist/LikeControl.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LikeControl.js","sourceRoot":"","sources":["../src/LikeControl.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,oDAAiD;AAGpC,QAAA,WAAW,GAAG,IAAA,aAAG,
|
|
1
|
+
{"version":3,"file":"LikeControl.js","sourceRoot":"","sources":["../src/LikeControl.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,oDAAiD;AAGpC,QAAA,WAAW,GAAG,IAAA,aAAG,EAAgB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;IACvE,MAAM,WAAW,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAE7C,OAAO,CACL,iCACE,SAAS,EAAE,6GACT,SAAS,IAAI,EACf,EAAE,aAEF,uBAAC,uBAAU,IAAC,OAAO,EAAE,WAAW,CAAC,IAAI,EAAE,SAAS,EAAC,wIAA0B,GAAG,EAC9E,uBAAC,uBAAU,IACT,OAAO,EAAE,WAAW,CAAC,OAAO,EAC5B,SAAS,EAAC,YAAY,EACtB,SAAS,EAAC,0JAA6B,GACvC,EACF,iCAAM,SAAS,EAAC,aAAa,YAAE,WAAW,CAAC,SAAS,GAAQ,IACxD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { UniBlockProps } from './types';
|
|
2
|
+
export interface MobileAppTileContent {
|
|
3
|
+
title?: string;
|
|
4
|
+
qr?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface MobileAppTileProps extends MobileAppTileContent, UniBlockProps {
|
|
7
|
+
}
|
|
8
|
+
export declare const MobileAppTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<MobileAppTileProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.MobileAppTile = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const Tile_1 = require("./Tile");
|
|
6
|
+
exports.MobileAppTile = (0, uni_jsx_1.JSX)(({ className, context, title = 'Мобильное приложение', qr }) => {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(Tile_1.Tile, { className: className, context: context, title: title, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [qr && ((0, jsx_runtime_1.jsx)("img", { src: qr, alt: title, title: title, width: "90", height: "90", className: "w-[90px] h-[90px] bg-secondary-light" })), (0, jsx_runtime_1.jsx)("span", { className: "font-normal text-sm text-secondary-text ml-4", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }) }));
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=MobileAppTile.js.map
|