@synerise/ds-confirmation 1.1.18 → 1.1.20
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,25 @@
|
|
|
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.20](https://github.com/Synerise/synerise-design/compare/@synerise/ds-confirmation@1.1.19...@synerise/ds-confirmation@1.1.20) (2025-09-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **confirmation:** apply icon color ([3ad7ced](https://github.com/Synerise/synerise-design/commit/3ad7cedfca3e530939c7ae2767c23f13f7ea5e44))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [1.1.19](https://github.com/Synerise/synerise-design/compare/@synerise/ds-confirmation@1.1.18...@synerise/ds-confirmation@1.1.19) (2025-09-19)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-confirmation
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [1.1.18](https://github.com/Synerise/synerise-design/compare/@synerise/ds-confirmation@1.1.17...@synerise/ds-confirmation@1.1.18) (2025-09-16)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-confirmation
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ConfirmationType } from './Confirmation.types';
|
|
2
2
|
export declare const BUTTON_COLOR_MAPPING: Record<ConfirmationType, string>;
|
|
3
|
+
export declare const ICON_COLOR_MAPPING: Record<ConfirmationType, string>;
|
|
3
4
|
export declare const ITEM_SIZE = 32;
|
|
4
5
|
export declare const MAX_ITEMS = 6;
|
|
@@ -4,5 +4,11 @@ export var BUTTON_COLOR_MAPPING = {
|
|
|
4
4
|
warning: 'yellow',
|
|
5
5
|
informative: 'blue'
|
|
6
6
|
};
|
|
7
|
+
export var ICON_COLOR_MAPPING = {
|
|
8
|
+
negative: 'red-600',
|
|
9
|
+
success: 'green-600',
|
|
10
|
+
warning: 'yellow-600',
|
|
11
|
+
informative: 'grey-600'
|
|
12
|
+
};
|
|
7
13
|
export var ITEM_SIZE = 32;
|
|
8
14
|
export var MAX_ITEMS = 6;
|
package/dist/Confirmation.js
CHANGED
|
@@ -9,6 +9,7 @@ import Modal from '@synerise/ds-modal';
|
|
|
9
9
|
import { Paragraph } from '@synerise/ds-typography';
|
|
10
10
|
import { BUTTON_COLOR_MAPPING } from './Confirmation.const';
|
|
11
11
|
import * as S from './Confirmation.styles';
|
|
12
|
+
import { getIconColor } from './Confirmation.utils';
|
|
12
13
|
import { BatchItemsList } from './components/BatchItemsList';
|
|
13
14
|
import { DecisionSection } from './components/DecisionSection';
|
|
14
15
|
import { useDefaultTexts } from './hooks/useDefaultTexts';
|
|
@@ -33,7 +34,7 @@ var Confirmation = function Confirmation(_ref) {
|
|
|
33
34
|
var theme = useTheme();
|
|
34
35
|
var allTexts = useDefaultTexts(texts);
|
|
35
36
|
var buttonColor = BUTTON_COLOR_MAPPING[type];
|
|
36
|
-
var iconColor = type
|
|
37
|
+
var iconColor = getIconColor(type, theme);
|
|
37
38
|
var modalContent = useMemo(function () {
|
|
38
39
|
if (mode === 'default') {
|
|
39
40
|
return /*#__PURE__*/React.createElement(S.ConfirmationModalContent, null, /*#__PURE__*/React.createElement(S.ConfirmationModalContentMain, null, /*#__PURE__*/React.createElement(Icon, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-confirmation",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.20",
|
|
4
4
|
"description": "Confirmation UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-button": "^1.4.
|
|
38
|
+
"@synerise/ds-button": "^1.4.11",
|
|
39
39
|
"@synerise/ds-icon": "^1.7.2",
|
|
40
|
-
"@synerise/ds-list-item": "^1.0.
|
|
41
|
-
"@synerise/ds-modal": "^1.2.
|
|
42
|
-
"@synerise/ds-radio": "^1.0.
|
|
40
|
+
"@synerise/ds-list-item": "^1.0.21",
|
|
41
|
+
"@synerise/ds-modal": "^1.2.11",
|
|
42
|
+
"@synerise/ds-radio": "^1.0.22",
|
|
43
43
|
"@synerise/ds-scrollbar": "^1.1.8",
|
|
44
|
-
"@synerise/ds-typography": "^1.0.
|
|
44
|
+
"@synerise/ds-typography": "^1.0.21",
|
|
45
45
|
"@synerise/ds-utils": "^1.4.2"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"react-intl": "^6.8.7",
|
|
51
51
|
"styled-components": "^5.3.3"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "4f56489ade5b08524578821d0c51c963002ff48c"
|
|
54
54
|
}
|