@redneckz/wildless-cms-uni-blocks 0.14.119 → 0.14.121
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +8 -8
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +6 -22
- package/bundle/ui-kit/BaseFiltration/renderFiltrationForm.d.ts +2 -2
- package/bundle/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +3 -7
- package/dist/components/Footer/Contacts.js +5 -4
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +6 -22
- package/dist/ui-kit/BaseFiltration/renderFiltrationForm.d.ts +2 -2
- package/dist/ui-kit/BaseFiltration/renderFiltrationForm.js +1 -1
- package/dist/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
- package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +3 -7
- package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +2 -2
- package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
- package/lib/components/Footer/Contacts.js +5 -4
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +6 -22
- package/lib/ui-kit/BaseFiltration/renderFiltrationForm.d.ts +2 -2
- package/lib/ui-kit/BaseFiltration/renderFiltrationForm.js +1 -1
- package/lib/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
- package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +3 -7
- package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +2 -2
- package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +8 -8
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +6 -22
- package/mobile/bundle/ui-kit/BaseFiltration/renderFiltrationForm.d.ts +2 -2
- package/mobile/bundle/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +3 -7
- package/mobile/dist/components/Footer/Contacts.js +5 -4
- package/mobile/dist/components/Footer/Contacts.js.map +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +6 -22
- package/mobile/dist/ui-kit/BaseFiltration/renderFiltrationForm.d.ts +2 -2
- package/mobile/dist/ui-kit/BaseFiltration/renderFiltrationForm.js +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
- package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +3 -7
- package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +2 -2
- package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
- package/mobile/lib/components/Footer/Contacts.js +5 -4
- package/mobile/lib/components/Footer/Contacts.js.map +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +6 -22
- package/mobile/lib/ui-kit/BaseFiltration/renderFiltrationForm.d.ts +2 -2
- package/mobile/lib/ui-kit/BaseFiltration/renderFiltrationForm.js +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
- package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +3 -7
- package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +2 -2
- package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
- package/mobile/src/components/DepositFiltration/DepositFiltration.example.json +2 -1
- package/mobile/src/components/Footer/Contacts.tsx +14 -9
- package/mobile/src/ui-kit/BaseFiltration/BaseFiltrationContent.ts +6 -24
- package/mobile/src/ui-kit/BaseFiltration/renderFiltrationForm.tsx +6 -3
- package/mobile/src/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.tsx +6 -11
- package/package.json +1 -1
- package/src/components/DepositFiltration/DepositFiltration.example.json +2 -1
- package/src/components/DepositFiltration/DepositFiltration.fixture.tsx +1 -0
- package/src/components/Footer/Contacts.tsx +14 -9
- package/src/ui-kit/BaseFiltration/BaseFiltrationContent.ts +6 -24
- package/src/ui-kit/BaseFiltration/renderFiltrationForm.tsx +6 -3
- package/src/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.tsx +6 -11
package/bundle/bundle.umd.js
CHANGED
|
@@ -3313,12 +3313,12 @@
|
|
|
3313
3313
|
if (!onChange) {
|
|
3314
3314
|
return;
|
|
3315
3315
|
}
|
|
3316
|
+
const hasAlready = value?.includes(newValue);
|
|
3316
3317
|
if (multiple) {
|
|
3317
|
-
const hasAlready = value?.includes(newValue);
|
|
3318
3318
|
onChange(hasAlready ? (value || []).filter((v) => v !== newValue) : [...(value || []), newValue]);
|
|
3319
3319
|
}
|
|
3320
3320
|
else {
|
|
3321
|
-
onChange(
|
|
3321
|
+
onChange(hasAlready ? [] : [newValue]);
|
|
3322
3322
|
}
|
|
3323
3323
|
};
|
|
3324
3324
|
return items.map((item) => (jsx(SlideCheckbox, { text: item?.title, value: [value].flatMap((_) => _).includes(item.value), onChange: () => handleChange(item.value), type: multiple ? 'checkbox' : 'radio' }, item.value)));
|
|
@@ -3337,7 +3337,7 @@
|
|
|
3337
3337
|
const renderCheckboxes = (key, field) => (item) => {
|
|
3338
3338
|
const options = item?.items?.enum?.map((e, i) => ({ value: e, title: item?.items?.enumNames?.[i] || '' })) ||
|
|
3339
3339
|
[];
|
|
3340
|
-
return (jsxs("div", { children: [item?.title ? (jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.title }) })) : null, jsx(SlideCheckboxGroup, { items: options, multiple:
|
|
3340
|
+
return (jsxs("div", { children: [item?.title ? (jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.title }) })) : null, jsx(SlideCheckboxGroup, { items: options, multiple: !item?.single, ...field(key) })] }, key));
|
|
3341
3341
|
};
|
|
3342
3342
|
|
|
3343
3343
|
const getPeriod = (source, content) => {
|
|
@@ -3979,14 +3979,14 @@
|
|
|
3979
3979
|
};
|
|
3980
3980
|
|
|
3981
3981
|
const Contacts = JSX(({ className = '', items }) => (jsxs("div", { className: className, children: [items?.length ? items.map(renderContactsGroup) : null, jsx(LinkButton, { version: "primary", className: "w-full", href: "https://old.rshb.ru/feedback/question/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })] })));
|
|
3982
|
-
const renderContactsGroup = (item, i) => (jsxs("div", { className: "mb-m", children: [jsx("div", {
|
|
3983
|
-
const renderContact = (item, index) => (jsxs("div", { className: "
|
|
3982
|
+
const renderContactsGroup = (item, i) => (jsxs("div", { className: "mb-m space-y-m", children: [jsx("div", { children: jsx(Text, { size: "text-l", font: "font-medium", children: item?.title }) }), jsx("div", { className: "space-y-m", children: item.items?.map(renderContact) })] }, String(i)));
|
|
3983
|
+
const renderContact = (item, index) => (jsxs("div", { className: "space-y-2xs", children: [jsx("div", { children: renderText(item.type, item.text) }), jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: item.description })] }, String(index)));
|
|
3984
3984
|
const renderText = (type, text = '') => {
|
|
3985
3985
|
switch (type) {
|
|
3986
3986
|
case 'tel':
|
|
3987
|
-
return (jsx("a", { className: "text-
|
|
3987
|
+
return (jsx("a", { className: "text-primary-text hover:text-primary-main no-underline", href: `tel:${formatTel(text)}`, children: jsx(Text, { size: "text-h6", children: text }) }));
|
|
3988
3988
|
case 'email':
|
|
3989
|
-
return (jsx("a", { className: "
|
|
3989
|
+
return (jsx("a", { className: "no-underline", href: `mailto:${text}`, children: jsx(Paragraph, { size: "text-xl", font: "font-light", color: "text-primary-text", children: text }) }));
|
|
3990
3990
|
default:
|
|
3991
3991
|
return jsx("span", { children: text });
|
|
3992
3992
|
}
|
|
@@ -5792,7 +5792,7 @@
|
|
|
5792
5792
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
|
|
5793
5793
|
}
|
|
5794
5794
|
|
|
5795
|
-
const packageVersion = "0.14.
|
|
5795
|
+
const packageVersion = "0.14.120";
|
|
5796
5796
|
|
|
5797
5797
|
exports.Blocks = Blocks;
|
|
5798
5798
|
exports.ContentPage = ContentPage;
|