@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.
- package/bin/migrate.js +2 -5
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +40 -13
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/RollupItem/getIconName.d.ts +1 -1
- package/bundle/icons/IconName.d.ts +218 -218
- package/bundle/model/LinkProps.d.ts +3 -3
- package/cosmos-static/icons/sprites.svg +101 -101
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js +9 -2
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStatusTracker.js +1 -1
- package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/dist/components/CreditForm/useCreditFormAPI.js +9 -2
- package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/dist/components/RollupItem/getIconName.d.ts +1 -1
- package/dist/components/StepsBlock/renderStep.js +1 -1
- package/dist/components/StepsBlock/renderStep.js.map +1 -1
- package/dist/components/StepsBlock/renderStepMobile.js +1 -1
- package/dist/components/StepsBlock/renderStepMobile.js.map +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.js +2 -2
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/content-page-repository/ContentPageRepository.js +2 -3
- package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/dist/icons/IconName.d.ts +218 -218
- package/dist/icons/IconName.js +217 -217
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/LinkProps.d.ts +3 -3
- package/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/dist/ui-kit/DialogManager/Dialog.js +1 -1
- package/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/AddressFactField.js +14 -1
- package/dist/ui-kit/FormField/Fields/AddressFactField.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js +9 -2
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/lib/components/CreditForm/CreditFormStatusTracker.js +1 -1
- package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/lib/components/CreditForm/useCreditFormAPI.js +9 -2
- package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/lib/components/RollupItem/getIconName.d.ts +1 -1
- package/lib/components/StepsBlock/renderStep.js +1 -1
- package/lib/components/StepsBlock/renderStep.js.map +1 -1
- package/lib/components/StepsBlock/renderStepMobile.js +1 -1
- package/lib/components/StepsBlock/renderStepMobile.js.map +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.js +2 -2
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/content-page-repository/ContentPageRepository.js +2 -3
- package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/lib/icons/IconName.d.ts +218 -218
- package/lib/icons/IconName.js +217 -217
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/LinkProps.d.ts +3 -3
- package/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/lib/ui-kit/DialogManager/Dialog.js +1 -1
- package/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/AddressFactField.js +14 -1
- package/lib/ui-kit/FormField/Fields/AddressFactField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +41 -14
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/RollupItem/getIconName.d.ts +1 -1
- package/mobile/bundle/icons/IconName.d.ts +218 -218
- package/mobile/bundle/model/LinkProps.d.ts +3 -3
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +9 -2
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js +9 -2
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/dist/components/RollupItem/getIconName.d.ts +1 -1
- package/mobile/dist/components/StepsBlock/renderStep.js +1 -1
- package/mobile/dist/components/StepsBlock/renderStep.js.map +1 -1
- package/mobile/dist/components/StepsBlock/renderStepMobile.js +1 -1
- package/mobile/dist/components/StepsBlock/renderStepMobile.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js +2 -2
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/content-page-repository/ContentPageRepository.js +2 -3
- package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +218 -218
- package/mobile/dist/icons/IconName.js +217 -217
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/LinkProps.d.ts +3 -3
- package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/mobile/dist/ui-kit/DialogManager/Dialog.js +1 -1
- package/mobile/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressFactField.js +14 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressFactField.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +9 -2
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js +9 -2
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/lib/components/RollupItem/getIconName.d.ts +1 -1
- package/mobile/lib/components/StepsBlock/renderStep.js +1 -1
- package/mobile/lib/components/StepsBlock/renderStep.js.map +1 -1
- package/mobile/lib/components/StepsBlock/renderStepMobile.js +1 -1
- package/mobile/lib/components/StepsBlock/renderStepMobile.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js +2 -2
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/content-page-repository/ContentPageRepository.js +2 -3
- package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +218 -218
- package/mobile/lib/icons/IconName.js +217 -217
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/LinkProps.d.ts +3 -3
- package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/mobile/lib/ui-kit/DialogManager/Dialog.js +1 -1
- package/mobile/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressFactField.js +14 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressFactField.js.map +1 -1
- package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +1 -1
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +10 -2
- package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -1
- package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +10 -2
- package/mobile/src/components/StepsBlock/renderStep.tsx +1 -5
- package/mobile/src/components/StepsBlock/renderStepMobile.tsx +1 -5
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +1 -1
- package/mobile/src/components/TextBlock/TextBlock.tsx +2 -7
- package/mobile/src/content-page-repository/ContentPageRepository.ts +2 -3
- package/mobile/src/icons/IconName.ts +5 -5
- package/mobile/src/model/LinkProps.ts +3 -3
- package/mobile/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
- package/mobile/src/ui-kit/DialogManager/Dialog.tsx +1 -5
- package/mobile/src/ui-kit/FormField/Fields/AddressFactField.tsx +14 -1
- package/package.json +5 -6
- package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +1 -1
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +10 -2
- package/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -1
- package/src/components/CreditForm/useCreditFormAPI.tsx +10 -2
- package/src/components/StepsBlock/renderStep.tsx +1 -5
- package/src/components/StepsBlock/renderStepMobile.tsx +1 -5
- package/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +1 -1
- package/src/components/TextBlock/TextBlock.tsx +2 -7
- package/src/content-page-repository/ContentPageRepository.ts +2 -3
- package/src/icons/IconName.ts +5 -5
- package/src/model/LinkProps.ts +3 -3
- package/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
- package/src/ui-kit/DialogManager/Dialog.tsx +1 -5
- package/src/ui-kit/FormField/Fields/AddressFactField.tsx +14 -1
|
@@ -1881,8 +1881,21 @@
|
|
|
1881
1881
|
}, []);
|
|
1882
1882
|
const onChange = useCallback((val) => {
|
|
1883
1883
|
field?.(fieldName)?.onChange?.({
|
|
1884
|
-
|
|
1884
|
+
apartment: '',
|
|
1885
|
+
city: '',
|
|
1886
|
+
district: '',
|
|
1885
1887
|
fullAddress: val,
|
|
1888
|
+
fiasCode: '',
|
|
1889
|
+
house: '',
|
|
1890
|
+
locality: '',
|
|
1891
|
+
okatoRegionCode: '',
|
|
1892
|
+
postcode: '',
|
|
1893
|
+
region: '',
|
|
1894
|
+
regionCode: '',
|
|
1895
|
+
street: '',
|
|
1896
|
+
qc: '',
|
|
1897
|
+
qcComplete: '',
|
|
1898
|
+
qcHouse: '',
|
|
1886
1899
|
});
|
|
1887
1900
|
}, []);
|
|
1888
1901
|
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 }));
|
|
@@ -3091,7 +3104,7 @@
|
|
|
3091
3104
|
|
|
3092
3105
|
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" }) })));
|
|
3093
3106
|
|
|
3094
|
-
const Dialog = JSX(({ className, head, children, onClose, onClick }) => (jsxs("div", { className: style('relative
|
|
3107
|
+
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 })] })));
|
|
3095
3108
|
|
|
3096
3109
|
// TODO Перенесено как есть из openDocument. Требует рефакторинга
|
|
3097
3110
|
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" })] })));
|
|
@@ -3125,7 +3138,7 @@
|
|
|
3125
3138
|
|
|
3126
3139
|
const CalculatorStyle = {
|
|
3127
3140
|
wrapper: 'flex flex-col justify-between lg:flex-row gap-x-4xl gap-y-7 lg:gap-y-4xl',
|
|
3128
|
-
input: 'flex flex-col lg:
|
|
3141
|
+
input: 'flex flex-col lg:w-1/2 gap-2xl',
|
|
3129
3142
|
result: 'flex flex-col gap-y-xl min-w-52',
|
|
3130
3143
|
};
|
|
3131
3144
|
|
|
@@ -6375,7 +6388,7 @@
|
|
|
6375
6388
|
APPROVED: jsx(SuccessStatusContent$1, {}),
|
|
6376
6389
|
REVISION: jsx(ReworkStatusContent$1, {}),
|
|
6377
6390
|
};
|
|
6378
|
-
return statusesMap[status] ||
|
|
6391
|
+
return statusesMap[status] || jsx(ReworkStatusContent$1, {});
|
|
6379
6392
|
};
|
|
6380
6393
|
|
|
6381
6394
|
const formStateMap$1 = [
|
|
@@ -6720,6 +6733,7 @@
|
|
|
6720
6733
|
};
|
|
6721
6734
|
|
|
6722
6735
|
const useCreditCardFormAPI = ({ step, inputs, onNextStep, saveStep, finishForm, }) => {
|
|
6736
|
+
const isFinalStep = step === 5;
|
|
6723
6737
|
const [taskId] = useLocalStorage('taskId');
|
|
6724
6738
|
const [profileId] = useLocalStorage('profileId');
|
|
6725
6739
|
const [participantId] = useLocalStorage('participantId');
|
|
@@ -6731,20 +6745,21 @@
|
|
|
6731
6745
|
saveStep(formData);
|
|
6732
6746
|
try {
|
|
6733
6747
|
if (taskId && profileId && participantId) {
|
|
6734
|
-
await updateUserTask(getCreditCardFormTaskData({
|
|
6748
|
+
const response = await updateUserTask(getCreditCardFormTaskData({
|
|
6735
6749
|
participantId,
|
|
6736
6750
|
taskId,
|
|
6737
6751
|
profileId,
|
|
6738
6752
|
step,
|
|
6739
6753
|
formData: formData,
|
|
6740
6754
|
}));
|
|
6755
|
+
resetForm$1(isFinalStep, response);
|
|
6741
6756
|
}
|
|
6742
6757
|
}
|
|
6743
6758
|
catch (ex) {
|
|
6744
6759
|
return 'Fail';
|
|
6745
6760
|
}
|
|
6746
6761
|
onNextStep();
|
|
6747
|
-
if (
|
|
6762
|
+
if (isFinalStep) {
|
|
6748
6763
|
finishForm?.(true);
|
|
6749
6764
|
}
|
|
6750
6765
|
return 'OK';
|
|
@@ -6753,6 +6768,11 @@
|
|
|
6753
6768
|
handleSubmit,
|
|
6754
6769
|
};
|
|
6755
6770
|
};
|
|
6771
|
+
const resetForm$1 = (isFinalStep, response) => {
|
|
6772
|
+
if (isFinalStep && response.ok) {
|
|
6773
|
+
globalThis.localStorage.removeItem('leadForm');
|
|
6774
|
+
}
|
|
6775
|
+
};
|
|
6756
6776
|
const getValue$2 = (formData) => (name) => formData[name];
|
|
6757
6777
|
|
|
6758
6778
|
const CreditCardFormStep = JSX(({ step, sections, onPrevStep, onNextStep, isFormFinished, finishForm }) => {
|
|
@@ -7275,7 +7295,7 @@
|
|
|
7275
7295
|
APPROVED: jsx(SuccessStatusContent, {}),
|
|
7276
7296
|
REVISION: jsx(ReworkStatusContent, {}),
|
|
7277
7297
|
};
|
|
7278
|
-
return statusesMap[status] ||
|
|
7298
|
+
return statusesMap[status] || jsx(ReworkStatusContent, {});
|
|
7279
7299
|
};
|
|
7280
7300
|
|
|
7281
7301
|
const formStateMap = [
|
|
@@ -7592,6 +7612,7 @@
|
|
|
7592
7612
|
};
|
|
7593
7613
|
|
|
7594
7614
|
const useCreditFormAPI = ({ step, inputs, onNextStep, saveStep, finishForm, }) => {
|
|
7615
|
+
const isFinalStep = step === 5;
|
|
7595
7616
|
const [taskId] = useLocalStorage('taskId');
|
|
7596
7617
|
const [profileId] = useLocalStorage('profileId');
|
|
7597
7618
|
const [participantId] = useLocalStorage('participantId');
|
|
@@ -7603,20 +7624,21 @@
|
|
|
7603
7624
|
saveStep(formData);
|
|
7604
7625
|
try {
|
|
7605
7626
|
if (taskId && profileId && participantId) {
|
|
7606
|
-
await updateUserTask(getCreditFormTaskData({
|
|
7627
|
+
const response = await updateUserTask(getCreditFormTaskData({
|
|
7607
7628
|
participantId,
|
|
7608
7629
|
taskId,
|
|
7609
7630
|
profileId,
|
|
7610
7631
|
step,
|
|
7611
7632
|
formData: formData,
|
|
7612
7633
|
}));
|
|
7634
|
+
resetForm(isFinalStep, response);
|
|
7613
7635
|
}
|
|
7614
7636
|
}
|
|
7615
7637
|
catch (ex) {
|
|
7616
7638
|
return 'Fail';
|
|
7617
7639
|
}
|
|
7618
7640
|
onNextStep();
|
|
7619
|
-
if (
|
|
7641
|
+
if (isFinalStep) {
|
|
7620
7642
|
finishForm?.(true);
|
|
7621
7643
|
}
|
|
7622
7644
|
return 'OK';
|
|
@@ -7625,6 +7647,11 @@
|
|
|
7625
7647
|
handleSubmit,
|
|
7626
7648
|
};
|
|
7627
7649
|
};
|
|
7650
|
+
const resetForm = (isFinalStep, response) => {
|
|
7651
|
+
if (isFinalStep && response.ok) {
|
|
7652
|
+
globalThis.localStorage.removeItem('leadForm');
|
|
7653
|
+
}
|
|
7654
|
+
};
|
|
7628
7655
|
const getValue = (formData) => (name) => formData[name];
|
|
7629
7656
|
|
|
7630
7657
|
const CreditFormStep = JSX(({ step, sections, onPrevStep, onNextStep, isFormFinished, finishForm, programsSource }) => {
|
|
@@ -9224,7 +9251,7 @@
|
|
|
9224
9251
|
const { button } = step;
|
|
9225
9252
|
return (jsx("div", { className: "contents", children: jsxs("div", { className: "flex items-center relative flex-row", children: [jsx("div", { className: "overflow-hidden flex flex-shrink-0 items-center", children: renderIconArea(stepsSize, stepVersion)(step, i) }), jsxs("div", { className: style('flex flex-col justify-center h-fit w-full', {
|
|
9226
9253
|
'min-h-6xl': stepsSize,
|
|
9227
|
-
}), children: [renderText(step), button?.text ? (jsx(LinkButton, { className: "box-border py-s w-full
|
|
9254
|
+
}), children: [renderText(step), button?.text ? (jsx(LinkButton, { className: "box-border py-s w-full mt-lg", version: version, ...button, children: button?.text })) : null] })] }) }, String(i)));
|
|
9228
9255
|
};
|
|
9229
9256
|
const renderIconArea = (stepsSize, stepVersion) => (step, i) => {
|
|
9230
9257
|
const iconVersion = stepVersion === 'secondary' ? 'white' : 'color';
|
|
@@ -9248,7 +9275,7 @@
|
|
|
9248
9275
|
|
|
9249
9276
|
const StickyBottomMenuItem = JSX(({ isActive, item, onClick }) => (jsxs("div", { className: style(isActive ? 'text-primary-main' : 'text-primary-text', `w-10 m-4 flex justify-center items-center flex-col text-xs cursor-pointer`), title: item?.title || '', onClick: onClick, children: [jsx(Icon, { className: "w-6 h-6", name: item?.icon?.icon, iconVersion: isActive ? 'color' : 'black' }), item?.title || ''] })));
|
|
9250
9277
|
|
|
9251
|
-
const StickyBottomMenuDialog = JSX(({ className, head, children, onClose, onClick }) => (jsxs("div", { onClick: onClick, className: style('relative
|
|
9278
|
+
const StickyBottomMenuDialog = JSX(({ className, head, children, onClose, onClick }) => (jsxs("div", { onClick: onClick, className: style('relative bg-white p-0 rounded-xl top-32', className), role: "dialog", children: [jsxs("div", { className: "sticky py-xl top-0 rounded-xl bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-1.5 right-0", onClose: onClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] })));
|
|
9252
9279
|
|
|
9253
9280
|
const useBottomMenuItemDialog = ({ menuRef, dialogRef, leftItems, rightItems, onClose, }) => {
|
|
9254
9281
|
const { open, close } = useDialogManager();
|
|
@@ -9822,8 +9849,8 @@
|
|
|
9822
9849
|
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 })) })] }));
|
|
9823
9850
|
});
|
|
9824
9851
|
|
|
9825
|
-
const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, richVersion, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m
|
|
9826
|
-
const renderIcon = () => (jsx("div", { className:
|
|
9852
|
+
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] })] })));
|
|
9853
|
+
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" }));
|
|
9827
9854
|
const renderDescription = (description) => (jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text group-data-secondary:text-white", children: description }));
|
|
9828
9855
|
|
|
9829
9856
|
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 ? (
|
|
@@ -10006,7 +10033,7 @@
|
|
|
10006
10033
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10007
10034
|
});
|
|
10008
10035
|
|
|
10009
|
-
const packageVersion = "0.14.
|
|
10036
|
+
const packageVersion = "0.14.696";
|
|
10010
10037
|
|
|
10011
10038
|
exports.Blocks = Blocks;
|
|
10012
10039
|
exports.ContentPage = ContentPage;
|