@targetprocess/confirmation 12.26.0-alpha.0 → 12.27.0-alpha.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/Confirmation.jsx +5 -1
- package/dist/confirmation.es.js +6 -4
- package/dist/confirmation.js +6 -4
- package/package.json +5 -5
package/Confirmation.jsx
CHANGED
|
@@ -165,6 +165,7 @@ export class Confirmation extends React.Component {
|
|
|
165
165
|
onOuterAction={cancelOnOuterAction ? this.onCancel : this.props.onOuterAction}
|
|
166
166
|
zIndex={this.props.zIndex}
|
|
167
167
|
showTip
|
|
168
|
+
trackScroll={this.props.trackScroll}
|
|
168
169
|
>
|
|
169
170
|
{({isOpen, setOpened}) => {
|
|
170
171
|
this.setOpened = setOpened
|
|
@@ -204,6 +205,8 @@ Confirmation.propTypes = {
|
|
|
204
205
|
cancelButtonProps: PropTypes.shape(Button.propTypes),
|
|
205
206
|
/** Popover position as string or function (see `Popover`'s `getPopovePosition` prop) */
|
|
206
207
|
popoverPosition: Popover.propTypes && Popover.propTypes.getPopoverPosition,
|
|
208
|
+
/** Enable scroll tracking and position adjustment */
|
|
209
|
+
trackScroll: PropTypes.bool,
|
|
207
210
|
/** DOM element to append popover to. (see `Popover`'s `getContainerElement` prop)*/
|
|
208
211
|
getContainerElement: Popover.propTypes && Popover.propTypes.getContainerElement
|
|
209
212
|
}
|
|
@@ -216,5 +219,6 @@ Confirmation.defaultProps = {
|
|
|
216
219
|
cancelOnOuterAction: true,
|
|
217
220
|
confirmButtonProps: {},
|
|
218
221
|
cancelButtonProps: {},
|
|
219
|
-
popoverPosition: 'bottomLeft'
|
|
222
|
+
popoverPosition: 'bottomLeft',
|
|
223
|
+
trackScroll: false
|
|
220
224
|
}
|
package/dist/confirmation.es.js
CHANGED
|
@@ -167,8 +167,8 @@ function styleInject(css, ref) {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.confirmation__confirmation__12-
|
|
171
|
-
var styles = {"confirmation":"confirmation__confirmation__12-
|
|
170
|
+
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.confirmation__confirmation__12-27-0-alpha-0 {\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-27-0-alpha-0 {\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-27-0-alpha-0 {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n }\n.confirmation__text__confirmation__12-27-0-alpha-0 {\n margin-bottom: var(--SpaceM, 16px);\n line-height: 1.23;\n }\n.confirmation__text--detailed__confirmation__12-27-0-alpha-0 {\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-27-0-alpha-0 {\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-27-0-alpha-0 {\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-27-0-alpha-0:not(:last-child) {\n margin-right: var(--SpaceS, 8px);\n }\n";
|
|
171
|
+
var styles = {"confirmation":"confirmation__confirmation__12-27-0-alpha-0","confirmation__icon":"confirmation__icon__confirmation__12-27-0-alpha-0","confirmation__inner":"confirmation__inner__confirmation__12-27-0-alpha-0","confirmation__text":"confirmation__text__confirmation__12-27-0-alpha-0","confirmation__text--detailed":"confirmation__text--detailed__confirmation__12-27-0-alpha-0","confirmation__description":"confirmation__description__confirmation__12-27-0-alpha-0","confirmation__controls":"confirmation__controls__confirmation__12-27-0-alpha-0","confirmation__controls__item":"confirmation__controls__item__confirmation__12-27-0-alpha-0"};
|
|
172
172
|
styleInject(css);
|
|
173
173
|
|
|
174
174
|
function uppercaseFirst(input) {
|
|
@@ -315,7 +315,8 @@ var Confirmation = /*#__PURE__*/function (_React$Component) {
|
|
|
315
315
|
})),
|
|
316
316
|
onOuterAction: cancelOnOuterAction ? this.onCancel : this.props.onOuterAction,
|
|
317
317
|
zIndex: this.props.zIndex,
|
|
318
|
-
showTip: true
|
|
318
|
+
showTip: true,
|
|
319
|
+
trackScroll: this.props.trackScroll
|
|
319
320
|
}, function (_ref2) {
|
|
320
321
|
var isOpen = _ref2.isOpen,
|
|
321
322
|
setOpened = _ref2.setOpened;
|
|
@@ -337,7 +338,8 @@ Confirmation.defaultProps = {
|
|
|
337
338
|
cancelOnOuterAction: true,
|
|
338
339
|
confirmButtonProps: {},
|
|
339
340
|
cancelButtonProps: {},
|
|
340
|
-
popoverPosition: 'bottomLeft'
|
|
341
|
+
popoverPosition: 'bottomLeft',
|
|
342
|
+
trackScroll: false
|
|
341
343
|
};
|
|
342
344
|
|
|
343
345
|
/*********************************************************************
|
package/dist/confirmation.js
CHANGED
|
@@ -172,8 +172,8 @@ function styleInject(css, ref) {
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.confirmation__confirmation__12-
|
|
176
|
-
var styles = {"confirmation":"confirmation__confirmation__12-
|
|
175
|
+
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.confirmation__confirmation__12-27-0-alpha-0 {\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-27-0-alpha-0 {\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-27-0-alpha-0 {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n }\n.confirmation__text__confirmation__12-27-0-alpha-0 {\n margin-bottom: var(--SpaceM, 16px);\n line-height: 1.23;\n }\n.confirmation__text--detailed__confirmation__12-27-0-alpha-0 {\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-27-0-alpha-0 {\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-27-0-alpha-0 {\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-27-0-alpha-0:not(:last-child) {\n margin-right: var(--SpaceS, 8px);\n }\n";
|
|
176
|
+
var styles = {"confirmation":"confirmation__confirmation__12-27-0-alpha-0","confirmation__icon":"confirmation__icon__confirmation__12-27-0-alpha-0","confirmation__inner":"confirmation__inner__confirmation__12-27-0-alpha-0","confirmation__text":"confirmation__text__confirmation__12-27-0-alpha-0","confirmation__text--detailed":"confirmation__text--detailed__confirmation__12-27-0-alpha-0","confirmation__description":"confirmation__description__confirmation__12-27-0-alpha-0","confirmation__controls":"confirmation__controls__confirmation__12-27-0-alpha-0","confirmation__controls__item":"confirmation__controls__item__confirmation__12-27-0-alpha-0"};
|
|
177
177
|
styleInject(css);
|
|
178
178
|
|
|
179
179
|
function uppercaseFirst(input) {
|
|
@@ -320,7 +320,8 @@ var Confirmation = /*#__PURE__*/function (_React$Component) {
|
|
|
320
320
|
})),
|
|
321
321
|
onOuterAction: cancelOnOuterAction ? this.onCancel : this.props.onOuterAction,
|
|
322
322
|
zIndex: this.props.zIndex,
|
|
323
|
-
showTip: true
|
|
323
|
+
showTip: true,
|
|
324
|
+
trackScroll: this.props.trackScroll
|
|
324
325
|
}, function (_ref2) {
|
|
325
326
|
var isOpen = _ref2.isOpen,
|
|
326
327
|
setOpened = _ref2.setOpened;
|
|
@@ -342,7 +343,8 @@ Confirmation.defaultProps = {
|
|
|
342
343
|
cancelOnOuterAction: true,
|
|
343
344
|
confirmButtonProps: {},
|
|
344
345
|
cancelButtonProps: {},
|
|
345
|
-
popoverPosition: 'bottomLeft'
|
|
346
|
+
popoverPosition: 'bottomLeft',
|
|
347
|
+
trackScroll: false
|
|
346
348
|
};
|
|
347
349
|
|
|
348
350
|
/*********************************************************************
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@targetprocess/confirmation",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.27.0-alpha.0",
|
|
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.
|
|
14
|
-
"@targetprocess/css-variables": "^12.
|
|
15
|
-
"@targetprocess/popover": "^12.
|
|
13
|
+
"@targetprocess/button": "^12.27.0-alpha.0",
|
|
14
|
+
"@targetprocess/css-variables": "^12.27.0-alpha.0",
|
|
15
|
+
"@targetprocess/popover": "^12.27.0-alpha.0",
|
|
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": "8e7f0780150a0a72d192eafa278de9a65b6db313"
|
|
25
25
|
}
|