@synerise/ds-dropdown 1.1.13 → 1.2.1

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,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.2.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-dropdown@1.2.0...@synerise/ds-dropdown@1.2.1) (2026-02-06)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-dropdown
9
+
10
+ # [1.2.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-dropdown@1.1.13...@synerise/ds-dropdown@1.2.0) (2026-02-05)
11
+
12
+ ### Features
13
+
14
+ - **tooltip:** migrate to popover ([53ecd29](https://github.com/synerise/synerise-design/commit/53ecd293fa31bdcfd921c6c5fd91db9c2c643eda))
15
+
6
16
  ## [1.1.13](https://github.com/synerise/synerise-design/compare/@synerise/ds-dropdown@1.1.12...@synerise/ds-dropdown@1.1.13) (2026-02-02)
7
17
 
8
18
  **Note:** Version bump only for package @synerise/ds-dropdown
@@ -1,6 +1,6 @@
1
1
  import { type CSSProperties, type HTMLAttributes, type ReactNode } from 'react';
2
2
  import { type OpenChangeReason } from '@floating-ui/react';
3
- import { type PopoverOptions, type PopoverTriggerType } from '@synerise/ds-popover';
3
+ import { type LegacyDropdownPlacement, type PopoverOptions, type PopoverTriggerType } from '@synerise/ds-popover';
4
4
  import { type WithHTMLAttributes } from '@synerise/ds-utils';
5
5
  export type DropdownProps = Omit<WithHTMLAttributes<HTMLDivElement, DropdownSharedProps & {
6
6
  /**
@@ -12,7 +12,7 @@ export type DropdownProps = Omit<WithHTMLAttributes<HTMLDivElement, DropdownShar
12
12
  * bottom and bottomCenter are the same - legacy types
13
13
  * top and topCenter are the same - legacy types
14
14
  */
15
- export type DropdownPlacement = 'topLeft' | 'top' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottom' | 'bottomCenter' | 'bottomRight';
15
+ export type DropdownPlacement = LegacyDropdownPlacement;
16
16
  export type DropdownSize = 'small' | 'medium' | 'large' | 'auto' | 'match-trigger' | 'min-match-trigger';
17
17
  export type DropdownSharedProps = {
18
18
  disabled?: boolean;
@@ -2,9 +2,9 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
2
2
  import React, { useRef } from 'react';
3
3
  import { FloatingList } from '@floating-ui/react';
4
4
  import { DropdownContextProvider } from '@synerise/ds-core';
5
- import { Popover, PopoverContent, PopoverTrigger } from '@synerise/ds-popover';
5
+ import { Popover, PopoverContent, PopoverTrigger, getPlacement } from '@synerise/ds-popover';
6
6
  import { POPOVER_FLIP_CONFIG, POPOVER_OFFSET_CONFIG, POPOVER_SHIFT_CONFIG, POPOVER_TRANSITION_DURATION } from '../../Dropdown.const';
7
- import { getPlacement, getTransitionConfig } from '../../utils';
7
+ import { getTransitionConfig } from '../../utils';
8
8
  import { DropdownOverlay } from '../DropdownOverlay/DropdownOverlay';
9
9
  export var DropdownPopover = function DropdownPopover(_ref) {
10
10
  var _ref$placement = _ref.placement,
@@ -1,4 +1,3 @@
1
- export * from './getPlacement';
2
1
  export * from './getTransitionConfig';
3
2
  export * from './isSplitFooter';
4
3
  export * from './getDropdownWidth';
@@ -1,4 +1,3 @@
1
- export * from './getPlacement';
2
1
  export * from './getTransitionConfig';
3
2
  export * from './isSplitFooter';
4
3
  export * from './getDropdownWidth';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-dropdown",
3
- "version": "1.1.13",
3
+ "version": "1.2.1",
4
4
  "description": "Dropdown UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -36,17 +36,18 @@
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
38
  "@floating-ui/react": "^0.27.16",
39
- "@synerise/ds-divider": "^1.2.9",
40
- "@synerise/ds-empty-states": "^1.0.28",
41
- "@synerise/ds-icon": "^1.11.0",
42
- "@synerise/ds-list-item": "^1.3.4",
43
- "@synerise/ds-popover": "^1.3.2",
44
- "@synerise/ds-scrollbar": "^1.2.7",
45
- "@synerise/ds-search-bar": "^1.4.9",
46
- "@synerise/ds-tooltip": "^1.3.7",
47
- "@synerise/ds-typography": "^1.1.2",
48
- "@synerise/ds-utils": "^1.5.4",
49
- "classnames": "^2.5.1"
39
+ "@synerise/ds-divider": "^1.2.11",
40
+ "@synerise/ds-empty-states": "^1.0.29",
41
+ "@synerise/ds-icon": "^1.11.1",
42
+ "@synerise/ds-list-item": "^1.4.1",
43
+ "@synerise/ds-popover": "^1.4.0",
44
+ "@synerise/ds-scrollbar": "^1.2.9",
45
+ "@synerise/ds-search-bar": "^1.4.11",
46
+ "@synerise/ds-tooltip": "^1.4.1",
47
+ "@synerise/ds-typography": "^1.1.4",
48
+ "@synerise/ds-utils": "^1.6.0",
49
+ "classnames": "^2.5.1",
50
+ "react-window": "^1.8.11"
50
51
  },
51
52
  "peerDependencies": {
52
53
  "@synerise/ds-core": "*",
@@ -54,5 +55,5 @@
54
55
  "react-intl": "^6.8.7",
55
56
  "styled-components": "^5.3.3"
56
57
  },
57
- "gitHead": "6a3a82f8bc80e10eeb818795035e05393550e82e"
58
+ "gitHead": "e5a4dcb266c92d3463e4d1e86ef76c87673b678a"
58
59
  }
@@ -1,3 +0,0 @@
1
- import { type Placement } from '@floating-ui/react';
2
- import { type DropdownPlacement } from '../Dropdown.types';
3
- export declare const getPlacement: (placement: DropdownPlacement) => Placement;
@@ -1,4 +0,0 @@
1
- import { PLACEMENT_MAP } from '../Dropdown.const';
2
- export var getPlacement = function getPlacement(placement) {
3
- return PLACEMENT_MAP[placement];
4
- };