@synerise/ds-popconfirm 1.1.3 → 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-popconfirm@1.2.0...@synerise/ds-popconfirm@1.2.1) (2026-01-21)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-popconfirm
9
+
10
+ # [1.2.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-popconfirm@1.1.3...@synerise/ds-popconfirm@1.2.0) (2026-01-20)
11
+
12
+ ### Features
13
+
14
+ - **information-card:** migrate to popover ([de900e4](https://github.com/Synerise/synerise-design/commit/de900e4bc1c32a4bbbf175401374619e691023f2))
15
+
6
16
  ## [1.1.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-popconfirm@1.1.2...@synerise/ds-popconfirm@1.1.3) (2026-01-15)
7
17
 
8
18
  **Note:** Version bump only for package @synerise/ds-popconfirm
@@ -2,14 +2,14 @@ var _excluded = ["icon", "title", "description", "images", "imagesAutoplay", "im
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
3
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import { Carousel } from 'antd';
5
- import React, { useEffect, useMemo, useState } from 'react';
5
+ import React, { forwardRef, useEffect, useMemo, useState } from 'react';
6
6
  import { useTheme } from '@synerise/ds-core';
7
7
  import { Popover, PopoverArrow, PopoverContent, PopoverTrigger, getPlacement } from '@synerise/ds-popover';
8
8
  import ConfirmMessage from './ConfirmMessage/ConfirmMessage';
9
9
  import { POPOVER_OFFSET_CONFIG } from './Popconfirm.const';
10
10
  import * as S from './Popconfirm.styles';
11
11
  import { getTransitionConfig } from './utils/getTransitionConfig';
12
- var Popconfirm = function Popconfirm(_ref) {
12
+ var Popconfirm = /*#__PURE__*/forwardRef(function (_ref, ref) {
13
13
  var icon = _ref.icon,
14
14
  title = _ref.title,
15
15
  description = _ref.description,
@@ -93,6 +93,7 @@ var Popconfirm = function Popconfirm(_ref) {
93
93
  getTransitionConfig: getTransitionConfig,
94
94
  testId: "popconfirm"
95
95
  }, rest), /*#__PURE__*/React.createElement(PopoverTrigger, {
96
+ ref: ref,
96
97
  asChild: asChild,
97
98
  onClick: handleTriggerClick
98
99
  }, children), /*#__PURE__*/React.createElement(PopoverContent, null, /*#__PURE__*/React.createElement(S.PopconfirmContainer, {
@@ -133,7 +134,8 @@ var Popconfirm = function Popconfirm(_ref) {
133
134
  d: "M7.49919 7L2.15928e-05 5.96025e-07L15 1.90737e-06L7.49919 7Z",
134
135
  fill: "currentColor"
135
136
  }))))));
136
- };
137
+ });
138
+
137
139
  /**
138
140
  * @deprecated - use named import instead
139
141
  *
@@ -1,4 +1,4 @@
1
- import { type CSSProperties, type MouseEvent, type ReactNode } from 'react';
1
+ import { type CSSProperties, type ForwardRefExoticComponent, type MouseEvent, type ReactNode, type RefAttributes } from 'react';
2
2
  import { type ButtonProps } from '@synerise/ds-button';
3
3
  import { type LegacyPopconfirmPlacement, type PopoverOptions } from '@synerise/ds-popover';
4
4
  import { type ConfirmMessageProps } from './ConfirmMessage/ConfirmMessage.types';
@@ -34,7 +34,6 @@ export type PopconfirmProps = {
34
34
  zIndex?: number;
35
35
  icon?: ReactNode;
36
36
  } & Partial<Pick<PopoverOptions, 'open' | 'onOpenChange' | 'trigger' | 'getPopupContainer' | 'offsetConfig' | 'flipConfig' | 'shiftConfig'>>;
37
- export type PopconfirmType = {
38
- (props: PopconfirmProps): JSX.Element;
37
+ export type PopconfirmType = ForwardRefExoticComponent<PopconfirmProps & RefAttributes<HTMLElement>> & {
39
38
  ConfirmMessage: (props: ConfirmMessageProps) => JSX.Element;
40
39
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-popconfirm",
3
- "version": "1.1.3",
3
+ "version": "1.2.1",
4
4
  "description": "Popconfirm UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "@synerise/ds-button": "^1.5.5",
39
39
  "@synerise/ds-icon": "^1.10.0",
40
- "@synerise/ds-popover": "^1.2.0",
40
+ "@synerise/ds-popover": "^1.3.1",
41
41
  "@synerise/ds-utils": "^1.5.3"
42
42
  },
43
43
  "devDependencies": {
@@ -50,5 +50,5 @@
50
50
  "react": ">=16.9.0 <= 18.3.1",
51
51
  "styled-components": "^5.3.3"
52
52
  },
53
- "gitHead": "4cde643d1f63a4b47e84707a13b1b1d138730d53"
53
+ "gitHead": "1ab50150aadeb21d9464b1558d0d1ea8808b85e5"
54
54
  }