@redneckz/wildless-cms-uni-blocks 0.14.99 → 0.14.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.6.32.js +1 -1
- package/bundle/bundle.umd.js +11 -12
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Header/isHrefActive.d.ts +4 -2
- package/bundle/services/sitemap/SitemapData.d.ts +2 -2
- package/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
- package/bundle/ui-kit/SVG.d.ts +4 -2
- package/dist/api/LeadServiceAPI.js +1 -1
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +0 -3
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Header/DropdownMenu.js +1 -1
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/Header/isHrefActive.d.ts +4 -2
- package/dist/components/Header/isHrefActive.js +2 -3
- package/dist/components/Header/isHrefActive.js.map +1 -1
- package/dist/components/RollupItem/getIconName.js +1 -1
- package/dist/components/RollupItem/getIconName.js.map +1 -1
- package/dist/components/RollupItem/getIconName.mobile.js +1 -1
- package/dist/components/RollupItem/getIconName.mobile.js.map +1 -1
- package/dist/services/sitemap/SitemapData.d.ts +2 -2
- package/dist/ui-kit/LinkButton/renderArrows.js +5 -1
- package/dist/ui-kit/LinkButton/renderArrows.js.map +1 -1
- package/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
- package/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/dist/ui-kit/SVG.d.ts +4 -2
- package/dist/ui-kit/SVG.js.map +1 -1
- package/dist/utils/getBorderStyle.js +1 -1
- package/dist/utils/getBorderStyle.js.map +1 -1
- package/lib/api/LeadServiceAPI.js +1 -1
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Carousel/Carousel.js +0 -3
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Header/DropdownMenu.js +1 -1
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/Header/isHrefActive.d.ts +4 -2
- package/lib/components/Header/isHrefActive.js +2 -3
- package/lib/components/Header/isHrefActive.js.map +1 -1
- package/lib/components/RollupItem/getIconName.js +1 -1
- package/lib/components/RollupItem/getIconName.js.map +1 -1
- package/lib/components/RollupItem/getIconName.mobile.js +1 -1
- package/lib/components/RollupItem/getIconName.mobile.js.map +1 -1
- package/lib/services/sitemap/SitemapData.d.ts +2 -2
- package/lib/ui-kit/LinkButton/renderArrows.js +5 -1
- package/lib/ui-kit/LinkButton/renderArrows.js.map +1 -1
- package/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
- package/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/lib/ui-kit/SVG.d.ts +4 -2
- package/lib/ui-kit/SVG.js.map +1 -1
- package/lib/utils/getBorderStyle.js +1 -1
- package/lib/utils/getBorderStyle.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +10 -11
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Header/isHrefActive.d.ts +4 -2
- package/mobile/bundle/services/sitemap/SitemapData.d.ts +2 -2
- package/mobile/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
- package/mobile/bundle/ui-kit/SVG.d.ts +4 -2
- package/mobile/dist/api/LeadServiceAPI.js +1 -1
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +0 -3
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/Header/isHrefActive.d.ts +4 -2
- package/mobile/dist/components/Header/isHrefActive.js +2 -3
- package/mobile/dist/components/Header/isHrefActive.js.map +1 -1
- package/mobile/dist/components/RollupItem/getIconName.js +1 -1
- package/mobile/dist/components/RollupItem/getIconName.js.map +1 -1
- package/mobile/dist/services/sitemap/SitemapData.d.ts +2 -2
- package/mobile/dist/ui-kit/LinkButton/renderArrows.js +5 -1
- package/mobile/dist/ui-kit/LinkButton/renderArrows.js.map +1 -1
- package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
- package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/mobile/dist/ui-kit/SVG.d.ts +4 -2
- package/mobile/dist/ui-kit/SVG.js.map +1 -1
- package/mobile/dist/utils/getBorderStyle.js +1 -1
- package/mobile/dist/utils/getBorderStyle.js.map +1 -1
- package/mobile/lib/api/LeadServiceAPI.js +1 -1
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +0 -3
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/Header/isHrefActive.d.ts +4 -2
- package/mobile/lib/components/Header/isHrefActive.js +2 -3
- package/mobile/lib/components/Header/isHrefActive.js.map +1 -1
- package/mobile/lib/components/RollupItem/getIconName.js +1 -1
- package/mobile/lib/components/RollupItem/getIconName.js.map +1 -1
- package/mobile/lib/services/sitemap/SitemapData.d.ts +2 -2
- package/mobile/lib/ui-kit/LinkButton/renderArrows.js +5 -1
- package/mobile/lib/ui-kit/LinkButton/renderArrows.js.map +1 -1
- package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
- package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/mobile/lib/ui-kit/SVG.d.ts +4 -2
- package/mobile/lib/ui-kit/SVG.js.map +1 -1
- package/mobile/lib/utils/getBorderStyle.js +1 -1
- package/mobile/lib/utils/getBorderStyle.js.map +1 -1
- package/mobile/src/api/LeadServiceAPI.ts +1 -1
- package/mobile/src/components/Carousel/Carousel.tsx +0 -3
- package/mobile/src/components/Header/DropdownMenu.tsx +1 -1
- package/mobile/src/components/Header/isHrefActive.ts +7 -4
- package/mobile/src/components/RollupItem/getIconName.tsx +1 -1
- package/mobile/src/services/sitemap/SitemapData.ts +2 -2
- package/mobile/src/ui-kit/LinkButton/renderArrows.tsx +9 -4
- package/mobile/src/ui-kit/LocationDialog/renderForeignOffices.tsx +3 -3
- package/mobile/src/ui-kit/SVG.tsx +5 -2
- package/mobile/src/utils/getBorderStyle.ts +1 -1
- package/package.json +1 -1
- package/src/api/LeadServiceAPI.ts +1 -1
- package/src/components/Carousel/Carousel.tsx +0 -3
- package/src/components/Header/DropdownMenu.tsx +1 -1
- package/src/components/Header/isHrefActive.ts +7 -4
- package/src/components/RollupItem/getIconName.mobile.tsx +1 -1
- package/src/components/RollupItem/getIconName.tsx +1 -1
- package/src/services/sitemap/SitemapData.ts +2 -2
- package/src/ui-kit/LinkButton/renderArrows.tsx +9 -4
- package/src/ui-kit/LocationDialog/renderForeignOffices.tsx +3 -3
- package/src/ui-kit/SVG.tsx +5 -2
- package/src/utils/getBorderStyle.ts +1 -1
- package/bin/migration-scripts/0.11.0.js +0 -29
- package/bin/migration-scripts/0.12.9.js +0 -30
- package/bin/migration-scripts/0.13.5.js +0 -36
- package/bin/migration-scripts/0.13.6.js +0 -33
- package/bin/migration-scripts/0.14.26.js +0 -55
- package/bin/migration-scripts/0.14.28.js +0 -28
- package/bin/migration-scripts/0.14.29.js +0 -75
- package/bin/migration-scripts/0.14.30.js +0 -54
- package/bin/migration-scripts/0.14.44.js +0 -103
- package/bin/migration-scripts/0.5.14.js +0 -33
- package/bin/migration-scripts/0.6.43.js +0 -32
- package/bin/migration-scripts/0.7.8.js +0 -32
- package/bin/migration-scripts/0.8.10.js +0 -31
- package/bin/migration-scripts/0.8.29.js +0 -42
- package/bin/migration-scripts/0.8.8.js +0 -124
- package/bin/migration-scripts/0.9.1.js +0 -71
- package/bin/migration-scripts/0.9.10.js +0 -30
- package/bin/migration-scripts/0.9.9.js +0 -111
- package/bundle/components/SafeDepositRental/renderClusterer.d.ts +0 -2
- package/dist/components/SafeDepositRental/renderClusterer.d.ts +0 -2
- package/dist/components/SafeDepositRental/renderClusterer.js +0 -35
- package/dist/components/SafeDepositRental/renderClusterer.js.map +0 -1
- package/lib/components/SafeDepositRental/renderClusterer.d.ts +0 -2
- package/lib/components/SafeDepositRental/renderClusterer.js +0 -32
- package/lib/components/SafeDepositRental/renderClusterer.js.map +0 -1
- package/mobile/bundle/components/SafeDepositRental/renderClusterer.d.ts +0 -2
- package/mobile/dist/components/SafeDepositRental/renderClusterer.d.ts +0 -2
- package/mobile/dist/components/SafeDepositRental/renderClusterer.js +0 -35
- package/mobile/dist/components/SafeDepositRental/renderClusterer.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/renderClusterer.d.ts +0 -2
- package/mobile/lib/components/SafeDepositRental/renderClusterer.js +0 -32
- package/mobile/lib/components/SafeDepositRental/renderClusterer.js.map +0 -1
- package/mobile/src/components/SafeDepositRental/renderClusterer.ts +0 -51
- package/src/components/SafeDepositRental/renderClusterer.ts +0 -51
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
declare type Router = {
|
|
2
2
|
href?: string;
|
|
3
3
|
pathname: string;
|
|
4
|
-
}
|
|
4
|
+
};
|
|
5
|
+
export declare const isHrefActive: (router: Router) => ({ href }: {
|
|
5
6
|
href?: string | undefined;
|
|
6
7
|
}) => boolean;
|
|
8
|
+
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isURL, withoutQuery } from '../../utils/url.js';
|
|
2
|
-
export const isHrefActive = (router) => ({ href }) => !href
|
|
3
|
-
|
|
4
|
-
: withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
|
|
2
|
+
export const isHrefActive = (router) => ({ href }) => !href ? false : withoutQuery(getRouterHref(href, router)).startsWith(withoutQuery(href));
|
|
3
|
+
const getRouterHref = (href, router) => isURL(href) ? router.href : router.pathname;
|
|
5
4
|
//# sourceMappingURL=isHrefActive.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isHrefActive.js","sourceRoot":"","sources":["../../../src/components/Header/isHrefActive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"isHrefActive.js","sourceRoot":"","sources":["../../../src/components/Header/isHrefActive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAItD,MAAM,CAAC,MAAM,YAAY,GACvB,CAAC,MAAc,EAAE,EAAE,CACnB,CAAC,EAAE,IAAI,EAAqB,EAAW,EAAE,CACvC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;AAE7F,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,MAAc,EAAE,EAAE,CACrD,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const getIconName = (isUnfolded) => (isUnfolded ? 'MinusIcon' : 'PlusIcon');
|
|
1
|
+
export const getIconName = (isUnfolded = false) => (isUnfolded ? 'MinusIcon' : 'PlusIcon');
|
|
2
2
|
//# sourceMappingURL=getIconName.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getIconName.js","sourceRoot":"","sources":["../../../src/components/RollupItem/getIconName.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"getIconName.js","sourceRoot":"","sources":["../../../src/components/RollupItem/getIconName.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,UAAU,GAAG,KAAK,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const getIconName = (isUnfolded) => isUnfolded ? 'ArrowUpSolidIcon' : 'ArrowDownSolidIcon';
|
|
1
|
+
export const getIconName = (isUnfolded = false) => isUnfolded ? 'ArrowUpSolidIcon' : 'ArrowDownSolidIcon';
|
|
2
2
|
//# sourceMappingURL=getIconName.mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getIconName.mobile.js","sourceRoot":"","sources":["../../../src/components/RollupItem/getIconName.mobile.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"getIconName.mobile.js","sourceRoot":"","sources":["../../../src/components/RollupItem/getIconName.mobile.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,UAAU,GAAG,KAAK,EAAE,EAAE,CAChD,UAAU,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,oBAAoB,CAAC"}
|
|
@@ -24,12 +24,12 @@ export interface DispositionItem extends LinkProps {
|
|
|
24
24
|
* @title Представительства за рубежом
|
|
25
25
|
* @required ["text", "href"]
|
|
26
26
|
*/
|
|
27
|
-
export declare type
|
|
27
|
+
export declare type ForeignOfficeProps = LinkProps & IconProps;
|
|
28
28
|
export interface SitemapData {
|
|
29
29
|
topItems?: TopMenuItemProps[];
|
|
30
30
|
dispositions?: DispositionItem[];
|
|
31
31
|
logo?: LogoType;
|
|
32
|
-
foreignOffices?:
|
|
32
|
+
foreignOffices?: ForeignOfficeProps[];
|
|
33
33
|
defaultLocation?: string;
|
|
34
34
|
officesLink?: string;
|
|
35
35
|
internetBankUrl?: string;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { style } from '../../utils/style.js';
|
|
2
3
|
import { ArrowButton } from './ArrowButton.js';
|
|
3
4
|
/** @deprecated */
|
|
4
5
|
export function renderArrows({ dec, inc, canDec, canInc, btnClass, className = '', }) {
|
|
5
6
|
const isVisible = canDec || canInc;
|
|
6
|
-
|
|
7
|
+
if (!isVisible) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
return (_jsxs("div", { children: [canDec ? (_jsx(ArrowButton, { className: style('absolute z-40', btnClass[0], className), onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (_jsx(ArrowButton, { className: style('absolute z-40 rotate-180', btnClass[1], className), onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] }));
|
|
7
11
|
}
|
|
8
12
|
//# sourceMappingURL=renderArrows.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderArrows.js","sourceRoot":"","sources":["../../../src/ui-kit/LinkButton/renderArrows.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAa5C,kBAAkB;AAClB,MAAM,UAAU,YAAY,CAAC,EAC3B,GAAG,EACH,GAAG,EACH,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,GAAG,EAAE,GACI;IAClB,MAAM,SAAS,GAAG,MAAM,IAAI,MAAM,CAAC;IAEnC,
|
|
1
|
+
{"version":3,"file":"renderArrows.js","sourceRoot":"","sources":["../../../src/ui-kit/LinkButton/renderArrows.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAa5C,kBAAkB;AAClB,MAAM,UAAU,YAAY,CAAC,EAC3B,GAAG,EACH,GAAG,EACH,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,GAAG,EAAE,GACI;IAClB,MAAM,SAAS,GAAG,MAAM,IAAI,MAAM,CAAC;IAEnC,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,0BACG,MAAM,CAAC,CAAC,CAAC,CACR,KAAC,WAAW,IACV,SAAS,EAAE,KAAK,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EACzD,OAAO,EAAE,GAAG,EACZ,SAAS,EAAC,6FAAkB,wBACT,aAAa,EAChC,QAAQ,EAAE,CAAC,MAAM,GACjB,CACH,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,CAAC,CAAC,CACR,KAAC,WAAW,IACV,SAAS,EAAE,KAAK,CAAC,0BAA0B,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EACpE,OAAO,EAAE,GAAG,EACZ,SAAS,EAAC,mGAAmB,wBACV,cAAc,EACjC,QAAQ,EAAE,CAAC,MAAM,GACjB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const renderForeignOffices: (foreignOffices:
|
|
3
|
-
declare const ForeignOffice: import("@redneckz/uni-jsx").UNIComponent<ForeignOffice, any, any>;
|
|
4
|
-
export {};
|
|
1
|
+
import { type ForeignOfficeProps } from '../../services/sitemap/SitemapData';
|
|
2
|
+
export declare const renderForeignOffices: (foreignOffices: ForeignOfficeProps[] | undefined) => JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderForeignOffices.js","sourceRoot":"","sources":["../../../src/ui-kit/LocationDialog/renderForeignOffices.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"renderForeignOffices.js","sourceRoot":"","sources":["../../../src/ui-kit/LocationDialog/renderForeignOffices.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,cAAgD,EAAE,EAAE,CACvF,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,eAAK,SAAS,EAAC,kDAAkD,aAC/D,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,gLAE1D,GACH,EACN,cAAK,SAAS,EAAC,mCAAmC,YAC/C,cAAc,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAS,EAAE,EAAE,CAAC,CACzC,KAAC,aAAa,OAAqB,MAAM,IAArB,MAAM,CAAC,CAAC,CAAC,CAAgB,CAC9C,CAAC,GACE,IACF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,aAAa,GAAG,GAAG,CAAqB,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAClE,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAEnD,OAAO,CACL,eAAK,SAAS,EAAC,yBAAyB,aACrC,IAAI,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,UAAU,EAAC,kBAAkB,EAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EAChE,IAAI,CAAC,CAAC,CAAC,CACN,YAAG,SAAS,EAAC,0BAA0B,EAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,YAClF,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,mBAAmB,YAC5D,IAAI,GACA,GACL,CACL,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/lib/ui-kit/SVG.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
export declare type StrokeLinecap = 'inherit' | 'butt' | 'round' | 'square';
|
|
2
|
+
export declare type StrokeLinejoin = 'inherit' | 'round' | 'miter' | 'bevel';
|
|
1
3
|
export interface SVGPathOptions {
|
|
2
4
|
fill?: string;
|
|
3
5
|
stroke?: string;
|
|
4
|
-
strokeLinecap?:
|
|
5
|
-
strokeLinejoin?:
|
|
6
|
+
strokeLinecap?: StrokeLinecap;
|
|
7
|
+
strokeLinejoin?: StrokeLinejoin;
|
|
6
8
|
strokeWidth?: string;
|
|
7
9
|
strokeMiterlimit?: string;
|
|
8
10
|
}
|
package/lib/ui-kit/SVG.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SVG.js","sourceRoot":"","sources":["../../src/ui-kit/SVG.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"SVG.js","sourceRoot":"","sources":["../../src/ui-kit/SVG.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AA0BxC,MAAM,CAAC,MAAM,GAAG,GAAG,GAAG,CACpB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,GAAG,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,aAAa,EAAE,EAAE,EAAE;IAChF,OAAO,CACL,cACE,KAAK,EAAC,4BAA4B,EAClC,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,YAEb,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,EAAE,CAAC,EAAE,EAAE;YAClD,MAAM,aAAa,GAAG,EAAE,GAAG,aAAa,EAAE,GAAG,OAAO,EAAE,CAAC;YAEvD,OAAO,CACL,eAEE,CAAC,EAAE,CAAC,EACJ,IAAI,EAAE,QAAQ,IAAI,cAAc,EAChC,MAAM,EAAE,aAAa,CAAC,MAAM,EAC5B,aAAa,EAAE,aAAa,CAAC,aAAa,EAC1C,cAAc,EAAE,aAAa,CAAC,cAAc,EAC5C,WAAW,EAAE,aAAa,CAAC,WAAW,EACtC,gBAAgB,EAAE,aAAa,CAAC,gBAAgB,IAP3C,CAAC,CAQN,CACH,CAAC;QACJ,CAAC,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const getBorderStyle = (showBorder) => showBorder
|
|
1
|
+
export const getBorderStyle = (showBorder = false) => showBorder
|
|
2
2
|
? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
|
|
3
3
|
: '';
|
|
4
4
|
//# sourceMappingURL=getBorderStyle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBorderStyle.js","sourceRoot":"","sources":["../../src/utils/getBorderStyle.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"getBorderStyle.js","sourceRoot":"","sources":["../../src/utils/getBorderStyle.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,UAAU,GAAG,KAAK,EAAE,EAAE,CACnD,UAAU;IACR,CAAC,CAAC,0GAA0G;IAC5G,CAAC,CAAC,EAAE,CAAC"}
|
|
@@ -878,7 +878,7 @@
|
|
|
878
878
|
});
|
|
879
879
|
|
|
880
880
|
function LeadServiceAPI() {
|
|
881
|
-
async function send(body, isIndividualType) {
|
|
881
|
+
async function send(body, isIndividualType = false) {
|
|
882
882
|
const url = isIndividualType ? '/api/v1/lead' : '/api/v1/sendcorporatelead';
|
|
883
883
|
try {
|
|
884
884
|
const response = await fetch(url, {
|
|
@@ -2925,7 +2925,7 @@
|
|
|
2925
2925
|
: null;
|
|
2926
2926
|
}
|
|
2927
2927
|
|
|
2928
|
-
const getBorderStyle = (showBorder) => showBorder
|
|
2928
|
+
const getBorderStyle = (showBorder = false) => showBorder
|
|
2929
2929
|
? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
|
|
2930
2930
|
: '';
|
|
2931
2931
|
|
|
@@ -2980,11 +2980,8 @@
|
|
|
2980
2980
|
'CarouselBankHistoryCard',
|
|
2981
2981
|
'CarouselCatalogCard',
|
|
2982
2982
|
'CarouselInvestmentCard',
|
|
2983
|
-
'CarouselProductCard',
|
|
2984
|
-
'CarouselProgramsCard',
|
|
2985
2983
|
'CarouselRecommendationCard',
|
|
2986
2984
|
'CarouselTariffsCard',
|
|
2987
|
-
'CarouselInvestmentCard',
|
|
2988
2985
|
'RichTextBlock',
|
|
2989
2986
|
'ProductBlock',
|
|
2990
2987
|
];
|
|
@@ -3543,7 +3540,7 @@
|
|
|
3543
3540
|
|
|
3544
3541
|
const foldableSectionStyles = 'flex flex-wrap group-last:last:pb-0';
|
|
3545
3542
|
|
|
3546
|
-
const getIconName = (isUnfolded) => isUnfolded ? 'ArrowUpSolidIcon' : 'ArrowDownSolidIcon';
|
|
3543
|
+
const getIconName = (isUnfolded = false) => isUnfolded ? 'ArrowUpSolidIcon' : 'ArrowDownSolidIcon';
|
|
3547
3544
|
|
|
3548
3545
|
const rollupItemStyles = '';
|
|
3549
3546
|
|
|
@@ -4546,9 +4543,8 @@
|
|
|
4546
4543
|
};
|
|
4547
4544
|
const getIconSizeStyle = (size) => (size === 'normal' ? '38' : '24');
|
|
4548
4545
|
|
|
4549
|
-
const isHrefActive = (router) => ({ href }) => !href
|
|
4550
|
-
|
|
4551
|
-
: withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
|
|
4546
|
+
const isHrefActive = (router) => ({ href }) => !href ? false : withoutQuery(getRouterHref(href, router)).startsWith(withoutQuery(href));
|
|
4547
|
+
const getRouterHref = (href, router) => isURL(href) ? router.href : router.pathname;
|
|
4552
4548
|
|
|
4553
4549
|
const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
|
|
4554
4550
|
|
|
@@ -5187,7 +5183,10 @@
|
|
|
5187
5183
|
/** @deprecated */
|
|
5188
5184
|
function renderArrows({ dec, inc, canDec, canInc, btnClass, className = '', }) {
|
|
5189
5185
|
const isVisible = canDec || canInc;
|
|
5190
|
-
|
|
5186
|
+
if (!isVisible) {
|
|
5187
|
+
return null;
|
|
5188
|
+
}
|
|
5189
|
+
return (jsxs("div", { children: [canDec ? (jsx(ArrowButton, { className: style('absolute z-40', btnClass[0], className), onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (jsx(ArrowButton, { className: style('absolute z-40 rotate-180', btnClass[1], className), onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] }));
|
|
5191
5190
|
}
|
|
5192
5191
|
|
|
5193
5192
|
const TariffsTableWrapper = JSX(({ children, controls }) => {
|
|
@@ -5403,7 +5402,7 @@
|
|
|
5403
5402
|
|
|
5404
5403
|
const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
|
|
5405
5404
|
|
|
5406
|
-
const packageVersion = "0.14.
|
|
5405
|
+
const packageVersion = "0.14.100";
|
|
5407
5406
|
|
|
5408
5407
|
exports.Blocks = Blocks;
|
|
5409
5408
|
exports.ContentPage = ContentPage;
|