@redneckz/wildless-cms-uni-blocks 0.14.695 → 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 (160) hide show
  1. package/bin/migrate.js +2 -5
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +40 -13
  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/CreditCardForm/useCreditCardFormAPI.js +9 -2
  12. package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  13. package/dist/components/CreditForm/CreditFormStatusTracker.js +1 -1
  14. package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  15. package/dist/components/CreditForm/useCreditFormAPI.js +9 -2
  16. package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  17. package/dist/components/RollupItem/getIconName.d.ts +1 -1
  18. package/dist/components/StepsBlock/renderStep.js +1 -1
  19. package/dist/components/StepsBlock/renderStep.js.map +1 -1
  20. package/dist/components/StepsBlock/renderStepMobile.js +1 -1
  21. package/dist/components/StepsBlock/renderStepMobile.js.map +1 -1
  22. package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
  23. package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  24. package/dist/components/TextBlock/TextBlock.js +2 -2
  25. package/dist/components/TextBlock/TextBlock.js.map +1 -1
  26. package/dist/content-page-repository/ContentPageRepository.js +2 -3
  27. package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  28. package/dist/icons/IconName.d.ts +218 -218
  29. package/dist/icons/IconName.js +217 -217
  30. package/dist/icons/IconName.js.map +1 -1
  31. package/dist/model/LinkProps.d.ts +3 -3
  32. package/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
  33. package/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  34. package/dist/ui-kit/DialogManager/Dialog.js +1 -1
  35. package/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
  36. package/dist/ui-kit/FormField/Fields/AddressFactField.js +14 -1
  37. package/dist/ui-kit/FormField/Fields/AddressFactField.js.map +1 -1
  38. package/lib/common.css +1 -1
  39. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
  40. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  41. package/lib/components/CreditCardForm/useCreditCardFormAPI.js +9 -2
  42. package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  43. package/lib/components/CreditForm/CreditFormStatusTracker.js +1 -1
  44. package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  45. package/lib/components/CreditForm/useCreditFormAPI.js +9 -2
  46. package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  47. package/lib/components/RollupItem/getIconName.d.ts +1 -1
  48. package/lib/components/StepsBlock/renderStep.js +1 -1
  49. package/lib/components/StepsBlock/renderStep.js.map +1 -1
  50. package/lib/components/StepsBlock/renderStepMobile.js +1 -1
  51. package/lib/components/StepsBlock/renderStepMobile.js.map +1 -1
  52. package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
  53. package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  54. package/lib/components/TextBlock/TextBlock.js +2 -2
  55. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  56. package/lib/content-page-repository/ContentPageRepository.js +2 -3
  57. package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  58. package/lib/icons/IconName.d.ts +218 -218
  59. package/lib/icons/IconName.js +217 -217
  60. package/lib/icons/IconName.js.map +1 -1
  61. package/lib/model/LinkProps.d.ts +3 -3
  62. package/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
  63. package/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  64. package/lib/ui-kit/DialogManager/Dialog.js +1 -1
  65. package/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
  66. package/lib/ui-kit/FormField/Fields/AddressFactField.js +14 -1
  67. package/lib/ui-kit/FormField/Fields/AddressFactField.js.map +1 -1
  68. package/mobile/bundle/bundle.umd.js +41 -14
  69. package/mobile/bundle/bundle.umd.min.js +1 -1
  70. package/mobile/bundle/components/RollupItem/getIconName.d.ts +1 -1
  71. package/mobile/bundle/icons/IconName.d.ts +218 -218
  72. package/mobile/bundle/model/LinkProps.d.ts +3 -3
  73. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
  74. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  75. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +9 -2
  76. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  77. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +1 -1
  78. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  79. package/mobile/dist/components/CreditForm/useCreditFormAPI.js +9 -2
  80. package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  81. package/mobile/dist/components/RollupItem/getIconName.d.ts +1 -1
  82. package/mobile/dist/components/StepsBlock/renderStep.js +1 -1
  83. package/mobile/dist/components/StepsBlock/renderStep.js.map +1 -1
  84. package/mobile/dist/components/StepsBlock/renderStepMobile.js +1 -1
  85. package/mobile/dist/components/StepsBlock/renderStepMobile.js.map +1 -1
  86. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
  87. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  88. package/mobile/dist/components/TextBlock/TextBlock.js +2 -2
  89. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  90. package/mobile/dist/content-page-repository/ContentPageRepository.js +2 -3
  91. package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  92. package/mobile/dist/icons/IconName.d.ts +218 -218
  93. package/mobile/dist/icons/IconName.js +217 -217
  94. package/mobile/dist/icons/IconName.js.map +1 -1
  95. package/mobile/dist/model/LinkProps.d.ts +3 -3
  96. package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
  97. package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  98. package/mobile/dist/ui-kit/DialogManager/Dialog.js +1 -1
  99. package/mobile/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
  100. package/mobile/dist/ui-kit/FormField/Fields/AddressFactField.js +14 -1
  101. package/mobile/dist/ui-kit/FormField/Fields/AddressFactField.js.map +1 -1
  102. package/mobile/lib/common.css +1 -1
  103. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
  104. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  105. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +9 -2
  106. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  107. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +1 -1
  108. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  109. package/mobile/lib/components/CreditForm/useCreditFormAPI.js +9 -2
  110. package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  111. package/mobile/lib/components/RollupItem/getIconName.d.ts +1 -1
  112. package/mobile/lib/components/StepsBlock/renderStep.js +1 -1
  113. package/mobile/lib/components/StepsBlock/renderStep.js.map +1 -1
  114. package/mobile/lib/components/StepsBlock/renderStepMobile.js +1 -1
  115. package/mobile/lib/components/StepsBlock/renderStepMobile.js.map +1 -1
  116. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
  117. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  118. package/mobile/lib/components/TextBlock/TextBlock.js +2 -2
  119. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  120. package/mobile/lib/content-page-repository/ContentPageRepository.js +2 -3
  121. package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  122. package/mobile/lib/icons/IconName.d.ts +218 -218
  123. package/mobile/lib/icons/IconName.js +217 -217
  124. package/mobile/lib/icons/IconName.js.map +1 -1
  125. package/mobile/lib/model/LinkProps.d.ts +3 -3
  126. package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
  127. package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  128. package/mobile/lib/ui-kit/DialogManager/Dialog.js +1 -1
  129. package/mobile/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
  130. package/mobile/lib/ui-kit/FormField/Fields/AddressFactField.js +14 -1
  131. package/mobile/lib/ui-kit/FormField/Fields/AddressFactField.js.map +1 -1
  132. package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +1 -1
  133. package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +10 -2
  134. package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -1
  135. package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +10 -2
  136. package/mobile/src/components/StepsBlock/renderStep.tsx +1 -5
  137. package/mobile/src/components/StepsBlock/renderStepMobile.tsx +1 -5
  138. package/mobile/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +1 -1
  139. package/mobile/src/components/TextBlock/TextBlock.tsx +2 -7
  140. package/mobile/src/content-page-repository/ContentPageRepository.ts +2 -3
  141. package/mobile/src/icons/IconName.ts +5 -5
  142. package/mobile/src/model/LinkProps.ts +3 -3
  143. package/mobile/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
  144. package/mobile/src/ui-kit/DialogManager/Dialog.tsx +1 -5
  145. package/mobile/src/ui-kit/FormField/Fields/AddressFactField.tsx +14 -1
  146. package/package.json +5 -6
  147. package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +1 -1
  148. package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +10 -2
  149. package/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -1
  150. package/src/components/CreditForm/useCreditFormAPI.tsx +10 -2
  151. package/src/components/StepsBlock/renderStep.tsx +1 -5
  152. package/src/components/StepsBlock/renderStepMobile.tsx +1 -5
  153. package/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +1 -1
  154. package/src/components/TextBlock/TextBlock.tsx +2 -7
  155. package/src/content-page-repository/ContentPageRepository.ts +2 -3
  156. package/src/icons/IconName.ts +5 -5
  157. package/src/model/LinkProps.ts +3 -3
  158. package/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
  159. package/src/ui-kit/DialogManager/Dialog.tsx +1 -5
  160. package/src/ui-kit/FormField/Fields/AddressFactField.tsx +14 -1
