@redneckz/wildless-cms-uni-blocks 0.14.696 → 0.14.697

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 (130) hide show
  1. package/bin/migrate.js +2 -5
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +8 -8
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/RollupItem/getIconName.d.ts +1 -1
  6. package/bundle/icons/IconName.d.ts +218 -218
  7. package/bundle/model/LinkProps.d.ts +3 -3
  8. package/cosmos-static/icons/sprites.svg +101 -101
  9. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
  10. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  11. package/dist/components/CreditForm/CreditFormStatusTracker.js +1 -1
  12. package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  13. package/dist/components/RollupItem/getIconName.d.ts +1 -1
  14. package/dist/components/StepsBlock/renderStep.js +1 -1
  15. package/dist/components/StepsBlock/renderStep.js.map +1 -1
  16. package/dist/components/StepsBlock/renderStepMobile.js +1 -1
  17. package/dist/components/StepsBlock/renderStepMobile.js.map +1 -1
  18. package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
  19. package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  20. package/dist/components/TextBlock/TextBlock.js +2 -2
  21. package/dist/components/TextBlock/TextBlock.js.map +1 -1
  22. package/dist/content-page-repository/ContentPageRepository.js +2 -3
  23. package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  24. package/dist/icons/IconName.d.ts +218 -218
  25. package/dist/icons/IconName.js +217 -217
  26. package/dist/icons/IconName.js.map +1 -1
  27. package/dist/model/LinkProps.d.ts +3 -3
  28. package/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
  29. package/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  30. package/dist/ui-kit/DialogManager/Dialog.js +1 -1
  31. package/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
  32. package/lib/common.css +1 -1
  33. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
  34. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  35. package/lib/components/CreditForm/CreditFormStatusTracker.js +1 -1
  36. package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  37. package/lib/components/RollupItem/getIconName.d.ts +1 -1
  38. package/lib/components/StepsBlock/renderStep.js +1 -1
  39. package/lib/components/StepsBlock/renderStep.js.map +1 -1
  40. package/lib/components/StepsBlock/renderStepMobile.js +1 -1
  41. package/lib/components/StepsBlock/renderStepMobile.js.map +1 -1
  42. package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
  43. package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  44. package/lib/components/TextBlock/TextBlock.js +2 -2
  45. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  46. package/lib/content-page-repository/ContentPageRepository.js +2 -3
  47. package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  48. package/lib/icons/IconName.d.ts +218 -218
  49. package/lib/icons/IconName.js +217 -217
  50. package/lib/icons/IconName.js.map +1 -1
  51. package/lib/model/LinkProps.d.ts +3 -3
  52. package/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
  53. package/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  54. package/lib/ui-kit/DialogManager/Dialog.js +1 -1
  55. package/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
  56. package/mobile/bundle/bundle.umd.js +9 -9
  57. package/mobile/bundle/bundle.umd.min.js +1 -1
  58. package/mobile/bundle/components/RollupItem/getIconName.d.ts +1 -1
  59. package/mobile/bundle/icons/IconName.d.ts +218 -218
  60. package/mobile/bundle/model/LinkProps.d.ts +3 -3
  61. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
  62. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  63. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +1 -1
  64. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  65. package/mobile/dist/components/RollupItem/getIconName.d.ts +1 -1
  66. package/mobile/dist/components/StepsBlock/renderStep.js +1 -1
  67. package/mobile/dist/components/StepsBlock/renderStep.js.map +1 -1
  68. package/mobile/dist/components/StepsBlock/renderStepMobile.js +1 -1
  69. package/mobile/dist/components/StepsBlock/renderStepMobile.js.map +1 -1
  70. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
  71. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  72. package/mobile/dist/components/TextBlock/TextBlock.js +2 -2
  73. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  74. package/mobile/dist/content-page-repository/ContentPageRepository.js +2 -3
  75. package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  76. package/mobile/dist/icons/IconName.d.ts +218 -218
  77. package/mobile/dist/icons/IconName.js +217 -217
  78. package/mobile/dist/icons/IconName.js.map +1 -1
  79. package/mobile/dist/model/LinkProps.d.ts +3 -3
  80. package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
  81. package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  82. package/mobile/dist/ui-kit/DialogManager/Dialog.js +1 -1
  83. package/mobile/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
  84. package/mobile/lib/common.css +1 -1
  85. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
  86. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  87. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +1 -1
  88. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  89. package/mobile/lib/components/RollupItem/getIconName.d.ts +1 -1
  90. package/mobile/lib/components/StepsBlock/renderStep.js +1 -1
  91. package/mobile/lib/components/StepsBlock/renderStep.js.map +1 -1
  92. package/mobile/lib/components/StepsBlock/renderStepMobile.js +1 -1
  93. package/mobile/lib/components/StepsBlock/renderStepMobile.js.map +1 -1
  94. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
  95. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  96. package/mobile/lib/components/TextBlock/TextBlock.js +2 -2
  97. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  98. package/mobile/lib/content-page-repository/ContentPageRepository.js +2 -3
  99. package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  100. package/mobile/lib/icons/IconName.d.ts +218 -218
  101. package/mobile/lib/icons/IconName.js +217 -217
  102. package/mobile/lib/icons/IconName.js.map +1 -1
  103. package/mobile/lib/model/LinkProps.d.ts +3 -3
  104. package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
  105. package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  106. package/mobile/lib/ui-kit/DialogManager/Dialog.js +1 -1
  107. package/mobile/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
  108. package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +1 -1
  109. package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -1
  110. package/mobile/src/components/StepsBlock/renderStep.tsx +1 -5
  111. package/mobile/src/components/StepsBlock/renderStepMobile.tsx +1 -5
  112. package/mobile/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +1 -1
  113. package/mobile/src/components/TextBlock/TextBlock.tsx +2 -7
  114. package/mobile/src/content-page-repository/ContentPageRepository.ts +2 -3
  115. package/mobile/src/icons/IconName.ts +5 -5
  116. package/mobile/src/model/LinkProps.ts +3 -3
  117. package/mobile/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
  118. package/mobile/src/ui-kit/DialogManager/Dialog.tsx +1 -5
  119. package/package.json +5 -6
  120. package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +1 -1
  121. package/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -1
  122. package/src/components/StepsBlock/renderStep.tsx +1 -5
  123. package/src/components/StepsBlock/renderStepMobile.tsx +1 -5
  124. package/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +1 -1
  125. package/src/components/TextBlock/TextBlock.tsx +2 -7
  126. package/src/content-page-repository/ContentPageRepository.ts +2 -3
  127. package/src/icons/IconName.ts +5 -5
  128. package/src/model/LinkProps.ts +3 -3
  129. package/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
  130. package/src/ui-kit/DialogManager/Dialog.tsx +1 -5
