@cloud-ru/ds-dropdown 1.0.17-preview-5c9b8135.0 → 1.1.0

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,12 @@
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
+ # 1.1.0 (2026-10-05)
7
+
8
+ ### Features
9
+
10
+ - **FF-9204:** add disableSpanWrapper prop ([2f4bc67](https://github.com/cloud-ru-tech/snack-v2/commit/2f4bc675bb984f18c788913dd8f5136cd4be3ed9))
11
+
6
12
  ## 1.0.16 (2026-10-01)
7
13
 
8
14
  ### Bug Fixes
@@ -3,4 +3,4 @@ import { DropdownProps } from '../../types';
3
3
  * Desktop-поверхность Dropdown'а: popover (`PopoverPrivate`) с topBar / body / bottomBar.
4
4
  * Internal — наружу не реэкспортится; рендерится адаптивным `Dropdown` по контексту раскладки.
5
5
  */
6
- export declare function DesktopDropdown({ className, children, content, title, slotAfterTitle, search, footer, headerDivider, footerDivider, state, bodyPadding, trigger, placement, triggerRef, widthStrategy, triggerClassName, ...rest }: DropdownProps): import("react/jsx-runtime").JSX.Element | null;
6
+ export declare function DesktopDropdown({ className, children, content, title, slotAfterTitle, search, footer, headerDivider, footerDivider, state, bodyPadding, trigger, placement, triggerRef, widthStrategy, triggerClassName, disableSpanWrapper, ...rest }: DropdownProps): import("react/jsx-runtime").JSX.Element | null;
@@ -15,10 +15,10 @@ const DropdownBody_1 = require("../DropdownBody");
15
15
  * Desktop-поверхность Dropdown'а: popover (`PopoverPrivate`) с topBar / body / bottomBar.
16
16
  * Internal — наружу не реэкспортится; рендерится адаптивным `Dropdown` по контексту раскладки.
17
17
  */
18
- function DesktopDropdown({ className, children, content, title, slotAfterTitle, search, footer, headerDivider, footerDivider, state, bodyPadding, trigger = 'click', placement = 'bottom-start', triggerRef, widthStrategy = 'gte', triggerClassName, ...rest }) {
18
+ function DesktopDropdown({ className, children, content, title, slotAfterTitle, search, footer, headerDivider, footerDivider, state, bodyPadding, trigger = 'click', placement = 'bottom-start', triggerRef, widthStrategy = 'gte', triggerClassName, disableSpanWrapper, ...rest }) {
19
19
  if (!children && !triggerRef) {
20
20
  return null;
21
21
  }
22
22
  const hasTopBar = Boolean(title || slotAfterTitle || search);
23
- return ((0, jsx_runtime_1.jsx)(popover_private_1.PopoverPrivate, { placement: placement, popoverContent: (0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(styles_module_scss_1.default.root, className), ...(0, utils_1.extractSupportProps)(rest), "data-acrylic-appearance": 'neutral', "data-acrylic-level": '2Level', children: [(0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.acrylic }), (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.dropdownContent, children: [hasTopBar && ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.topBar, children: [(title || slotAfterTitle) && ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.headlineWrapper, children: [title, slotAfterTitle] })), search] })), hasTopBar && headerDivider && (0, jsx_runtime_1.jsx)(divider_1.Divider, { className: styles_module_scss_1.default.headerDivider }), (0, jsx_runtime_1.jsx)(DropdownBody_1.DropdownBody, { state: state, bodyPadding: bodyPadding, children: content }), footer && footerDivider && (0, jsx_runtime_1.jsx)(divider_1.Divider, { className: styles_module_scss_1.default.footerDivider }), footer && (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.bottomBar, children: footer })] })] }), trigger: trigger, triggerRef: triggerRef, hasArrow: false, widthStrategy: widthStrategy, triggerClassName: (0, classnames_1.default)(styles_module_scss_1.default.defaultTriggerClassName, triggerClassName), ...(0, utils_1.excludeSupportProps)(rest), children: children }));
23
+ return ((0, jsx_runtime_1.jsx)(popover_private_1.PopoverPrivate, { placement: placement, popoverContent: (0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(styles_module_scss_1.default.root, className), ...(0, utils_1.extractSupportProps)(rest), "data-acrylic-appearance": 'neutral', "data-acrylic-level": '2Level', children: [(0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.acrylic }), (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.dropdownContent, children: [hasTopBar && ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.topBar, children: [(title || slotAfterTitle) && ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.headlineWrapper, children: [title, slotAfterTitle] })), search] })), hasTopBar && headerDivider && (0, jsx_runtime_1.jsx)(divider_1.Divider, { className: styles_module_scss_1.default.headerDivider }), (0, jsx_runtime_1.jsx)(DropdownBody_1.DropdownBody, { state: state, bodyPadding: bodyPadding, children: content }), footer && footerDivider && (0, jsx_runtime_1.jsx)(divider_1.Divider, { className: styles_module_scss_1.default.footerDivider }), footer && (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.bottomBar, children: footer })] })] }), trigger: trigger, triggerRef: triggerRef, hasArrow: false, widthStrategy: widthStrategy, triggerClassName: (0, classnames_1.default)(styles_module_scss_1.default.defaultTriggerClassName, triggerClassName), disableSpanWrapper: disableSpanWrapper, ...(0, utils_1.excludeSupportProps)(rest), children: children }));
24
24
  }
