@snack-uikit/list 0.31.1 → 0.31.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 0.31.2 (2025-07-09)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **PDS-2584:** fix scroll size ([f4a253e](https://github.com/cloud-ru-tech/snack-uikit/commit/f4a253e7f6d62094167219c4006e05e2b255cb50))
12
+
13
+
14
+
15
+
16
+
6
17
  ## 0.31.1 (2025-07-07)
7
18
 
8
19
 
package/README.md CHANGED
@@ -65,6 +65,7 @@
65
65
  | open | `boolean` | - | Управляет состоянием показан/не показан. |
66
66
  | onOpenChange | `(isOpen: boolean) => void` | - | Колбек отображения компонента. Срабатывает при изменении состояния open. |
67
67
  | widthStrategy | enum PopoverWidthStrategy: `"auto"`, `"gte"`, `"eq"` | auto | Стратегия управления шириной контейнера поповера <br> - `auto` - соответствует ширине контента, <br> - `gte` - Great Than or Equal, равен ширине таргета или больше ее, если контент в поповере шире, <br> - `eq` - Equal, строго равен ширине таргета. |
68
+ | closeOnPopstate | `boolean` | - | Закрывать ли поповер при пекреходе по истории браузера |
68
69
  | trigger | enum Trigger: `"click"`, `"hover"`, `"focusVisible"`, `"focus"`, `"hoverAndFocusVisible"`, `"hoverAndFocus"`, `"clickAndFocusVisible"` | - | Условие отображения поповера: <br> - `click` - открывать по клику <br> - `hover` - открывать по ховеру <br> - `focusVisible` - открывать по focus-visible <br> - `focus` - открывать по фокусу <br> - `hoverAndFocusVisible` - открывать по ховеру и focus-visible <br> - `hoverAndFocus` - открывать по ховеру и фокусу <br> - `clickAndFocusVisible` - открывать по клику и focus-visible |
69
70
  | placement | enum Placement: `"left"`, `"left-start"`, `"left-end"`, `"right"`, `"right-start"`, `"right-end"`, `"top"`, `"top-start"`, `"top-end"`, `"bottom"`, `"bottom-start"`, `"bottom-end"` | top | Положение поповера относительно своего триггера (children). |
70
71
  | className | `string` | - | CSS-класс |
@@ -245,7 +245,7 @@ exports.ListPrivate = (0, react_1.forwardRef)((_a, ref) => {
245
245
  [styles_module_scss_1.default.scrollContainerL]: scroll && limitedScrollHeight && size === 'l'
246
246
  }, scrollContainerClassName),
247
247
  barHideStrategy: barHideStrategy,
248
- size: size === 's' ? 's' : 'm',
248
+ size: 's',
249
249
  ref: (0, merge_refs_1.default)(innerScrollRef, scrollContainerRef),
250
250
  untouchableScrollbars: untouchableScrollbars,
251
251
  onScroll: onScroll,
@@ -139,7 +139,7 @@ export const ListPrivate = forwardRef((_a, ref) => {
139
139
  [commonStyles.scrollContainerS]: scroll && limitedScrollHeight && size === 's',
140
140
  [commonStyles.scrollContainerM]: scroll && limitedScrollHeight && size === 'm',
141
141
  [commonStyles.scrollContainerL]: scroll && limitedScrollHeight && size === 'l',
142
- }, scrollContainerClassName), barHideStrategy: barHideStrategy, size: size === 's' ? 's' : 'm', ref: mergeRefs(innerScrollRef, scrollContainerRef), untouchableScrollbars: untouchableScrollbars, onScroll: onScroll, onInitialized: onScrollInitialized, children: [content, _jsx("div", { className: styles.scrollStub, ref: scrollRef })] })) : (_jsx(_Fragment, { children: content })), Number(pinBottom === null || pinBottom === void 0 ? void 0 : pinBottom.length) > 0 && _jsx(PinBottomGroupItem, { children: itemsPinBottomJSX }), footer && (_jsx("div", { className: styles.footer, onFocus: stopPropagation, children: footer }))] })));
142
+ }, scrollContainerClassName), barHideStrategy: barHideStrategy, size: 's', ref: mergeRefs(innerScrollRef, scrollContainerRef), untouchableScrollbars: untouchableScrollbars, onScroll: onScroll, onInitialized: onScrollInitialized, children: [content, _jsx("div", { className: styles.scrollStub, ref: scrollRef })] })) : (_jsx(_Fragment, { children: content })), Number(pinBottom === null || pinBottom === void 0 ? void 0 : pinBottom.length) > 0 && _jsx(PinBottomGroupItem, { children: itemsPinBottomJSX }), footer && (_jsx("div", { className: styles.footer, onFocus: stopPropagation, children: footer }))] })));
143
143
  if (!nested) {
144
144
  return listJSX;
145
145
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "List",
7
- "version": "0.31.1",
7
+ "version": "0.31.2",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -54,5 +54,5 @@
54
54
  "peerDependencies": {
55
55
  "@snack-uikit/locale": "*"
56
56
  },
57
- "gitHead": "9c9cc64e6c8016b01773e9a3a7233729eafc727c"
57
+ "gitHead": "e25c748c1a490abfd80ba40b9ef26c077080af29"
58
58
  }
@@ -277,7 +277,7 @@ export const ListPrivate = forwardRef(
277
277
  scrollContainerClassName,
278
278
  )}
279
279
  barHideStrategy={barHideStrategy}
280
- size={size === 's' ? 's' : 'm'}
280
+ size={ 's' }
281
281
  ref={mergeRefs(innerScrollRef, scrollContainerRef)}
282
282
  untouchableScrollbars={untouchableScrollbars}
283
283
  onScroll={onScroll}