@redneckz/wildless-cms-uni-blocks 0.14.373 → 0.14.375
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/bundle.umd.js +27 -25
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/Checkbox/checkboxStyle.d.ts +1 -0
- package/bundle/ui-kit/Input/inputValidStyle.d.ts +1 -0
- package/bundle/ui-kit/YandexMap/defaultStyle.d.ts +6 -0
- package/dist/components/Carousel/renderCarouselCards.js +3 -3
- package/dist/components/Carousel/renderCarouselCards.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +2 -1
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/Checkbox/checkboxStyle.d.ts +1 -0
- package/dist/ui-kit/Checkbox/checkboxStyle.js +4 -0
- package/dist/ui-kit/Checkbox/checkboxStyle.js.map +1 -0
- package/dist/ui-kit/Input/Input.js +3 -4
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/Input/inputValidStyle.d.ts +1 -0
- package/dist/ui-kit/Input/inputValidStyle.js +4 -0
- package/dist/ui-kit/Input/inputValidStyle.js.map +1 -0
- package/dist/ui-kit/InputRange/InputRange.js +3 -2
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/InputRange/renderRangeWithTicks.js +1 -1
- package/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
- package/dist/ui-kit/LocationDialog/SearchBar.js +3 -2
- package/dist/ui-kit/LocationDialog/SearchBar.js.map +1 -1
- package/dist/ui-kit/Radio/Radio.js +4 -1
- package/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/dist/ui-kit/SearchDialog/SearchInput.js +2 -1
- package/dist/ui-kit/SearchDialog/SearchInput.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/dist/ui-kit/YandexMap/ZoomButton.js +2 -4
- package/dist/ui-kit/YandexMap/ZoomButton.js.map +1 -1
- package/dist/ui-kit/YandexMap/defaultStyle.d.ts +6 -0
- package/dist/ui-kit/YandexMap/defaultStyle.js +9 -0
- package/dist/ui-kit/YandexMap/defaultStyle.js.map +1 -0
- package/dist/ui-kit/YandexMap/renderUserGeolocation.js +2 -4
- package/dist/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Carousel/renderCarouselCards.js +3 -3
- package/lib/components/Carousel/renderCarouselCards.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +2 -1
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/Checkbox/checkboxStyle.d.ts +1 -0
- package/lib/ui-kit/Checkbox/checkboxStyle.js +2 -0
- package/lib/ui-kit/Checkbox/checkboxStyle.js.map +1 -0
- package/lib/ui-kit/Input/Input.js +3 -4
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/Input/inputValidStyle.d.ts +1 -0
- package/lib/ui-kit/Input/inputValidStyle.js +2 -0
- package/lib/ui-kit/Input/inputValidStyle.js.map +1 -0
- package/lib/ui-kit/InputRange/InputRange.js +3 -2
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/InputRange/renderRangeWithTicks.js +1 -1
- package/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
- package/lib/ui-kit/LocationDialog/SearchBar.js +3 -2
- package/lib/ui-kit/LocationDialog/SearchBar.js.map +1 -1
- package/lib/ui-kit/Radio/Radio.js +4 -1
- package/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/lib/ui-kit/SearchDialog/SearchInput.js +2 -1
- package/lib/ui-kit/SearchDialog/SearchInput.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/lib/ui-kit/YandexMap/ZoomButton.js +2 -4
- package/lib/ui-kit/YandexMap/ZoomButton.js.map +1 -1
- package/lib/ui-kit/YandexMap/defaultStyle.d.ts +6 -0
- package/lib/ui-kit/YandexMap/defaultStyle.js +7 -0
- package/lib/ui-kit/YandexMap/defaultStyle.js.map +1 -0
- package/lib/ui-kit/YandexMap/renderUserGeolocation.js +2 -4
- package/lib/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +26 -24
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/Checkbox/checkboxStyle.d.ts +1 -0
- package/mobile/bundle/ui-kit/Input/inputValidStyle.d.ts +1 -0
- package/mobile/bundle/ui-kit/YandexMap/defaultStyle.d.ts +6 -0
- package/mobile/dist/components/Carousel/renderCarouselCards.js +3 -3
- package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +2 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/checkboxStyle.d.ts +1 -0
- package/mobile/dist/ui-kit/Checkbox/checkboxStyle.js +4 -0
- package/mobile/dist/ui-kit/Checkbox/checkboxStyle.js.map +1 -0
- package/mobile/dist/ui-kit/Input/Input.js +3 -4
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/Input/inputValidStyle.d.ts +1 -0
- package/mobile/dist/ui-kit/Input/inputValidStyle.js +4 -0
- package/mobile/dist/ui-kit/Input/inputValidStyle.js.map +1 -0
- package/mobile/dist/ui-kit/InputRange/InputRange.js +3 -2
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js +1 -1
- package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
- package/mobile/dist/ui-kit/LocationDialog/SearchBar.js +3 -2
- package/mobile/dist/ui-kit/LocationDialog/SearchBar.js.map +1 -1
- package/mobile/dist/ui-kit/Radio/Radio.js +4 -1
- package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/dist/ui-kit/SearchDialog/SearchInput.js +2 -1
- package/mobile/dist/ui-kit/SearchDialog/SearchInput.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/ZoomButton.js +2 -4
- package/mobile/dist/ui-kit/YandexMap/ZoomButton.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/defaultStyle.d.ts +6 -0
- package/mobile/dist/ui-kit/YandexMap/defaultStyle.js +9 -0
- package/mobile/dist/ui-kit/YandexMap/defaultStyle.js.map +1 -0
- package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.js +2 -4
- package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Carousel/renderCarouselCards.js +3 -3
- package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +2 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/checkboxStyle.d.ts +1 -0
- package/mobile/lib/ui-kit/Checkbox/checkboxStyle.js +2 -0
- package/mobile/lib/ui-kit/Checkbox/checkboxStyle.js.map +1 -0
- package/mobile/lib/ui-kit/Input/Input.js +3 -4
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/Input/inputValidStyle.d.ts +1 -0
- package/mobile/lib/ui-kit/Input/inputValidStyle.js +2 -0
- package/mobile/lib/ui-kit/Input/inputValidStyle.js.map +1 -0
- package/mobile/lib/ui-kit/InputRange/InputRange.js +3 -2
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js +1 -1
- package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
- package/mobile/lib/ui-kit/LocationDialog/SearchBar.js +3 -2
- package/mobile/lib/ui-kit/LocationDialog/SearchBar.js.map +1 -1
- package/mobile/lib/ui-kit/Radio/Radio.js +4 -1
- package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/lib/ui-kit/SearchDialog/SearchInput.js +2 -1
- package/mobile/lib/ui-kit/SearchDialog/SearchInput.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/ZoomButton.js +2 -4
- package/mobile/lib/ui-kit/YandexMap/ZoomButton.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/defaultStyle.d.ts +6 -0
- package/mobile/lib/ui-kit/YandexMap/defaultStyle.js +7 -0
- package/mobile/lib/ui-kit/YandexMap/defaultStyle.js.map +1 -0
- package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.js +2 -4
- package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/mobile/src/components/Carousel/renderCarouselCards.tsx +3 -3
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +3 -1
- package/mobile/src/ui-kit/Checkbox/checkboxStyle.tsx +1 -0
- package/mobile/src/ui-kit/Input/Input.tsx +4 -6
- package/mobile/src/ui-kit/Input/inputValidStyle.tsx +2 -0
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +8 -7
- package/mobile/src/ui-kit/InputRange/renderRangeWithTicks.tsx +1 -1
- package/mobile/src/ui-kit/LocationDialog/SearchBar.tsx +6 -2
- package/mobile/src/ui-kit/Radio/Radio.tsx +9 -3
- package/mobile/src/ui-kit/SearchDialog/SearchInput.tsx +4 -3
- package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +1 -1
- package/mobile/src/ui-kit/YandexMap/ZoomButton.tsx +2 -4
- package/mobile/src/ui-kit/YandexMap/defaultStyle.tsx +6 -0
- package/mobile/src/ui-kit/YandexMap/renderUserGeolocation.tsx +2 -4
- package/package.json +1 -1
- package/src/components/Carousel/renderCarouselCards.tsx +3 -3
- package/src/ui-kit/Checkbox/Checkbox.tsx +3 -1
- package/src/ui-kit/Checkbox/checkboxStyle.tsx +1 -0
- package/src/ui-kit/Input/Input.tsx +4 -6
- package/src/ui-kit/Input/inputValidStyle.tsx +2 -0
- package/src/ui-kit/InputRange/InputRange.tsx +8 -7
- package/src/ui-kit/InputRange/renderRangeWithTicks.tsx +1 -1
- package/src/ui-kit/LocationDialog/SearchBar.tsx +6 -2
- package/src/ui-kit/Radio/Radio.tsx +9 -3
- package/src/ui-kit/SearchDialog/SearchInput.tsx +4 -3
- package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +1 -1
- package/src/ui-kit/YandexMap/ZoomButton.tsx +2 -4
- package/src/ui-kit/YandexMap/defaultStyle.tsx +6 -0
- package/src/ui-kit/YandexMap/renderUserGeolocation.tsx +2 -4
package/bundle/bundle.umd.js
CHANGED
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
const defaultBlockDecorator = ({ blockClassName, block, render }) => render({ blockClassName, block });
|
|
229
229
|
|
|
230
230
|
const DEFAULT_ANCESTORS = [];
|
|
231
|
-
const defaultStyle = 'col-span-12';
|
|
231
|
+
const defaultStyle$1 = 'col-span-12';
|
|
232
232
|
function renderBlock$1(block, options, { className, ...extraProps } = {}) {
|
|
233
233
|
const { key, blockDecorator = defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, } = options;
|
|
234
234
|
const { type } = block;
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
}
|
|
238
238
|
const BlockComponent = type && blocksRegistry[type];
|
|
239
239
|
return blockDecorator({
|
|
240
|
-
blockClassName: style(block.style?.length ? block.style : defaultStyle, className),
|
|
240
|
+
blockClassName: style(block.style?.length ? block.style : defaultStyle$1, className),
|
|
241
241
|
block,
|
|
242
242
|
ancestors,
|
|
243
243
|
// Adjusted by decorator block and blockClassName
|
|
@@ -1111,6 +1111,8 @@
|
|
|
1111
1111
|
}) }));
|
|
1112
1112
|
});
|
|
1113
1113
|
|
|
1114
|
+
const defaultCheckStyle = 'appearance-none w-5 h-5 border-solid cursor-pointer flex-none';
|
|
1115
|
+
|
|
1114
1116
|
const CHECK_PATHS = [
|
|
1115
1117
|
{
|
|
1116
1118
|
d: 'M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z',
|
|
@@ -1128,7 +1130,7 @@
|
|
|
1128
1130
|
onChange && onChange(!value);
|
|
1129
1131
|
}, [onChange, disabled, value]);
|
|
1130
1132
|
const icon = isRadio ? (jsx("div", { className: "absolute left-1 w-3 h-3 rounded-full bg-primary-main" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "absolute left-1 ml-px block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" }));
|
|
1131
|
-
return (jsx("div", { className: className, children: jsxs("label", { className: "flex items-center relative cursor-pointer group/box", onClick: handleChange, children: [jsx("div", { className: style('
|
|
1133
|
+
return (jsx("div", { className: className, children: jsxs("label", { className: "flex items-center relative cursor-pointer group/box", onClick: handleChange, children: [jsx("div", { className: style(defaultCheckStyle, 'm-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: role(isRadio), "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled) }), value ? icon : null, text ? (jsx("div", { className: "ml-s", children: jsx(Text, { size: "text-l", font: "font-light", children: text }) })) : null] }) }));
|
|
1132
1134
|
});
|
|
1133
1135
|
const role = (isRadio = false) => (isRadio ? 'radio' : 'checkbox');
|
|
1134
1136
|
const checkboxStyle = (value = false) => style('rounded border', value ? 'bg-primary-main' : '');
|
|
@@ -1145,6 +1147,8 @@
|
|
|
1145
1147
|
|
|
1146
1148
|
const renderLabel = (label) => label ? (jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label })) : null;
|
|
1147
1149
|
|
|
1150
|
+
const inputValidStyle = 'border border-solid outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text';
|
|
1151
|
+
|
|
1148
1152
|
const Input = JSX(({ key, className = '', id, name, type = 'text', label, placeholder, value = '', valid = true, children, onChange, onFocus, onBlur, pattern, autoFocus = false, isTextarea = false, }) => {
|
|
1149
1153
|
const inputRef = useRef(null);
|
|
1150
1154
|
const handleChange = useCallback((e) => {
|
|
@@ -1158,11 +1162,9 @@
|
|
|
1158
1162
|
const defaultStyle = 'w-full border rounded-md text-primary-text outline-none p-m';
|
|
1159
1163
|
const paddingStyle = children ? 'pr-3xl' : '';
|
|
1160
1164
|
const validStyle = getValidStyle(valid);
|
|
1161
|
-
return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { className: "space-y-xs", children: [renderLabel(label), isTextarea ? (jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle, validStyle), id: style('textarea', id), name: name || id, placeholder: placeholder, value: value,
|
|
1165
|
+
return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { className: "space-y-xs", children: [renderLabel(label), isTextarea ? (jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle, validStyle), id: style('textarea', id), name: name || id, placeholder: placeholder, value: value, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key)) : (jsx("input", { type: type, className: style('h-14', defaultStyle, paddingStyle, validStyle), ref: inputRef, id: id, name: name || id, placeholder: placeholder, value: value, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, pattern: pattern }, key))] }), children] }));
|
|
1162
1166
|
});
|
|
1163
|
-
const getValidStyle = (valid) => valid
|
|
1164
|
-
? 'border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'
|
|
1165
|
-
: 'border-error';
|
|
1167
|
+
const getValidStyle = (valid) => (valid ? inputValidStyle : 'border-error');
|
|
1166
1168
|
|
|
1167
1169
|
const formatOption = (_) => _?.text || _?.key || '';
|
|
1168
1170
|
|
|
@@ -1642,14 +1644,14 @@
|
|
|
1642
1644
|
const inputStyle = {
|
|
1643
1645
|
backgroundSize: `${percentage.toFixed(2)}% 100%`,
|
|
1644
1646
|
};
|
|
1645
|
-
return (jsxs("div", { children: [list.length ? (jsx("div", { className: "absolute w-full flex justify-between -bottom-[3px] px-m", children: list.map((_, i) => (jsx("div", { className: style('w-2 h-2 rounded-full', rangeValue <= i || disabled ? 'bg-gray' : 'bg-primary-main') }, String(i)))) })) : null, jsx("div", { className: "absolute inset-x-0 -bottom-1 px-m leading-[18px]", children: jsx("input", { className: "box-border w-full m-0 cursor-pointer slider relative z-10", style: inputStyle, type: "range", min: min, max: max, step: step, value: rangeValue, disabled: disabled,
|
|
1647
|
+
return (jsxs("div", { children: [list.length ? (jsx("div", { className: "absolute w-full flex justify-between -bottom-[3px] px-m", children: list.map((_, i) => (jsx("div", { className: style('w-2 h-2 rounded-full', rangeValue <= i || disabled ? 'bg-gray' : 'bg-primary-main') }, String(i)))) })) : null, jsx("div", { className: "absolute inset-x-0 -bottom-1 px-m leading-[18px]", children: jsx("input", { className: "box-border w-full m-0 cursor-pointer slider relative z-10", style: inputStyle, type: "range", min: min, max: max, step: step, value: rangeValue, disabled: disabled, onChange: ((ev) => {
|
|
1646
1648
|
const rawValue = parseDecimal(ev.target?.value);
|
|
1647
1649
|
const newValue = list.length ? list[rawValue] : rawValue;
|
|
1648
1650
|
onChange && onChange(newValue || 0);
|
|
1649
1651
|
}) }) })] }));
|
|
1650
1652
|
}
|
|
1651
1653
|
|
|
1652
|
-
const
|
|
1654
|
+
const inputDisabledStyle = 'disabled:border-gray disabled:bg-main-divider';
|
|
1653
1655
|
const DEFAULT_MIN = 1;
|
|
1654
1656
|
const DEFAULT_MAX = 100;
|
|
1655
1657
|
const InputRange = JSX((props) => {
|
|
@@ -1661,7 +1663,7 @@
|
|
|
1661
1663
|
const handleChange = useCallback((ev) => {
|
|
1662
1664
|
onChange && onChange(parseDecimal(ev.target?.value));
|
|
1663
1665
|
}, [onChange]);
|
|
1664
|
-
return (jsxs("div", { className: className, children: [jsxs("label", { className: "block relative", children: [title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: title })) : null, jsx("input", { className: style('
|
|
1666
|
+
return (jsxs("div", { className: className, children: [jsxs("label", { className: "block relative", children: [title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: title })) : null, jsx("input", { className: style('text-h3 w-full h-14', 'pl-m mt-xs box-border', 'text-primary-text', inputValidStyle, inputDisabledStyle), disabled: disabled, onChange: handleChange, ...normalizedProps }), renderRangeWithTicks({ list, min, max, step, disabled, value, onChange })] }), renderRangeCaption(items)] }));
|
|
1665
1667
|
});
|
|
1666
1668
|
const closestValue = (list) => (_) => list.reduce((prev, curr) => (Math.abs(curr - _) < Math.abs(prev - _) ? curr : prev));
|
|
1667
1669
|
const renderRangeCaption = (items) => (jsx("div", { className: "flex justify-between my-xs", children: items.map((item, i) => (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: item }, String(i)))) }));
|
|
@@ -1752,7 +1754,7 @@
|
|
|
1752
1754
|
|
|
1753
1755
|
const UltraPremiumField = JSX(({ field }) => (jsx(SelectControl, { label: "\u0422\u0438\u043F \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F", options: SERVICE_TYPES, ...withValidator(field('serviceType'), validatorObj.serviceType) })));
|
|
1754
1756
|
|
|
1755
|
-
const Radio = JSX(({ name, text, value, checked, onChange, className }) => (jsx("div", { className: className, children: jsxs("label", { className: "font-sans flex gap-s items-center relative cursor-pointer", children: [jsx("input", { className:
|
|
1757
|
+
const Radio = JSX(({ name, text, value, checked, onChange, className }) => (jsx("div", { className: className, children: jsxs("label", { className: "font-sans flex gap-s items-center relative cursor-pointer", children: [jsx("input", { className: style(inputValidStyle, defaultCheckStyle, 'flex justify-center items-center after:block after:w-2.5 after:h-2.5 after:rounded-full rounded-full', 'checked:border-2 checked:!border-primary-main focus:checked:border-primary-main checked:after:bg-primary-main'), type: "radio", value: value, name: name, checked: checked, onChange: (_) => onChange?.(_.target.value), role: "radio" }), text ? jsx(Text, { color: "text-primary-text", children: text }) : null] }) })));
|
|
1756
1758
|
|
|
1757
1759
|
const VED_TYPES = [
|
|
1758
1760
|
'currencyControl',
|
|
@@ -2045,7 +2047,7 @@
|
|
|
2045
2047
|
return (jsx("div", { className: style('inline-block snap-always box-border', className), style: inlineStyle, "aria-current": Boolean(idx === activeIndex), ref: ref, role: "listitem", children: children }));
|
|
2046
2048
|
});
|
|
2047
2049
|
|
|
2048
|
-
const childStyleMap = ['min-w-full', '
|
|
2050
|
+
const childStyleMap = ['min-w-full', 'lg:min-w-[50%]', 'lg:min-w-[33.3%]', 'lg:min-w-[25%]'];
|
|
2049
2051
|
const SwipeListContainer = JSX(({ className, itemClassName, containerRef, activeIndex, visibleItemCount = 0, gap = 0, padding = 0, listType = 'horizontal-list', snapAlign = 'snap-center', minHeight, children, onVisibleItemsChange, onVisibleIndicesChange, }) => {
|
|
2050
2052
|
const observerOptions = {
|
|
2051
2053
|
sensitivity: 1,
|
|
@@ -2231,9 +2233,9 @@
|
|
|
2231
2233
|
|
|
2232
2234
|
const cardBaseStyle = 'relative h-full';
|
|
2233
2235
|
const CARD_SIZE_MAP = {
|
|
2234
|
-
small: '
|
|
2235
|
-
normal: '
|
|
2236
|
-
big: '
|
|
2236
|
+
small: 'lg:min-w-64',
|
|
2237
|
+
normal: 'lg:min-w-80 xl:min-w-96',
|
|
2238
|
+
big: 'lg:min-w-[515px]',
|
|
2237
2239
|
};
|
|
2238
2240
|
const renderCarouselCards = ({ noCardBorder, activeIndex, cardSize = 'normal', ...rest }) => {
|
|
2239
2241
|
const { blocks: childBlocks } = rest.block || {};
|
|
@@ -3647,7 +3649,7 @@
|
|
|
3647
3649
|
const handleChange = useCallback((ev) => {
|
|
3648
3650
|
onChange && onChange(ev.target?.value || '');
|
|
3649
3651
|
}, [onChange]);
|
|
3650
|
-
return (jsxs("div", { className: style('
|
|
3652
|
+
return (jsxs("div", { className: style('relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-m pointer-events-none", children: jsx(Img, { image: { icon: 'LoupeIcon', iconVersion: 'black' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-14 w-full px-10 text-l text-black box-border rounded-md', inputValidStyle), value: value, type: "text", name: "search-bar-input", placeholder: placeholder, autoFocus: autoFocus, onChange: handleChange, onFocus: onFocus })] }));
|
|
3651
3653
|
});
|
|
3652
3654
|
|
|
3653
3655
|
const DepositoryFilter = JSX(({ field, onClearFilter, filtrationState }) => (jsxs("div", { className: "grid grid-cols-12 mb-3xl space-x-xl", children: [jsx(SearchInput, { className: "col-span-4 mt-auto", placeholder: "\u041F\u043E\u0438\u0441\u043A", ...field('query') }), jsx(DatePicker, { className: "col-span-3", label: "\u041F\u0435\u0440\u0438\u043E\u0434 \u043E\u0442", maxDate: filtrationState.endDate, ...field('startDate') }), jsx(DatePicker, { className: "col-span-3", label: "\u041F\u0435\u0440\u0438\u043E\u0434 \u0434\u043E", minDate: filtrationState.startDate, ...field('endDate') }), jsx("div", { className: "col-span-2 mt-auto", children: jsx(Button, { type: "reset", className: "w-full", version: "secondary", onClick: onClearFilter, children: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C" }) })] })));
|
|
@@ -4295,8 +4297,7 @@
|
|
|
4295
4297
|
const renderRegionGroup = (onChangeLocation, data) => ([letter, regions]) => (jsxs("div", { className: "break-inside-avoid mb-2xl w-56", children: [jsx("div", { className: "mb-s", children: jsx(Text, { size: "text-h6", children: letter }) }), regions.map(renderRegion(data, onChangeLocation))] }, letter));
|
|
4296
4298
|
|
|
4297
4299
|
const SearchBar = JSX(({ className, searchTerm, onSearch }) => {
|
|
4298
|
-
return (jsxs("form", { className: `font-sans relative ${className}`, children: [jsx("div", { className: "absolute rounded h-full flex items-center justify-center pl-m max-w-44 gap-s pointer-events-none", children: searchTerm ? null : (jsx("label", { htmlFor: "search-bar-input", className: `text-secondary-text `, children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0444\u0438\u043B\u0438\u0430\u043B\u0430\u043C" })) }), jsx("input", { id: "search-bar-input", className: `h-12 pl-m w-full peer text-l text-black
|
|
4299
|
-
outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text`, value: searchTerm, onChange: (e) => onSearch(e.target.value.toLowerCase()), type: "text", name: "location-search-bar-input" })] }));
|
|
4300
|
+
return (jsxs("form", { className: `font-sans relative ${className}`, children: [jsx("div", { className: "absolute rounded h-full flex items-center justify-center pl-m max-w-44 gap-s pointer-events-none", children: searchTerm ? null : (jsx("label", { htmlFor: "search-bar-input", className: `text-secondary-text `, children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0444\u0438\u043B\u0438\u0430\u043B\u0430\u043C" })) }), jsx("input", { id: "search-bar-input", className: style(inputValidStyle, `h-12 pl-m w-full peer text-l text-black rounded-md box-border`), value: searchTerm, onChange: (e) => onSearch(e.target.value.toLowerCase()), type: "text", name: "location-search-bar-input" })] }));
|
|
4300
4301
|
});
|
|
4301
4302
|
|
|
4302
4303
|
const SEARCH_TERM_MIN_LENGTH = 3;
|
|
@@ -4912,13 +4913,17 @@
|
|
|
4912
4913
|
}));
|
|
4913
4914
|
};
|
|
4914
4915
|
|
|
4915
|
-
const
|
|
4916
|
+
const defaultStyle = {
|
|
4916
4917
|
focus: 'focus:border-primary-text focus:border',
|
|
4917
4918
|
hover: 'hover:bg-primary-hover',
|
|
4918
4919
|
active: 'active:bg-primary-active',
|
|
4920
|
+
font: 'text-center font-sans',
|
|
4921
|
+
};
|
|
4922
|
+
|
|
4923
|
+
const styles$1 = {
|
|
4924
|
+
...defaultStyle,
|
|
4919
4925
|
border: 'border border-transparent rounded-md',
|
|
4920
4926
|
position: 'absolute flex items-center justify-center',
|
|
4921
|
-
font: 'text-center font-sans',
|
|
4922
4927
|
};
|
|
4923
4928
|
const renderUserGeolocation = (map, yandexMaps, className) => {
|
|
4924
4929
|
const setUserGeoLocation = () => {
|
|
@@ -4944,12 +4949,9 @@
|
|
|
4944
4949
|
};
|
|
4945
4950
|
|
|
4946
4951
|
const styles = {
|
|
4947
|
-
|
|
4948
|
-
hover: 'hover:bg-primary-hover',
|
|
4949
|
-
active: 'active:bg-primary-active',
|
|
4952
|
+
...defaultStyle,
|
|
4950
4953
|
border: 'border-b border-b-2 border-gray last:border-0',
|
|
4951
4954
|
position: 'relative flex items-center justify-center',
|
|
4952
|
-
font: 'text-center font-sans text-l',
|
|
4953
4955
|
};
|
|
4954
4956
|
// TODO: Добавить метод определения центральной точки
|
|
4955
4957
|
const ZoomButton = JSX(({ yandexMaps, direction = 'in' }) => {
|
|
@@ -6316,7 +6318,7 @@
|
|
|
6316
6318
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6317
6319
|
});
|
|
6318
6320
|
|
|
6319
|
-
const packageVersion = "0.14.
|
|
6321
|
+
const packageVersion = "0.14.374";
|
|
6320
6322
|
|
|
6321
6323
|
exports.Blocks = Blocks;
|
|
6322
6324
|
exports.ContentPage = ContentPage;
|