@redneckz/wildless-cms-uni-blocks 0.14.804 → 0.14.806
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +8 -10
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/retail/model/RetailFormContent.d.ts +1 -0
- package/bundle/ui-kit/Button/Button.d.ts +1 -0
- package/dist/components/ApplicationLeadForm/consents.js +2 -4
- package/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/dist/retail/content.js +1 -1
- package/dist/retail/content.js.map +1 -1
- package/dist/retail/model/RetailFormContent.d.ts +1 -0
- package/dist/ui-kit/Button/Button.d.ts +1 -0
- package/dist/ui-kit/Button/Button.js +2 -2
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Input/InputPhoneControl.js +1 -1
- package/dist/ui-kit/Input/InputPhoneControl.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListScrollButtons.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListScrollButtons.js.map +1 -1
- package/lib/components/ApplicationLeadForm/consents.js +2 -4
- package/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/lib/retail/content.js +1 -1
- package/lib/retail/content.js.map +1 -1
- package/lib/retail/model/RetailFormContent.d.ts +1 -0
- package/lib/ui-kit/Button/Button.d.ts +1 -0
- package/lib/ui-kit/Button/Button.js +2 -2
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Input/InputPhoneControl.js +1 -1
- package/lib/ui-kit/Input/InputPhoneControl.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListScrollButtons.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListScrollButtons.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +8 -10
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/retail/model/RetailFormContent.d.ts +1 -0
- package/mobile/bundle/ui-kit/Button/Button.d.ts +1 -0
- package/mobile/dist/components/ApplicationLeadForm/consents.js +2 -4
- package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/dist/retail/content.js +1 -1
- package/mobile/dist/retail/content.js.map +1 -1
- package/mobile/dist/retail/model/RetailFormContent.d.ts +1 -0
- package/mobile/dist/ui-kit/Button/Button.d.ts +1 -0
- package/mobile/dist/ui-kit/Button/Button.js +2 -2
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputPhoneControl.js +1 -1
- package/mobile/dist/ui-kit/Input/InputPhoneControl.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListScrollButtons.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListScrollButtons.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/consents.js +2 -4
- package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/lib/retail/content.js +1 -1
- package/mobile/lib/retail/content.js.map +1 -1
- package/mobile/lib/retail/model/RetailFormContent.d.ts +1 -0
- package/mobile/lib/ui-kit/Button/Button.d.ts +1 -0
- package/mobile/lib/ui-kit/Button/Button.js +2 -2
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputPhoneControl.js +1 -1
- package/mobile/lib/ui-kit/Input/InputPhoneControl.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListScrollButtons.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListScrollButtons.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/consents.ts +2 -4
- package/mobile/src/retail/content.tsx +1 -1
- package/mobile/src/retail/model/RetailFormContent.ts +1 -0
- package/mobile/src/ui-kit/Button/Button.tsx +3 -0
- package/mobile/src/ui-kit/Input/InputPhoneControl.tsx +15 -12
- package/mobile/src/ui-kit/SwipeListControl/SwipeListScrollButtons.tsx +2 -0
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/consents.ts +2 -4
- package/src/retail/content.tsx +1 -1
- package/src/retail/model/RetailFormContent.ts +1 -0
- package/src/ui-kit/Button/Button.tsx +3 -0
- package/src/ui-kit/Input/InputPhoneControl.tsx +15 -12
- package/src/ui-kit/SwipeListControl/SwipeListScrollButtons.tsx +2 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -2007,7 +2007,7 @@
|
|
|
2007
2007
|
return (jsx(Input, { ...inputProps, onChange: handleChange, onFocus: (ev) => handleChange(ev?.target?.value || ''), onBlur: (ev) => handleBlur(ev?.target?.value || ''), children: children }));
|
|
2008
2008
|
});
|
|
2009
2009
|
|
|
2010
|
-
const InputPhoneControl = JSX(({ className, label, error, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(PhoneInput, { "aria-label": label, label: getRequiredLabel({ label, errors: rest?.errors }), valid: Boolean(!error), placeholder: "+7 (___) ___-__-__", ...rest }), renderErrorText(error)] })));
|
|
2010
|
+
const InputPhoneControl = JSX(({ className, label, disabled, error, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(PhoneInput, { "aria-label": label, label: getRequiredLabel({ label, errors: rest?.errors }), valid: Boolean(!error), disabled: disabled, placeholder: "+7 (___) ___-__-__", ...rest }), renderErrorText(error)] })));
|
|
2011
2011
|
|
|
2012
2012
|
const PhoneField = JSX(({ field, input }) => {
|
|
2013
2013
|
const fieldName = input?.name || 'phone';
|
|
@@ -2253,7 +2253,7 @@
|
|
|
2253
2253
|
};
|
|
2254
2254
|
const embeddedStyle = style('group/btn-embedded', 'bg-transparent border border-transparent outline-none');
|
|
2255
2255
|
const disabledStyle = style('bg-main-gray text-main-disabled cursor-not-allowed');
|
|
2256
|
-
const Button = JSX(({ className, type = 'button', version = 'primary', shape = 'default', embedded, disabled, role, ariaLabel, data, dataTheme, children, onClick = noop, }) => {
|
|
2256
|
+
const Button = JSX(({ className, type = 'button', version = 'primary', shape = 'default', embedded, disabled, role, ariaLabel, data, dataTheme, children, wcmsIgnore, onClick = noop, }) => {
|
|
2257
2257
|
const handleClick = useCallback(role !== 'tab' ? handlerDecorator(onClick) : onClick, [
|
|
2258
2258
|
role,
|
|
2259
2259
|
onClick,
|
|
@@ -2267,7 +2267,7 @@
|
|
|
2267
2267
|
}, embedded ? 'justify-between' : 'justify-center', embedded || isRound ? 'p-0' : 'px-9 py-4', {
|
|
2268
2268
|
'rounded-md': shape === 'default',
|
|
2269
2269
|
'rounded-full': isRound,
|
|
2270
|
-
}, className), type: type, role: role, "aria-label": ariaLabel, disabled: disabled, "aria-disabled": disabled ? 'true' : undefined, "data-theme": dataTheme, ...aspectsAttrs, onClick: handleClick, children: children }));
|
|
2270
|
+
}, className), type: type, role: role, "aria-label": ariaLabel, disabled: disabled, "aria-disabled": disabled ? 'true' : undefined, "data-theme": dataTheme, "data-wcms-ignore": wcmsIgnore, ...aspectsAttrs, onClick: handleClick, children: children }));
|
|
2271
2271
|
});
|
|
2272
2272
|
|
|
2273
2273
|
const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", type: "button", children: jsx(Icon, { name: "CloseIcon", width: "20", height: "20", iconVersion: "gray" }) })));
|
|
@@ -2597,13 +2597,11 @@
|
|
|
2597
2597
|
},
|
|
2598
2598
|
consentOthersFlg: {
|
|
2599
2599
|
text: 'Прочие согласия',
|
|
2600
|
-
|
|
2601
|
-
docId: 10,
|
|
2600
|
+
docId: 20,
|
|
2602
2601
|
},
|
|
2603
2602
|
consentFATCA: {
|
|
2604
2603
|
text: 'Форма самосертификации',
|
|
2605
|
-
|
|
2606
|
-
docId: 7,
|
|
2604
|
+
docId: 10,
|
|
2607
2605
|
},
|
|
2608
2606
|
};
|
|
2609
2607
|
const productTypeToConsentsMap = {
|
|
@@ -6343,7 +6341,7 @@
|
|
|
6343
6341
|
const SwipeListScrollButtons = JSX(({ className, scroll, hasBlur, arrowsPadded, isBottom }) => {
|
|
6344
6342
|
const { canScrollLeft, canScrollRight, scrollLeft, scrollRight } = scroll;
|
|
6345
6343
|
const isArrowPadded = arrowsPadded && !isBottom;
|
|
6346
|
-
return (jsxs("div", { className: className, children: [hasBlur ? renderBlur(scroll) : null, canScrollLeft ? (jsx(ArrowLeftButton, { className: style(buttonStyle(isBottom), isArrowPadded ? 'left-1' : 'left-0'), onClick: scrollLeft })) : null, canScrollRight ? (jsx(ArrowRightButton, { className: style(buttonStyle(isBottom), isArrowPadded ? 'right-1' : 'right-0'), onClick: scrollRight })) : null] }));
|
|
6344
|
+
return (jsxs("div", { className: className, children: [hasBlur ? renderBlur(scroll) : null, canScrollLeft ? (jsx(ArrowLeftButton, { wcmsIgnore: true, className: style(buttonStyle(isBottom), isArrowPadded ? 'left-1' : 'left-0'), onClick: scrollLeft })) : null, canScrollRight ? (jsx(ArrowRightButton, { wcmsIgnore: true, className: style(buttonStyle(isBottom), isArrowPadded ? 'right-1' : 'right-0'), onClick: scrollRight })) : null] }));
|
|
6347
6345
|
});
|
|
6348
6346
|
const renderBlur = (scroll) => (jsxs("div", { children: [scroll.canScrollLeft ? (jsx("div", { className: style(blurBaseStyle, 'left-0 bg-opacity-from-white group-data-secondary:bg-none') })) : null, scroll.canScrollRight ? (jsx("div", { className: style(blurBaseStyle, 'right-0 bg-opacity-to-white group-data-secondary:bg-none') })) : null] }));
|
|
6349
6347
|
const buttonStyle = (isBottom = false) => style('absolute z-40', isBottom ? 'bottom-[56px]' : 'top-[calc(50%-24px)]');
|
|
@@ -8074,7 +8072,7 @@
|
|
|
8074
8072
|
{ name: 'sex', required: true },
|
|
8075
8073
|
{ name: 'limitedBirthday', required: true, filledByEsia: true },
|
|
8076
8074
|
{ name: 'birthPlace', required: true, filledByEsia: true },
|
|
8077
|
-
{ name: 'phone', required: true },
|
|
8075
|
+
{ name: 'phone', disabled: true, required: true },
|
|
8078
8076
|
{ name: 'email', required: true, dadata: true },
|
|
8079
8077
|
],
|
|
8080
8078
|
},
|
|
@@ -11461,7 +11459,7 @@
|
|
|
11461
11459
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
11462
11460
|
});
|
|
11463
11461
|
|
|
11464
|
-
const packageVersion = "0.14.
|
|
11462
|
+
const packageVersion = "0.14.805";
|
|
11465
11463
|
|
|
11466
11464
|
exports.Blocks = Blocks;
|
|
11467
11465
|
exports.ContentPage = ContentPage;
|