@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.
- package/bin/migrate.js +2 -5
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +8 -8
- 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/CreditForm/CreditFormStatusTracker.js +1 -1
- package/dist/components/CreditForm/CreditFormStatusTracker.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/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/CreditForm/CreditFormStatusTracker.js +1 -1
- package/lib/components/CreditForm/CreditFormStatusTracker.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/mobile/bundle/bundle.umd.js +9 -9
- 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/CreditForm/CreditFormStatusTracker.js +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.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/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/CreditForm/CreditFormStatusTracker.js +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.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/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +1 -1
- package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -1
- 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/package.json +5 -6
- package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +1 -1
- package/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -1
- 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/bundle/bundle.umd.js
CHANGED
|
@@ -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
|
|
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:
|
|
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] ||
|
|
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] ||
|
|
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
|
|
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
|
|
10178
|
-
const renderIcon = () => (jsx("div", { className:
|
|
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.
|
|
10413
|
+
const packageVersion = "0.14.696";
|
|
10414
10414
|
|
|
10415
10415
|
exports.Blocks = Blocks;
|
|
10416
10416
|
exports.ContentPage = ContentPage;
|