@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.
Files changed (165) hide show
  1. package/bundle/bundle.umd.js +27 -25
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/ui-kit/Checkbox/checkboxStyle.d.ts +1 -0
  4. package/bundle/ui-kit/Input/inputValidStyle.d.ts +1 -0
  5. package/bundle/ui-kit/YandexMap/defaultStyle.d.ts +6 -0
  6. package/dist/components/Carousel/renderCarouselCards.js +3 -3
  7. package/dist/components/Carousel/renderCarouselCards.js.map +1 -1
  8. package/dist/ui-kit/Checkbox/Checkbox.js +2 -1
  9. package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  10. package/dist/ui-kit/Checkbox/checkboxStyle.d.ts +1 -0
  11. package/dist/ui-kit/Checkbox/checkboxStyle.js +4 -0
  12. package/dist/ui-kit/Checkbox/checkboxStyle.js.map +1 -0
  13. package/dist/ui-kit/Input/Input.js +3 -4
  14. package/dist/ui-kit/Input/Input.js.map +1 -1
  15. package/dist/ui-kit/Input/inputValidStyle.d.ts +1 -0
  16. package/dist/ui-kit/Input/inputValidStyle.js +4 -0
  17. package/dist/ui-kit/Input/inputValidStyle.js.map +1 -0
  18. package/dist/ui-kit/InputRange/InputRange.js +3 -2
  19. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  20. package/dist/ui-kit/InputRange/renderRangeWithTicks.js +1 -1
  21. package/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
  22. package/dist/ui-kit/LocationDialog/SearchBar.js +3 -2
  23. package/dist/ui-kit/LocationDialog/SearchBar.js.map +1 -1
  24. package/dist/ui-kit/Radio/Radio.js +4 -1
  25. package/dist/ui-kit/Radio/Radio.js.map +1 -1
  26. package/dist/ui-kit/SearchDialog/SearchInput.js +2 -1
  27. package/dist/ui-kit/SearchDialog/SearchInput.js.map +1 -1
  28. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  29. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  30. package/dist/ui-kit/YandexMap/ZoomButton.js +2 -4
  31. package/dist/ui-kit/YandexMap/ZoomButton.js.map +1 -1
  32. package/dist/ui-kit/YandexMap/defaultStyle.d.ts +6 -0
  33. package/dist/ui-kit/YandexMap/defaultStyle.js +9 -0
  34. package/dist/ui-kit/YandexMap/defaultStyle.js.map +1 -0
  35. package/dist/ui-kit/YandexMap/renderUserGeolocation.js +2 -4
  36. package/dist/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
  37. package/lib/common.css +1 -1
  38. package/lib/components/Carousel/renderCarouselCards.js +3 -3
  39. package/lib/components/Carousel/renderCarouselCards.js.map +1 -1
  40. package/lib/ui-kit/Checkbox/Checkbox.js +2 -1
  41. package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  42. package/lib/ui-kit/Checkbox/checkboxStyle.d.ts +1 -0
  43. package/lib/ui-kit/Checkbox/checkboxStyle.js +2 -0
  44. package/lib/ui-kit/Checkbox/checkboxStyle.js.map +1 -0
  45. package/lib/ui-kit/Input/Input.js +3 -4
  46. package/lib/ui-kit/Input/Input.js.map +1 -1
  47. package/lib/ui-kit/Input/inputValidStyle.d.ts +1 -0
  48. package/lib/ui-kit/Input/inputValidStyle.js +2 -0
  49. package/lib/ui-kit/Input/inputValidStyle.js.map +1 -0
  50. package/lib/ui-kit/InputRange/InputRange.js +3 -2
  51. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  52. package/lib/ui-kit/InputRange/renderRangeWithTicks.js +1 -1
  53. package/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
  54. package/lib/ui-kit/LocationDialog/SearchBar.js +3 -2
  55. package/lib/ui-kit/LocationDialog/SearchBar.js.map +1 -1
  56. package/lib/ui-kit/Radio/Radio.js +4 -1
  57. package/lib/ui-kit/Radio/Radio.js.map +1 -1
  58. package/lib/ui-kit/SearchDialog/SearchInput.js +2 -1
  59. package/lib/ui-kit/SearchDialog/SearchInput.js.map +1 -1
  60. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  61. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  62. package/lib/ui-kit/YandexMap/ZoomButton.js +2 -4
  63. package/lib/ui-kit/YandexMap/ZoomButton.js.map +1 -1
  64. package/lib/ui-kit/YandexMap/defaultStyle.d.ts +6 -0
  65. package/lib/ui-kit/YandexMap/defaultStyle.js +7 -0
  66. package/lib/ui-kit/YandexMap/defaultStyle.js.map +1 -0
  67. package/lib/ui-kit/YandexMap/renderUserGeolocation.js +2 -4
  68. package/lib/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
  69. package/mobile/bundle/bundle.umd.js +26 -24
  70. package/mobile/bundle/bundle.umd.min.js +1 -1
  71. package/mobile/bundle/ui-kit/Checkbox/checkboxStyle.d.ts +1 -0
  72. package/mobile/bundle/ui-kit/Input/inputValidStyle.d.ts +1 -0
  73. package/mobile/bundle/ui-kit/YandexMap/defaultStyle.d.ts +6 -0
  74. package/mobile/dist/components/Carousel/renderCarouselCards.js +3 -3
  75. package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -1
  76. package/mobile/dist/ui-kit/Checkbox/Checkbox.js +2 -1
  77. package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  78. package/mobile/dist/ui-kit/Checkbox/checkboxStyle.d.ts +1 -0
  79. package/mobile/dist/ui-kit/Checkbox/checkboxStyle.js +4 -0
  80. package/mobile/dist/ui-kit/Checkbox/checkboxStyle.js.map +1 -0
  81. package/mobile/dist/ui-kit/Input/Input.js +3 -4
  82. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  83. package/mobile/dist/ui-kit/Input/inputValidStyle.d.ts +1 -0
  84. package/mobile/dist/ui-kit/Input/inputValidStyle.js +4 -0
  85. package/mobile/dist/ui-kit/Input/inputValidStyle.js.map +1 -0
  86. package/mobile/dist/ui-kit/InputRange/InputRange.js +3 -2
  87. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  88. package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js +1 -1
  89. package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
  90. package/mobile/dist/ui-kit/LocationDialog/SearchBar.js +3 -2
  91. package/mobile/dist/ui-kit/LocationDialog/SearchBar.js.map +1 -1
  92. package/mobile/dist/ui-kit/Radio/Radio.js +4 -1
  93. package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
  94. package/mobile/dist/ui-kit/SearchDialog/SearchInput.js +2 -1
  95. package/mobile/dist/ui-kit/SearchDialog/SearchInput.js.map +1 -1
  96. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  97. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  98. package/mobile/dist/ui-kit/YandexMap/ZoomButton.js +2 -4
  99. package/mobile/dist/ui-kit/YandexMap/ZoomButton.js.map +1 -1
  100. package/mobile/dist/ui-kit/YandexMap/defaultStyle.d.ts +6 -0
  101. package/mobile/dist/ui-kit/YandexMap/defaultStyle.js +9 -0
  102. package/mobile/dist/ui-kit/YandexMap/defaultStyle.js.map +1 -0
  103. package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.js +2 -4
  104. package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
  105. package/mobile/lib/common.css +1 -1
  106. package/mobile/lib/components/Carousel/renderCarouselCards.js +3 -3
  107. package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -1
  108. package/mobile/lib/ui-kit/Checkbox/Checkbox.js +2 -1
  109. package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  110. package/mobile/lib/ui-kit/Checkbox/checkboxStyle.d.ts +1 -0
  111. package/mobile/lib/ui-kit/Checkbox/checkboxStyle.js +2 -0
  112. package/mobile/lib/ui-kit/Checkbox/checkboxStyle.js.map +1 -0
  113. package/mobile/lib/ui-kit/Input/Input.js +3 -4
  114. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  115. package/mobile/lib/ui-kit/Input/inputValidStyle.d.ts +1 -0
  116. package/mobile/lib/ui-kit/Input/inputValidStyle.js +2 -0
  117. package/mobile/lib/ui-kit/Input/inputValidStyle.js.map +1 -0
  118. package/mobile/lib/ui-kit/InputRange/InputRange.js +3 -2
  119. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  120. package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js +1 -1
  121. package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
  122. package/mobile/lib/ui-kit/LocationDialog/SearchBar.js +3 -2
  123. package/mobile/lib/ui-kit/LocationDialog/SearchBar.js.map +1 -1
  124. package/mobile/lib/ui-kit/Radio/Radio.js +4 -1
  125. package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
  126. package/mobile/lib/ui-kit/SearchDialog/SearchInput.js +2 -1
  127. package/mobile/lib/ui-kit/SearchDialog/SearchInput.js.map +1 -1
  128. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  129. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  130. package/mobile/lib/ui-kit/YandexMap/ZoomButton.js +2 -4
  131. package/mobile/lib/ui-kit/YandexMap/ZoomButton.js.map +1 -1
  132. package/mobile/lib/ui-kit/YandexMap/defaultStyle.d.ts +6 -0
  133. package/mobile/lib/ui-kit/YandexMap/defaultStyle.js +7 -0
  134. package/mobile/lib/ui-kit/YandexMap/defaultStyle.js.map +1 -0
  135. package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.js +2 -4
  136. package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
  137. package/mobile/src/components/Carousel/renderCarouselCards.tsx +3 -3
  138. package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +3 -1
  139. package/mobile/src/ui-kit/Checkbox/checkboxStyle.tsx +1 -0
  140. package/mobile/src/ui-kit/Input/Input.tsx +4 -6
  141. package/mobile/src/ui-kit/Input/inputValidStyle.tsx +2 -0
  142. package/mobile/src/ui-kit/InputRange/InputRange.tsx +8 -7
  143. package/mobile/src/ui-kit/InputRange/renderRangeWithTicks.tsx +1 -1
  144. package/mobile/src/ui-kit/LocationDialog/SearchBar.tsx +6 -2
  145. package/mobile/src/ui-kit/Radio/Radio.tsx +9 -3
  146. package/mobile/src/ui-kit/SearchDialog/SearchInput.tsx +4 -3
  147. package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +1 -1
  148. package/mobile/src/ui-kit/YandexMap/ZoomButton.tsx +2 -4
  149. package/mobile/src/ui-kit/YandexMap/defaultStyle.tsx +6 -0
  150. package/mobile/src/ui-kit/YandexMap/renderUserGeolocation.tsx +2 -4
  151. package/package.json +1 -1
  152. package/src/components/Carousel/renderCarouselCards.tsx +3 -3
  153. package/src/ui-kit/Checkbox/Checkbox.tsx +3 -1
  154. package/src/ui-kit/Checkbox/checkboxStyle.tsx +1 -0
  155. package/src/ui-kit/Input/Input.tsx +4 -6
  156. package/src/ui-kit/Input/inputValidStyle.tsx +2 -0
  157. package/src/ui-kit/InputRange/InputRange.tsx +8 -7
  158. package/src/ui-kit/InputRange/renderRangeWithTicks.tsx +1 -1
  159. package/src/ui-kit/LocationDialog/SearchBar.tsx +6 -2
  160. package/src/ui-kit/Radio/Radio.tsx +9 -3
  161. package/src/ui-kit/SearchDialog/SearchInput.tsx +4 -3
  162. package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +1 -1
  163. package/src/ui-kit/YandexMap/ZoomButton.tsx +2 -4
  164. package/src/ui-kit/YandexMap/defaultStyle.tsx +6 -0
  165. package/src/ui-kit/YandexMap/renderUserGeolocation.tsx +2 -4
