@targetprocess/confirmation 12.32.2 → 12.32.3-ci.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/__tests__/Confirmation.tests.jsx +3 -1
- package/dist/confirmation.es.js +107 -140
- package/dist/confirmation.js +140 -152
- package/package.json +5 -5
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* © Copyright IBM Corp. 2026
|
|
3
|
+
*********************************************************************/
|
|
2
4
|
import React from 'react'
|
|
3
5
|
import {mount} from 'enzyme'
|
|
4
6
|
import {Confirmation} from '../Confirmation'
|
package/dist/confirmation.es.js
CHANGED
|
@@ -2,149 +2,121 @@ import React from 'react';
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { Button } from '@targetprocess/button';
|
|
4
4
|
import * as CssAccessorsWithFallback from '@targetprocess/css-variables';
|
|
5
|
-
import { Second100, Second500 } from '@targetprocess/css-variables';
|
|
6
5
|
import { Popover } from '@targetprocess/popover';
|
|
7
6
|
|
|
8
|
-
function
|
|
9
|
-
if (
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
function _assertThisInitialized(e) {
|
|
8
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
function _callSuper(t, o, e) {
|
|
12
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
13
|
+
}
|
|
14
|
+
function _classCallCheck(a, n) {
|
|
15
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
12
16
|
}
|
|
13
|
-
function _defineProperties(
|
|
14
|
-
for (var
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
descriptor.configurable = true;
|
|
18
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
19
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
17
|
+
function _defineProperties(e, r) {
|
|
18
|
+
for (var t = 0; t < r.length; t++) {
|
|
19
|
+
var o = r[t];
|
|
20
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
|
-
function _createClass(
|
|
23
|
-
|
|
24
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
25
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
23
|
+
function _createClass(e, r, t) {
|
|
24
|
+
return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
|
|
26
25
|
writable: false
|
|
27
|
-
});
|
|
28
|
-
return Constructor;
|
|
26
|
+
}), e;
|
|
29
27
|
}
|
|
30
|
-
function _defineProperty(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
writable: true
|
|
38
|
-
});
|
|
39
|
-
} else {
|
|
40
|
-
obj[key] = value;
|
|
41
|
-
}
|
|
42
|
-
return obj;
|
|
28
|
+
function _defineProperty(e, r, t) {
|
|
29
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
30
|
+
value: t,
|
|
31
|
+
enumerable: true,
|
|
32
|
+
configurable: true,
|
|
33
|
+
writable: true
|
|
34
|
+
}) : e[r] = t, e;
|
|
43
35
|
}
|
|
44
36
|
function _extends() {
|
|
45
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
46
|
-
for (var
|
|
47
|
-
var
|
|
48
|
-
for (var
|
|
49
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
50
|
-
target[key] = source[key];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
37
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
38
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
39
|
+
var t = arguments[e];
|
|
40
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
53
41
|
}
|
|
54
|
-
return
|
|
55
|
-
};
|
|
56
|
-
return _extends.apply(this, arguments);
|
|
42
|
+
return n;
|
|
43
|
+
}, _extends.apply(null, arguments);
|
|
57
44
|
}
|
|
58
|
-
function
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
45
|
+
function _getPrototypeOf(t) {
|
|
46
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
47
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
48
|
+
}, _getPrototypeOf(t);
|
|
49
|
+
}
|
|
50
|
+
function _inherits(t, e) {
|
|
51
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
52
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
63
53
|
constructor: {
|
|
64
|
-
value:
|
|
54
|
+
value: t,
|
|
65
55
|
writable: true,
|
|
66
56
|
configurable: true
|
|
67
57
|
}
|
|
68
|
-
})
|
|
69
|
-
Object.defineProperty(subClass, "prototype", {
|
|
58
|
+
}), Object.defineProperty(t, "prototype", {
|
|
70
59
|
writable: false
|
|
71
|
-
});
|
|
72
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
60
|
+
}), e && _setPrototypeOf(t, e);
|
|
73
61
|
}
|
|
74
|
-
function
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
return
|
|
62
|
+
function _isNativeReflectConstruct() {
|
|
63
|
+
try {
|
|
64
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
65
|
+
} catch (t) {}
|
|
66
|
+
return (_isNativeReflectConstruct = function () {
|
|
67
|
+
return !!t;
|
|
68
|
+
})();
|
|
79
69
|
}
|
|
80
|
-
function
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return _setPrototypeOf(o, p);
|
|
86
|
-
}
|
|
87
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
88
|
-
if (source == null) return {};
|
|
89
|
-
var target = {};
|
|
90
|
-
var sourceKeys = Object.keys(source);
|
|
91
|
-
var key, i;
|
|
92
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
93
|
-
key = sourceKeys[i];
|
|
94
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
95
|
-
target[key] = source[key];
|
|
96
|
-
}
|
|
97
|
-
return target;
|
|
98
|
-
}
|
|
99
|
-
function _objectWithoutProperties(source, excluded) {
|
|
100
|
-
if (source == null) return {};
|
|
101
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
102
|
-
var key, i;
|
|
70
|
+
function _objectWithoutProperties(e, t) {
|
|
71
|
+
if (null == e) return {};
|
|
72
|
+
var o,
|
|
73
|
+
r,
|
|
74
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
103
75
|
if (Object.getOwnPropertySymbols) {
|
|
104
|
-
var
|
|
105
|
-
for (
|
|
106
|
-
key = sourceSymbolKeys[i];
|
|
107
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
108
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
109
|
-
target[key] = source[key];
|
|
110
|
-
}
|
|
76
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
77
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
111
78
|
}
|
|
112
|
-
return
|
|
79
|
+
return i;
|
|
113
80
|
}
|
|
114
|
-
function
|
|
115
|
-
if (
|
|
116
|
-
|
|
81
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
82
|
+
if (null == r) return {};
|
|
83
|
+
var t = {};
|
|
84
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
85
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
86
|
+
t[n] = r[n];
|
|
117
87
|
}
|
|
118
|
-
return
|
|
88
|
+
return t;
|
|
119
89
|
}
|
|
120
|
-
function _possibleConstructorReturn(
|
|
121
|
-
if (
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
125
|
-
}
|
|
126
|
-
return _assertThisInitialized(self);
|
|
90
|
+
function _possibleConstructorReturn(t, e) {
|
|
91
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
92
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
93
|
+
return _assertThisInitialized(t);
|
|
127
94
|
}
|
|
128
|
-
function
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
95
|
+
function _setPrototypeOf(t, e) {
|
|
96
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
97
|
+
return t.__proto__ = e, t;
|
|
98
|
+
}, _setPrototypeOf(t, e);
|
|
99
|
+
}
|
|
100
|
+
function _toPrimitive(t, e) {
|
|
101
|
+
if ("object" != typeof t || !t) return t;
|
|
102
|
+
var r;
|
|
103
|
+
if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
|
|
104
|
+
var i = r.call(t, e);
|
|
105
|
+
if ("object" != typeof i) return i;
|
|
134
106
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
135
107
|
}
|
|
136
|
-
return (
|
|
108
|
+
return (String )(t);
|
|
137
109
|
}
|
|
138
|
-
function _toPropertyKey(
|
|
139
|
-
var
|
|
140
|
-
return
|
|
110
|
+
function _toPropertyKey(t) {
|
|
111
|
+
var i = _toPrimitive(t, "string");
|
|
112
|
+
return "symbol" == typeof i ? i : i + "";
|
|
141
113
|
}
|
|
142
114
|
|
|
143
115
|
function styleInject(css, ref) {
|
|
144
116
|
if ( ref === void 0 ) ref = {};
|
|
145
117
|
var insertAt = ref.insertAt;
|
|
146
118
|
|
|
147
|
-
if (
|
|
119
|
+
if (typeof document === 'undefined') { return; }
|
|
148
120
|
|
|
149
121
|
var head = document.head || document.getElementsByTagName('head')[0];
|
|
150
122
|
var style = document.createElement('style');
|
|
@@ -167,10 +139,11 @@ function styleInject(css, ref) {
|
|
|
167
139
|
}
|
|
168
140
|
}
|
|
169
141
|
|
|
170
|
-
var
|
|
171
|
-
var styles = {"confirmation":"confirmation__confirmation__12-32-
|
|
172
|
-
styleInject(
|
|
142
|
+
var css_248z = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.confirmation__confirmation__12-32-3-ci-1 {\n min-width: 200px;\n max-width: 280px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.confirmation__icon__confirmation__12-32-3-ci-1 {\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n margin-right: var(--SpaceSM, 12px);\n border-radius: 50%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n width: var(--ControlHeightDefault, 24px);\n height: var(--ControlHeightDefault, 24px);\n }\n.confirmation__inner__confirmation__12-32-3-ci-1 {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n }\n.confirmation__text__confirmation__12-32-3-ci-1 {\n margin-bottom: var(--SpaceM, 16px);\n line-height: 1.23;\n }\n.confirmation__text--detailed__confirmation__12-32-3-ci-1 {\n font-weight: var(--FontWeightSemibold, 600);\n line-height: 1.23;\n font-size: var(--FontSizeTitleSubsection, 16px);\n margin: var(--SpaceXS, 4px) 0 var(--SpaceS, 8px) 0;\n min-width: 200px;\n }\n.confirmation__description__confirmation__12-32-3-ci-1 {\n margin-bottom: var(--SpaceM, 16px);\n line-height: 1.23;\n color: var(--FontColorGray, rgba(0, 0, 0, 0.7));\n }\n.confirmation__controls__confirmation__12-32-3-ci-1 {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n margin-bottom: var(--SpaceXS, 4px);\n }\n.confirmation__controls__item__confirmation__12-32-3-ci-1:not(:last-child) {\n margin-right: var(--SpaceS, 8px);\n }\n";
|
|
143
|
+
var styles = {"confirmation":"confirmation__confirmation__12-32-3-ci-1","confirmation__icon":"confirmation__icon__confirmation__12-32-3-ci-1","confirmation__inner":"confirmation__inner__confirmation__12-32-3-ci-1","confirmation__text":"confirmation__text__confirmation__12-32-3-ci-1","confirmation__text--detailed":"confirmation__text--detailed__confirmation__12-32-3-ci-1","confirmation__description":"confirmation__description__confirmation__12-32-3-ci-1","confirmation__controls":"confirmation__controls__confirmation__12-32-3-ci-1","confirmation__controls__item":"confirmation__controls__item__confirmation__12-32-3-ci-1"};
|
|
144
|
+
styleInject(css_248z);
|
|
173
145
|
|
|
146
|
+
var _excluded = ["isOpen", "children", "popoverPosition", "cancelOnOuterAction", "getContainerElement"];
|
|
174
147
|
function uppercaseFirst(input) {
|
|
175
148
|
if (typeof input !== 'string' || input.length === 0) {
|
|
176
149
|
return input;
|
|
@@ -189,32 +162,32 @@ var ConfirmationBody = function ConfirmationBody(_ref) {
|
|
|
189
162
|
onCancel = _ref.onCancel,
|
|
190
163
|
confirmLabel = _ref.confirmLabel,
|
|
191
164
|
cancelLabel = _ref.cancelLabel;
|
|
192
|
-
return React.createElement(Popover.Body, null, React.createElement("div", {
|
|
165
|
+
return /*#__PURE__*/React.createElement(Popover.Body, null, /*#__PURE__*/React.createElement("div", {
|
|
193
166
|
className: classNames(styles['confirmation'])
|
|
194
|
-
}, icon && React.createElement("div", {
|
|
167
|
+
}, icon && /*#__PURE__*/React.createElement("div", {
|
|
195
168
|
className: classNames(styles['confirmation__icon']),
|
|
196
169
|
style: {
|
|
197
|
-
backgroundColor: CssAccessorsWithFallback["".concat(uppercaseFirst(kind), "100")] || Second100
|
|
170
|
+
backgroundColor: CssAccessorsWithFallback["".concat(uppercaseFirst(kind), "100")] || CssAccessorsWithFallback.Second100
|
|
198
171
|
}
|
|
199
|
-
}, React.isValidElement(icon) && icon.type ? React.createElement(icon.type, _extends({
|
|
200
|
-
color: CssAccessorsWithFallback["".concat(uppercaseFirst(kind), "500")] || Second500
|
|
201
|
-
}, icon.props)) : icon), React.createElement("div", {
|
|
172
|
+
}, /*#__PURE__*/React.isValidElement(icon) && icon.type ? /*#__PURE__*/React.createElement(icon.type, _extends({
|
|
173
|
+
color: CssAccessorsWithFallback["".concat(uppercaseFirst(kind), "500")] || CssAccessorsWithFallback.Second500
|
|
174
|
+
}, icon.props)) : icon), /*#__PURE__*/React.createElement("div", {
|
|
202
175
|
className: styles['confirmation__inner']
|
|
203
|
-
}, React.createElement("div", {
|
|
176
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
204
177
|
className: classNames(styles['confirmation__text'], description && styles['confirmation__text--detailed'])
|
|
205
|
-
}, text), description && React.createElement("div", {
|
|
178
|
+
}, text), description && /*#__PURE__*/React.createElement("div", {
|
|
206
179
|
className: classNames(styles['confirmation__description'])
|
|
207
|
-
}, description), React.createElement("div", {
|
|
180
|
+
}, description), /*#__PURE__*/React.createElement("div", {
|
|
208
181
|
className: classNames(styles['confirmation__controls'])
|
|
209
|
-
}, React.createElement("div", {
|
|
182
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
210
183
|
className: classNames(styles['confirmation__controls__item'])
|
|
211
|
-
}, React.createElement(Button, _extends({
|
|
184
|
+
}, /*#__PURE__*/React.createElement(Button, _extends({
|
|
212
185
|
kind: kind
|
|
213
186
|
}, confirmButtonProps, {
|
|
214
187
|
onClick: onConfirm
|
|
215
|
-
}), confirmLabel)), React.createElement("div", {
|
|
188
|
+
}), confirmLabel)), /*#__PURE__*/React.createElement("div", {
|
|
216
189
|
className: classNames(styles['confirmation__controls__item'])
|
|
217
|
-
}, React.createElement(Button, _extends({}, cancelButtonProps, {
|
|
190
|
+
}, /*#__PURE__*/React.createElement(Button, _extends({}, cancelButtonProps, {
|
|
218
191
|
onClick: onCancel
|
|
219
192
|
}), cancelLabel))))));
|
|
220
193
|
};
|
|
@@ -267,16 +240,14 @@ var ConfirmationBody = function ConfirmationBody(_ref) {
|
|
|
267
240
|
* display, if necessary.
|
|
268
241
|
*/
|
|
269
242
|
var Confirmation = /*#__PURE__*/function (_React$Component) {
|
|
270
|
-
_inherits(Confirmation, _React$Component);
|
|
271
243
|
function Confirmation() {
|
|
272
|
-
var _getPrototypeOf2;
|
|
273
244
|
var _this;
|
|
274
245
|
_classCallCheck(this, Confirmation);
|
|
275
246
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
276
247
|
args[_key] = arguments[_key];
|
|
277
248
|
}
|
|
278
|
-
_this =
|
|
279
|
-
_defineProperty(
|
|
249
|
+
_this = _callSuper(this, Confirmation, [].concat(args));
|
|
250
|
+
_defineProperty(_this, "onConfirm", function () {
|
|
280
251
|
if (_this.props.onConfirm) {
|
|
281
252
|
_this.props.onConfirm();
|
|
282
253
|
}
|
|
@@ -284,7 +255,7 @@ var Confirmation = /*#__PURE__*/function (_React$Component) {
|
|
|
284
255
|
_this.setOpened(false);
|
|
285
256
|
}
|
|
286
257
|
});
|
|
287
|
-
_defineProperty(
|
|
258
|
+
_defineProperty(_this, "onCancel", function () {
|
|
288
259
|
if (_this.props.onCancel) {
|
|
289
260
|
_this.props.onCancel();
|
|
290
261
|
}
|
|
@@ -294,7 +265,8 @@ var Confirmation = /*#__PURE__*/function (_React$Component) {
|
|
|
294
265
|
});
|
|
295
266
|
return _this;
|
|
296
267
|
}
|
|
297
|
-
|
|
268
|
+
_inherits(Confirmation, _React$Component);
|
|
269
|
+
return _createClass(Confirmation, [{
|
|
298
270
|
key: "render",
|
|
299
271
|
value: function render() {
|
|
300
272
|
var _this2 = this;
|
|
@@ -304,12 +276,12 @@ var Confirmation = /*#__PURE__*/function (_React$Component) {
|
|
|
304
276
|
popoverPosition = _this$props.popoverPosition,
|
|
305
277
|
cancelOnOuterAction = _this$props.cancelOnOuterAction,
|
|
306
278
|
getContainerElement = _this$props.getContainerElement,
|
|
307
|
-
otherProps = _objectWithoutProperties(_this$props,
|
|
308
|
-
return React.createElement(Popover, {
|
|
279
|
+
otherProps = _objectWithoutProperties(_this$props, _excluded);
|
|
280
|
+
return /*#__PURE__*/React.createElement(Popover, {
|
|
309
281
|
isOpen: popoverOpen,
|
|
310
282
|
getPopoverPosition: popoverPosition,
|
|
311
283
|
getContainerElement: getContainerElement,
|
|
312
|
-
body: React.createElement(ConfirmationBody, _extends({}, otherProps, {
|
|
284
|
+
body: /*#__PURE__*/React.createElement(ConfirmationBody, _extends({}, otherProps, {
|
|
313
285
|
onConfirm: this.onConfirm,
|
|
314
286
|
onCancel: this.onCancel
|
|
315
287
|
})),
|
|
@@ -327,7 +299,6 @@ var Confirmation = /*#__PURE__*/function (_React$Component) {
|
|
|
327
299
|
});
|
|
328
300
|
}
|
|
329
301
|
}]);
|
|
330
|
-
return Confirmation;
|
|
331
302
|
}(React.Component);
|
|
332
303
|
Confirmation.defaultProps = {
|
|
333
304
|
kind: 'second',
|
|
@@ -340,8 +311,4 @@ Confirmation.defaultProps = {
|
|
|
340
311
|
popoverPosition: 'bottomLeft'
|
|
341
312
|
};
|
|
342
313
|
|
|
343
|
-
/*********************************************************************
|
|
344
|
-
* © Copyright IBM Corp. 2024
|
|
345
|
-
*********************************************************************/
|
|
346
|
-
|
|
347
314
|
export { Confirmation };
|
package/dist/confirmation.js
CHANGED
|
@@ -1,155 +1,148 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
|
-
|
|
7
|
-
var React = _interopDefault(require('react'));
|
|
8
|
-
var classNames = _interopDefault(require('classnames'));
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var classNames = require('classnames');
|
|
9
5
|
var button = require('@targetprocess/button');
|
|
10
6
|
var CssAccessorsWithFallback = require('@targetprocess/css-variables');
|
|
11
7
|
var popover = require('@targetprocess/popover');
|
|
12
8
|
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
|
+
|
|
11
|
+
function _interopNamespaceCompat(e) {
|
|
12
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
13
|
+
var n = Object.create(null);
|
|
14
|
+
if (e) {
|
|
15
|
+
Object.keys(e).forEach(function (k) {
|
|
16
|
+
if (k !== 'default') {
|
|
17
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return e[k]; }
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
16
24
|
}
|
|
25
|
+
n.default = e;
|
|
26
|
+
return Object.freeze(n);
|
|
17
27
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
28
|
+
|
|
29
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
30
|
+
var classNames__default = /*#__PURE__*/_interopDefaultCompat(classNames);
|
|
31
|
+
var CssAccessorsWithFallback__namespace = /*#__PURE__*/_interopNamespaceCompat(CssAccessorsWithFallback);
|
|
32
|
+
|
|
33
|
+
function _assertThisInitialized(e) {
|
|
34
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
35
|
+
return e;
|
|
36
|
+
}
|
|
37
|
+
function _callSuper(t, o, e) {
|
|
38
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
39
|
+
}
|
|
40
|
+
function _classCallCheck(a, n) {
|
|
41
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
42
|
+
}
|
|
43
|
+
function _defineProperties(e, r) {
|
|
44
|
+
for (var t = 0; t < r.length; t++) {
|
|
45
|
+
var o = r[t];
|
|
46
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
25
47
|
}
|
|
26
48
|
}
|
|
27
|
-
function _createClass(
|
|
28
|
-
|
|
29
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
30
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
49
|
+
function _createClass(e, r, t) {
|
|
50
|
+
return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
|
|
31
51
|
writable: false
|
|
32
|
-
});
|
|
33
|
-
return Constructor;
|
|
52
|
+
}), e;
|
|
34
53
|
}
|
|
35
|
-
function _defineProperty(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
writable: true
|
|
43
|
-
});
|
|
44
|
-
} else {
|
|
45
|
-
obj[key] = value;
|
|
46
|
-
}
|
|
47
|
-
return obj;
|
|
54
|
+
function _defineProperty(e, r, t) {
|
|
55
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
56
|
+
value: t,
|
|
57
|
+
enumerable: true,
|
|
58
|
+
configurable: true,
|
|
59
|
+
writable: true
|
|
60
|
+
}) : e[r] = t, e;
|
|
48
61
|
}
|
|
49
62
|
function _extends() {
|
|
50
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
51
|
-
for (var
|
|
52
|
-
var
|
|
53
|
-
for (var
|
|
54
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
55
|
-
target[key] = source[key];
|
|
56
|
-
}
|
|
57
|
-
}
|
|
63
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
64
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
65
|
+
var t = arguments[e];
|
|
66
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
58
67
|
}
|
|
59
|
-
return
|
|
60
|
-
};
|
|
61
|
-
return _extends.apply(this, arguments);
|
|
68
|
+
return n;
|
|
69
|
+
}, _extends.apply(null, arguments);
|
|
62
70
|
}
|
|
63
|
-
function
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
71
|
+
function _getPrototypeOf(t) {
|
|
72
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
73
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
74
|
+
}, _getPrototypeOf(t);
|
|
75
|
+
}
|
|
76
|
+
function _inherits(t, e) {
|
|
77
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
78
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
68
79
|
constructor: {
|
|
69
|
-
value:
|
|
80
|
+
value: t,
|
|
70
81
|
writable: true,
|
|
71
82
|
configurable: true
|
|
72
83
|
}
|
|
73
|
-
})
|
|
74
|
-
Object.defineProperty(subClass, "prototype", {
|
|
84
|
+
}), Object.defineProperty(t, "prototype", {
|
|
75
85
|
writable: false
|
|
76
|
-
});
|
|
77
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
86
|
+
}), e && _setPrototypeOf(t, e);
|
|
78
87
|
}
|
|
79
|
-
function
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
return
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
87
|
-
o.__proto__ = p;
|
|
88
|
-
return o;
|
|
89
|
-
};
|
|
90
|
-
return _setPrototypeOf(o, p);
|
|
91
|
-
}
|
|
92
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
93
|
-
if (source == null) return {};
|
|
94
|
-
var target = {};
|
|
95
|
-
var sourceKeys = Object.keys(source);
|
|
96
|
-
var key, i;
|
|
97
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
98
|
-
key = sourceKeys[i];
|
|
99
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
100
|
-
target[key] = source[key];
|
|
101
|
-
}
|
|
102
|
-
return target;
|
|
88
|
+
function _isNativeReflectConstruct() {
|
|
89
|
+
try {
|
|
90
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
91
|
+
} catch (t) {}
|
|
92
|
+
return (_isNativeReflectConstruct = function () {
|
|
93
|
+
return !!t;
|
|
94
|
+
})();
|
|
103
95
|
}
|
|
104
|
-
function _objectWithoutProperties(
|
|
105
|
-
if (
|
|
106
|
-
var
|
|
107
|
-
|
|
96
|
+
function _objectWithoutProperties(e, t) {
|
|
97
|
+
if (null == e) return {};
|
|
98
|
+
var o,
|
|
99
|
+
r,
|
|
100
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
108
101
|
if (Object.getOwnPropertySymbols) {
|
|
109
|
-
var
|
|
110
|
-
for (
|
|
111
|
-
key = sourceSymbolKeys[i];
|
|
112
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
113
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
114
|
-
target[key] = source[key];
|
|
115
|
-
}
|
|
102
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
103
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
116
104
|
}
|
|
117
|
-
return
|
|
105
|
+
return i;
|
|
118
106
|
}
|
|
119
|
-
function
|
|
120
|
-
if (
|
|
121
|
-
|
|
107
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
108
|
+
if (null == r) return {};
|
|
109
|
+
var t = {};
|
|
110
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
111
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
112
|
+
t[n] = r[n];
|
|
122
113
|
}
|
|
123
|
-
return
|
|
114
|
+
return t;
|
|
124
115
|
}
|
|
125
|
-
function _possibleConstructorReturn(
|
|
126
|
-
if (
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
return
|
|
116
|
+
function _possibleConstructorReturn(t, e) {
|
|
117
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
118
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
119
|
+
return _assertThisInitialized(t);
|
|
120
|
+
}
|
|
121
|
+
function _setPrototypeOf(t, e) {
|
|
122
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
123
|
+
return t.__proto__ = e, t;
|
|
124
|
+
}, _setPrototypeOf(t, e);
|
|
132
125
|
}
|
|
133
|
-
function _toPrimitive(
|
|
134
|
-
if (
|
|
135
|
-
var
|
|
136
|
-
if (
|
|
137
|
-
var
|
|
138
|
-
if (
|
|
126
|
+
function _toPrimitive(t, e) {
|
|
127
|
+
if ("object" != typeof t || !t) return t;
|
|
128
|
+
var r;
|
|
129
|
+
if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
|
|
130
|
+
var i = r.call(t, e);
|
|
131
|
+
if ("object" != typeof i) return i;
|
|
139
132
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
140
133
|
}
|
|
141
|
-
return (
|
|
134
|
+
return (String )(t);
|
|
142
135
|
}
|
|
143
|
-
function _toPropertyKey(
|
|
144
|
-
var
|
|
145
|
-
return
|
|
136
|
+
function _toPropertyKey(t) {
|
|
137
|
+
var i = _toPrimitive(t, "string");
|
|
138
|
+
return "symbol" == typeof i ? i : i + "";
|
|
146
139
|
}
|
|
147
140
|
|
|
148
141
|
function styleInject(css, ref) {
|
|
149
142
|
if ( ref === void 0 ) ref = {};
|
|
150
143
|
var insertAt = ref.insertAt;
|
|
151
144
|
|
|
152
|
-
if (
|
|
145
|
+
if (typeof document === 'undefined') { return; }
|
|
153
146
|
|
|
154
147
|
var head = document.head || document.getElementsByTagName('head')[0];
|
|
155
148
|
var style = document.createElement('style');
|
|
@@ -172,10 +165,11 @@ function styleInject(css, ref) {
|
|
|
172
165
|
}
|
|
173
166
|
}
|
|
174
167
|
|
|
175
|
-
var
|
|
176
|
-
var styles = {"confirmation":"confirmation__confirmation__12-32-
|
|
177
|
-
styleInject(
|
|
168
|
+
var css_248z = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.confirmation__confirmation__12-32-3-ci-1 {\n min-width: 200px;\n max-width: 280px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.confirmation__icon__confirmation__12-32-3-ci-1 {\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n margin-right: var(--SpaceSM, 12px);\n border-radius: 50%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n width: var(--ControlHeightDefault, 24px);\n height: var(--ControlHeightDefault, 24px);\n }\n.confirmation__inner__confirmation__12-32-3-ci-1 {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n }\n.confirmation__text__confirmation__12-32-3-ci-1 {\n margin-bottom: var(--SpaceM, 16px);\n line-height: 1.23;\n }\n.confirmation__text--detailed__confirmation__12-32-3-ci-1 {\n font-weight: var(--FontWeightSemibold, 600);\n line-height: 1.23;\n font-size: var(--FontSizeTitleSubsection, 16px);\n margin: var(--SpaceXS, 4px) 0 var(--SpaceS, 8px) 0;\n min-width: 200px;\n }\n.confirmation__description__confirmation__12-32-3-ci-1 {\n margin-bottom: var(--SpaceM, 16px);\n line-height: 1.23;\n color: var(--FontColorGray, rgba(0, 0, 0, 0.7));\n }\n.confirmation__controls__confirmation__12-32-3-ci-1 {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n margin-bottom: var(--SpaceXS, 4px);\n }\n.confirmation__controls__item__confirmation__12-32-3-ci-1:not(:last-child) {\n margin-right: var(--SpaceS, 8px);\n }\n";
|
|
169
|
+
var styles = {"confirmation":"confirmation__confirmation__12-32-3-ci-1","confirmation__icon":"confirmation__icon__confirmation__12-32-3-ci-1","confirmation__inner":"confirmation__inner__confirmation__12-32-3-ci-1","confirmation__text":"confirmation__text__confirmation__12-32-3-ci-1","confirmation__text--detailed":"confirmation__text--detailed__confirmation__12-32-3-ci-1","confirmation__description":"confirmation__description__confirmation__12-32-3-ci-1","confirmation__controls":"confirmation__controls__confirmation__12-32-3-ci-1","confirmation__controls__item":"confirmation__controls__item__confirmation__12-32-3-ci-1"};
|
|
170
|
+
styleInject(css_248z);
|
|
178
171
|
|
|
172
|
+
var _excluded = ["isOpen", "children", "popoverPosition", "cancelOnOuterAction", "getContainerElement"];
|
|
179
173
|
function uppercaseFirst(input) {
|
|
180
174
|
if (typeof input !== 'string' || input.length === 0) {
|
|
181
175
|
return input;
|
|
@@ -194,32 +188,32 @@ var ConfirmationBody = function ConfirmationBody(_ref) {
|
|
|
194
188
|
onCancel = _ref.onCancel,
|
|
195
189
|
confirmLabel = _ref.confirmLabel,
|
|
196
190
|
cancelLabel = _ref.cancelLabel;
|
|
197
|
-
return
|
|
198
|
-
className:
|
|
199
|
-
}, icon &&
|
|
200
|
-
className:
|
|
191
|
+
return /*#__PURE__*/React__default.default.createElement(popover.Popover.Body, null, /*#__PURE__*/React__default.default.createElement("div", {
|
|
192
|
+
className: classNames__default.default(styles['confirmation'])
|
|
193
|
+
}, icon && /*#__PURE__*/React__default.default.createElement("div", {
|
|
194
|
+
className: classNames__default.default(styles['confirmation__icon']),
|
|
201
195
|
style: {
|
|
202
|
-
backgroundColor:
|
|
196
|
+
backgroundColor: CssAccessorsWithFallback__namespace["".concat(uppercaseFirst(kind), "100")] || CssAccessorsWithFallback__namespace.Second100
|
|
203
197
|
}
|
|
204
|
-
},
|
|
205
|
-
color:
|
|
206
|
-
}, icon.props)) : icon),
|
|
198
|
+
}, /*#__PURE__*/React__default.default.isValidElement(icon) && icon.type ? /*#__PURE__*/React__default.default.createElement(icon.type, _extends({
|
|
199
|
+
color: CssAccessorsWithFallback__namespace["".concat(uppercaseFirst(kind), "500")] || CssAccessorsWithFallback__namespace.Second500
|
|
200
|
+
}, icon.props)) : icon), /*#__PURE__*/React__default.default.createElement("div", {
|
|
207
201
|
className: styles['confirmation__inner']
|
|
208
|
-
},
|
|
209
|
-
className:
|
|
210
|
-
}, text), description &&
|
|
211
|
-
className:
|
|
212
|
-
}, description),
|
|
213
|
-
className:
|
|
214
|
-
},
|
|
215
|
-
className:
|
|
216
|
-
},
|
|
202
|
+
}, /*#__PURE__*/React__default.default.createElement("div", {
|
|
203
|
+
className: classNames__default.default(styles['confirmation__text'], description && styles['confirmation__text--detailed'])
|
|
204
|
+
}, text), description && /*#__PURE__*/React__default.default.createElement("div", {
|
|
205
|
+
className: classNames__default.default(styles['confirmation__description'])
|
|
206
|
+
}, description), /*#__PURE__*/React__default.default.createElement("div", {
|
|
207
|
+
className: classNames__default.default(styles['confirmation__controls'])
|
|
208
|
+
}, /*#__PURE__*/React__default.default.createElement("div", {
|
|
209
|
+
className: classNames__default.default(styles['confirmation__controls__item'])
|
|
210
|
+
}, /*#__PURE__*/React__default.default.createElement(button.Button, _extends({
|
|
217
211
|
kind: kind
|
|
218
212
|
}, confirmButtonProps, {
|
|
219
213
|
onClick: onConfirm
|
|
220
|
-
}), confirmLabel)),
|
|
221
|
-
className:
|
|
222
|
-
},
|
|
214
|
+
}), confirmLabel)), /*#__PURE__*/React__default.default.createElement("div", {
|
|
215
|
+
className: classNames__default.default(styles['confirmation__controls__item'])
|
|
216
|
+
}, /*#__PURE__*/React__default.default.createElement(button.Button, _extends({}, cancelButtonProps, {
|
|
223
217
|
onClick: onCancel
|
|
224
218
|
}), cancelLabel))))));
|
|
225
219
|
};
|
|
@@ -272,16 +266,14 @@ var ConfirmationBody = function ConfirmationBody(_ref) {
|
|
|
272
266
|
* display, if necessary.
|
|
273
267
|
*/
|
|
274
268
|
var Confirmation = /*#__PURE__*/function (_React$Component) {
|
|
275
|
-
_inherits(Confirmation, _React$Component);
|
|
276
269
|
function Confirmation() {
|
|
277
|
-
var _getPrototypeOf2;
|
|
278
270
|
var _this;
|
|
279
271
|
_classCallCheck(this, Confirmation);
|
|
280
272
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
281
273
|
args[_key] = arguments[_key];
|
|
282
274
|
}
|
|
283
|
-
_this =
|
|
284
|
-
_defineProperty(
|
|
275
|
+
_this = _callSuper(this, Confirmation, [].concat(args));
|
|
276
|
+
_defineProperty(_this, "onConfirm", function () {
|
|
285
277
|
if (_this.props.onConfirm) {
|
|
286
278
|
_this.props.onConfirm();
|
|
287
279
|
}
|
|
@@ -289,7 +281,7 @@ var Confirmation = /*#__PURE__*/function (_React$Component) {
|
|
|
289
281
|
_this.setOpened(false);
|
|
290
282
|
}
|
|
291
283
|
});
|
|
292
|
-
_defineProperty(
|
|
284
|
+
_defineProperty(_this, "onCancel", function () {
|
|
293
285
|
if (_this.props.onCancel) {
|
|
294
286
|
_this.props.onCancel();
|
|
295
287
|
}
|
|
@@ -299,7 +291,8 @@ var Confirmation = /*#__PURE__*/function (_React$Component) {
|
|
|
299
291
|
});
|
|
300
292
|
return _this;
|
|
301
293
|
}
|
|
302
|
-
|
|
294
|
+
_inherits(Confirmation, _React$Component);
|
|
295
|
+
return _createClass(Confirmation, [{
|
|
303
296
|
key: "render",
|
|
304
297
|
value: function render() {
|
|
305
298
|
var _this2 = this;
|
|
@@ -309,12 +302,12 @@ var Confirmation = /*#__PURE__*/function (_React$Component) {
|
|
|
309
302
|
popoverPosition = _this$props.popoverPosition,
|
|
310
303
|
cancelOnOuterAction = _this$props.cancelOnOuterAction,
|
|
311
304
|
getContainerElement = _this$props.getContainerElement,
|
|
312
|
-
otherProps = _objectWithoutProperties(_this$props,
|
|
313
|
-
return
|
|
305
|
+
otherProps = _objectWithoutProperties(_this$props, _excluded);
|
|
306
|
+
return /*#__PURE__*/React__default.default.createElement(popover.Popover, {
|
|
314
307
|
isOpen: popoverOpen,
|
|
315
308
|
getPopoverPosition: popoverPosition,
|
|
316
309
|
getContainerElement: getContainerElement,
|
|
317
|
-
body:
|
|
310
|
+
body: /*#__PURE__*/React__default.default.createElement(ConfirmationBody, _extends({}, otherProps, {
|
|
318
311
|
onConfirm: this.onConfirm,
|
|
319
312
|
onCancel: this.onCancel
|
|
320
313
|
})),
|
|
@@ -332,8 +325,7 @@ var Confirmation = /*#__PURE__*/function (_React$Component) {
|
|
|
332
325
|
});
|
|
333
326
|
}
|
|
334
327
|
}]);
|
|
335
|
-
|
|
336
|
-
}(React.Component);
|
|
328
|
+
}(React__default.default.Component);
|
|
337
329
|
Confirmation.defaultProps = {
|
|
338
330
|
kind: 'second',
|
|
339
331
|
confirmLabel: 'OK',
|
|
@@ -345,8 +337,4 @@ Confirmation.defaultProps = {
|
|
|
345
337
|
popoverPosition: 'bottomLeft'
|
|
346
338
|
};
|
|
347
339
|
|
|
348
|
-
/*********************************************************************
|
|
349
|
-
* © Copyright IBM Corp. 2024
|
|
350
|
-
*********************************************************************/
|
|
351
|
-
|
|
352
340
|
exports.Confirmation = Confirmation;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@targetprocess/confirmation",
|
|
3
|
-
"version": "12.32.
|
|
3
|
+
"version": "12.32.3-ci.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/confirmation.js",
|
|
6
6
|
"module": "dist/confirmation.es.js",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"prepack": "node -r ../../.ts-node.js ../../config/rollup.config.js ."
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@targetprocess/button": "12.32.
|
|
14
|
-
"@targetprocess/css-variables": "12.32.
|
|
15
|
-
"@targetprocess/popover": "12.32.
|
|
13
|
+
"@targetprocess/button": "^12.32.3-ci.1",
|
|
14
|
+
"@targetprocess/css-variables": "^12.32.3-ci.1",
|
|
15
|
+
"@targetprocess/popover": "^12.32.3-ci.1",
|
|
16
16
|
"classnames": "^2.2.5",
|
|
17
17
|
"prop-types": "^15.6.0",
|
|
18
18
|
"react": "^16.7.0"
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"sideEffects": false,
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "9118ae26a5a5e2e85665813ff070fb44d48f65bd"
|
|
25
25
|
}
|