@redneckz/wildless-cms-uni-blocks 0.5.2 → 0.5.4
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/migrate.js +2 -0
- package/bin/migrateContentUnit.js +26 -0
- package/bin/migration-scripts/0.4.0.js +3 -0
- package/bin/migration-scripts/0.4.1.js +3 -0
- package/bin/migration-scripts/0.4.5.js +109 -0
- package/bin/migration-scripts/0.4.5.spec.ts +352 -0
- package/bin/migration-scripts/index.js +21 -0
- package/bin/utils.js +24 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +14 -12
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js +3 -3
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlockContent.d.ts +6 -6
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +3 -3
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +2 -1
- package/dist/components/Tabs/TabsContent.d.ts +8 -3
- package/dist/components/Tabs/renderGroupTab.js +1 -1
- package/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +3 -2
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Button/ButtonSection.js +3 -2
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/dist/ui-kit/Select/Select.js +1 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.js +3 -3
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlockContent.d.ts +6 -6
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +3 -3
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +2 -1
- package/lib/components/Tabs/TabsContent.d.ts +8 -3
- package/lib/components/Tabs/renderGroupTab.js +1 -1
- package/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +3 -2
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Button/ButtonSection.js +3 -2
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/lib/ui-kit/Select/Select.js +1 -1
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +7 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js +3 -3
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlockContent.d.ts +6 -6
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +3 -3
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +2 -1
- package/mobile/dist/components/Tabs/TabsContent.d.ts +8 -3
- package/mobile/dist/components/Tabs/renderGroupTab.js +1 -1
- package/mobile/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +3 -2
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.js +3 -2
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.js +1 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js +3 -3
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlockContent.d.ts +6 -6
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +3 -3
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +2 -1
- package/mobile/lib/components/Tabs/TabsContent.d.ts +8 -3
- package/mobile/lib/components/Tabs/renderGroupTab.js +1 -1
- package/mobile/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +3 -2
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.js +3 -2
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.js +1 -1
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/src/components/ErrorBlock/ErrorBlock.example.json +5 -5
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +12 -5
- package/mobile/src/components/ErrorBlock/ErrorBlockContent.ts +20 -6
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.example.json +30 -16
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +7 -6
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlockContent.ts +2 -1
- package/mobile/src/components/Tabs/TabsContent.ts +8 -3
- package/mobile/src/components/Tabs/renderGroupTab.tsx +2 -1
- package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +9 -9
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +3 -2
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +9 -4
- package/mobile/src/ui-kit/Select/Select.tsx +1 -1
- package/package.json +6 -1
- package/src/components/ErrorBlock/ErrorBlock.example.json +5 -5
- package/src/components/ErrorBlock/ErrorBlock.fixture.tsx +3 -3
- package/src/components/ErrorBlock/ErrorBlock.tsx +12 -5
- package/src/components/ErrorBlock/ErrorBlockContent.ts +20 -6
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.example.json +30 -16
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.fixture.tsx +7 -7
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +7 -6
- package/src/components/OfficeServicesBlock/OfficeServicesBlockContent.ts +2 -1
- package/src/components/Tabs/TabsContent.ts +8 -3
- package/src/components/Tabs/renderGroupTab.tsx +2 -1
- package/src/components/__snapshots__/Blocks.spec.tsx.snap +9 -9
- package/src/ui-kit/Button/ButtonInner.tsx +3 -2
- package/src/ui-kit/Button/ButtonSection.tsx +9 -4
- package/src/ui-kit/Select/Select.tsx +1 -1
- package/dist/ui-kit/Tabs/Tabs.d.ts +0 -2
- package/dist/ui-kit/Tabs/Tabs.js +0 -17
- package/dist/ui-kit/Tabs/Tabs.js.map +0 -1
- package/dist/ui-kit/Tabs/TabsProps.d.ts +0 -17
- package/dist/ui-kit/Tabs/TabsProps.js +0 -2
- package/dist/ui-kit/Tabs/TabsProps.js.map +0 -1
- package/lib/ui-kit/Tabs/Tabs.d.ts +0 -2
- package/lib/ui-kit/Tabs/Tabs.js +0 -15
- package/lib/ui-kit/Tabs/Tabs.js.map +0 -1
- package/lib/ui-kit/Tabs/TabsProps.d.ts +0 -17
- package/lib/ui-kit/Tabs/TabsProps.js +0 -2
- package/lib/ui-kit/Tabs/TabsProps.js.map +0 -1
- package/mobile/dist/ui-kit/Tabs/Tabs.d.ts +0 -2
- package/mobile/dist/ui-kit/Tabs/Tabs.js +0 -17
- package/mobile/dist/ui-kit/Tabs/Tabs.js.map +0 -1
- package/mobile/dist/ui-kit/Tabs/TabsProps.d.ts +0 -17
- package/mobile/dist/ui-kit/Tabs/TabsProps.js +0 -2
- package/mobile/dist/ui-kit/Tabs/TabsProps.js.map +0 -1
- package/mobile/lib/ui-kit/Tabs/Tabs.d.ts +0 -2
- package/mobile/lib/ui-kit/Tabs/Tabs.js +0 -15
- package/mobile/lib/ui-kit/Tabs/Tabs.js.map +0 -1
- package/mobile/lib/ui-kit/Tabs/TabsProps.d.ts +0 -17
- package/mobile/lib/ui-kit/Tabs/TabsProps.js +0 -2
- package/mobile/lib/ui-kit/Tabs/TabsProps.js.map +0 -1
- package/mobile/src/ui-kit/Tabs/Tabs.tsx +0 -52
- package/mobile/src/ui-kit/Tabs/TabsProps.ts +0 -20
- package/src/ui-kit/Tabs/Tabs.tsx +0 -52
- package/src/ui-kit/Tabs/TabsProps.ts +0 -20
|
@@ -10,10 +10,11 @@ exports.ButtonSection = (0, uni_jsx_1.JSX)(({ context, className = '', buttons }
|
|
|
10
10
|
const router = context.useRouter();
|
|
11
11
|
return buttons && buttons?.length ? ((0, jsx_runtime_1.jsx)("div", { className: className, children: buttons.map((button, index) => renderButton((0, useLink_1.useLink)({ router, handlerDecorator }, button), index)) })) : null;
|
|
12
12
|
});
|
|
13
|
-
function renderButton({ icon, iconRight, ...button }, i) {
|
|
13
|
+
function renderButton({ icon, iconRight, version = 'primary', ...button }, i) {
|
|
14
14
|
if (!button?.text) {
|
|
15
15
|
return null;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
const imgStyle = version === 'primary' ? 'group-hover:text-black' : 'group-hover:text-white';
|
|
18
|
+
return icon ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { appendLeft: (0, jsx_runtime_1.jsx)(Img_1.Img, { imageClassName: imgStyle, image: icon, width: "24", height: "24", asSVG: true }), appendRight: (0, jsx_runtime_1.jsx)(Img_1.Img, { imageClassName: imgStyle, image: iconRight, width: "24", height: "24", asSVG: true }), version: version, ...button }, String(i))) : ((0, jsx_runtime_1.jsx)(Button_1.Button, { version: version, ...button }, String(i)));
|
|
18
19
|
}
|
|
19
20
|
//# sourceMappingURL=ButtonSection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonSection.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,oCAAiC;AACjC,qCAAkC;AAKrB,QAAA,aAAa,GAAG,IAAA,aAA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AACX,CAAC,CAAC,CAAC;AAEH,SAAS,YAAY,CACnB,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,MAAM,EAAuB,EACxE,CAAS;IAET,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE;QACjB,OAAO,IAAI,CAAC;KACb;IACD,MAAM,QAAQ,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,wBAAwB,CAAC;IAE7F,OAAO,IAAI,CAAC,CAAC,CAAC,CACZ,uBAAC,eAAM,IAEL,UAAU,EAAE,uBAAC,SAAG,IAAC,cAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,EACvF,WAAW,EAAE,uBAAC,SAAG,IAAC,cAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,EAC7F,OAAO,EAAE,OAAO,KACZ,MAAM,IAJL,MAAM,CAAC,CAAC,CAAC,CAKd,CACH,CAAC,CAAC,CAAC,CACF,uBAAC,eAAM,IAAiB,OAAO,EAAE,OAAO,KAAM,MAAM,IAAvC,MAAM,CAAC,CAAC,CAAC,CAAkC,CACzD,CAAC;AACJ,CAAC"}
|
|
@@ -6,6 +6,6 @@ const selectStyle = {
|
|
|
6
6
|
background: `url('/icons/ArrowDownIcon.svg') no-repeat right 16px top 50%`,
|
|
7
7
|
};
|
|
8
8
|
exports.Select = (0, uni_jsx_1.JSX)(({ className = '', id, name, children, value, onChange }) => {
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)("select", { className: `appearance-none ${className}`, style: selectStyle, id: id, name: name || id, value: value, onChange: (e) => onChange(e.target.value), placeholder: "", children: children }));
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)("select", { className: `appearance-none pl-0.5 ${className}`, style: selectStyle, id: id, name: name || id, value: value, onChange: (e) => onChange(e.target.value), placeholder: "", children: children }));
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=Select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAUxC,MAAM,WAAW,GAAG;IAClB,UAAU,EAAE,8DAA8D;CAC3E,CAAC;AAEW,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC1D,OAAO,CACL,mCACE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAUxC,MAAM,WAAW,GAAG;IAClB,UAAU,EAAE,8DAA8D;CAC3E,CAAC;AAEW,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC1D,OAAO,CACL,mCACE,SAAS,EAAE,0BAA0B,SAAS,EAAE,EAChD,KAAK,EAAE,WAAW,EAClB,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAe,CAAC,EACnD,WAAW,EAAC,EAAE,YAEb,QAAQ,GACF,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -6,16 +6,16 @@ import { Img } from '../../ui-kit/Img/Img.js';
|
|
|
6
6
|
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
7
7
|
const renderErrorContent = (error) => {
|
|
8
8
|
if (error?.errorContentType === 'Image' && error?.image) {
|
|
9
|
-
return _jsx(Img, {
|
|
9
|
+
return _jsx(Img, { image: error.image });
|
|
10
10
|
}
|
|
11
11
|
if (error?.errorContentType === 'Code' && error.code) {
|
|
12
|
-
return _jsx("div", { className: "text-title-extra gradient-color-text", children: error.code });
|
|
12
|
+
return _jsx("div", { className: "font-mohave text-title-extra gradient-color-text", children: error.code });
|
|
13
13
|
}
|
|
14
14
|
return null;
|
|
15
15
|
};
|
|
16
16
|
export const ErrorBlock = JSX(({ context, className = '', title, subtitle, error, button }) => {
|
|
17
17
|
const { useRouter, handlerDecorator } = context;
|
|
18
18
|
const router = useRouter();
|
|
19
|
-
return (_jsxs("section", { className: `flex flex-col justify-center items-center ${className}`, role: "listitem", children: [_jsx("div", { className: "flex justify-center
|
|
19
|
+
return (_jsxs("section", { className: `flex flex-col justify-center items-center mt-12 ${className}`, role: "listitem", children: [_jsx("div", { className: "flex justify-center py-20", children: renderErrorContent(error) }), title ? _jsx(Heading, { headingType: "h1", className: "text-left mb-4", title: title }) : null, subtitle ? (_jsx("div", { className: "font-sans text-xl-light text-left mb-7 max-w-[613px] text-center", children: subtitle })) : null, button?.text ? (_jsx(Button, { className: "py-4 px-9", version: button?.version, ...useLink({ router, handlerDecorator }, button), children: button.text })) : null] }));
|
|
20
20
|
});
|
|
21
21
|
//# sourceMappingURL=ErrorBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBlock.js","sourceRoot":"","sources":["../../../src/components/ErrorBlock/ErrorBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,MAAM,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AS,EAAE,CAAC;IAE3B,OAAO,CACL,mBACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,IAAI,EAAC,UAAU,aAEf,cAAK,SAAS,EAAC,2BAA2B,YAAE,kBAAkB,CAAC,KAAK,CAAC,GAAO,EAC3E,KAAK,CAAC,CAAC,CAAC,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,gBAAgB,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACpF,QAAQ,CAAC,CAAC,CAAC,CACV,cAAK,SAAS,EAAC,kEAAkE,YAC9E,QAAQ,GACL,CACP,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CACd,KAAC,MAAM,IACL,SAAS,EAAC,WAAW,EACrB,OAAO,EAAE,MAAM,EAAE,OAAO,KACpB,OAAO,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,MAAM,CAAC,YAEhD,MAAM,CAAC,IAAI,GACL,CACV,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { EmptyOption } from '../../model/EmptyOptionType';
|
|
2
1
|
import type { Picture } from '../../model/Picture';
|
|
3
2
|
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
3
|
/**
|
|
@@ -7,7 +6,6 @@ import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
|
7
6
|
export declare type ErrorImageDef = {
|
|
8
7
|
/** @default Image */
|
|
9
8
|
errorContentType: 'Image';
|
|
10
|
-
/** @title Изображение */
|
|
11
9
|
image?: Picture;
|
|
12
10
|
};
|
|
13
11
|
/**
|
|
@@ -16,10 +14,13 @@ export declare type ErrorImageDef = {
|
|
|
16
14
|
export declare type ErrorCodeDef = {
|
|
17
15
|
/** @default Code */
|
|
18
16
|
errorContentType: 'Code';
|
|
19
|
-
/** @
|
|
20
|
-
code?:
|
|
17
|
+
/** @default 404 */
|
|
18
|
+
code?: ErrorType;
|
|
21
19
|
};
|
|
22
|
-
|
|
20
|
+
/** @title Вид контента */
|
|
21
|
+
export declare type ErrorContentDef = ErrorCodeDef | ErrorImageDef;
|
|
22
|
+
/** @title Код */
|
|
23
|
+
export declare type ErrorType = '' | '400' | '401' | '402' | '403' | '404' | '500' | '501' | '502' | '503' | '504' | '505';
|
|
23
24
|
/**
|
|
24
25
|
* @title Блок ошибки
|
|
25
26
|
*/
|
|
@@ -28,7 +29,6 @@ export interface ErrorBlockContent {
|
|
|
28
29
|
title?: string;
|
|
29
30
|
/** @title Описание */
|
|
30
31
|
subtitle?: string;
|
|
31
|
-
/** @title Вид контента */
|
|
32
32
|
error?: ErrorContentDef;
|
|
33
33
|
/** @title Кнопка */
|
|
34
34
|
button?: ButtonProps;
|
|
@@ -3,8 +3,8 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
4
4
|
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
5
5
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
6
|
-
export const OfficeServicesBlock = JSX(({ className = '', context, title, servicesList, anchor = '' }) => {
|
|
7
|
-
return (_jsxs(BlockWrapper, { context: context, id: anchor, className: `font-sans bg-white p-
|
|
6
|
+
export const OfficeServicesBlock = JSX(({ className = '', context, title, servicesList, anchor = '', ...rest }) => {
|
|
7
|
+
return (_jsxs(BlockWrapper, { context: context, id: anchor, className: `font-sans bg-white p-8 flex flex-col ${className}`, ...rest, children: [title ? _jsx(Heading, { headingType: "h5", className: "mb-5", title: title }) : null, servicesList?.length ? servicesList.map(renderListItems) : null] }));
|
|
8
8
|
});
|
|
9
|
-
const renderListItems = (itemList, i) => (_jsxs("li", { className: "flex mb-
|
|
9
|
+
const renderListItems = (itemList, i) => (_jsxs("li", { className: "flex mb-5 last:mb-0 list-none", children: [itemList.icon ? (_jsx(Img, { className: "mr-3 max-w-6 max-h-6", width: "24px", height: "24px", asSVG: true, image: itemList.icon })) : null, itemList.label ? _jsx("span", { className: "text-l-light", children: itemList.label }) : null] }, `list_item_${String(i)}`));
|
|
10
10
|
//# sourceMappingURL=OfficeServicesBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OfficeServicesBlock.js","sourceRoot":"","sources":["../../../src/components/OfficeServicesBlock/OfficeServicesBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAQ3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CACpC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,GAAG,EAAE,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"OfficeServicesBlock.js","sourceRoot":"","sources":["../../../src/components/OfficeServicesBlock/OfficeServicesBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAQ3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CACpC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACzE,OAAO,CACL,MAAC,YAAY,IACX,OAAO,EAAE,OAAO,EAChB,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,wCAAwC,SAAS,EAAE,KAC1D,IAAI,aAEP,KAAK,CAAC,CAAC,CAAC,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC1E,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI,IACnD,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,QAAiC,EAAE,CAAC,EAAE,EAAE,CAAC,CAChE,cAAmC,SAAS,EAAC,+BAA+B,aACzE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CACf,KAAC,GAAG,IACF,SAAS,EAAC,sBAAsB,EAChC,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,KAAK,QACL,KAAK,EAAE,QAAQ,CAAC,IAAI,GACpB,CACH,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,eAAM,SAAS,EAAC,cAAc,YAAE,QAAQ,CAAC,KAAK,GAAQ,CAAC,CAAC,CAAC,IAAI,KAVxE,aAAa,MAAM,CAAC,CAAC,CAAC,EAAE,CAW5B,CACN,CAAC"}
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
+
/**
|
|
3
|
+
* @title Группа
|
|
4
|
+
*/
|
|
2
5
|
export interface GroupTab {
|
|
3
|
-
/** @default group */
|
|
4
6
|
type: 'group';
|
|
5
7
|
/** @title Тег */
|
|
6
8
|
ref?: string;
|
|
7
9
|
/** @title Название */
|
|
8
10
|
title?: string;
|
|
9
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* @title Ссылка
|
|
14
|
+
*/
|
|
10
15
|
export declare type LinkTab = LinkProps & {
|
|
11
|
-
/** @default link */
|
|
12
16
|
type: 'link';
|
|
13
17
|
};
|
|
14
18
|
/**
|
|
15
|
-
*
|
|
19
|
+
* @title Таб
|
|
20
|
+
* @default {"type": "group"}
|
|
16
21
|
*/
|
|
17
22
|
export declare type Tab = GroupTab | LinkTab;
|
|
18
23
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { ACTIVE_LINK_CLASSES, ACTIVE_TEXT_CLASSES, INACTIVE_LINK_CLASSES, INACTIVE_TEXT_CLASSES, LINK_CLASSES, TEXT_CLASSES, } from './tabItemClasses.js';
|
|
3
|
-
const BADGE_CLASSES = 'min-w-[22px] w-[22px] h-[22px] rounded-full text-xs ml-2';
|
|
3
|
+
const BADGE_CLASSES = 'min-w-[22px] w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center';
|
|
4
4
|
const ACTIVE_BADGE_CLASSES = 'bg-white/30 text-white';
|
|
5
5
|
const INACTIVE_BADGE_CLASSES = 'bg-main-divider text-secondary-text group-hover:text-primary-main';
|
|
6
6
|
export const renderGroupTab = ({ onClick, currentTab, showCounter, page }) => (tab, i) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderGroupTab.js","sourceRoot":"","sources":["../../../src/components/Tabs/renderGroupTab.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,YAAY,EACZ,YAAY,GACb,MAAM,kBAAkB,CAAC;AAG1B,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"renderGroupTab.js","sourceRoot":"","sources":["../../../src/components/Tabs/renderGroupTab.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,YAAY,EACZ,YAAY,GACb,MAAM,kBAAkB,CAAC;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AAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,qBAAqB,EAAE,YACrF,KAAK,GACH,CACN,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,MAAe,EAAE,EAAE,CAAC,CACtD,cAAK,SAAS,EAAE,GAAG,aAAa,IAAI,MAAM,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,sBAAsB,EAAE,YACzF,KAAK,GACF,CACP,CAAC"}
|
|
@@ -5,15 +5,16 @@ export const ButtonInner = JSX((props) => {
|
|
|
5
5
|
return (_jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (_jsxs("div", { children: [_jsx("div", { className: "text-xs-light text-left", children: aboveText }), _jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-0.5' : 'text-l'}`, children: text })] })) : null, appendRight ? appendRight : null] }));
|
|
6
6
|
});
|
|
7
7
|
const getButtonStyle = (props) => {
|
|
8
|
-
const { version, aboveText, rounded } = props;
|
|
8
|
+
const { className = '', version, aboveText, rounded } = props;
|
|
9
9
|
if (version === 'link') {
|
|
10
10
|
return '';
|
|
11
11
|
}
|
|
12
12
|
const withTextStyle = `gap-2 ${aboveText ? 'py-2.5 px-7' : 'py-4 px-9'}`;
|
|
13
13
|
return [
|
|
14
|
-
'flex items-center justify-center',
|
|
14
|
+
'group flex items-center justify-center',
|
|
15
15
|
isWithText(props) ? withTextStyle : 'h-12 w-12',
|
|
16
16
|
rounded ? 'rounded-full' : '',
|
|
17
|
+
className,
|
|
17
18
|
].join(' ');
|
|
18
19
|
};
|
|
19
20
|
const isWithText = ({ text, aboveText, appendLeft }) => Boolean(text || aboveText || !appendLeft);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonInner.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAQxC,MAA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cAAK,SAAS,EAAC,yBAAyB,YAAE,SAAS,GAAO,EAC1D,cAAK,SAAS,EAAE,aAAa,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,QAAQ,EAAE,YAAG,IAAI,GAAO,IAChF,CACP,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,IAC7B,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,KAAuB,EAAE,EAAE;IACjD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE9D,IAAI,OAAO,KAAK,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC;KACX;IAED,MAAM,aAAa,GAAG,SAAS,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAEzE,OAAO;QACL,wCAAwC;QACxC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW;QAC/C,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE;QAC7B,SAAS;KACV,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAoB,EAAE,EAAE,CACvE,OAAO,CAAC,IAAI,IAAI,SAAS,IAAI,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -8,10 +8,11 @@ export const ButtonSection = JSX(({ context, className = '', buttons }) => {
|
|
|
8
8
|
const router = context.useRouter();
|
|
9
9
|
return buttons && buttons?.length ? (_jsx("div", { className: className, children: buttons.map((button, index) => renderButton(useLink({ router, handlerDecorator }, button), index)) })) : null;
|
|
10
10
|
});
|
|
11
|
-
function renderButton({ icon, iconRight, ...button }, i) {
|
|
11
|
+
function renderButton({ icon, iconRight, version = 'primary', ...button }, i) {
|
|
12
12
|
if (!button?.text) {
|
|
13
13
|
return null;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
const imgStyle = version === 'primary' ? 'group-hover:text-black' : 'group-hover:text-white';
|
|
16
|
+
return icon ? (_jsx(Button, { appendLeft: _jsx(Img, { imageClassName: imgStyle, image: icon, width: "24", height: "24", asSVG: true }), appendRight: _jsx(Img, { imageClassName: imgStyle, image: iconRight, width: "24", height: "24", asSVG: true }), version: version, ...button }, String(i))) : (_jsx(Button, { version: version, ...button }, String(i)));
|
|
16
17
|
}
|
|
17
18
|
//# sourceMappingURL=ButtonSection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonSection.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,MAAM,EAAE,MAAM,UAAU,CAAC;AAKlC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAqB,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC5F,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IACrC,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAEnC,OAAO,OAAO,IAAI,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAClC,cAAK,SAAS,EAAE,SAAS,YACtB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAC7B,YAAY,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,CAC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,CAAC,CAAC,CAAC,CACZ,KAAC,MAAM,IAEL,UAAU,EAAE,KAAC,GAAG,IAAC,cAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,EACvF,WAAW,EAAE,KAAC,GAAG,IAAC,cAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,EAC7F,OAAO,EAAE,OAAO,KACZ,MAAM,IAJL,MAAM,CAAC,CAAC,CAAC,CAKd,CACH,CAAC,CAAC,CAAC,CACF,KAAC,MAAM,IAAiB,OAAO,EAAE,OAAO,KAAM,MAAM,IAAvC,MAAM,CAAC,CAAC,CAAC,CAAkC,CACzD,CAAC;AACJ,CAAC"}
|
|
@@ -4,6 +4,6 @@ const selectStyle = {
|
|
|
4
4
|
background: `url('/icons/ArrowDownIcon.svg') no-repeat right 16px top 50%`,
|
|
5
5
|
};
|
|
6
6
|
export const Select = JSX(({ className = '', id, name, children, value, onChange }) => {
|
|
7
|
-
return (_jsx("select", { className: `appearance-none ${className}`, style: selectStyle, id: id, name: name || id, value: value, onChange: (e) => onChange(e.target.value), placeholder: "", children: children }));
|
|
7
|
+
return (_jsx("select", { className: `appearance-none pl-0.5 ${className}`, style: selectStyle, id: id, name: name || id, value: value, onChange: (e) => onChange(e.target.value), placeholder: "", children: children }));
|
|
8
8
|
});
|
|
9
9
|
//# sourceMappingURL=Select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAUxC,MAAM,WAAW,GAAG;IAClB,UAAU,EAAE,8DAA8D;CAC3E,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC1D,OAAO,CACL,iBACE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAUxC,MAAM,WAAW,GAAG;IAClB,UAAU,EAAE,8DAA8D;CAC3E,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC1D,OAAO,CACL,iBACE,SAAS,EAAE,0BAA0B,SAAS,EAAE,EAChD,KAAK,EAAE,WAAW,EAClB,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAe,CAAC,EACnD,WAAW,EAAC,EAAE,YAEb,QAAQ,GACF,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "
|
|
3
|
-
"subtitle": "
|
|
2
|
+
"title": "Заголовок",
|
|
3
|
+
"subtitle": "Описание",
|
|
4
4
|
"error": {
|
|
5
5
|
"errorContentType": "Code",
|
|
6
|
-
"code": 404
|
|
6
|
+
"code": "404"
|
|
7
7
|
},
|
|
8
8
|
"button": {
|
|
9
|
-
"text": "
|
|
9
|
+
"text": "Кнопка",
|
|
10
10
|
"version": "primary",
|
|
11
|
-
"target": "
|
|
11
|
+
"target": "_self"
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -10,11 +10,11 @@ export interface ErrorBlockProps extends ErrorBlockContent, UniBlockProps {}
|
|
|
10
10
|
|
|
11
11
|
const renderErrorContent = (error: ErrorBlockContent['error']) => {
|
|
12
12
|
if (error?.errorContentType === 'Image' && error?.image) {
|
|
13
|
-
return <Img
|
|
13
|
+
return <Img image={error.image} />;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
if (error?.errorContentType === 'Code' && error.code) {
|
|
17
|
-
return <div className="text-title-extra gradient-color-text">{error.code}</div>;
|
|
17
|
+
return <div className="font-mohave text-title-extra gradient-color-text">{error.code}</div>;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
return null;
|
|
@@ -26,10 +26,17 @@ export const ErrorBlock = JSX<ErrorBlockProps>(
|
|
|
26
26
|
const router = useRouter();
|
|
27
27
|
|
|
28
28
|
return (
|
|
29
|
-
<section
|
|
30
|
-
|
|
29
|
+
<section
|
|
30
|
+
className={`flex flex-col justify-center items-center mt-12 ${className}`}
|
|
31
|
+
role="listitem"
|
|
32
|
+
>
|
|
33
|
+
<div className="flex justify-center py-20">{renderErrorContent(error)}</div>
|
|
31
34
|
{title ? <Heading headingType="h1" className="text-left mb-4" title={title} /> : null}
|
|
32
|
-
{subtitle ?
|
|
35
|
+
{subtitle ? (
|
|
36
|
+
<div className="font-sans text-xl-light text-left mb-7 max-w-[613px] text-center">
|
|
37
|
+
{subtitle}
|
|
38
|
+
</div>
|
|
39
|
+
) : null}
|
|
33
40
|
{button?.text ? (
|
|
34
41
|
<Button
|
|
35
42
|
className="py-4 px-9"
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { EmptyOption } from '../../model/EmptyOptionType';
|
|
2
1
|
import type { Picture } from '../../model/Picture';
|
|
3
2
|
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
3
|
|
|
@@ -8,7 +7,6 @@ import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
|
8
7
|
export type ErrorImageDef = {
|
|
9
8
|
/** @default Image */
|
|
10
9
|
errorContentType: 'Image';
|
|
11
|
-
/** @title Изображение */
|
|
12
10
|
image?: Picture;
|
|
13
11
|
};
|
|
14
12
|
|
|
@@ -18,10 +16,27 @@ export type ErrorImageDef = {
|
|
|
18
16
|
export type ErrorCodeDef = {
|
|
19
17
|
/** @default Code */
|
|
20
18
|
errorContentType: 'Code';
|
|
21
|
-
/** @
|
|
22
|
-
code?:
|
|
19
|
+
/** @default 404 */
|
|
20
|
+
code?: ErrorType;
|
|
23
21
|
};
|
|
24
|
-
|
|
22
|
+
|
|
23
|
+
/** @title Вид контента */
|
|
24
|
+
export type ErrorContentDef = ErrorCodeDef | ErrorImageDef;
|
|
25
|
+
|
|
26
|
+
/** @title Код */
|
|
27
|
+
export type ErrorType =
|
|
28
|
+
| ''
|
|
29
|
+
| '400'
|
|
30
|
+
| '401'
|
|
31
|
+
| '402'
|
|
32
|
+
| '403'
|
|
33
|
+
| '404'
|
|
34
|
+
| '500'
|
|
35
|
+
| '501'
|
|
36
|
+
| '502'
|
|
37
|
+
| '503'
|
|
38
|
+
| '504'
|
|
39
|
+
| '505';
|
|
25
40
|
|
|
26
41
|
/**
|
|
27
42
|
* @title Блок ошибки
|
|
@@ -31,7 +46,6 @@ export interface ErrorBlockContent {
|
|
|
31
46
|
title?: string;
|
|
32
47
|
/** @title Описание */
|
|
33
48
|
subtitle?: string;
|
|
34
|
-
/** @title Вид контента */
|
|
35
49
|
error?: ErrorContentDef;
|
|
36
50
|
/** @title Кнопка */
|
|
37
51
|
button?: ButtonProps;
|
|
@@ -1,33 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "
|
|
3
|
-
"
|
|
2
|
+
"title": "Заголовок",
|
|
3
|
+
"servicesList": [
|
|
4
4
|
{
|
|
5
|
-
"
|
|
6
|
-
"icon": {
|
|
5
|
+
"label": "Пункт 1",
|
|
6
|
+
"icon": {
|
|
7
|
+
"icon": "CardTickIcon"
|
|
8
|
+
}
|
|
7
9
|
},
|
|
8
10
|
{
|
|
9
|
-
"
|
|
10
|
-
"icon": {
|
|
11
|
+
"label": "Пункт 2",
|
|
12
|
+
"icon": {
|
|
13
|
+
"icon": "EmptyWalletChangeIcon"
|
|
14
|
+
}
|
|
11
15
|
},
|
|
12
16
|
{
|
|
13
|
-
"
|
|
14
|
-
"icon": {
|
|
17
|
+
"label": "Пункт 3",
|
|
18
|
+
"icon": {
|
|
19
|
+
"icon": "UserTickIcon"
|
|
20
|
+
}
|
|
15
21
|
},
|
|
16
22
|
{
|
|
17
|
-
"
|
|
18
|
-
"icon": {
|
|
23
|
+
"label": "Пункт 4",
|
|
24
|
+
"icon": {
|
|
25
|
+
"icon": "UserTickIcon"
|
|
26
|
+
}
|
|
19
27
|
},
|
|
20
28
|
{
|
|
21
|
-
"
|
|
22
|
-
"icon": {
|
|
29
|
+
"label": "Пункт 5",
|
|
30
|
+
"icon": {
|
|
31
|
+
"icon": "ShieldTickIcon"
|
|
32
|
+
}
|
|
23
33
|
},
|
|
24
34
|
{
|
|
25
|
-
"
|
|
26
|
-
"icon": {
|
|
35
|
+
"label": "Пункт 6",
|
|
36
|
+
"icon": {
|
|
37
|
+
"icon": "ShieldTickIcon"
|
|
38
|
+
}
|
|
27
39
|
},
|
|
28
40
|
{
|
|
29
|
-
"
|
|
30
|
-
"icon": {
|
|
41
|
+
"label": "Пункт 7",
|
|
42
|
+
"icon": {
|
|
43
|
+
"icon": "ShieldTickIcon"
|
|
44
|
+
}
|
|
31
45
|
}
|
|
32
46
|
]
|
|
33
47
|
}
|
|
@@ -11,14 +11,15 @@ import type {
|
|
|
11
11
|
export interface OfficeServicesBlockProps extends OfficeServicesBlockContent, UniBlockProps {}
|
|
12
12
|
|
|
13
13
|
export const OfficeServicesBlock = JSX<OfficeServicesBlockProps>(
|
|
14
|
-
({ className = '', context, title, servicesList, anchor = '' }) => {
|
|
14
|
+
({ className = '', context, title, servicesList, anchor = '', ...rest }) => {
|
|
15
15
|
return (
|
|
16
16
|
<BlockWrapper
|
|
17
17
|
context={context}
|
|
18
18
|
id={anchor}
|
|
19
|
-
className={`font-sans bg-white p-
|
|
19
|
+
className={`font-sans bg-white p-8 flex flex-col ${className}`}
|
|
20
|
+
{...rest}
|
|
20
21
|
>
|
|
21
|
-
{title ? <Heading headingType="h5" className="mb-
|
|
22
|
+
{title ? <Heading headingType="h5" className="mb-5" title={title} /> : null}
|
|
22
23
|
{servicesList?.length ? servicesList.map(renderListItems) : null}
|
|
23
24
|
</BlockWrapper>
|
|
24
25
|
);
|
|
@@ -26,16 +27,16 @@ export const OfficeServicesBlock = JSX<OfficeServicesBlockProps>(
|
|
|
26
27
|
);
|
|
27
28
|
|
|
28
29
|
const renderListItems = (itemList: OfficeServicesBlockList, i) => (
|
|
29
|
-
<li key={`list_item_${String(i)}`} className="flex mb-
|
|
30
|
+
<li key={`list_item_${String(i)}`} className="flex mb-5 last:mb-0 list-none">
|
|
30
31
|
{itemList.icon ? (
|
|
31
32
|
<Img
|
|
32
|
-
className="mr-
|
|
33
|
+
className="mr-3 max-w-6 max-h-6"
|
|
33
34
|
width="24px"
|
|
34
35
|
height="24px"
|
|
35
36
|
asSVG
|
|
36
37
|
image={itemList.icon}
|
|
37
38
|
/>
|
|
38
39
|
) : null}
|
|
39
|
-
{itemList.
|
|
40
|
+
{itemList.label ? <span className="text-l-light">{itemList.label}</span> : null}
|
|
40
41
|
</li>
|
|
41
42
|
);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { LinkProps } from '../../model/LinkProps';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @title Группа
|
|
5
|
+
*/
|
|
3
6
|
export interface GroupTab {
|
|
4
|
-
/** @default group */
|
|
5
7
|
type: 'group';
|
|
6
8
|
/** @title Тег */
|
|
7
9
|
ref?: string;
|
|
@@ -9,13 +11,16 @@ export interface GroupTab {
|
|
|
9
11
|
title?: string;
|
|
10
12
|
}
|
|
11
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @title Ссылка
|
|
16
|
+
*/
|
|
12
17
|
export type LinkTab = LinkProps & {
|
|
13
|
-
/** @default link */
|
|
14
18
|
type: 'link';
|
|
15
19
|
};
|
|
16
20
|
|
|
17
21
|
/**
|
|
18
|
-
*
|
|
22
|
+
* @title Таб
|
|
23
|
+
* @default {"type": "group"}
|
|
19
24
|
*/
|
|
20
25
|
export type Tab = GroupTab | LinkTab;
|
|
21
26
|
|
|
@@ -9,7 +9,8 @@ import {
|
|
|
9
9
|
} from './tabItemClasses';
|
|
10
10
|
import type { GroupTab } from './TabsContent';
|
|
11
11
|
|
|
12
|
-
const BADGE_CLASSES =
|
|
12
|
+
const BADGE_CLASSES =
|
|
13
|
+
'min-w-[22px] w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center';
|
|
13
14
|
const ACTIVE_BADGE_CLASSES = 'bg-white/30 text-white';
|
|
14
15
|
const INACTIVE_BADGE_CLASSES = 'bg-main-divider text-secondary-text group-hover:text-primary-main';
|
|
15
16
|
|
|
@@ -147,11 +147,11 @@ exports[`Blocks ComparisonTable should render block "ComparisonTable" without co
|
|
|
147
147
|
|
|
148
148
|
exports[`Blocks ErrorBlock should render block "ErrorBlock" without content 1`] = `
|
|
149
149
|
<section
|
|
150
|
-
class="flex flex-col justify-center items-center "
|
|
150
|
+
class="flex flex-col justify-center items-center mt-12 "
|
|
151
151
|
role="listitem"
|
|
152
152
|
>
|
|
153
153
|
<div
|
|
154
|
-
class="flex justify-center
|
|
154
|
+
class="flex justify-center py-20"
|
|
155
155
|
/>
|
|
156
156
|
</section>
|
|
157
157
|
`;
|
|
@@ -353,7 +353,7 @@ exports[`Blocks Footer should render block "Footer" without content 1`] = `
|
|
|
353
353
|
target="_blank"
|
|
354
354
|
>
|
|
355
355
|
<div
|
|
356
|
-
class="flex items-center justify-center gap-2 py-4 px-9
|
|
356
|
+
class="group flex items-center justify-center gap-2 py-4 px-9 "
|
|
357
357
|
>
|
|
358
358
|
<div>
|
|
359
359
|
<div
|
|
@@ -683,7 +683,7 @@ exports[`Blocks Navigation should render block "Navigation" without content 1`]
|
|
|
683
683
|
|
|
684
684
|
exports[`Blocks OfficeServicesBlock should render block "OfficeServicesBlock" without content 1`] = `
|
|
685
685
|
<section
|
|
686
|
-
class="font-sans bg-white p-
|
|
686
|
+
class="font-sans bg-white p-8 flex flex-col "
|
|
687
687
|
/>
|
|
688
688
|
`;
|
|
689
689
|
|
|
@@ -894,7 +894,7 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
894
894
|
Город
|
|
895
895
|
</span>
|
|
896
896
|
<select
|
|
897
|
-
class="appearance-none h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
897
|
+
class="appearance-none pl-0.5 h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
898
898
|
placeholder=""
|
|
899
899
|
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
900
900
|
>
|
|
@@ -917,7 +917,7 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
917
917
|
Отделение
|
|
918
918
|
</span>
|
|
919
919
|
<select
|
|
920
|
-
class="appearance-none h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
920
|
+
class="appearance-none pl-0.5 h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
921
921
|
placeholder=""
|
|
922
922
|
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
923
923
|
>
|
|
@@ -991,7 +991,7 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
991
991
|
Размер
|
|
992
992
|
</span>
|
|
993
993
|
<select
|
|
994
|
-
class="appearance-none h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
994
|
+
class="appearance-none pl-0.5 h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
995
995
|
placeholder=""
|
|
996
996
|
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
997
997
|
>
|
|
@@ -1014,7 +1014,7 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
1014
1014
|
Параметры ячейки, мм (ВхШхД)
|
|
1015
1015
|
</span>
|
|
1016
1016
|
<select
|
|
1017
|
-
class="appearance-none h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
1017
|
+
class="appearance-none pl-0.5 h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
1018
1018
|
placeholder=""
|
|
1019
1019
|
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
1020
1020
|
>
|
|
@@ -1080,7 +1080,7 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
1080
1080
|
role="button"
|
|
1081
1081
|
>
|
|
1082
1082
|
<div
|
|
1083
|
-
class="flex items-center justify-center gap-2 py-4 px-9
|
|
1083
|
+
class="group flex items-center justify-center gap-2 py-4 px-9 "
|
|
1084
1084
|
>
|
|
1085
1085
|
<div>
|
|
1086
1086
|
<div
|