@targetprocess/confirmation 12.31.0 → 12.32.2
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.d.ts +44 -0
- package/dist/confirmation.es.js +2 -2
- package/dist/confirmation.js +2 -2
- package/package.json +5 -5
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* © Copyright IBM Corp. 2024
|
|
3
|
+
*********************************************************************/
|
|
4
|
+
import * as React from 'react'
|
|
5
|
+
|
|
6
|
+
export interface ConfirmationBodyProps {
|
|
7
|
+
icon?: React.ReactElement
|
|
8
|
+
kind?: string
|
|
9
|
+
text: React.ReactNode
|
|
10
|
+
description?: React.ReactNode
|
|
11
|
+
confirmButtonProps?: any
|
|
12
|
+
cancelButtonProps?: any
|
|
13
|
+
onConfirm?: () => void
|
|
14
|
+
onCancel?: () => void
|
|
15
|
+
confirmLabel: string
|
|
16
|
+
cancelLabel: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const ConfirmationBody: React.FC<ConfirmationBodyProps>
|
|
20
|
+
|
|
21
|
+
export interface ConfirmationProps {
|
|
22
|
+
isOpen?: boolean
|
|
23
|
+
kind?: string
|
|
24
|
+
icon?: React.ReactElement
|
|
25
|
+
text: React.ReactNode
|
|
26
|
+
description?: React.ReactNode
|
|
27
|
+
onConfirm?: () => void
|
|
28
|
+
onCancel?: () => void
|
|
29
|
+
closeOnAnyAction?: boolean
|
|
30
|
+
cancelOnOuterAction?: boolean
|
|
31
|
+
confirmLabel: string
|
|
32
|
+
cancelLabel: string
|
|
33
|
+
confirmButtonProps?: any
|
|
34
|
+
cancelButtonProps?: any
|
|
35
|
+
popoverPosition?: any
|
|
36
|
+
getContainerElement?: () => HTMLElement
|
|
37
|
+
onOuterAction?: () => void
|
|
38
|
+
zIndex?: number
|
|
39
|
+
children?:
|
|
40
|
+
| React.ReactNode
|
|
41
|
+
| ((props: {isOpen: boolean; setOpened: (open: boolean) => void}) => React.ReactNode)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export class Confirmation extends React.Component<ConfirmationProps> {}
|
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-32-2 {\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-2 {\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-2 {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n }\n.confirmation__text__confirmation__12-32-2 {\n margin-bottom: var(--SpaceM, 16px);\n line-height: 1.23;\n }\n.confirmation__text--detailed__confirmation__12-32-2 {\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-2 {\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-2 {\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-2:not(:last-child) {\n margin-right: var(--SpaceS, 8px);\n }\n";
|
|
171
|
+
var styles = {"confirmation":"confirmation__confirmation__12-32-2","confirmation__icon":"confirmation__icon__confirmation__12-32-2","confirmation__inner":"confirmation__inner__confirmation__12-32-2","confirmation__text":"confirmation__text__confirmation__12-32-2","confirmation__text--detailed":"confirmation__text--detailed__confirmation__12-32-2","confirmation__description":"confirmation__description__confirmation__12-32-2","confirmation__controls":"confirmation__controls__confirmation__12-32-2","confirmation__controls__item":"confirmation__controls__item__confirmation__12-32-2"};
|
|
172
172
|
styleInject(css);
|
|
173
173
|
|
|
174
174
|
function uppercaseFirst(input) {
|
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-32-2 {\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-2 {\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-2 {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n }\n.confirmation__text__confirmation__12-32-2 {\n margin-bottom: var(--SpaceM, 16px);\n line-height: 1.23;\n }\n.confirmation__text--detailed__confirmation__12-32-2 {\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-2 {\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-2 {\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-2:not(:last-child) {\n margin-right: var(--SpaceS, 8px);\n }\n";
|
|
176
|
+
var styles = {"confirmation":"confirmation__confirmation__12-32-2","confirmation__icon":"confirmation__icon__confirmation__12-32-2","confirmation__inner":"confirmation__inner__confirmation__12-32-2","confirmation__text":"confirmation__text__confirmation__12-32-2","confirmation__text--detailed":"confirmation__text--detailed__confirmation__12-32-2","confirmation__description":"confirmation__description__confirmation__12-32-2","confirmation__controls":"confirmation__controls__confirmation__12-32-2","confirmation__controls__item":"confirmation__controls__item__confirmation__12-32-2"};
|
|
177
177
|
styleInject(css);
|
|
178
178
|
|
|
179
179
|
function uppercaseFirst(input) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@targetprocess/confirmation",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.32.2",
|
|
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": "
|
|
14
|
-
"@targetprocess/css-variables": "
|
|
15
|
-
"@targetprocess/popover": "
|
|
13
|
+
"@targetprocess/button": "12.32.2",
|
|
14
|
+
"@targetprocess/css-variables": "12.32.2",
|
|
15
|
+
"@targetprocess/popover": "12.32.2",
|
|
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": "42107ff130ebf3943c68475aee7b66534fb139b1"
|
|
25
25
|
}
|