@@ -1873,8 +1873,21 @@
1873
1873
  }, []);
1874
1874
  const onChange = useCallback((val) => {
1875
1875
  field?.(fieldName)?.onChange?.({
1876
- ...field(fieldName).value,
1876
+ apartment: '',
1877
+ city: '',
1878
+ district: '',
1877
1879
  fullAddress: val,
1880
+ fiasCode: '',
1881
+ house: '',
1882
+ locality: '',
1883
+ okatoRegionCode: '',
1884
+ postcode: '',
1885
+ region: '',
1886
+ regionCode: '',
1887
+ street: '',
1888
+ qc: '',
1889
+ qcComplete: '',
1890
+ qcHouse: '',
1878
1891
  });
1879
1892
  }, []);
1880
1893
  return (jsx(InputControl, { label: "\u0410\u0434\u0440\u0435\u0441", disabled: value, ...getValidation(field(fieldName), validatorObj[fieldName], input?.required), value: fieldValue.fullAddress, onChange: onChange, ...input, onDaDataChange: onDaDataChange }));
@@ -3083,7 +3096,7 @@
3083
3096
 
3084
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" }) })));
3085
3098
 
3086
- 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 })] })));
3087
3100
 
3088
3101
  // TODO Перенесено как есть из openDocument. Требует рефакторинга