@@ -3,4 +3,4 @@ import { DropdownProps } from '../../types.js';
3
3
  * Desktop-поверхность Dropdown'а: popover (`PopoverPrivate`) с topBar / body / bottomBar.
4
4
  * Internal — наружу не реэкспортится; рендерится адаптивным `Dropdown` по контексту раскладки.
5
5
  */
6
- export declare function DesktopDropdown({ className, children, content, title, slotAfterTitle, search, footer, headerDivider, footerDivider, state, bodyPadding, trigger, placement, triggerRef, widthStrategy, triggerClassName, ...rest }: DropdownProps): import("react/jsx-runtime").JSX.Element | null;
6
+ export declare function DesktopDropdown({ className, children, content, title, slotAfterTitle, search, footer, headerDivider, footerDivider, state, bodyPadding, trigger, placement, triggerRef, widthStrategy, triggerClassName, disableSpanWrapper, ...rest }: DropdownProps): import("react/jsx-runtime").JSX.Element | null;
@@ -9,10 +9,10 @@ import { DropdownBody } from '../DropdownBody/index.js';
9
9
  * Desktop-поверхность Dropdown'а: popover (`PopoverPrivate`) с topBar / body / bottomBar.
10
10
  * Internal — наружу не реэкспортится; рендерится адаптивным `Dropdown` по контексту раскладки.
11
11
  */
12
- export function DesktopDropdown({ className, children, content, title, slotAfterTitle, search, footer, headerDivider, footerDivider, state, bodyPadding, trigger = 'click', placement = 'bottom-start', triggerRef, widthStrategy = 'gte', triggerClassName, ...rest }) {
12
+ export function DesktopDropdown({ className, children, content, title, slotAfterTitle, search, footer, headerDivider, footerDivider, state, bodyPadding, trigger = 'click', placement = 'bottom-start', triggerRef, widthStrategy = 'gte', triggerClassName, disableSpanWrapper, ...rest }) {
13
13
  if (!children && !triggerRef) {
14
14
  return null;
15
15
  }
16
16
  const hasTopBar = Boolean(title || slotAfterTitle || search);
17
- return (_jsx(PopoverPrivate, { placement: placement, popoverContent: _jsxs("div", { className: cn(styles.root, className), ...extractSupportProps(rest), "data-acrylic-appearance": 'neutral', "data-acrylic-level": '2Level', children: [_jsx("div", { className: styles.acrylic }), _jsxs("div", { className: styles.dropdownContent, children: [hasTopBar && (_jsxs("div", { className: styles.topBar, children: [(title || slotAfterTitle) && (_jsxs("div", { className: styles.headlineWrapper, children: [title, slotAfterTitle] })), search] })), hasTopBar && headerDivider && _jsx(Divider, { className: styles.headerDivider }), _jsx(DropdownBody, { state: state, bodyPadding: bodyPadding, children: content }), footer && footerDivider && _jsx(Divider, { className: styles.footerDivider }), footer && _jsx("div", { className: styles.bottomBar, children: footer })] })] }), trigger: trigger, triggerRef: triggerRef, hasArrow: false, widthStrategy: widthStrategy, triggerClassName: cn(styles.defaultTriggerClassName, triggerClassName), ...excludeSupportProps(rest), children: children }));
17
+ return (_jsx(PopoverPrivate, { placement: placement, popoverContent: _jsxs("div", { className: cn(styles.root, className), ...extractSupportProps(rest), "data-acrylic-appearance": 'neutral', "data-acrylic-level": '2Level', children: [_jsx("div", { className: styles.acrylic }), _jsxs("div", { className: styles.dropdownContent, children: [hasTopBar && (_jsxs("div", { className: styles.topBar, children: [(title || slotAfterTitle) && (_jsxs("div", { className: styles.headlineWrapper, children: [title, slotAfterTitle] })), search] })), hasTopBar && headerDivider && _jsx(Divider, { className: styles.headerDivider }), _jsx(DropdownBody, { state: state, bodyPadding: bodyPadding, children: content }), footer && footerDivider && _jsx(Divider, { className: styles.footerDivider }), footer && _jsx("div", { className: styles.bottomBar, children: footer })] })] }), trigger: trigger, triggerRef: triggerRef, hasArrow: false, widthStrategy: widthStrategy, triggerClassName: cn(styles.defaultTriggerClassName, triggerClassName), disableSpanWrapper: disableSpanWrapper, ...excludeSupportProps(rest), children: children }));
18
18
  }