@synerise/ds-popconfirm 1.2.3 → 1.3.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.3.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-popconfirm@1.2.3...@synerise/ds-popconfirm@1.3.0) (2026-02-05)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **tooltip:** migrate to popover ([53ecd29](https://github.com/Synerise/synerise-design/commit/53ecd293fa31bdcfd921c6c5fd91db9c2c643eda))
|
|
11
|
+
|
|
6
12
|
## [1.2.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-popconfirm@1.2.2...@synerise/ds-popconfirm@1.2.3) (2026-02-02)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @synerise/ds-popconfirm
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import AntdTooltip from 'antd/lib/tooltip';
|
|
2
1
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
2
|
+
import Tooltip from '@synerise/ds-tooltip';
|
|
3
3
|
import * as S from './ConfirmMessage.style';
|
|
4
4
|
export var ConfirmMessage = function ConfirmMessage(_ref) {
|
|
5
5
|
var children = _ref.children,
|
|
@@ -11,18 +11,18 @@ export var ConfirmMessage = function ConfirmMessage(_ref) {
|
|
|
11
11
|
displayDuration = _ref$displayDuration === void 0 ? 5000 : _ref$displayDuration,
|
|
12
12
|
icon = _ref.icon;
|
|
13
13
|
var _useState = useState(false),
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
open = _useState[0],
|
|
15
|
+
setOpen = _useState[1];
|
|
16
16
|
useEffect(function () {
|
|
17
17
|
var timeout = setTimeout(function () {
|
|
18
|
-
|
|
18
|
+
setOpen(false);
|
|
19
19
|
}, displayDuration);
|
|
20
20
|
return function () {
|
|
21
21
|
clearTimeout(timeout);
|
|
22
22
|
};
|
|
23
|
-
}, [
|
|
23
|
+
}, [open, displayDuration]);
|
|
24
24
|
var showMessage = function showMessage() {
|
|
25
|
-
|
|
25
|
+
setOpen(true);
|
|
26
26
|
};
|
|
27
27
|
var handleClick = useCallback(function () {
|
|
28
28
|
onClick && onClick(showMessage);
|
|
@@ -33,16 +33,12 @@ export var ConfirmMessage = function ConfirmMessage(_ref) {
|
|
|
33
33
|
return /*#__PURE__*/React.createElement(S.Message, {
|
|
34
34
|
onClick: handleClick,
|
|
35
35
|
"data-testid": "confirm-message"
|
|
36
|
-
}, /*#__PURE__*/React.createElement(
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
37
|
+
trigger: "click",
|
|
38
|
+
render: function render() {
|
|
39
|
+
return content;
|
|
39
40
|
},
|
|
40
|
-
|
|
41
|
-
title: content,
|
|
42
|
-
align: {
|
|
43
|
-
offset: [0, 0]
|
|
44
|
-
},
|
|
45
|
-
visible: visible,
|
|
41
|
+
open: open,
|
|
46
42
|
placement: placement
|
|
47
43
|
}, children));
|
|
48
44
|
};
|
|
@@ -5,5 +5,5 @@ export type ConfirmMessageProps = {
|
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
onClick: (callback: () => void) => void;
|
|
7
7
|
icon?: ReactNode;
|
|
8
|
-
placement?: 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight'
|
|
8
|
+
placement?: 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
9
9
|
};
|
package/dist/Popconfirm.d.ts
CHANGED
package/dist/Popconfirm.js
CHANGED
|
@@ -8,6 +8,7 @@ import { Popover, PopoverArrow, PopoverContent, PopoverTrigger, getPlacement } f
|
|
|
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
|
+
import "./style/index.css";
|
|
11
12
|
import { getTransitionConfig } from './utils/getTransitionConfig';
|
|
12
13
|
var Popconfirm = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
13
14
|
var icon = _ref.icon,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ant-carousel{box-sizing:border-box;margin:0;padding:0;color:#6a7580;font-size:13px;font-variant:tabular-nums;line-height:1.38;list-style:none;font-feature-settings:'tnum'}.ant-carousel .slick-slider{position:relative;display:block;box-sizing:border-box;touch-action:pan-y;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.ant-carousel .slick-list{position:relative;display:block;margin:0;padding:0;overflow:hidden}.ant-carousel .slick-list:focus{outline:0}.ant-carousel .slick-list.dragging{cursor:pointer}.ant-carousel .slick-list .slick-slide{pointer-events:none}.ant-carousel .slick-list .slick-slide input.ant-checkbox-input,.ant-carousel .slick-list .slick-slide input.ant-radio-input{visibility:hidden}.ant-carousel .slick-list .slick-slide.slick-active{pointer-events:auto}.ant-carousel .slick-list .slick-slide.slick-active input.ant-checkbox-input,.ant-carousel .slick-list .slick-slide.slick-active input.ant-radio-input{visibility:visible}.ant-carousel .slick-list .slick-slide>div>div{vertical-align:bottom}.ant-carousel .slick-slider .slick-list,.ant-carousel .slick-slider .slick-track{transform:translate3d(0,0,0);touch-action:pan-y}.ant-carousel .slick-track{position:relative;top:0;left:0;display:block}.ant-carousel .slick-track::after,.ant-carousel .slick-track::before{display:table;content:''}.ant-carousel .slick-track::after{clear:both}.slick-loading .ant-carousel .slick-track{visibility:hidden}.ant-carousel .slick-slide{display:none;float:left;height:100%;min-height:1px}.ant-carousel .slick-slide img{display:block}.ant-carousel .slick-slide.slick-loading img{display:none}.ant-carousel .slick-slide.dragging img{pointer-events:none}.ant-carousel .slick-initialized .slick-slide{display:block}.ant-carousel .slick-loading .slick-slide{visibility:hidden}.ant-carousel .slick-vertical .slick-slide{display:block;height:auto}.ant-carousel .slick-arrow.slick-hidden{display:none}.ant-carousel .slick-next,.ant-carousel .slick-prev{position:absolute;top:50%;display:block;width:20px;height:20px;margin-top:-10px;padding:0;color:transparent;font-size:0;line-height:0;background:0 0;border:0;outline:0;cursor:pointer}.ant-carousel .slick-next:focus,.ant-carousel .slick-next:hover,.ant-carousel .slick-prev:focus,.ant-carousel .slick-prev:hover{color:transparent;background:0 0;outline:0}.ant-carousel .slick-next:focus::before,.ant-carousel .slick-next:hover::before,.ant-carousel .slick-prev:focus::before,.ant-carousel .slick-prev:hover::before{opacity:1}.ant-carousel .slick-next.slick-disabled::before,.ant-carousel .slick-prev.slick-disabled::before{opacity:.25}.ant-carousel .slick-prev{left:-25px}.ant-carousel .slick-prev::before{content:'←'}.ant-carousel .slick-next{right:-25px}.ant-carousel .slick-next::before{content:'→'}.ant-carousel .slick-dots{position:absolute;right:0;bottom:0;left:0;z-index:15;display:flex!important;justify-content:center;margin-right:15%;margin-bottom:0;margin-left:15%;padding-left:0;list-style:none}.ant-carousel .slick-dots-bottom{bottom:12px}.ant-carousel .slick-dots-top{top:12px;bottom:auto}.ant-carousel .slick-dots li{position:relative;display:inline-block;flex:0 1 auto;box-sizing:content-box;width:16px;height:3px;margin:0 4px;padding:0;text-align:center;text-indent:-999px;vertical-align:top;transition:all .5s}.ant-carousel .slick-dots li button{position:relative;display:block;width:100%;height:3px;padding:0;color:transparent;font-size:0;background:#fff;border:0;border-radius:1px;outline:0;cursor:pointer;opacity:.3;transition:all .5s}.ant-carousel .slick-dots li button:focus,.ant-carousel .slick-dots li button:hover{opacity:.75}.ant-carousel .slick-dots li button::after{position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;content:''}.ant-carousel .slick-dots li.slick-active{width:24px}.ant-carousel .slick-dots li.slick-active button{background:#fff;opacity:1}.ant-carousel .slick-dots li.slick-active:focus,.ant-carousel .slick-dots li.slick-active:hover{opacity:1}.ant-carousel-vertical .slick-dots{top:50%;bottom:auto;flex-direction:column;width:3px;height:auto;margin:0;transform:translateY(-50%)}.ant-carousel-vertical .slick-dots-left{right:auto;left:12px}.ant-carousel-vertical .slick-dots-right{right:12px;left:auto}.ant-carousel-vertical .slick-dots li{width:3px;height:16px;margin:4px 0;vertical-align:baseline}.ant-carousel-vertical .slick-dots li button{width:3px;height:16px}.ant-carousel-vertical .slick-dots li.slick-active{width:3px;height:24px}.ant-carousel-vertical .slick-dots li.slick-active button{width:3px;height:24px}.ant-carousel-rtl{direction:rtl}.ant-carousel-rtl .ant-carousel .slick-track{right:0;left:auto}.ant-carousel-rtl .ant-carousel .slick-prev{right:-25px;left:auto}.ant-carousel-rtl .ant-carousel .slick-prev::before{content:'→'}.ant-carousel-rtl .ant-carousel .slick-next{right:auto;left:-25px}.ant-carousel-rtl .ant-carousel .slick-next::before{content:'←'}.ant-carousel-rtl.ant-carousel .slick-dots{flex-direction:row-reverse}.ant-carousel-rtl.ant-carousel-vertical .slick-dots{flex-direction:column}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-popconfirm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Popconfirm UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -35,10 +35,11 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-button": "^1.5.
|
|
39
|
-
"@synerise/ds-icon": "^1.11.
|
|
40
|
-
"@synerise/ds-popover": "^1.
|
|
41
|
-
"@synerise/ds-
|
|
38
|
+
"@synerise/ds-button": "^1.5.8",
|
|
39
|
+
"@synerise/ds-icon": "^1.11.1",
|
|
40
|
+
"@synerise/ds-popover": "^1.4.0",
|
|
41
|
+
"@synerise/ds-tooltip": "^1.4.0",
|
|
42
|
+
"@synerise/ds-utils": "^1.6.0"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@floating-ui/react": "^0.27.16",
|
|
@@ -50,5 +51,5 @@
|
|
|
50
51
|
"react": ">=16.9.0 <= 18.3.1",
|
|
51
52
|
"styled-components": "^5.3.3"
|
|
52
53
|
},
|
|
53
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "ac8decd9736940735bf05198b24b3eeeb5900b18"
|
|
54
55
|
}
|