3089
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" })] })));
@@ -3117,7 +3130,7 @@
3117
3130
 
3118
3131
  const CalculatorStyle = {
3119
3132
  wrapper: 'flex flex-col justify-between lg:flex-row gap-x-4xl gap-y-7 lg:gap-y-4xl',
3120
- 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',
3121
3134
  result: 'flex flex-col gap-y-xl min-w-52',
3122
3135
  };
3123
3136
 
@@ -6383,7 +6396,7 @@
6383
6396
  APPROVED: jsx(SuccessStatusContent$1, {}),
6384
6397
  REVISION: jsx(ReworkStatusContent$1, {}),
6385
6398
  };
6386
- return statusesMap[status] || null;
6399
+ return statusesMap[status] || jsx(ReworkStatusContent$1, {});
6387
6400
  };
6388
6401
 
6389
6402
  const formStateMap$1 = [
@@ -6728,6 +6741,7 @@
6728
6741
  };
6729
6742
 
6730
6743
  const useCreditCardFormAPI = ({ step, inputs, onNextStep, saveStep, finishForm, }) => {
6744
+ const isFinalStep = step === 5;
6731
6745
  const [taskId] = useLocalStorage('taskId');
6732
6746
  const [profileId] = useLocalStorage('profileId');
6733
6747
  const [participantId] = useLocalStorage('participantId');
@@ -6739,20 +6753,21 @@
6739
6753
  saveStep(formData);
6740
6754
  try {
6741
6755
  if (taskId && profileId && participantId) {
6742
- await updateUserTask(getCreditCardFormTaskData({
6756
+ const response = await updateUserTask(getCreditCardFormTaskData({
6743
6757
  participantId,
6744
6758
  taskId,
6745
6759
  profileId,
6746
6760
  step,
6747
6761
  formData: formData,
6748
6762
  }));
6763
+ resetForm$1(isFinalStep, response);
6749
6764
  }
6750
6765
  }
6751
6766
  catch (ex) {
6752
6767
  return 'Fail';
6753
6768
  }
6754
6769
  onNextStep();
6755
- if (step === 5) {
6770
+ if (isFinalStep) {
6756
6771
  finishForm?.(true);
6757
6772
  }
6758
6773
  return 'OK';
@@ -6761,6 +6776,11 @@
6761
6776
  handleSubmit,
6762
6777
  };
6763
6778
  };
6779
+ const resetForm$1 = (isFinalStep, response) => {
6780
+ if (isFinalStep && response.ok) {
6781
+ globalThis.localStorage.removeItem('leadForm');
6782
+ }
6783
+ };
6764
6784
  const getValue$2 = (formData) => (name) => formData[name];
6765
6785
 
6766
6786
  const CreditCardFormStep = JSX(({ step, sections, onPrevStep, onNextStep, isFormFinished, finishForm }) => {
@@ -7283,7 +7303,7 @@
7283
7303
  APPROVED: jsx(SuccessStatusContent, {}),
7284
7304
  REVISION: jsx(ReworkStatusContent, {}),
7285
7305
  };
7286
- return statusesMap[status] || null;
7306
+ return statusesMap[status] || jsx(ReworkStatusContent, {});
7287
7307
  };
7288
7308
 
7289
7309
  const formStateMap = [
@@ -7600,6 +7620,7 @@
7600
7620
  };
7601
7621
 
7602
7622
  const useCreditFormAPI = ({ step, inputs, onNextStep, saveStep, finishForm, }) => {
7623
+ const isFinalStep = step === 5;
7603
7624
  const [taskId] = useLocalStorage('taskId');
7604
7625
  const [profileId] = useLocalStorage('profileId');
7605
7626
  const [participantId] = useLocalStorage('participantId');
@@ -7611,20 +7632,21 @@
7611
7632
  saveStep(formData);
7612
7633
  try {
7613
7634
  if (taskId && profileId && participantId) {
7614
- await updateUserTask(getCreditFormTaskData({
7635
+ const response = await updateUserTask(getCreditFormTaskData({
7615
7636
  participantId,
7616
7637
  taskId,
7617
7638
  profileId,
7618
7639
  step,
7619
7640
  formData: formData,
7620
7641
  }));
7642
+ resetForm(isFinalStep, response);
7621
7643
  }
7622
7644
  }
7623
7645
  catch (ex) {
7624
7646
  return 'Fail';
7625
7647
  }
7626
7648
  onNextStep();
7627
- if (step === 5) {
7649
+ if (isFinalStep) {
7628
7650
  finishForm?.(true);
7629
7651
  }
7630
7652
  return 'OK';
@@ -7633,6 +7655,11 @@
7633
7655
  handleSubmit,
7634
7656
  };
7635
7657
  };
7658
+ const resetForm = (isFinalStep, response) => {
7659
+ if (isFinalStep && response.ok) {
7660
+ globalThis.localStorage.removeItem('leadForm');
7661
+ }
7662
+ };
7636
7663
  const getValue = (formData) => (name) => formData[name];
7637
7664
 
7638
7665
  const CreditFormStep = JSX(({ step, sections, onPrevStep, onNextStep, isFormFinished, finishForm, programsSource }) => {
@@ -9838,7 +9865,7 @@
9838
9865
  const renderStep = (props) => (step, i, arr) => {
9839
9866
  const { styleMap, version } = props;
9840
9867
  const { label, description, button, isDotted } = step;
9841
- 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)));
9842
9869
  };
9843
9870
  const getContainerWidth = (length) => (length < STEP_BREAKPOINT ? 'w-72' : 'w-52');
9844
9871
 
@@ -10147,8 +10174,8 @@
10147
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 })) })] }));
10148
10175
  });
10149
10176
 
10150
- 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] })] })));
10151
- 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" }));
10152
10179
  const renderDescription = (description) => (jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text group-data-secondary:text-white", children: description }));
10153
10180
 
10154
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 ? (
@@ -10383,7 +10410,7 @@
10383
10410
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
10384
10411
  });
10385
10412
 
10386
- const packageVersion = "0.14.694";
10413
+ const packageVersion = "0.14.696";
10387
10414
 
10388
10415
  exports.Blocks = Blocks;
10389
10416
  exports.ContentPage = ContentPage;