@redneckz/wildless-cms-uni-blocks 0.2.44 → 0.2.47
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/dist/BenefitsBlock.d.ts +2 -8
- package/dist/BenefitsBlock.js +4 -26
- package/dist/BenefitsBlock.js.map +1 -1
- package/dist/Blocks.d.ts +3 -0
- package/dist/Blocks.js +11 -5
- package/dist/Blocks.js.map +1 -1
- package/dist/ContentPage.d.ts +3 -4
- package/dist/ContentPage.js +5 -5
- 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 +2 -4
- package/dist/Footer/Footer.js +2 -2
- 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 +2 -1
- package/dist/Footer/Sitemap.js.map +1 -1
- package/dist/Footer/SocialMedia.d.ts +2 -2
- package/dist/Footer/SocialMedia.js +6 -6
- package/dist/Footer/SocialMedia.js.map +1 -1
- package/dist/Footer/index.d.ts +2 -0
- package/dist/Footer/index.js +5 -0
- package/dist/Footer/index.js.map +1 -0
- package/dist/Header/Header.d.ts +2 -2
- package/dist/Header/Header.js +4 -3
- package/dist/Header/Header.js.map +1 -1
- package/dist/Header/HeaderSecondaryMenu.js +1 -1
- package/dist/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/Header/HeaderSecondaryMenuButton.d.ts +1 -0
- package/dist/Header/HeaderSecondaryMenuButton.js +1 -1
- package/dist/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/dist/Icons/ActualBalanceIcon.d.ts +1 -1
- package/dist/Icons/CalendarIcon.d.ts +1 -1
- package/dist/Icons/ClockIcon.d.ts +1 -1
- package/dist/Icons/ComfortableCompIcon.d.ts +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/EmptyWalletIcon.d.ts +1 -1
- 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/GridIcon.d.ts +1 -1
- package/dist/Icons/LoupeIcon.d.ts +1 -1
- package/dist/Icons/NewDocIcon.d.ts +1 -1
- package/dist/Icons/OkIcon.d.ts +1 -1
- package/dist/Icons/PassSendIcon.d.ts +1 -1
- package/dist/Icons/PercentageSquareIcon.d.ts +1 -1
- package/dist/Icons/ProfileIcon.d.ts +1 -1
- package/dist/Icons/SignDocsIcon.d.ts +1 -1
- package/dist/Icons/TelegramIcon.d.ts +1 -1
- package/dist/Icons/VKIcon.d.ts +1 -1
- 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 +1 -1
- 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 +3 -9
- package/dist/ProductBlock.js +1 -1
- package/dist/ProductBlock.js.map +1 -1
- package/dist/ProductBlockInner.d.ts +2 -8
- package/dist/ProductBlockInner.js +4 -26
- package/dist/ProductBlockInner.js.map +1 -1
- package/dist/ProductGallery.d.ts +3 -5
- package/dist/ProductGallery.js +3 -3
- package/dist/ProductGallery.js.map +1 -1
- 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 +9 -4
- package/dist/StepsBlock.js +4 -26
- 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 +5 -3
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +6 -1
- package/dist/ui-kit/Button.d.ts +1 -0
- package/dist/ui-kit/Button.js +4 -4
- package/dist/ui-kit/Button.js.map +1 -1
- package/dist/ui-kit/LikeButton.d.ts +1 -0
- package/dist/ui-kit/LikeButton.js +1 -1
- package/dist/ui-kit/LikeButton.js.map +1 -1
- package/dist/ui-kit/SearchBar.d.ts +2 -2
- package/dist/ui-kit/SearchBar.js.map +1 -1
- package/dist/ui-kit/TopItem.d.ts +1 -0
- package/dist/ui-kit/TopItem.js +2 -2
- package/dist/ui-kit/TopItem.js.map +1 -1
- package/dist/useLink.d.ts +1 -0
- package/dist/useLink.js +1 -0
- package/dist/useLink.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/url.d.ts +4 -4
- package/fonts/ubuntu/ubuntu.css +51 -32
- package/lib/BenefitsBlock.d.ts +2 -8
- package/lib/BenefitsBlock.js +4 -3
- package/lib/BenefitsBlock.js.map +1 -1
- package/lib/Blocks.d.ts +3 -0
- package/lib/Blocks.js +9 -3
- package/lib/Blocks.js.map +1 -1
- package/lib/ContentPage.d.ts +3 -4
- package/lib/ContentPage.js +5 -5
- 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 +2 -4
- package/lib/Footer/Footer.js +2 -2
- 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 +2 -1
- package/lib/Footer/Sitemap.js.map +1 -1
- package/lib/Footer/SocialMedia.d.ts +2 -2
- package/lib/Footer/SocialMedia.js +6 -6
- package/lib/Footer/SocialMedia.js.map +1 -1
- package/lib/Footer/index.d.ts +2 -0
- package/lib/Footer/index.js +2 -0
- package/lib/Footer/index.js.map +1 -0
- package/lib/Header/Header.d.ts +2 -2
- package/lib/Header/Header.js +4 -3
- package/lib/Header/Header.js.map +1 -1
- package/lib/Header/HeaderSecondaryMenu.js +1 -1
- package/lib/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/Header/HeaderSecondaryMenuButton.d.ts +1 -0
- package/lib/Header/HeaderSecondaryMenuButton.js +1 -1
- package/lib/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/lib/Icons/ActualBalanceIcon.d.ts +1 -1
- package/lib/Icons/CalendarIcon.d.ts +1 -1
- package/lib/Icons/ClockIcon.d.ts +1 -1
- package/lib/Icons/ComfortableCompIcon.d.ts +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/EmptyWalletIcon.d.ts +1 -1
- 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/GridIcon.d.ts +1 -1
- package/lib/Icons/LoupeIcon.d.ts +1 -1
- package/lib/Icons/NewDocIcon.d.ts +1 -1
- package/lib/Icons/OkIcon.d.ts +1 -1
- package/lib/Icons/PassSendIcon.d.ts +1 -1
- package/lib/Icons/PercentageSquareIcon.d.ts +1 -1
- package/lib/Icons/ProfileIcon.d.ts +1 -1
- package/lib/Icons/SignDocsIcon.d.ts +1 -1
- package/lib/Icons/TelegramIcon.d.ts +1 -1
- package/lib/Icons/VKIcon.d.ts +1 -1
- 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 +1 -1
- 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 +3 -9
- package/lib/ProductBlock.js +1 -1
- package/lib/ProductBlock.js.map +1 -1
- package/lib/ProductBlockInner.d.ts +2 -8
- package/lib/ProductBlockInner.js +4 -3
- package/lib/ProductBlockInner.js.map +1 -1
- package/lib/ProductGallery.d.ts +3 -5
- package/lib/ProductGallery.js +3 -3
- package/lib/ProductGallery.js.map +1 -1
- 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 +9 -4
- package/lib/StepsBlock.js +4 -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 +5 -3
- package/lib/index.js +3 -2
- package/lib/index.js.map +1 -1
- package/lib/types.d.ts +6 -1
- package/lib/ui-kit/Button.d.ts +1 -0
- package/lib/ui-kit/Button.js +4 -4
- package/lib/ui-kit/Button.js.map +1 -1
- package/lib/ui-kit/LikeButton.d.ts +1 -0
- package/lib/ui-kit/LikeButton.js +1 -1
- package/lib/ui-kit/LikeButton.js.map +1 -1
- package/lib/ui-kit/SearchBar.d.ts +2 -2
- package/lib/ui-kit/SearchBar.js.map +1 -1
- package/lib/ui-kit/TopItem.d.ts +1 -0
- package/lib/ui-kit/TopItem.js +2 -2
- package/lib/ui-kit/TopItem.js.map +1 -1
- package/lib/useLink.d.ts +1 -0
- package/lib/useLink.js +1 -0
- package/lib/useLink.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/url.d.ts +4 -4
- package/package.json +43 -19
- package/src/BenefitsBlock.fixture.tsx +34 -0
- package/src/BenefitsBlock.tsx +45 -0
- package/src/Blocks.ts +23 -0
- package/src/ContentPage.fixture.tsx +38 -0
- package/src/ContentPage.page.json +540 -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 +46 -0
- package/src/Footer/FooterLink.ts +6 -0
- package/src/Footer/HorizontalNavigation.tsx +46 -0
- package/src/Footer/Sitemap.tsx +55 -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 +110 -0
- package/src/ProductGallery.fixture.tsx +138 -0
- package/src/ProductGallery.tsx +90 -0
- package/src/ProjectSettings.ts +38 -0
- package/src/StepsBlock.fixture.tsx +23 -0
- package/src/StepsBlock.tsx +51 -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 +19 -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 +109 -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/url.ts +22 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PassSendIcon: (props?: Record<string, any>
|
|
1
|
+
export declare const PassSendIcon: (props?: Record<string, any>) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PercentageSquareIcon: (props?: Record<string, any>
|
|
1
|
+
export declare const PercentageSquareIcon: (props?: Record<string, any>) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ProfileIcon: (props?: Record<string, any>
|
|
1
|
+
export declare const ProfileIcon: (props?: Record<string, any>) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SignDocsIcon: (props?: Record<string, any>
|
|
1
|
+
export declare const SignDocsIcon: (props?: Record<string, any>) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const TelegramIcon: (props?: Record<string, any>
|
|
1
|
+
export declare const TelegramIcon: (props?: Record<string, any>) => any;
|
package/dist/Icons/VKIcon.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VKIcon: (props?: Record<string, any>
|
|
1
|
+
export declare const VKIcon: (props?: Record<string, any>) => any;
|
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 {
|
|
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
CHANGED
|
@@ -5,6 +5,6 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const LikeButton_1 = require("./ui-kit/LikeButton");
|
|
6
6
|
exports.LikeControl = (0, uni_jsx_1.JSX)(({ className, context }) => {
|
|
7
7
|
const likeService = context.useLikeService();
|
|
8
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: `border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${className || ''}`, children: [(0, jsx_runtime_1.jsx)(LikeButton_1.LikeButton, { onClick: likeService.like }), (0, jsx_runtime_1.jsx)(LikeButton_1.LikeButton, { onClick: likeService.dislike, className: "rotate-180" }), (0, jsx_runtime_1.jsx)("span", { className: "select-none", children: likeService.likeCount })] }));
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${className || ''}`, children: [(0, jsx_runtime_1.jsx)(LikeButton_1.LikeButton, { onClick: likeService.like, ariaLabel: "\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u00AB\u043B\u0430\u0439\u043A\u00BB" }), (0, jsx_runtime_1.jsx)(LikeButton_1.LikeButton, { onClick: likeService.dislike, className: "rotate-180", ariaLabel: "\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u00AB\u0434\u0438\u0437\u043B\u0430\u0439\u043A\u00BB" }), (0, jsx_runtime_1.jsx)("span", { className: "select-none", children: likeService.likeCount })] }));
|
|
9
9
|
});
|
|
10
10
|
//# sourceMappingURL=LikeControl.js.map
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../src/MobileAppTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iCAA8B;AAUjB,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,GAAG,sBAAsB,EAAE,EAAE,EAAE,EAAE,EAAE;IAC7D,OAAO,CACL,uBAAC,WAAI,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,YACxD,iCAAK,SAAS,EAAC,mBAAmB,aAC/B,EAAE,IAAI,CACL,gCACE,GAAG,EAAE,EAAE,EACP,GAAG,EAAE,KAAK,EACV,KAAK,EAAE,KAAK,EACZ,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,SAAS,EAAC,sCAAsC,GAChD,CACH,EACD,iCAAM,SAAS,EAAC,8CAA8C,+SAEvD,IACH,GACD,CACR,CAAC;AACJ,CAAC,CACF,CAAC"}
|
package/dist/Placeholder.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { UniBlockProps } from './types';
|
|
1
2
|
export interface PlaceholderContent {
|
|
3
|
+
title?: string;
|
|
2
4
|
}
|
|
3
|
-
export interface PlaceholderProps extends PlaceholderContent {
|
|
5
|
+
export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
|
|
4
6
|
className?: string;
|
|
5
7
|
}
|
|
6
8
|
export declare const Placeholder: (props: import("@redneckz/uni-jsx").PropsWithChildren<PlaceholderProps, any>, context?: any) => any;
|
package/dist/Placeholder.js
CHANGED
|
@@ -2,7 +2,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.Placeholder = 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
|
-
|
|
6
|
-
|
|
5
|
+
const Tile_1 = require("./Tile");
|
|
6
|
+
const GOLDEN_RATIO = 1.618;
|
|
7
|
+
exports.Placeholder = (0, uni_jsx_1.JSX)(({ className, context, title }) => {
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)(Tile_1.Tile, { className: className, context: context, title: title, children: (0, jsx_runtime_1.jsx)("figure", { className: "m-0 min-w-[600px]", children: renderShimmer() }) }));
|
|
7
9
|
});
|
|
10
|
+
const renderShimmer = (size = 3) => goldenSequence(100, size)
|
|
11
|
+
.map((_) => Math.floor(_))
|
|
12
|
+
.map(renderShimmerItem);
|
|
13
|
+
const renderShimmerItem = (width = 100, index) => ((0, jsx_runtime_1.jsx)("div", { style: { width: `${width}%` }, className: "h-4 mt-2 bg-secondary-light" }, String(index)));
|
|
14
|
+
const goldenSequence = (first, size) => [first].concat(size > 0 ? goldenSequence(first / GOLDEN_RATIO, size - 1) : []);
|
|
8
15
|
//# sourceMappingURL=Placeholder.js.map
|
package/dist/Placeholder.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../src/Placeholder.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../src/Placeholder.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iCAA8B;AAW9B,MAAM,YAAY,GAAG,KAAK,CAAC;AAEd,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;IACjF,OAAO,CACL,uBAAC,WAAI,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,YACxD,mCAAQ,SAAS,EAAC,mBAAmB,YAAE,aAAa,EAAE,GAAU,GAC3D,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,CAAC,OAAe,CAAC,EAAE,EAAE,CACzC,cAAc,CAAC,GAAG,EAAE,IAAI,CAAC;KACtB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACzB,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAE5B,MAAM,iBAAiB,GAAG,CAAC,QAAgB,GAAG,EAAE,KAAa,EAAE,EAAE,CAAC,CAChE,gCAAyB,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,EAAE,EAAE,SAAS,EAAC,6BAA6B,IAArF,MAAM,CAAC,KAAK,CAAC,CAA2E,CACnG,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,IAAY,EAAY,EAAE,CAC/D,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,GAAG,YAAY,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
|
package/dist/ProductBlock.d.ts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export interface Benefit {
|
|
5
|
-
label: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
icon?: keyof typeof Icons;
|
|
8
|
-
}
|
|
9
|
-
export interface ProductBlockProps extends ProductBlockInnerContent, UniBlocksComponentProps {
|
|
1
|
+
import type { ProductBlockInnerContent } from './ProductBlockInner';
|
|
2
|
+
import type { UniBlockProps } from './types';
|
|
3
|
+
export interface ProductBlockProps extends ProductBlockInnerContent, UniBlockProps {
|
|
10
4
|
}
|
|
11
5
|
export declare const ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<ProductBlockProps, any>, context?: any) => any;
|
package/dist/ProductBlock.js
CHANGED
|
@@ -5,6 +5,6 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const ProductBlockInner_1 = require("./ProductBlockInner");
|
|
6
6
|
exports.ProductBlock = (0, uni_jsx_1.JSX)((props) => {
|
|
7
7
|
const className = props.className;
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)("section", { className: `bg-white p-11 pr-[7.5rem]
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)("section", { className: `bg-white p-11 pr-[7.5rem] ${className || ''}`, children: (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { ...props }) }));
|
|
9
9
|
});
|
|
10
10
|
//# sourceMappingURL=ProductBlock.js.map
|
package/dist/ProductBlock.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlock.js","sourceRoot":"","sources":["../src/ProductBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"ProductBlock.js","sourceRoot":"","sources":["../src/ProductBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AAM3C,QAAA,YAAY,GAAG,IAAA,aAAG,EAAoB,CAAC,KAAK,EAAE,EAAE;IAC3D,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;IAClC,OAAO,CACL,oCAAS,SAAS,EAAE,6BAA6B,SAAS,IAAI,EAAE,EAAE,YAChE,uBAAC,qCAAiB,OAAK,KAAK,GAAI,GACxB,CACX,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Picture, UniBlocksComponentProps } from './types';
|
|
1
|
+
import type { Picture, UniBlockProps, Benefit } from './types';
|
|
3
2
|
import type { ButtonProps } from './ui-kit/Button';
|
|
4
3
|
import { BreadcrumbProps } from './ui-kit/Breadcrumb';
|
|
5
|
-
export interface Benefit {
|
|
6
|
-
label: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
icon?: keyof typeof Icons;
|
|
9
|
-
}
|
|
10
4
|
export interface ProductBlockInnerContent {
|
|
11
5
|
title?: string;
|
|
12
6
|
description?: string;
|
|
@@ -16,6 +10,6 @@ export interface ProductBlockInnerContent {
|
|
|
16
10
|
items?: string[];
|
|
17
11
|
buttons?: ButtonProps[];
|
|
18
12
|
}
|
|
19
|
-
export interface ProductBlockInnerProps extends ProductBlockInnerContent,
|
|
13
|
+
export interface ProductBlockInnerProps extends ProductBlockInnerContent, UniBlockProps {
|
|
20
14
|
}
|
|
21
15
|
export declare const ProductBlockInner: (props: import("@redneckz/uni-jsx").PropsWithChildren<ProductBlockInnerProps, any>, context?: any) => any;
|
|
@@ -1,48 +1,26 @@
|
|
|
1
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
-
if (k2 === undefined) k2 = k;
|
|
3
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
-
}
|
|
7
|
-
Object.defineProperty(o, k2, desc);
|
|
8
|
-
}) : (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
o[k2] = m[k];
|
|
11
|
-
}));
|
|
12
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
13
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
14
|
-
}) : function(o, v) {
|
|
15
|
-
o["default"] = v;
|
|
16
|
-
});
|
|
17
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
18
|
-
if (mod && mod.__esModule) return mod;
|
|
19
|
-
var result = {};
|
|
20
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
21
|
-
__setModuleDefault(result, mod);
|
|
22
|
-
return result;
|
|
23
|
-
};
|
|
24
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
2
|
exports.ProductBlockInner = void 0;
|
|
26
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
27
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
28
|
-
const
|
|
5
|
+
const index_1 = require("./Icons/index");
|
|
29
6
|
const Img_1 = require("./Img");
|
|
30
7
|
const BlockItem_1 = require("./ui-kit/BlockItem");
|
|
31
8
|
const Button_1 = require("./ui-kit/Button");
|
|
32
9
|
const Breadcrumb_1 = require("./ui-kit/Breadcrumb");
|
|
33
10
|
const useLink_1 = require("./useLink");
|
|
11
|
+
const ICONS = { EmptyWalletIcon: index_1.EmptyWalletIcon, PercentageSquareIcon: index_1.PercentageSquareIcon, CalendarIcon: index_1.CalendarIcon };
|
|
34
12
|
exports.ProductBlockInner = (0, uni_jsx_1.JSX)(({ className, context, title, description, breadcrumbs, benefits, buttons, image, items }) => {
|
|
35
13
|
const router = context.useRouter();
|
|
36
14
|
const { handlerDecorator } = context;
|
|
37
15
|
return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex justify-between items-stretch ${className || ''}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col", children: [breadcrumbs?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "text-xs mb-6", children: join((0, jsx_runtime_1.jsx)("span", { className: "text-secondary-text mx-2", children: "/" }))(breadcrumbs.map((breadcrumb, i) => ((0, jsx_runtime_1.jsx)(Breadcrumb_1.Breadcrumb, { ...(0, useLink_1.useLink)({ router, handlerDecorator }, { className: 'text-secondary-text', ...breadcrumb }) }, String(i))))) })) : null, title && ((0, jsx_runtime_1.jsx)("h1", { className: "font-medium text-title-lg m-0 whitespace-pre-wrap max-w-[600px]", children: title })), description && ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-base max-w-[600px] mt-4", children: description })), benefits?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex gap-6 mt-7", children: benefits.map(renderBenefit) })) : null, items?.length ? ((0, jsx_runtime_1.jsx)("section", { className: "space-y-2.5 mt-5", role: "list", children: items.map((_, i) => ((0, jsx_runtime_1.jsx)(BlockItem_1.BlockItem, { text: _ }, String(i)))) })) : null, buttons?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex mt-auto gap-4", children: buttons.map((button, index) => renderButton((0, useLink_1.useLink)({ router, handlerDecorator }, button), index)) })) : null] }), image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image, className: "mt-auto" })] }));
|
|
38
16
|
});
|
|
39
17
|
function renderBenefit(benefit, i) {
|
|
40
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-4 items-center", children: [benefit.icon && ((0, jsx_runtime_1.jsx)("div", { className: "w-[50px] h-[50px] min-w-[50px] min-h-[50px] bg-main rounded-full p-[10px] box-border", children:
|
|
18
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-4 items-center", children: [benefit.icon && ((0, jsx_runtime_1.jsx)("div", { className: "w-[50px] h-[50px] min-w-[50px] min-h-[50px] bg-main rounded-full p-[10px] box-border", children: ICONS[benefit.icon]?.() })), (0, jsx_runtime_1.jsxs)("div", { className: "flex gap-1 flex-col h-full", children: [(0, jsx_runtime_1.jsx)("h4", { className: "font-medium text-xl m-0", children: benefit.label }), benefit.description && ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-sm text-secondary-text", children: benefit.description }))] })] }, String(i)));
|
|
41
19
|
}
|
|
42
20
|
function renderButton(button, i) {
|
|
43
21
|
return button?.text ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { ...button, className: "mt-8", version: button.version }, String(i))) : null;
|
|
44
22
|
}
|
|
45
23
|
function join(sep) {
|
|
46
|
-
return (list) => list.reduce((acc, el) => (acc.length ? acc.concat(sep, el) : [el]), []);
|
|
24
|
+
return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
|
|
47
25
|
}
|
|
48
26
|
//# sourceMappingURL=ProductBlockInner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../src/ProductBlockInner.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../src/ProductBlockInner.tsx"],"names":[],"mappings":"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"}
|
package/dist/ProductGallery.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { ProductBlockInnerContent } from './ProductBlockInner';
|
|
2
|
+
import type { UniBlockProps } from './types';
|
|
3
3
|
interface ProductGalleryNav {
|
|
4
4
|
title: string;
|
|
5
5
|
desc: string;
|
|
@@ -12,9 +12,7 @@ export interface ProductGalleryContent {
|
|
|
12
12
|
duration?: number;
|
|
13
13
|
slides?: ProductSlideContent[];
|
|
14
14
|
}
|
|
15
|
-
export interface ProductGalleryProps extends ProductGalleryContent {
|
|
16
|
-
className?: string;
|
|
17
|
-
context: ContentPageContext;
|
|
15
|
+
export interface ProductGalleryProps extends ProductGalleryContent, UniBlockProps {
|
|
18
16
|
}
|
|
19
17
|
export declare const ProductGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<ProductGalleryProps, any>, context?: any) => any;
|
|
20
18
|
export {};
|
package/dist/ProductGallery.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.ProductGallery = (0, uni_jsx_1.JSX)(({ className, context, duration = 0,
|
|
|
7
7
|
const galleryNav = slides.map((s) => s.nav);
|
|
8
8
|
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
9
9
|
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans bg-white
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans bg-white overflow-hidden w-100 ${className || ''}`, children: [(0, jsx_runtime_1.jsx)("div", { className: `flex transition duration-1000`, style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) => renderProductBlock(_, i, context)) }), (0, jsx_runtime_1.jsx)("div", { className: `border-0 border-t border-solid border-main-divider grid grid-cols-${galleryNav.length}`, children: galleryNav.map((slide, i) => renderNavButton({
|
|
11
11
|
slide,
|
|
12
12
|
i,
|
|
13
13
|
activeSlideIndex,
|
|
@@ -16,12 +16,12 @@ exports.ProductGallery = (0, uni_jsx_1.JSX)(({ className, context, duration = 0,
|
|
|
16
16
|
})) })] }));
|
|
17
17
|
});
|
|
18
18
|
function renderProductBlock(block, i, context) {
|
|
19
|
-
return ((0, jsx_runtime_1.jsx)("section", { className: "grow-0 shrink-0 basis-full", role: "
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)("section", { className: "grow-0 shrink-0 basis-full", role: "listitem", children: (0, jsx_runtime_1.jsx)("div", { className: "p-11 pr-[7.5rem] ", children: (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { context: context, ...block }) }) }, String(i)));
|
|
20
20
|
}
|
|
21
21
|
function renderNavButton({ slide, i, activeSlideIndex, onClick, duration }) {
|
|
22
22
|
const isActiveBtn = i === activeSlideIndex;
|
|
23
23
|
const progressBarClassName = isActiveBtn ? 'animate-slide' : '';
|
|
24
24
|
const btnTitleClassName = isActiveBtn ? 'text-primary-text' : 'text-secondary-text';
|
|
25
|
-
return ((0, jsx_runtime_1.jsxs)("button", { type: "button", onClick: onClick, className: `group relative overflow-hidden border-0 bg-inherit cursor-pointer text-left px-0 py-4`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "border-0 border-r border-solid border-main-divider px-6", children: [(0, jsx_runtime_1.jsx)("div", { className: `text-sm font-medium group-hover:text-primary-text ${btnTitleClassName}`, children: slide
|
|
25
|
+
return ((0, jsx_runtime_1.jsxs)("button", { type: "button", onClick: onClick, className: `group relative overflow-hidden border-0 bg-inherit cursor-pointer text-left px-0 py-4`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "border-0 border-r border-solid border-main-divider px-6", children: [(0, jsx_runtime_1.jsx)("div", { className: `text-sm font-medium group-hover:text-primary-text ${btnTitleClassName}`, children: slide?.title }), (0, jsx_runtime_1.jsx)("div", { className: "text-xs text-secondary-text", children: slide.desc })] }), (0, jsx_runtime_1.jsx)("div", { className: `absolute bottom-0 left-0 w-full h-[3px] bg-primary-main -translate-x-full ${progressBarClassName}`, style: { animationDuration: `${duration}s` } })] }, String(i)));
|
|
26
26
|
}
|
|
27
27
|
//# sourceMappingURL=ProductGallery.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGallery.js","sourceRoot":"","sources":["../src/ProductGallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,
|
|
1
|
+
{"version":3,"file":"ProductGallery.js","sourceRoot":"","sources":["../src/ProductGallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,2DAAwD;AAoB3C,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,+BAA+B,EAC1C,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,gCACE,SAAS,EAAE,qEAAqE,UAAU,CAAC,MAAM,EAAE,YAElG,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,KAA+B,EAAE,CAAS,EAAE,OAAO;IAC7E,OAAO,CACL,oCAAyB,SAAS,EAAC,4BAA4B,EAAC,IAAI,EAAC,UAAU,YAC7E,gCAAK,SAAS,EAAC,mBAAmB,YAChC,uBAAC,qCAAiB,IAAC,OAAO,EAAE,OAAO,KAAM,KAAK,GAAI,GAC9C,IAHM,MAAM,CAAC,CAAC,CAAC,CAIb,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,uFAAuF,aAElG,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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ProjectSettings {
|
|
2
|
+
TEST_BRANCH?: string;
|
|
3
|
+
RC_BRANCH?: string;
|
|
4
|
+
PROD_BRANCH: string;
|
|
5
|
+
FORCED_DRAFT_FLOW: boolean;
|
|
6
|
+
ENABLE_ASSIST?: boolean;
|
|
7
|
+
SITEMAP?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const projectSettings: {
|
|
10
|
+
_: ProjectSettings;
|
|
11
|
+
setup(_: ProjectSettings): void;
|
|
12
|
+
readonly TEST_BRANCH: string | undefined;
|
|
13
|
+
readonly RC_BRANCH: string | undefined;
|
|
14
|
+
readonly PROD_BRANCH: string;
|
|
15
|
+
readonly FORCED_DRAFT_FLOW: boolean;
|
|
16
|
+
readonly ENABLE_ASSIST: boolean | undefined;
|
|
17
|
+
readonly SITEMAP: string | undefined;
|
|
18
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.projectSettings = void 0;
|
|
3
|
+
exports.projectSettings = new (class {
|
|
4
|
+
_ = {
|
|
5
|
+
PROD_BRANCH: 'master',
|
|
6
|
+
FORCED_DRAFT_FLOW: false,
|
|
7
|
+
};
|
|
8
|
+
setup(_) {
|
|
9
|
+
this._ = _;
|
|
10
|
+
}
|
|
11
|
+
get TEST_BRANCH() {
|
|
12
|
+
return this._.TEST_BRANCH;
|
|
13
|
+
}
|
|
14
|
+
get RC_BRANCH() {
|
|
15
|
+
return this._.RC_BRANCH;
|
|
16
|
+
}
|
|
17
|
+
get PROD_BRANCH() {
|
|
18
|
+
return this._.PROD_BRANCH;
|
|
19
|
+
}
|
|
20
|
+
get FORCED_DRAFT_FLOW() {
|
|
21
|
+
return this._.FORCED_DRAFT_FLOW;
|
|
22
|
+
}
|
|
23
|
+
get ENABLE_ASSIST() {
|
|
24
|
+
return this._.ENABLE_ASSIST;
|
|
25
|
+
}
|
|
26
|
+
get SITEMAP() {
|
|
27
|
+
return this._.SITEMAP;
|
|
28
|
+
}
|
|
29
|
+
})();
|
|
30
|
+
//# sourceMappingURL=ProjectSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectSettings.js","sourceRoot":"","sources":["../src/ProjectSettings.ts"],"names":[],"mappings":";;AASa,QAAA,eAAe,GAAG,IAAI,CAAC;IAClC,CAAC,GAAoB;QACnB,WAAW,EAAE,QAAQ;QACrB,iBAAiB,EAAE,KAAK;KACzB,CAAC;IAEF,KAAK,CAAC,CAAkB;QACtB,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC;IAC5B,CAAC;IACD,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;IAC1B,CAAC;IACD,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC;IAC5B,CAAC;IACD,IAAI,iBAAiB;QACnB,OAAO,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAClC,CAAC;IACD,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC;IAC9B,CAAC;IACD,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC;IACxB,CAAC;CACF,CAAC,EAAE,CAAC"}
|
package/dist/StepsBlock.d.ts
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import type { UniBlockProps } from './types';
|
|
2
|
+
declare const ICONS: {
|
|
3
|
+
NewDocIcon: (props?: Record<string, any> | undefined) => any;
|
|
4
|
+
PassSendIcon: (props?: Record<string, any> | undefined) => any;
|
|
5
|
+
ActualBalanceIcon: (props?: Record<string, any> | undefined) => any;
|
|
6
|
+
};
|
|
3
7
|
export interface Step {
|
|
4
8
|
label: string;
|
|
5
9
|
description?: string;
|
|
6
|
-
icon?: keyof typeof
|
|
10
|
+
icon?: keyof typeof ICONS;
|
|
7
11
|
}
|
|
8
12
|
export interface StepsBlockContent {
|
|
9
13
|
title?: string;
|
|
10
14
|
steps?: Step[];
|
|
11
15
|
}
|
|
12
|
-
export interface StepsBlockProps extends StepsBlockContent,
|
|
16
|
+
export interface StepsBlockProps extends StepsBlockContent, UniBlockProps {
|
|
13
17
|
}
|
|
14
18
|
export declare const StepsBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<StepsBlockProps, any>, context?: any) => any;
|
|
19
|
+
export {};
|
package/dist/StepsBlock.js
CHANGED
|
@@ -1,35 +1,13 @@
|
|
|
1
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
-
if (k2 === undefined) k2 = k;
|
|
3
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
-
}
|
|
7
|
-
Object.defineProperty(o, k2, desc);
|
|
8
|
-
}) : (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
o[k2] = m[k];
|
|
11
|
-
}));
|
|
12
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
13
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
14
|
-
}) : function(o, v) {
|
|
15
|
-
o["default"] = v;
|
|
16
|
-
});
|
|
17
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
18
|
-
if (mod && mod.__esModule) return mod;
|
|
19
|
-
var result = {};
|
|
20
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
21
|
-
__setModuleDefault(result, mod);
|
|
22
|
-
return result;
|
|
23
|
-
};
|
|
24
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
2
|
exports.StepsBlock = void 0;
|
|
26
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
27
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
28
|
-
const
|
|
5
|
+
const index_1 = require("./Icons/index");
|
|
6
|
+
const ICONS = { NewDocIcon: index_1.NewDocIcon, PassSendIcon: index_1.PassSendIcon, ActualBalanceIcon: index_1.ActualBalanceIcon };
|
|
29
7
|
exports.StepsBlock = (0, uni_jsx_1.JSX)(({ className, title, steps }) => {
|
|
30
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans text-primary-text bg-white px-12 py-
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans text-primary-text bg-white px-12 py-12 flex flex-col items-center ${className || ''}`, children: [(0, jsx_runtime_1.jsx)("h2", { className: "font-medium text-title m-0 max-w-[47rem] text-center", children: title }), steps?.length ? (0, jsx_runtime_1.jsx)("div", { className: "flex mt-9", children: steps.map(renderStep) }) : null] }));
|
|
31
9
|
});
|
|
32
10
|
const renderStep = (step, i) => {
|
|
33
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center text-center px-12 relative after:content-[''] last:after:content-none after:bg-secondary-light after:absolute after:top-[50px] after:h-0.5 after:w-full after:right-[-50%]", children: [(0, jsx_runtime_1.jsx)("div", { className: "h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center text-center px-12 relative after:content-[''] last:after:content-none after:bg-secondary-light after:absolute after:top-[50px] after:h-0.5 after:w-full after:right-[-50%]", children: [(0, jsx_runtime_1.jsx)("div", { className: "h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-full p-[26px] box-border z-10", children: (step.icon && ICONS[step.icon]?.({ width: 48, height: 48 })) || ((0, jsx_runtime_1.jsx)("span", { className: "font-medium text-title-sm text-secondary-text", children: i + 1 })) }), (0, jsx_runtime_1.jsxs)("div", { className: "max-w-min", children: [(0, jsx_runtime_1.jsx)("h5", { className: "font-medium text-xl m-0 mt-4 whitespace-nowrap px-3", children: step.label }), step.description && ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-sm text-secondary-text mt-2", children: step.description }))] })] }, String(i)));
|
|
34
12
|
};
|
|
35
13
|
//# sourceMappingURL=StepsBlock.js.map
|
package/dist/StepsBlock.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepsBlock.js","sourceRoot":"","sources":["../src/StepsBlock.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StepsBlock.js","sourceRoot":"","sources":["../src/StepsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yCAA4E;AAG5E,MAAM,KAAK,GAAG,EAAE,UAAU,EAAV,kBAAU,EAAE,YAAY,EAAZ,oBAAY,EAAE,iBAAiB,EAAjB,yBAAiB,EAAE,CAAC;AAcjD,QAAA,UAAU,GAAG,IAAA,aAAG,EAAkB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;IAC7E,OAAO,CACL,qCACE,SAAS,EAAE,+EACT,SAAS,IAAI,EACf,EAAE,aAEF,+BAAI,SAAS,EAAC,sDAAsD,YAAE,KAAK,GAAM,EAChF,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,WAAW,YAAE,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,GAAO,CAAC,CAAC,CAAC,IAAI,IACxE,CACX,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,CAAC,IAAU,EAAE,CAAS,EAAE,EAAE;IAC3C,OAAO,CACL,iCAEE,SAAS,EAAC,uMAAuM,aAEjN,gCAAK,SAAS,EAAC,0GAA0G,YACtH,CAAC,IAAI,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAC/D,iCAAM,SAAS,EAAC,+CAA+C,YAAE,CAAC,GAAG,CAAC,GAAQ,CAC/E,GACG,EACN,iCAAK,SAAS,EAAC,WAAW,aACxB,+BAAI,SAAS,EAAC,qDAAqD,YAAE,IAAI,CAAC,KAAK,GAAM,EACpF,IAAI,CAAC,WAAW,IAAI,CACnB,gCAAK,SAAS,EAAC,8CAA8C,YAAE,IAAI,CAAC,WAAW,GAAO,CACvF,IACG,KAbD,MAAM,CAAC,CAAC,CAAC,CAcV,CACP,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/Tile.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockVersion, Picture,
|
|
1
|
+
import type { BlockVersion, Picture, UniBlockProps } from './types';
|
|
2
2
|
import type { ButtonProps } from './ui-kit/Button';
|
|
3
3
|
export interface TileContent {
|
|
4
4
|
title?: string;
|
|
@@ -8,6 +8,6 @@ export interface TileContent {
|
|
|
8
8
|
button?: ButtonProps;
|
|
9
9
|
version?: BlockVersion;
|
|
10
10
|
}
|
|
11
|
-
export interface TileProps extends TileContent,
|
|
11
|
+
export interface TileProps extends TileContent, UniBlockProps {
|
|
12
12
|
}
|
|
13
13
|
export declare const Tile: (props: import("@redneckz/uni-jsx").PropsWithChildren<TileProps, any>, context?: any) => any;
|