@@ -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('appearance-none w-5 h-5 border-solid cursor-pointer 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] }) }));
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, onInput: 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, onInput: handleChange, onFocus: onFocus, onBlur: onBlur, pattern: pattern }, key))] }), children] }));
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, onInput: ((ev) => {
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 DISABLED_INPUT_CLASSES = 'disabled:border-gray disabled:bg-main-divider';
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('mt-xs font-sans text-h3 w-full h-14', 'border border-solid border-gray rounded-md outline-none', 'pl-m box-border', 'text-primary-text hover:border-primary-hover focus:border-primary-text', DISABLED_INPUT_CLASSES), disabled: disabled, onInput: handleChange, ...normalizedProps }), renderRangeWithTicks({ list, min, max, step, disabled, value, onChange })] }), renderRangeCaption(items)] }));
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: "appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer", type: "radio", value: value, name: name, checked: checked, onChange: (_) => onChange?.(_.target.value), role: "radio" }), text ? jsx(Text, { color: "text-primary-text", children: text }) : null] }) })));
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', '@lg:min-w-[50%]', '@lg:min-w-[33.3%]', '@lg:min-w-[25%]'];
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: 'sm:min-w-64',
2235
- normal: 'sm:min-w-96',
2236
- big: 'sm:min-w-[515px]',
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('font-sans 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 outline-none box-border border border-solid rounded-md', 'border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'), value: value, type: "text", name: "search-bar-input", placeholder: placeholder, autoFocus: autoFocus, onChange: handleChange, onFocus: onFocus })] }));
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 border border-solid rounded-md box-border
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 styles$1 = {
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
- focus: 'focus:border-primary-text focus:border',
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.372";
6321
+ const packageVersion = "0.14.374";
6320
6322
 
6321
6323
  exports.Blocks = Blocks;
6322
6324
  exports.ContentPage = ContentPage;