@@ -3096,7 +3096,7 @@
3096
3096
 
3097
3097
  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" }) })));
3098
3098
 
3099
- const Dialog = JSX(({ className, head, children, onClose, onClick }) => (jsxs("div", { className: style('relative min-h-full bg-white pt-0 p-lg', className), role: "dialog", onClick: onClick, children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: onClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] })));
3099
+ const Dialog = JSX(({ className, head, children, onClose, onClick }) => (jsxs("div", { className: style('relative bg-white pt-0 p-lg', className), role: "dialog", onClick: onClick, children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: onClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] })));
3100
3100
 
3101
3101
  // TODO Перенесено как есть из openDocument. Требует рефакторинга
3102
3102
  const DocumentDialog = JSX(({ src, convertToPng, onClose }) => (jsxs(Dialog, { className: "my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0", onClose: onClose, children: [convertToPng ? (jsx("img", { src: src })) : (jsx("iframe", { src: `${src}#toolbar=0`, className: "w-full h-[80vh]", id: "iframe-dialog" })), jsx(Button, { className: "mx-auto mt-m", type: "button", onClick: onClose, children: "\u041E\u0437\u043D\u0430\u043A\u043E\u043C\u0438\u0442\u044C\u0441\u044F" })] })));
@@ -3130,7 +3130,7 @@
3130
3130
 
3131
3131
  const CalculatorStyle = {
3132
3132
  wrapper: 'flex flex-col justify-between lg:flex-row gap-x-4xl gap-y-7 lg:gap-y-4xl',
3133
- input: 'flex flex-col lg:max-w-80 lg:w-1/2 gap-2xl',
3133
+ input: 'flex flex-col lg:w-1/2 gap-2xl',
3134
3134
  result: 'flex flex-col gap-y-xl min-w-52',
3135
3135
  };
