@synerise/ds-dropdown 1.3.22 → 1.4.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 +10 -0
- package/README.md +11 -0
- package/dist/components/DropdownPopover/DropdownPopover.js +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.4.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-dropdown@1.3.23...@synerise/ds-dropdown@1.4.0) (2026-08-18)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **dropdown:** report the dropdown overlay kind to the registry ([4f72550](https://github.com/synerise/synerise-design/commit/4f7255059ff36e0cc423e68ce93ec7a20f830507))
|
|
11
|
+
|
|
12
|
+
## [1.3.23](https://github.com/synerise/synerise-design/compare/@synerise/ds-dropdown@1.3.22...@synerise/ds-dropdown@1.3.23) (2026-08-14)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @synerise/ds-dropdown
|
|
15
|
+
|
|
6
16
|
## [1.3.22](https://github.com/synerise/synerise-design/compare/@synerise/ds-dropdown@1.3.21...@synerise/ds-dropdown@1.3.22) (2026-08-11)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @synerise/ds-dropdown
|
package/README.md
CHANGED
|
@@ -54,3 +54,14 @@ Dropdown UI Component
|
|
|
54
54
|
| label | Label of the button | ReactNode | - |
|
|
55
55
|
| tooltip | Tooltip content | ReactNode | - |
|
|
56
56
|
| tooltipProps | Props passed to ds-tooltip | Partial\<TooltipProps\> | - |
|
|
57
|
+
|
|
58
|
+
## Closing programmatically
|
|
59
|
+
|
|
60
|
+
`closeAllOverlays()` from `@synerise/ds-core` force-closes every open DS overlay in one call — useful when an app-level event (e.g. the active workspace changed in another tab) invalidates whatever the user is doing. This component closes through its own close path, so its handlers fire and focus is restored.
|
|
61
|
+
|
|
62
|
+
```ts
|
|
63
|
+
import { closeAllOverlays } from '@synerise/ds-core';
|
|
64
|
+
|
|
65
|
+
await closeAllOverlays();
|
|
66
|
+
await closeAllOverlays({ kinds: ['modal', 'drawer'] }); // leave tooltips alone
|
|
67
|
+
```
|
|
@@ -39,7 +39,7 @@ const DropdownPopover = ({
|
|
|
39
39
|
},
|
|
40
40
|
listRef: elementsRef
|
|
41
41
|
};
|
|
42
|
-
return /* @__PURE__ */ jsxs(Popover, { placement: floatingPlacement, trigger, modal: false, open, onOpenChange: handleOpenChange, onDismiss, transitionDuration: POPOVER_TRANSITION_DURATION, autoUpdate: true, offsetConfig: POPOVER_OFFSET_CONFIG, flipConfig: POPOVER_FLIP_CONFIG, shiftConfig: POPOVER_SHIFT_CONFIG, getTransitionConfig, getPopupContainer, listNavigationConfig, testId: "dropdown", ...popoverProps, children: [
|
|
42
|
+
return /* @__PURE__ */ jsxs(Popover, { placement: floatingPlacement, trigger, modal: false, open, onOpenChange: handleOpenChange, onDismiss, transitionDuration: POPOVER_TRANSITION_DURATION, autoUpdate: true, offsetConfig: POPOVER_OFFSET_CONFIG, flipConfig: POPOVER_FLIP_CONFIG, shiftConfig: POPOVER_SHIFT_CONFIG, getTransitionConfig, getPopupContainer, listNavigationConfig, overlayKind: "dropdown", testId: "dropdown", ...popoverProps, children: [
|
|
43
43
|
/* @__PURE__ */ jsx(PopoverTrigger, { ref: triggerRef, asChild, onClick: handleTriggerClick, ...popoverTriggerProps, children }),
|
|
44
44
|
/* @__PURE__ */ jsx(PopoverContent, { children: /* @__PURE__ */ jsx(DropdownContextProvider, { hideOnItemClick, activeIndex, setIsOpen: handleOpenChange, isOpen: !!open, children: /* @__PURE__ */ jsx(FloatingList, { elementsRef, children: /* @__PURE__ */ jsx(DropdownOverlay, { size, triggerRef, htmlAttributes: overlayHTMLAttributes, overlayStyle, overlayClassName, hideOnItemClick, content: overlay, handleItemClick }) }) }) })
|
|
45
45
|
] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-dropdown",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Dropdown UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
"types": "dist/index.d.ts",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@floating-ui/react": "^0.27.16",
|
|
46
|
-
"@synerise/ds-divider": "^1.3.
|
|
46
|
+
"@synerise/ds-divider": "^1.3.18",
|
|
47
47
|
"@synerise/ds-empty-states": "^1.0.49",
|
|
48
48
|
"@synerise/ds-icon": "^1.18.5",
|
|
49
|
-
"@synerise/ds-list-item": "^1.6.
|
|
50
|
-
"@synerise/ds-popover": "^1.
|
|
49
|
+
"@synerise/ds-list-item": "^1.6.5",
|
|
50
|
+
"@synerise/ds-popover": "^1.7.0",
|
|
51
51
|
"@synerise/ds-scrollbar": "^1.5.2",
|
|
52
|
-
"@synerise/ds-search-bar": "^1.4.
|
|
53
|
-
"@synerise/ds-tooltip": "^1.
|
|
54
|
-
"@synerise/ds-typography": "^1.1.
|
|
52
|
+
"@synerise/ds-search-bar": "^1.4.39",
|
|
53
|
+
"@synerise/ds-tooltip": "^1.6.0",
|
|
54
|
+
"@synerise/ds-typography": "^1.1.29",
|
|
55
55
|
"@synerise/ds-utils": "^1.10.2",
|
|
56
56
|
"classnames": "^2.5.1",
|
|
57
57
|
"react-window": "^1.8.11"
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"react-intl": "^6.8.7",
|
|
66
66
|
"styled-components": "^5.3.3"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "e1fece64a41fd18a78583ecb6c21ee00fe8c0759"
|
|
69
69
|
}
|