@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.
Files changed (70) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +8 -10
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/retail/model/RetailFormContent.d.ts +1 -0
  5. package/bundle/ui-kit/Button/Button.d.ts +1 -0
  6. package/dist/components/ApplicationLeadForm/consents.js +2 -4
  7. package/dist/components/ApplicationLeadForm/consents.js.map +1 -1
  8. package/dist/retail/content.js +1 -1
  9. package/dist/retail/content.js.map +1 -1
  10. package/dist/retail/model/RetailFormContent.d.ts +1 -0
  11. package/dist/ui-kit/Button/Button.d.ts +1 -0
  12. package/dist/ui-kit/Button/Button.js +2 -2
  13. package/dist/ui-kit/Button/Button.js.map +1 -1
  14. package/dist/ui-kit/Input/InputPhoneControl.js +1 -1
  15. package/dist/ui-kit/Input/InputPhoneControl.js.map +1 -1
  16. package/dist/ui-kit/SwipeListControl/SwipeListScrollButtons.js +1 -1
  17. package/dist/ui-kit/SwipeListControl/SwipeListScrollButtons.js.map +1 -1
  18. package/lib/components/ApplicationLeadForm/consents.js +2 -4
  19. package/lib/components/ApplicationLeadForm/consents.js.map +1 -1
  20. package/lib/retail/content.js +1 -1
  21. package/lib/retail/content.js.map +1 -1
  22. package/lib/retail/model/RetailFormContent.d.ts +1 -0
  23. package/lib/ui-kit/Button/Button.d.ts +1 -0
  24. package/lib/ui-kit/Button/Button.js +2 -2
  25. package/lib/ui-kit/Button/Button.js.map +1 -1
  26. package/lib/ui-kit/Input/InputPhoneControl.js +1 -1
  27. package/lib/ui-kit/Input/InputPhoneControl.js.map +1 -1
  28. package/lib/ui-kit/SwipeListControl/SwipeListScrollButtons.js +1 -1
  29. package/lib/ui-kit/SwipeListControl/SwipeListScrollButtons.js.map +1 -1
  30. package/mobile/bundle/bundle.umd.js +8 -10
  31. package/mobile/bundle/bundle.umd.min.js +1 -1
  32. package/mobile/bundle/retail/model/RetailFormContent.d.ts +1 -0
  33. package/mobile/bundle/ui-kit/Button/Button.d.ts +1 -0
  34. package/mobile/dist/components/ApplicationLeadForm/consents.js +2 -4
  35. package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
  36. package/mobile/dist/retail/content.js +1 -1
  37. package/mobile/dist/retail/content.js.map +1 -1
  38. package/mobile/dist/retail/model/RetailFormContent.d.ts +1 -0
  39. package/mobile/dist/ui-kit/Button/Button.d.ts +1 -0
  40. package/mobile/dist/ui-kit/Button/Button.js +2 -2
  41. package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
  42. package/mobile/dist/ui-kit/Input/InputPhoneControl.js +1 -1
  43. package/mobile/dist/ui-kit/Input/InputPhoneControl.js.map +1 -1
  44. package/mobile/dist/ui-kit/SwipeListControl/SwipeListScrollButtons.js +1 -1
  45. package/mobile/dist/ui-kit/SwipeListControl/SwipeListScrollButtons.js.map +1 -1
  46. package/mobile/lib/components/ApplicationLeadForm/consents.js +2 -4
  47. package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
  48. package/mobile/lib/retail/content.js +1 -1
  49. package/mobile/lib/retail/content.js.map +1 -1
  50. package/mobile/lib/retail/model/RetailFormContent.d.ts +1 -0
  51. package/mobile/lib/ui-kit/Button/Button.d.ts +1 -0
  52. package/mobile/lib/ui-kit/Button/Button.js +2 -2
  53. package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
  54. package/mobile/lib/ui-kit/Input/InputPhoneControl.js +1 -1
  55. package/mobile/lib/ui-kit/Input/InputPhoneControl.js.map +1 -1
  56. package/mobile/lib/ui-kit/SwipeListControl/SwipeListScrollButtons.js +1 -1
  57. package/mobile/lib/ui-kit/SwipeListControl/SwipeListScrollButtons.js.map +1 -1
  58. package/mobile/src/components/ApplicationLeadForm/consents.ts +2 -4
  59. package/mobile/src/retail/content.tsx +1 -1
  60. package/mobile/src/retail/model/RetailFormContent.ts +1 -0
  61. package/mobile/src/ui-kit/Button/Button.tsx +3 -0
  62. package/mobile/src/ui-kit/Input/InputPhoneControl.tsx +15 -12
  63. package/mobile/src/ui-kit/SwipeListControl/SwipeListScrollButtons.tsx +2 -0
  64. package/package.json +1 -1
  65. package/src/components/ApplicationLeadForm/consents.ts +2 -4
  66. package/src/retail/content.tsx +1 -1
  67. package/src/retail/model/RetailFormContent.ts +1 -0
  68. package/src/ui-kit/Button/Button.tsx +3 -0
  69. package/src/ui-kit/Input/InputPhoneControl.tsx +15 -12
  70. package/src/ui-kit/SwipeListControl/SwipeListScrollButtons.tsx +2 -0
@@ -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
- //TODO: Добавить нужный ID после выкладки на бэк
2601
- docId: 10,
2600
+ docId: 20,
2602
2601
  },
2603
2602
  consentFATCA: {
2604
2603
  text: 'Форма самосертификации',
2605
- //TODO: Добавить нужный ID после выкладки на бэк
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.803";
11462
+ const packageVersion = "0.14.805";
11465
11463
 
11466
11464
  exports.Blocks = Blocks;
11467
11465
  exports.ContentPage = ContentPage;