@synerise/ds-confirmation 1.1.7 → 1.1.8
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 +8 -22
- package/dist/Confirmation.js +6 -6
- package/dist/Confirmation.styles.js +2 -2
- package/dist/Confirmation.types.d.ts +1 -1
- package/dist/components/BatchItemsList.d.ts +2 -2
- package/dist/components/BatchItemsList.js +1 -1
- package/dist/components/Prompt.js +1 -1
- package/dist/hooks/useDefaultTexts.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.
|
|
6
|
+
## [1.1.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-confirmation@1.1.7...@synerise/ds-confirmation@1.1.8) (2025-07-01)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @synerise/ds-confirmation
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
## [1.1.
|
|
14
|
+
## [1.1.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-confirmation@1.1.6...@synerise/ds-confirmation@1.1.7) (2025-06-26)
|
|
15
15
|
|
|
16
16
|
**Note:** Version bump only for package @synerise/ds-confirmation
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
## [1.1.
|
|
22
|
+
## [1.1.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-confirmation@1.1.5...@synerise/ds-confirmation@1.1.6) (2025-06-24)
|
|
23
23
|
|
|
24
24
|
**Note:** Version bump only for package @synerise/ds-confirmation
|
|
25
25
|
|
|
@@ -27,44 +27,30 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
## [1.1.
|
|
30
|
+
## [1.1.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-confirmation@1.1.4...@synerise/ds-confirmation@1.1.5) (2025-06-11)
|
|
31
31
|
|
|
32
32
|
**Note:** Version bump only for package @synerise/ds-confirmation
|
|
33
33
|
|
|
34
|
+
## [1.1.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-confirmation@1.1.3...@synerise/ds-confirmation@1.1.4) (2025-06-05)
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
**Note:** Version bump only for package @synerise/ds-confirmation
|
|
37
37
|
|
|
38
38
|
## [1.1.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-confirmation@1.1.2...@synerise/ds-confirmation@1.1.3) (2025-06-03)
|
|
39
39
|
|
|
40
40
|
**Note:** Version bump only for package @synerise/ds-confirmation
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
42
|
## [1.1.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-confirmation@1.1.1...@synerise/ds-confirmation@1.1.2) (2025-06-02)
|
|
47
43
|
|
|
48
44
|
**Note:** Version bump only for package @synerise/ds-confirmation
|
|
49
45
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
46
|
## [1.1.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-confirmation@1.1.0...@synerise/ds-confirmation@1.1.1) (2025-05-26)
|
|
55
47
|
|
|
56
|
-
|
|
57
48
|
### Bug Fixes
|
|
58
49
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
50
|
+
- **confirmation:** ui feedback ([0d82994](https://github.com/Synerise/synerise-design/commit/0d82994db66410388d61325ed6b84a443b8261a1))
|
|
64
51
|
|
|
65
52
|
# 1.1.0 (2025-05-19)
|
|
66
53
|
|
|
67
|
-
|
|
68
54
|
### Features
|
|
69
55
|
|
|
70
|
-
|
|
56
|
+
- **confirmation:** new component ([5ed5b96](https://github.com/Synerise/synerise-design/commit/5ed5b96540e82576951221fdf5f26695c02171e7))
|
package/dist/Confirmation.js
CHANGED
|
@@ -2,16 +2,16 @@ var _excluded = ["type", "texts", "title", "description", "onCancel", "onOk", "i
|
|
|
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 React, { useMemo, useState } from 'react';
|
|
5
|
-
import Modal from '@synerise/ds-modal';
|
|
6
|
-
import { Paragraph } from '@synerise/ds-typography';
|
|
7
|
-
import Icon, { ShowM, ArrowLeftM } from '@synerise/ds-icon';
|
|
8
5
|
import Button from '@synerise/ds-button';
|
|
9
6
|
import { useTheme } from '@synerise/ds-core';
|
|
10
|
-
import
|
|
11
|
-
import
|
|
7
|
+
import Icon, { ArrowLeftM, ShowM } from '@synerise/ds-icon';
|
|
8
|
+
import Modal from '@synerise/ds-modal';
|
|
9
|
+
import { Paragraph } from '@synerise/ds-typography';
|
|
12
10
|
import { BUTTON_COLOR_MAPPING } from './Confirmation.const';
|
|
11
|
+
import * as S from './Confirmation.styles';
|
|
13
12
|
import { BatchItemsList } from './components/BatchItemsList';
|
|
14
13
|
import { DecisionSection } from './components/DecisionSection';
|
|
14
|
+
import { useDefaultTexts } from './hooks/useDefaultTexts';
|
|
15
15
|
var Confirmation = function Confirmation(_ref) {
|
|
16
16
|
var type = _ref.type,
|
|
17
17
|
texts = _ref.texts,
|
|
@@ -63,7 +63,7 @@ var Confirmation = function Confirmation(_ref) {
|
|
|
63
63
|
mode: "icon-label"
|
|
64
64
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
65
65
|
component: /*#__PURE__*/React.createElement(ShowM, null)
|
|
66
|
-
}),
|
|
66
|
+
}), ' ', allTexts.relatedObjectsButtonLabel)), /*#__PURE__*/React.createElement(S.FooterRight, null, /*#__PURE__*/React.createElement(Button, _extends({
|
|
67
67
|
type: "secondary",
|
|
68
68
|
onClick: onCancel
|
|
69
69
|
}, secondaryButtonProps), allTexts.secondaryButtonLabel), /*#__PURE__*/React.createElement(Button, _extends({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import {
|
|
2
|
+
import { AdditionalData, RadioWrapper } from '@synerise/ds-radio/dist/Radio.styles';
|
|
3
3
|
import Scrollbar from '@synerise/ds-scrollbar';
|
|
4
|
-
import {
|
|
4
|
+
import { Title as TypographyTitle } from '@synerise/ds-typography';
|
|
5
5
|
var roundedWrapperCSS = css(["border:solid ", " 1px;border-radius:8px;padding:8px;"], function (props) {
|
|
6
6
|
return props.theme.palette['grey-200'];
|
|
7
7
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { ButtonProps } from '@synerise/ds-button';
|
|
3
3
|
import type { ListItemProps } from '@synerise/ds-list-item';
|
|
4
|
-
import type { RadioProps } from '@synerise/ds-radio';
|
|
5
4
|
import type { ModalProps } from '@synerise/ds-modal';
|
|
5
|
+
import type { RadioProps } from '@synerise/ds-radio';
|
|
6
6
|
import type { DataAttributes } from '@synerise/ds-utils';
|
|
7
7
|
export type ConfirmationType = 'success' | 'warning' | 'negative' | 'informative';
|
|
8
8
|
export type ConfirmationButtonProps = Pick<ButtonProps, 'mode' | 'loading' | 'readOnly' | 'disabled' | 'tagProps'> & DataAttributes;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ListItemProps } from '@synerise/ds-list-item';
|
|
2
|
+
import { type ListItemProps } from '@synerise/ds-list-item';
|
|
3
3
|
import type { BatchItemsListProps } from '../Confirmation.types';
|
|
4
|
-
export declare const BatchItemsList: <ItemType extends ListItemProps>({ items, title }: BatchItemsListProps<ItemType>) => React.JSX.Element;
|
|
4
|
+
export declare const BatchItemsList: <ItemType extends ListItemProps>({ items, title, }: BatchItemsListProps<ItemType>) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
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); }
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import ListItem from '@synerise/ds-list-item';
|
|
4
|
-
import * as S from '../Confirmation.styles';
|
|
5
4
|
import { ITEM_SIZE, MAX_ITEMS } from '../Confirmation.const';
|
|
5
|
+
import * as S from '../Confirmation.styles';
|
|
6
6
|
export var BatchItemsList = function BatchItemsList(_ref) {
|
|
7
7
|
var items = _ref.items,
|
|
8
8
|
title = _ref.title;
|
|
@@ -4,8 +4,8 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
|
4
4
|
import React, { useMemo } from 'react';
|
|
5
5
|
import Button from '@synerise/ds-button';
|
|
6
6
|
import Modal from '@synerise/ds-modal';
|
|
7
|
-
import * as S from '../Confirmation.styles';
|
|
8
7
|
import { BUTTON_COLOR_MAPPING } from '../Confirmation.const';
|
|
8
|
+
import * as S from '../Confirmation.styles';
|
|
9
9
|
import { useDefaultTexts } from '../hooks/useDefaultTexts';
|
|
10
10
|
export var Prompt = function Prompt(_ref) {
|
|
11
11
|
var type = _ref.type,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ConfirmationTexts } from '../Confirmation.types';
|
|
1
|
+
import { type ConfirmationTexts } from '../Confirmation.types';
|
|
2
2
|
export declare const useDefaultTexts: (defaultTexts?: Partial<ConfirmationTexts>) => ConfirmationTexts;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default } from './Confirmation';
|
|
2
|
-
export type { ConfirmationProps, PromptProps, ConfirmationTexts } from './Confirmation.types';
|
|
2
|
+
export type { ConfirmationProps, PromptProps, ConfirmationTexts, } from './Confirmation.types';
|
|
3
3
|
export { Prompt } from './components/Prompt';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-confirmation",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "Confirmation UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-button": "^1.4.
|
|
38
|
-
"@synerise/ds-icon": "^1.5.
|
|
39
|
-
"@synerise/ds-list-item": "^1.0.
|
|
40
|
-
"@synerise/ds-modal": "^1.2.
|
|
41
|
-
"@synerise/ds-radio": "^1.0.
|
|
42
|
-
"@synerise/ds-scrollbar": "^1.1.
|
|
43
|
-
"@synerise/ds-typography": "^1.0.
|
|
44
|
-
"@synerise/ds-utils": "^1.3.
|
|
37
|
+
"@synerise/ds-button": "^1.4.2",
|
|
38
|
+
"@synerise/ds-icon": "^1.5.4",
|
|
39
|
+
"@synerise/ds-list-item": "^1.0.13",
|
|
40
|
+
"@synerise/ds-modal": "^1.2.2",
|
|
41
|
+
"@synerise/ds-radio": "^1.0.13",
|
|
42
|
+
"@synerise/ds-scrollbar": "^1.1.2",
|
|
43
|
+
"@synerise/ds-typography": "^1.0.13",
|
|
44
|
+
"@synerise/ds-utils": "^1.3.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@synerise/ds-core": "*",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"react-intl": "^6.8.7",
|
|
50
50
|
"styled-components": "^5.3.3"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "4512641033ba3581a3df208143c547fcfed45895"
|
|
53
53
|
}
|