@redneckz/wildless-cms-uni-blocks 0.14.233 → 0.14.235
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.14.169.js +84 -107
- package/bin/migration-scripts/0.14.213.js +178 -203
- package/bin/migration-scripts/0.14.224.js +1 -1
- package/bin/migration-scripts/0.14.234.js +17 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +4 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/bundle/model/ContentPageMeta.d.ts +2 -1
- package/dist/components/ApplicationFormCustom/getObjectValidator.js +1 -1
- package/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +3 -2
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/model/ContentPageMeta.d.ts +2 -1
- package/lib/components/ApplicationFormCustom/getObjectValidator.js +1 -1
- package/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +3 -2
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/model/ContentPageMeta.d.ts +2 -1
- package/mobile/bundle/bundle.umd.js +4 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/bundle/model/ContentPageMeta.d.ts +2 -1
- package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +3 -2
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/model/ContentPageMeta.d.ts +2 -1
- package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +3 -2
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/model/ContentPageMeta.d.ts +2 -1
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +1 -1
- package/mobile/src/components/ApplicationFormCustom/getObjectValidator.tsx +1 -1
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +7 -2
- package/mobile/src/model/ContentPageMeta.ts +3 -1
- package/package.json +1 -1
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +1 -1
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.fixture.tsx +1 -1
- package/src/components/ApplicationFormCustom/getObjectValidator.tsx +1 -1
- package/src/components/ProductBlock/renderBackwardButton.tsx +7 -2
- package/src/model/ContentPageMeta.ts +3 -1
- package/bin/migration-scripts/0.10.10.js +0 -44
- package/bin/migration-scripts/0.10.2.js +0 -31
- package/bin/migration-scripts/0.10.3.js +0 -19
- package/bin/migration-scripts/0.6.32.js +0 -32
- package/bin/migration-scripts/0.8.15.js +0 -32
- package/bin/migration-scripts/0.8.17.js +0 -35
- package/bin/migration-scripts/0.8.23.js +0 -31
- package/bin/migration-scripts/0.8.24.js +0 -30
- package/bin/migration-scripts/0.9.8.js +0 -29
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
3
|
-
export declare function renderBackwardButton(version: LinkButtonVersion, handleClick: () => void): JSX.Element;
|
|
3
|
+
export declare function renderBackwardButton(version: LinkButtonVersion, handleClick: () => void, alwaysVisible?: boolean): JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare type RobotsProps = 'index' | 'noindex' | 'follow' | 'nofollow' | 'noarchive' | 'noyaca';
|
|
1
2
|
/**
|
|
2
3
|
* @title Meta/SEO
|
|
3
4
|
*/
|
|
@@ -19,7 +20,7 @@ export interface ContentPageMeta {
|
|
|
19
20
|
* @title Директивы Robots
|
|
20
21
|
* @uniqueItems true
|
|
21
22
|
*/
|
|
22
|
-
robots?: Array<
|
|
23
|
+
robots?: Array<RobotsProps>;
|
|
23
24
|
};
|
|
24
25
|
/** @title OpenGraph */
|
|
25
26
|
og?: {
|
|
@@ -11,7 +11,7 @@ exports.validatorObj = {
|
|
|
11
11
|
phone: validators_1.phoneValidator,
|
|
12
12
|
birthday: validators_1.defaultValidator,
|
|
13
13
|
email: validators_1.defaultValidator,
|
|
14
|
-
fullName: validators_1.
|
|
14
|
+
fullName: validators_1.nameValidator,
|
|
15
15
|
inn: validators_1.innValidator,
|
|
16
16
|
partnerComments: validators_1.defaultValidator,
|
|
17
17
|
collectionCount: validators_1.defaultValidator,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getObjectValidator.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/getObjectValidator.tsx"],"names":[],"mappings":";;AACA,8DAOuC;AAEvC,2DAAwD;AAE3C,QAAA,YAAY,GAA8B;IACrD,QAAQ,EAAE,6BAAgB;IAC1B,OAAO,EAAE,0BAAa;IACtB,IAAI,EAAE,0BAAa;IACnB,MAAM,EAAE,mCAAsB;IAC9B,aAAa,EAAE,mCAAsB;IACrC,KAAK,EAAE,2BAAc;IACrB,QAAQ,EAAE,6BAAgB;IAC1B,KAAK,EAAE,6BAAgB;IACvB,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"getObjectValidator.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/getObjectValidator.tsx"],"names":[],"mappings":";;AACA,8DAOuC;AAEvC,2DAAwD;AAE3C,QAAA,YAAY,GAA8B;IACrD,QAAQ,EAAE,6BAAgB;IAC1B,OAAO,EAAE,0BAAa;IACtB,IAAI,EAAE,0BAAa;IACnB,MAAM,EAAE,mCAAsB;IAC9B,aAAa,EAAE,mCAAsB;IACrC,KAAK,EAAE,2BAAc;IACrB,QAAQ,EAAE,6BAAgB;IAC1B,KAAK,EAAE,6BAAgB;IACvB,QAAQ,EAAE,0BAAa;IACvB,GAAG,EAAE,yBAAY;IACjB,eAAe,EAAE,6BAAgB;IACjC,eAAe,EAAE,6BAAgB;IACjC,OAAO,EAAE,6BAAgB;IACzB,aAAa,EAAE,mCAAsB;IACrC,WAAW,EAAE,mCAAsB;IACnC,qBAAqB,EAAE,8BAAiB;IACxC,aAAa,EAAE,6BAAgB;CAChC,CAAC;AAEK,MAAM,kBAAkB,GAAG,CAAC,MAAkB,EAA6B,EAAE;IAClF,MAAM,cAAc,GAAG,IAAA,qCAAiB,EACtC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAW,EAAE,EAAE,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CACvE,CAAC;IAEF,OAAO,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,oBAAY,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/E,CAAC,CAAC;AANW,QAAA,kBAAkB,sBAM7B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
3
|
-
export declare function renderBackwardButton(version: LinkButtonVersion, handleClick: () => void): JSX.Element;
|
|
3
|
+
export declare function renderBackwardButton(version: LinkButtonVersion, handleClick: () => void, alwaysVisible?: boolean): JSX.Element;
|
|
@@ -4,11 +4,12 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
5
5
|
const getRegularButtonClasses_1 = require("../../ui-kit/LinkButton/getRegularButtonClasses");
|
|
6
6
|
const LinkButton_1 = require("../../ui-kit/LinkButton/LinkButton");
|
|
7
|
-
|
|
7
|
+
const style_1 = require("../../utils/style");
|
|
8
|
+
function renderBackwardButton(version, handleClick, alwaysVisible = false) {
|
|
8
9
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
9
10
|
const className = 'w-12 h-12 min-h-12 min-w-12 flex items-center justify-center';
|
|
10
11
|
const text = 'Вернуться назад';
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className:
|
|
12
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)(alwaysVisible ? 'flex' : 'hidden sm:flex', 'items-center gap-s'), children: [(0, jsx_runtime_1.jsx)("div", { className: (0, getRegularButtonClasses_1.getRegularButtonClasses)({ className, version, rounded: true }), onClick: handleClick, children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-4 h-4", image: {
|
|
12
13
|
icon: 'ArrowLeftIcon',
|
|
13
14
|
iconVersion: iconVersion,
|
|
14
15
|
} }) }), (0, jsx_runtime_1.jsx)(LinkButton_1.LinkButton, { version: "link", className: "group-data-secondary:text-white/80", text: text, ariaLabel: text, onClick: handleClick, type: "button" })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";;;AACA,8CAA2C;AAC3C,6FAA0F;AAC1F,mEAAgE;
|
|
1
|
+
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";;;AACA,8CAA2C;AAC3C,6FAA0F;AAC1F,mEAAgE;AAChE,6CAA0C;AAE1C,SAAgB,oBAAoB,CAClC,OAA0B,EAC1B,WAAuB,EACvB,aAAa,GAAG,KAAK;IAErB,MAAM,WAAW,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAC9D,MAAM,SAAS,GAAG,8DAA8D,CAAC;IACjF,MAAM,IAAI,GAAG,iBAAiB,CAAC;IAE/B,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,aACpF,gCACE,SAAS,EAAE,IAAA,iDAAuB,EAAC,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EACzE,OAAO,EAAE,WAAW,YAEpB,uBAAC,SAAG,IACF,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE;wBACL,IAAI,EAAE,eAAe;wBACrB,WAAW,EAAE,WAAW;qBACzB,GACD,GACE,EACN,uBAAC,uBAAU,IACT,OAAO,EAAC,MAAM,EACd,SAAS,EAAC,oCAAoC,EAC9C,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,WAAW,EACpB,IAAI,EAAC,QAAQ,GACb,IACE,CACP,CAAC;AACJ,CAAC;AAjCD,oDAiCC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare type RobotsProps = 'index' | 'noindex' | 'follow' | 'nofollow' | 'noarchive' | 'noyaca';
|
|
1
2
|
/**
|
|
2
3
|
* @title Meta/SEO
|
|
3
4
|
*/
|
|
@@ -19,7 +20,7 @@ export interface ContentPageMeta {
|
|
|
19
20
|
* @title Директивы Robots
|
|
20
21
|
* @uniqueItems true
|
|
21
22
|
*/
|
|
22
|
-
robots?: Array<
|
|
23
|
+
robots?: Array<RobotsProps>;
|
|
23
24
|
};
|
|
24
25
|
/** @title OpenGraph */
|
|
25
26
|
og?: {
|
|
@@ -9,7 +9,7 @@ export const validatorObj = {
|
|
|
9
9
|
phone: phoneValidator,
|
|
10
10
|
birthday: defaultValidator,
|
|
11
11
|
email: defaultValidator,
|
|
12
|
-
fullName:
|
|
12
|
+
fullName: nameValidator,
|
|
13
13
|
inn: innValidator,
|
|
14
14
|
partnerComments: defaultValidator,
|
|
15
15
|
collectionCount: defaultValidator,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getObjectValidator.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/getObjectValidator.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,GACf,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,CAAC,MAAM,YAAY,GAA8B;IACrD,QAAQ,EAAE,gBAAgB;IAC1B,OAAO,EAAE,aAAa;IACtB,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,sBAAsB;IAC9B,aAAa,EAAE,sBAAsB;IACrC,KAAK,EAAE,cAAc;IACrB,QAAQ,EAAE,gBAAgB;IAC1B,KAAK,EAAE,gBAAgB;IACvB,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"getObjectValidator.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/getObjectValidator.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,GACf,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,CAAC,MAAM,YAAY,GAA8B;IACrD,QAAQ,EAAE,gBAAgB;IAC1B,OAAO,EAAE,aAAa;IACtB,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,sBAAsB;IAC9B,aAAa,EAAE,sBAAsB;IACrC,KAAK,EAAE,cAAc;IACrB,QAAQ,EAAE,gBAAgB;IAC1B,KAAK,EAAE,gBAAgB;IACvB,QAAQ,EAAE,aAAa;IACvB,GAAG,EAAE,YAAY;IACjB,eAAe,EAAE,gBAAgB;IACjC,eAAe,EAAE,gBAAgB;IACjC,OAAO,EAAE,gBAAgB;IACzB,aAAa,EAAE,sBAAsB;IACrC,WAAW,EAAE,sBAAsB;IACnC,qBAAqB,EAAE,iBAAiB;IACxC,aAAa,EAAE,gBAAgB;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAkB,EAA6B,EAAE;IAClF,MAAM,cAAc,GAAG,iBAAiB,CACtC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAW,EAAE,EAAE,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CACvE,CAAC;IAEF,OAAO,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/E,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
3
|
-
export declare function renderBackwardButton(version: LinkButtonVersion, handleClick: () => void): JSX.Element;
|
|
3
|
+
export declare function renderBackwardButton(version: LinkButtonVersion, handleClick: () => void, alwaysVisible?: boolean): JSX.Element;
|
|
@@ -2,11 +2,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
3
3
|
import { getRegularButtonClasses } from '../../ui-kit/LinkButton/getRegularButtonClasses.js';
|
|
4
4
|
import { LinkButton } from '../../ui-kit/LinkButton/LinkButton.js';
|
|
5
|
-
|
|
5
|
+
import { style } from '../../utils/style.js';
|
|
6
|
+
export function renderBackwardButton(version, handleClick, alwaysVisible = false) {
|
|
6
7
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
7
8
|
const className = 'w-12 h-12 min-h-12 min-w-12 flex items-center justify-center';
|
|
8
9
|
const text = 'Вернуться назад';
|
|
9
|
-
return (_jsxs("div", { className:
|
|
10
|
+
return (_jsxs("div", { className: style(alwaysVisible ? 'flex' : 'hidden sm:flex', 'items-center gap-s'), children: [_jsx("div", { className: getRegularButtonClasses({ className, version, rounded: true }), onClick: handleClick, children: _jsx(Img, { className: "w-4 h-4", image: {
|
|
10
11
|
icon: 'ArrowLeftIcon',
|
|
11
12
|
iconVersion: iconVersion,
|
|
12
13
|
} }) }), _jsx(LinkButton, { version: "link", className: "group-data-secondary:text-white/80", text: text, ariaLabel: text, onClick: handleClick, type: "button" })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,UAAU,oBAAoB,CAClC,OAA0B,EAC1B,WAAuB,EACvB,aAAa,GAAG,KAAK;IAErB,MAAM,WAAW,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAC9D,MAAM,SAAS,GAAG,8DAA8D,CAAC;IACjF,MAAM,IAAI,GAAG,iBAAiB,CAAC;IAE/B,OAAO,CACL,eAAK,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,aACpF,cACE,SAAS,EAAE,uBAAuB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EACzE,OAAO,EAAE,WAAW,YAEpB,KAAC,GAAG,IACF,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE;wBACL,IAAI,EAAE,eAAe;wBACrB,WAAW,EAAE,WAAW;qBACzB,GACD,GACE,EACN,KAAC,UAAU,IACT,OAAO,EAAC,MAAM,EACd,SAAS,EAAC,oCAAoC,EAC9C,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,WAAW,EACpB,IAAI,EAAC,QAAQ,GACb,IACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare type RobotsProps = 'index' | 'noindex' | 'follow' | 'nofollow' | 'noarchive' | 'noyaca';
|
|
1
2
|
/**
|
|
2
3
|
* @title Meta/SEO
|
|
3
4
|
*/
|
|
@@ -19,7 +20,7 @@ export interface ContentPageMeta {
|
|
|
19
20
|
* @title Директивы Robots
|
|
20
21
|
* @uniqueItems true
|
|
21
22
|
*/
|
|
22
|
-
robots?: Array<
|
|
23
|
+
robots?: Array<RobotsProps>;
|
|
23
24
|
};
|
|
24
25
|
/** @title OpenGraph */
|
|
25
26
|
og?: {
|
|
@@ -535,11 +535,11 @@
|
|
|
535
535
|
const RegularButton = JSX(({ className = '', href, rel, target, ariaLabel, version, rounded, onClick, type, data, children, }) => (jsx("a", { className: getRegularButtonClasses({ className, version, rounded }), href: href, rel: rel, target: target, "aria-label": ariaLabel, role: href ? 'link' : 'button', onClick: onClick, type: type, ...dataAttributes(data), children: children })));
|
|
536
536
|
const DisabledButton = JSX(({ className, ariaLabel, version, rounded, children }) => (jsx("button", { type: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: -1, className: getDisabledButtonClasses({ className, rounded, version }), children: children })));
|
|
537
537
|
|
|
538
|
-
function renderBackwardButton(version, handleClick) {
|
|
538
|
+
function renderBackwardButton(version, handleClick, alwaysVisible = false) {
|
|
539
539
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
540
540
|
const className = 'w-12 h-12 min-h-12 min-w-12 flex items-center justify-center';
|
|
541
541
|
const text = 'Вернуться назад';
|
|
542
|
-
return (jsxs("div", { className:
|
|
542
|
+
return (jsxs("div", { className: style(alwaysVisible ? 'flex' : 'hidden sm:flex', 'items-center gap-s'), children: [jsx("div", { className: getRegularButtonClasses({ className, version, rounded: true }), onClick: handleClick, children: jsx(Img, { className: "w-4 h-4", image: {
|
|
543
543
|
icon: 'ArrowLeftIcon',
|
|
544
544
|
iconVersion: iconVersion,
|
|
545
545
|
} }) }), jsx(LinkButton, { version: "link", className: "group-data-secondary:text-white/80", text: text, ariaLabel: text, onClick: handleClick, type: "button" })] }));
|
|
@@ -1357,7 +1357,7 @@
|
|
|
1357
1357
|
phone: phoneValidator,
|
|
1358
1358
|
birthday: defaultValidator,
|
|
1359
1359
|
email: defaultValidator,
|
|
1360
|
-
fullName:
|
|
1360
|
+
fullName: nameValidator,
|
|
1361
1361
|
inn: innValidator,
|
|
1362
1362
|
partnerComments: defaultValidator,
|
|
1363
1363
|
collectionCount: defaultValidator,
|
|
@@ -5641,7 +5641,7 @@
|
|
|
5641
5641
|
|
|
5642
5642
|
const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
|
|
5643
5643
|
|
|
5644
|
-
const packageVersion = "0.14.
|
|
5644
|
+
const packageVersion = "0.14.234";
|
|
5645
5645
|
|
|
5646
5646
|
exports.Blocks = Blocks;
|
|
5647
5647
|
exports.ContentPage = ContentPage;
|