3136
3136
 
@@ -6396,7 +6396,7 @@
6396
6396
  APPROVED: jsx(SuccessStatusContent$1, {}),
6397
6397
  REVISION: jsx(ReworkStatusContent$1, {}),
6398
6398
  };
6399
- return statusesMap[status] || null;
6399
+ return statusesMap[status] || jsx(ReworkStatusContent$1, {});
6400
6400
  };
6401
6401
 
6402
6402
  const formStateMap$1 = [
@@ -7303,7 +7303,7 @@
7303
7303
  APPROVED: jsx(SuccessStatusContent, {}),
7304
7304
  REVISION: jsx(ReworkStatusContent, {}),
7305
7305
  };
7306
- return statusesMap[status] || null;
7306
+ return statusesMap[status] || jsx(ReworkStatusContent, {});
7307
7307
  };
7308
7308
 
7309
7309
  const formStateMap = [
@@ -9865,7 +9865,7 @@
9865
9865
  const renderStep = (props) => (step, i, arr) => {
9866
9866
  const { styleMap, version } = props;
9867
9867
  const { label, description, button, isDotted } = step;
9868
- return (jsxs("div", { className: style('relative flex flex-col items-center text-center justify-between whitespace-pre-line overflow-hidden space-y-3xl', getContainerWidth(arr.length)), children: [jsxs("div", { className: "space-y-xs", children: [label ? (jsx(Text, { size: "text-h6", align: "text-center", children: label })) : null, jsxs("div", { className: "flex flex-col items-center gap-3xs", children: [description ? jsx("div", { className: styleMap.description, children: description }) : null, jsx(RichText, { __html: step.__html, itemSize: "list-s", isDotted: isDotted })] })] }), button?.text ? (jsx(LinkButton, { className: "box-border py-s w-full max-w-60 mt-auto", version: version, ...button, children: button?.text })) : null] }, String(i)));
9868
+ return (jsxs("div", { className: style('relative flex flex-col items-center text-center justify-between whitespace-pre-line overflow-hidden space-y-3xl', getContainerWidth(arr.length)), children: [jsxs("div", { className: "space-y-xs", children: [label ? (jsx(Text, { size: "text-h6", align: "text-center", children: label })) : null, jsxs("div", { className: "flex flex-col items-center gap-3xs", children: [description ? jsx("div", { className: styleMap.description, children: description }) : null, jsx(RichText, { __html: step.__html, itemSize: "list-s", isDotted: isDotted })] })] }), button?.text ? (jsx(LinkButton, { className: "box-border py-s w-full mt-auto", version: version, ...button, children: button?.text })) : null] }, String(i)));
9869
9869
  };
9870
9870
  const getContainerWidth = (length) => (length < STEP_BREAKPOINT ? 'w-72' : 'w-52');
9871
9871
 
@@ -10174,8 +10174,8 @@
10174
10174
  return (jsxs(BlockWrapper, { className: style('relative space-y-6xl @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
10175
10175
  });
10176
10176
 
10177
- const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, richVersion, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? jsx(RichText, { richVersion: richVersion, __html: __html }) : null] })] })));
10178
- const renderIcon = () => (jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main`, children: "i" }));
10177
+ const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, richVersion, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? jsx(RichText, { richVersion: richVersion, __html: __html }) : null] })] })));
10178
+ const renderIcon = () => (jsx("div", { className: "rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main", children: "i" }));
10179
10179
  const renderDescription = (description) => (jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text group-data-secondary:text-white", children: description }));
10180
10180
 
10181
10181
  const Unit = JSX(({ prefix, unit, suffix }) => (jsxs("div", { className: "w-full flex items-end", children: [prefix ? (jsx("div", { className: "gradient-color-text", children: jsx(Text, { size: "text-h2", children: prefix }) })) : null, unit ? (
@@ -10410,7 +10410,7 @@
10410
10410
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
10411
10411
  });
10412
10412
 
10413
- const packageVersion = "0.14.695";
10413
+ const packageVersion = "0.14.696";
10414
10414
 
10415
10415
  exports.Blocks = Blocks;
10416
10416
  exports.ContentPage = ContentPage;