@kaizen/components 1.73.2 → 1.73.4
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/dist/cjs/Modal/ConfirmationModal/ConfirmationModal.cjs +4 -2
- package/dist/cjs/Modal/ContextModal/ContextModal.cjs +4 -2
- package/dist/cjs/Modal/GenericModal/GenericModal.cjs +4 -2
- package/dist/cjs/Modal/InputEditModal/InputEditModal.cjs +12 -14
- package/dist/cjs/Modal/InputEditModal/InputEditModal.module.scss.cjs +0 -1
- package/dist/esm/Modal/ConfirmationModal/ConfirmationModal.mjs +4 -2
- package/dist/esm/Modal/ContextModal/ContextModal.mjs +4 -2
- package/dist/esm/Modal/GenericModal/GenericModal.mjs +4 -2
- package/dist/esm/Modal/InputEditModal/InputEditModal.mjs +12 -14
- package/dist/esm/Modal/InputEditModal/InputEditModal.module.scss.mjs +0 -1
- package/dist/styles.css +21 -24
- package/dist/types/Modal/ConfirmationModal/ConfirmationModal.d.ts +1 -1
- package/dist/types/Modal/ContextModal/ContextModal.d.ts +1 -1
- package/dist/types/Modal/GenericModal/GenericModal.d.ts +2 -1
- package/dist/types/Modal/InputEditModal/InputEditModal.d.ts +1 -2
- package/package.json +3 -3
- package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +6 -6
- package/src/Modal/ConfirmationModal/ConfirmationModal.tsx +2 -0
- package/src/Modal/ContextModal/ContextModal.module.scss +2 -2
- package/src/Modal/ContextModal/ContextModal.tsx +2 -0
- package/src/Modal/GenericModal/GenericModal.module.scss +1 -1
- package/src/Modal/GenericModal/GenericModal.tsx +3 -0
- package/src/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.module.scss +1 -1
- package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.module.scss +5 -5
- package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss +2 -2
- package/src/Modal/InputEditModal/InputEditModal.module.scss +1 -5
- package/src/Modal/InputEditModal/InputEditModal.tsx +5 -16
|
@@ -86,7 +86,8 @@ var ConfirmationModal = function (_a) {
|
|
|
86
86
|
confirmWorking = _a.confirmWorking,
|
|
87
87
|
propsOnDismiss = _a.onDismiss,
|
|
88
88
|
children = _a.children,
|
|
89
|
-
|
|
89
|
+
className = _a.className,
|
|
90
|
+
props = tslib.__rest(_a, ["isOpen", "isProminent", "unpadded", "mood", "variant", "title", "onConfirm", "onAfterLeave", "onAfterEnter", "confirmLabel", "dismissLabel", "confirmWorking", "onDismiss", "children", "className"]);
|
|
90
91
|
var variantName = variant !== null && variant !== undefined ? variant : mood;
|
|
91
92
|
var onDismiss = confirmWorking ? undefined : propsOnDismiss;
|
|
92
93
|
var footerActions = [];
|
|
@@ -112,7 +113,8 @@ var ConfirmationModal = function (_a) {
|
|
|
112
113
|
onEscapeKeyup: onDismiss,
|
|
113
114
|
onOutsideModalClick: onDismiss,
|
|
114
115
|
onAfterLeave: onAfterLeave,
|
|
115
|
-
onAfterEnter: onAfterEnter
|
|
116
|
+
onAfterEnter: onAfterEnter,
|
|
117
|
+
className: className
|
|
116
118
|
}, React__default.default.createElement("div", tslib.__assign({
|
|
117
119
|
className: ConfirmationModal_module.modal,
|
|
118
120
|
"data-modal": true
|
|
@@ -44,7 +44,8 @@ var ContextModal = function (_a) {
|
|
|
44
44
|
image = _a.image,
|
|
45
45
|
secondaryLabel = _a.secondaryLabel,
|
|
46
46
|
onSecondaryAction = _a.onSecondaryAction,
|
|
47
|
-
|
|
47
|
+
className = _a.className,
|
|
48
|
+
props = tslib.__rest(_a, ["isOpen", "unpadded", "layout", "title", "onConfirm", "onDismiss", "onAfterLeave", "onAfterEnter", "confirmLabel", "confirmWorking", "renderBackground", "children", "contentHeader", "image", "secondaryLabel", "onSecondaryAction", "className"]);
|
|
48
49
|
var onDismiss = confirmWorking ? undefined : propsOnDismiss;
|
|
49
50
|
var footerActions = [];
|
|
50
51
|
var workingProps = confirmWorking ? {
|
|
@@ -71,7 +72,8 @@ var ContextModal = function (_a) {
|
|
|
71
72
|
onEscapeKeyup: onDismiss,
|
|
72
73
|
onOutsideModalClick: onDismiss,
|
|
73
74
|
onAfterLeave: onAfterLeave,
|
|
74
|
-
onAfterEnter: onAfterEnter
|
|
75
|
+
onAfterEnter: onAfterEnter,
|
|
76
|
+
className: className
|
|
75
77
|
}, React__default.default.createElement("div", tslib.__assign({
|
|
76
78
|
className: ContextModal_module.modal,
|
|
77
79
|
"data-modal": true
|
|
@@ -23,7 +23,8 @@ var GenericModal = function (_a) {
|
|
|
23
23
|
onEscapeKeyup = _a.onEscapeKeyup,
|
|
24
24
|
onOutsideModalClick = _a.onOutsideModalClick,
|
|
25
25
|
onAfterEnter = _a.onAfterEnter,
|
|
26
|
-
propsOnAfterLeave = _a.onAfterLeave
|
|
26
|
+
propsOnAfterLeave = _a.onAfterLeave,
|
|
27
|
+
className = _a.className;
|
|
27
28
|
var reactId = React.useId();
|
|
28
29
|
var id = propsId !== null && propsId !== undefined ? propsId : reactId;
|
|
29
30
|
var labelledByID = React.useId();
|
|
@@ -119,7 +120,8 @@ var GenericModal = function (_a) {
|
|
|
119
120
|
"data-generic-modal-transition-wrapper": true,
|
|
120
121
|
onClick: function (e) {
|
|
121
122
|
return e.stopPropagation();
|
|
122
|
-
}
|
|
123
|
+
},
|
|
124
|
+
className: className
|
|
123
125
|
}, React__default.default.createElement(FocusLock__default.default, {
|
|
124
126
|
disabled: focusLockDisabled,
|
|
125
127
|
returnFocus: true,
|
|
@@ -31,20 +31,19 @@ var InputEditModal = function (_a) {
|
|
|
31
31
|
onSubmit = _a.onSubmit,
|
|
32
32
|
onSecondaryAction = _a.onSecondaryAction,
|
|
33
33
|
onAfterLeave = _a.onAfterLeave,
|
|
34
|
-
_b = _a.
|
|
35
|
-
|
|
36
|
-
_c = _a.
|
|
37
|
-
|
|
38
|
-
_d = _a.dismissLabel,
|
|
39
|
-
dismissLabel = _d === undefined ? 'Cancel' : _d,
|
|
34
|
+
_b = _a.submitLabel,
|
|
35
|
+
submitLabel = _b === undefined ? 'Submit' : _b,
|
|
36
|
+
_c = _a.dismissLabel,
|
|
37
|
+
dismissLabel = _c === undefined ? 'Cancel' : _c,
|
|
40
38
|
secondaryLabel = _a.secondaryLabel,
|
|
41
39
|
submitWorking = _a.submitWorking,
|
|
42
40
|
children = _a.children,
|
|
43
|
-
|
|
44
|
-
unpadded =
|
|
41
|
+
_d = _a.unpadded,
|
|
42
|
+
unpadded = _d === undefined ? false : _d,
|
|
45
43
|
propsOnDismiss = _a.onDismiss,
|
|
46
44
|
onAfterEnter = _a.onAfterEnter,
|
|
47
|
-
|
|
45
|
+
className = _a.className,
|
|
46
|
+
props = tslib.__rest(_a, ["isOpen", "mood", "title", "onSubmit", "onSecondaryAction", "onAfterLeave", "submitLabel", "dismissLabel", "secondaryLabel", "submitWorking", "children", "unpadded", "onDismiss", "onAfterEnter", "className"]);
|
|
48
47
|
var onDismiss = submitWorking ? undefined : propsOnDismiss;
|
|
49
48
|
var submitAction = {
|
|
50
49
|
label: submitLabel,
|
|
@@ -65,21 +64,20 @@ var InputEditModal = function (_a) {
|
|
|
65
64
|
isOpen: isOpen,
|
|
66
65
|
onEscapeKeyup: onDismiss,
|
|
67
66
|
onAfterLeave: onAfterLeave,
|
|
68
|
-
onAfterEnter: onAfterEnter
|
|
67
|
+
onAfterEnter: onAfterEnter,
|
|
68
|
+
className: className
|
|
69
69
|
}, React__default.default.createElement("div", tslib.__assign({
|
|
70
70
|
className: InputEditModal_module.modal,
|
|
71
|
-
dir: localeDirection,
|
|
72
71
|
"data-modal": true
|
|
73
72
|
}, props), React__default.default.createElement(ModalHeader.ModalHeader, {
|
|
74
73
|
onDismiss: onDismiss
|
|
75
74
|
}, React__default.default.createElement("div", {
|
|
76
|
-
className: classnames__default.default(InputEditModal_module.header,
|
|
75
|
+
className: classnames__default.default(InputEditModal_module.header, !unpadded && InputEditModal_module.padded)
|
|
77
76
|
}, React__default.default.createElement(ModalAccessibleLabel.ModalAccessibleLabel, null, React__default.default.createElement(Heading.Heading, {
|
|
78
77
|
tag: "h2",
|
|
79
78
|
variant: "heading-2"
|
|
80
79
|
}, title)))), React__default.default.createElement(ModalBody.ModalBody, null, React__default.default.createElement("div", {
|
|
81
|
-
className: classnames__default.default(InputEditModal_module.body, !unpadded && InputEditModal_module.padded)
|
|
82
|
-
dir: localeDirection
|
|
80
|
+
className: classnames__default.default(InputEditModal_module.body, !unpadded && InputEditModal_module.padded)
|
|
83
81
|
}, children)), React__default.default.createElement(ModalFooter.ModalFooter, {
|
|
84
82
|
actions: footerActions,
|
|
85
83
|
appearance: mood === 'destructive' ? 'destructive' : 'primary',
|
|
@@ -18,7 +18,6 @@ var styles = {
|
|
|
18
18
|
"custom-5": "InputEditModal-module_custom-5__trORr",
|
|
19
19
|
"custom-7": "InputEditModal-module_custom-7__-98CZ",
|
|
20
20
|
"header": "InputEditModal-module_header__nivTf",
|
|
21
|
-
"textAlignRTL": "InputEditModal-module_textAlignRTL__5QQP8",
|
|
22
21
|
"padded": "InputEditModal-module_padded__ZdEIS",
|
|
23
22
|
"body": "InputEditModal-module_body__LyxBE"
|
|
24
23
|
};
|
|
@@ -78,7 +78,8 @@ const ConfirmationModal = /*#__PURE__*/function () {
|
|
|
78
78
|
confirmWorking = _a.confirmWorking,
|
|
79
79
|
propsOnDismiss = _a.onDismiss,
|
|
80
80
|
children = _a.children,
|
|
81
|
-
|
|
81
|
+
className = _a.className,
|
|
82
|
+
props = __rest(_a, ["isOpen", "isProminent", "unpadded", "mood", "variant", "title", "onConfirm", "onAfterLeave", "onAfterEnter", "confirmLabel", "dismissLabel", "confirmWorking", "onDismiss", "children", "className"]);
|
|
82
83
|
var variantName = variant !== null && variant !== undefined ? variant : mood;
|
|
83
84
|
var onDismiss = confirmWorking ? undefined : propsOnDismiss;
|
|
84
85
|
var footerActions = [];
|
|
@@ -104,7 +105,8 @@ const ConfirmationModal = /*#__PURE__*/function () {
|
|
|
104
105
|
onEscapeKeyup: onDismiss,
|
|
105
106
|
onOutsideModalClick: onDismiss,
|
|
106
107
|
onAfterLeave: onAfterLeave,
|
|
107
|
-
onAfterEnter: onAfterEnter
|
|
108
|
+
onAfterEnter: onAfterEnter,
|
|
109
|
+
className: className
|
|
108
110
|
}, /*#__PURE__*/React.createElement("div", __assign({
|
|
109
111
|
className: styles.modal,
|
|
110
112
|
"data-modal": true
|
|
@@ -36,7 +36,8 @@ const ContextModal = /*#__PURE__*/function () {
|
|
|
36
36
|
image = _a.image,
|
|
37
37
|
secondaryLabel = _a.secondaryLabel,
|
|
38
38
|
onSecondaryAction = _a.onSecondaryAction,
|
|
39
|
-
|
|
39
|
+
className = _a.className,
|
|
40
|
+
props = __rest(_a, ["isOpen", "unpadded", "layout", "title", "onConfirm", "onDismiss", "onAfterLeave", "onAfterEnter", "confirmLabel", "confirmWorking", "renderBackground", "children", "contentHeader", "image", "secondaryLabel", "onSecondaryAction", "className"]);
|
|
40
41
|
var onDismiss = confirmWorking ? undefined : propsOnDismiss;
|
|
41
42
|
var footerActions = [];
|
|
42
43
|
var workingProps = confirmWorking ? {
|
|
@@ -63,7 +64,8 @@ const ContextModal = /*#__PURE__*/function () {
|
|
|
63
64
|
onEscapeKeyup: onDismiss,
|
|
64
65
|
onOutsideModalClick: onDismiss,
|
|
65
66
|
onAfterLeave: onAfterLeave,
|
|
66
|
-
onAfterEnter: onAfterEnter
|
|
67
|
+
onAfterEnter: onAfterEnter,
|
|
68
|
+
className: className
|
|
67
69
|
}, /*#__PURE__*/React.createElement("div", __assign({
|
|
68
70
|
className: styles.modal,
|
|
69
71
|
"data-modal": true
|
|
@@ -15,7 +15,8 @@ const GenericModal = /*#__PURE__*/function () {
|
|
|
15
15
|
onEscapeKeyup = _a.onEscapeKeyup,
|
|
16
16
|
onOutsideModalClick = _a.onOutsideModalClick,
|
|
17
17
|
onAfterEnter = _a.onAfterEnter,
|
|
18
|
-
propsOnAfterLeave = _a.onAfterLeave
|
|
18
|
+
propsOnAfterLeave = _a.onAfterLeave,
|
|
19
|
+
className = _a.className;
|
|
19
20
|
var reactId = useId();
|
|
20
21
|
var id = propsId !== null && propsId !== undefined ? propsId : reactId;
|
|
21
22
|
var labelledByID = useId();
|
|
@@ -111,7 +112,8 @@ const GenericModal = /*#__PURE__*/function () {
|
|
|
111
112
|
"data-generic-modal-transition-wrapper": true,
|
|
112
113
|
onClick: function (e) {
|
|
113
114
|
return e.stopPropagation();
|
|
114
|
-
}
|
|
115
|
+
},
|
|
116
|
+
className: className
|
|
115
117
|
}, /*#__PURE__*/React.createElement(FocusLock, {
|
|
116
118
|
disabled: focusLockDisabled,
|
|
117
119
|
returnFocus: true,
|
|
@@ -23,20 +23,19 @@ const InputEditModal = /*#__PURE__*/function () {
|
|
|
23
23
|
onSubmit = _a.onSubmit,
|
|
24
24
|
onSecondaryAction = _a.onSecondaryAction,
|
|
25
25
|
onAfterLeave = _a.onAfterLeave,
|
|
26
|
-
_b = _a.
|
|
27
|
-
|
|
28
|
-
_c = _a.
|
|
29
|
-
|
|
30
|
-
_d = _a.dismissLabel,
|
|
31
|
-
dismissLabel = _d === undefined ? 'Cancel' : _d,
|
|
26
|
+
_b = _a.submitLabel,
|
|
27
|
+
submitLabel = _b === undefined ? 'Submit' : _b,
|
|
28
|
+
_c = _a.dismissLabel,
|
|
29
|
+
dismissLabel = _c === undefined ? 'Cancel' : _c,
|
|
32
30
|
secondaryLabel = _a.secondaryLabel,
|
|
33
31
|
submitWorking = _a.submitWorking,
|
|
34
32
|
children = _a.children,
|
|
35
|
-
|
|
36
|
-
unpadded =
|
|
33
|
+
_d = _a.unpadded,
|
|
34
|
+
unpadded = _d === undefined ? false : _d,
|
|
37
35
|
propsOnDismiss = _a.onDismiss,
|
|
38
36
|
onAfterEnter = _a.onAfterEnter,
|
|
39
|
-
|
|
37
|
+
className = _a.className,
|
|
38
|
+
props = __rest(_a, ["isOpen", "mood", "title", "onSubmit", "onSecondaryAction", "onAfterLeave", "submitLabel", "dismissLabel", "secondaryLabel", "submitWorking", "children", "unpadded", "onDismiss", "onAfterEnter", "className"]);
|
|
40
39
|
var onDismiss = submitWorking ? undefined : propsOnDismiss;
|
|
41
40
|
var submitAction = {
|
|
42
41
|
label: submitLabel,
|
|
@@ -57,21 +56,20 @@ const InputEditModal = /*#__PURE__*/function () {
|
|
|
57
56
|
isOpen: isOpen,
|
|
58
57
|
onEscapeKeyup: onDismiss,
|
|
59
58
|
onAfterLeave: onAfterLeave,
|
|
60
|
-
onAfterEnter: onAfterEnter
|
|
59
|
+
onAfterEnter: onAfterEnter,
|
|
60
|
+
className: className
|
|
61
61
|
}, /*#__PURE__*/React.createElement("div", __assign({
|
|
62
62
|
className: styles.modal,
|
|
63
|
-
dir: localeDirection,
|
|
64
63
|
"data-modal": true
|
|
65
64
|
}, props), /*#__PURE__*/React.createElement(ModalHeader, {
|
|
66
65
|
onDismiss: onDismiss
|
|
67
66
|
}, /*#__PURE__*/React.createElement("div", {
|
|
68
|
-
className: classnames(styles.header,
|
|
67
|
+
className: classnames(styles.header, !unpadded && styles.padded)
|
|
69
68
|
}, /*#__PURE__*/React.createElement(ModalAccessibleLabel, null, /*#__PURE__*/React.createElement(Heading, {
|
|
70
69
|
tag: "h2",
|
|
71
70
|
variant: "heading-2"
|
|
72
71
|
}, title)))), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement("div", {
|
|
73
|
-
className: classnames(styles.body, !unpadded && styles.padded)
|
|
74
|
-
dir: localeDirection
|
|
72
|
+
className: classnames(styles.body, !unpadded && styles.padded)
|
|
75
73
|
}, children)), /*#__PURE__*/React.createElement(ModalFooter, {
|
|
76
74
|
actions: footerActions,
|
|
77
75
|
appearance: mood === 'destructive' ? 'destructive' : 'primary',
|
|
@@ -16,7 +16,6 @@ var styles = {
|
|
|
16
16
|
"custom-5": "InputEditModal-module_custom-5__trORr",
|
|
17
17
|
"custom-7": "InputEditModal-module_custom-7__-98CZ",
|
|
18
18
|
"header": "InputEditModal-module_header__nivTf",
|
|
19
|
-
"textAlignRTL": "InputEditModal-module_textAlignRTL__5QQP8",
|
|
20
19
|
"padded": "InputEditModal-module_padded__ZdEIS",
|
|
21
20
|
"body": "InputEditModal-module_body__LyxBE"
|
|
22
21
|
};
|
package/dist/styles.css
CHANGED
|
@@ -6409,7 +6409,7 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
6409
6409
|
|
|
6410
6410
|
.GenericModal-module_pseudoScrollbar__BhRqh {
|
|
6411
6411
|
/* Tech debt - this !important existed before Stylelint rules */
|
|
6412
|
-
padding-
|
|
6412
|
+
padding-inline-end: 15px !important; /* stylelint-disable-line declaration-no-important */
|
|
6413
6413
|
}
|
|
6414
6414
|
|
|
6415
6415
|
.GenericModal-module_hide__SK9PI {
|
|
@@ -6460,11 +6460,11 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
6460
6460
|
}
|
|
6461
6461
|
|
|
6462
6462
|
.ModalFooter-module_actionButton__YD4vG + .ModalFooter-module_actionButton__YD4vG {
|
|
6463
|
-
margin-
|
|
6463
|
+
margin-inline-end: var(--spacing-sm, 0.75rem);
|
|
6464
6464
|
}
|
|
6465
6465
|
@media (max-width: calc(768px - 1px)) {
|
|
6466
6466
|
.ModalFooter-module_actionButton__YD4vG + .ModalFooter-module_actionButton__YD4vG {
|
|
6467
|
-
margin-
|
|
6467
|
+
margin-block-start: var(--spacing-sm, 0.75rem);
|
|
6468
6468
|
}
|
|
6469
6469
|
}
|
|
6470
6470
|
|
|
@@ -6480,7 +6480,7 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
6480
6480
|
}
|
|
6481
6481
|
|
|
6482
6482
|
.ModalFooter-module_border__jj-Zy {
|
|
6483
|
-
border-
|
|
6483
|
+
border-block-start: 1px solid var(--border-solid-border-color, #e1e2ea);
|
|
6484
6484
|
}
|
|
6485
6485
|
|
|
6486
6486
|
.ModalFooter-module_start__0GJno {
|
|
@@ -6495,8 +6495,8 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
6495
6495
|
|
|
6496
6496
|
.ModalFooter-module_fixed__mV5fZ {
|
|
6497
6497
|
position: absolute;
|
|
6498
|
-
|
|
6499
|
-
|
|
6498
|
+
inset-block-end: 0;
|
|
6499
|
+
inset-inline-start: 0;
|
|
6500
6500
|
}
|
|
6501
6501
|
|
|
6502
6502
|
.ModalFooter-module_filler__kElGb {
|
|
@@ -6531,8 +6531,8 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
6531
6531
|
|
|
6532
6532
|
.ModalHeader-module_fixed__JEeic {
|
|
6533
6533
|
position: absolute;
|
|
6534
|
-
|
|
6535
|
-
|
|
6534
|
+
inset-block-start: 0;
|
|
6535
|
+
inset-inline-start: 0;
|
|
6536
6536
|
}
|
|
6537
6537
|
|
|
6538
6538
|
.ModalHeader-module_filler__w1MCN {
|
|
@@ -6555,7 +6555,7 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
6555
6555
|
}
|
|
6556
6556
|
.ModalAccessibleLabel-module_modalLabel__CQAIs.ModalAccessibleLabel-module_prominent__WEPnY {
|
|
6557
6557
|
grid-column-start: 2;
|
|
6558
|
-
text-align:
|
|
6558
|
+
text-align: start;
|
|
6559
6559
|
}
|
|
6560
6560
|
.ModalAccessibleLabel-module_modalLabel__CQAIs:focus {
|
|
6561
6561
|
outline: none;
|
|
@@ -6798,7 +6798,7 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
6798
6798
|
|
|
6799
6799
|
.ConfirmationModal-module_pseudoScrollbar__NqMuT {
|
|
6800
6800
|
/* Tech debt - this !important existed before Stylelint rules */
|
|
6801
|
-
padding-
|
|
6801
|
+
padding-inline-end: 15px !important; /* stylelint-disable-line declaration-no-important */
|
|
6802
6802
|
}
|
|
6803
6803
|
|
|
6804
6804
|
.ConfirmationModal-module_hide__jOdWV {
|
|
@@ -6819,7 +6819,7 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
6819
6819
|
grid-template-columns: 0.2fr 2fr;
|
|
6820
6820
|
align-items: center;
|
|
6821
6821
|
color: var(--color-white, #ffffff);
|
|
6822
|
-
text-align:
|
|
6822
|
+
text-align: start;
|
|
6823
6823
|
border-radius: var(--border-solid-border-radius, 7px) var(--border-solid-border-radius, 7px) 0 0;
|
|
6824
6824
|
}
|
|
6825
6825
|
.ConfirmationModal-module_header__Ooy23.ConfirmationModal-module_padded__nGa2- {
|
|
@@ -6850,9 +6850,9 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
6850
6850
|
}
|
|
6851
6851
|
@media (max-width: 768px) {
|
|
6852
6852
|
.ConfirmationModal-module_iconContainer__QjdGa .ConfirmationModal-module_spotIcon__rFSHQ {
|
|
6853
|
-
margin-
|
|
6853
|
+
margin-inline-end: 0.9375rem;
|
|
6854
6854
|
position: relative;
|
|
6855
|
-
|
|
6855
|
+
inset-block-start: 0.125rem;
|
|
6856
6856
|
}
|
|
6857
6857
|
}
|
|
6858
6858
|
|
|
@@ -6872,13 +6872,13 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
6872
6872
|
}
|
|
6873
6873
|
.ConfirmationModal-module_prominent__8-gkP .ConfirmationModal-module_iconContainer__QjdGa {
|
|
6874
6874
|
position: absolute;
|
|
6875
|
-
|
|
6875
|
+
inset-block-start: 8%;
|
|
6876
6876
|
}
|
|
6877
6877
|
@media (max-width: 768px) {
|
|
6878
6878
|
.ConfirmationModal-module_prominent__8-gkP .ConfirmationModal-module_iconContainer__QjdGa {
|
|
6879
6879
|
position: relative;
|
|
6880
|
-
|
|
6881
|
-
margin-
|
|
6880
|
+
inset-block-start: 0;
|
|
6881
|
+
margin-block-end: var(--spacing-sm, 0.75rem);
|
|
6882
6882
|
}
|
|
6883
6883
|
}
|
|
6884
6884
|
.ConfirmationModal-module_prominent__8-gkP .ConfirmationModal-module_spotIcon__rFSHQ {
|
|
@@ -7153,7 +7153,7 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
7153
7153
|
|
|
7154
7154
|
.ContextModal-module_pseudoScrollbar__6RfHj {
|
|
7155
7155
|
/* Tech debt - this !important existed before Stylelint rules */
|
|
7156
|
-
padding-
|
|
7156
|
+
padding-inline-end: 15px !important; /* stylelint-disable-line declaration-no-important */
|
|
7157
7157
|
}
|
|
7158
7158
|
|
|
7159
7159
|
.ContextModal-module_hide__Sdnsg {
|
|
@@ -7228,7 +7228,7 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
7228
7228
|
}
|
|
7229
7229
|
|
|
7230
7230
|
.ContextModal-module_footerWithSecondaryAction__-5sq8 {
|
|
7231
|
-
margin-
|
|
7231
|
+
margin-inline-start: calc(-1 * var(--spacing-sm, 0.75rem));
|
|
7232
7232
|
}
|
|
7233
7233
|
|
|
7234
7234
|
.ContextModal-module_emptyFooter__UHWc- {
|
|
@@ -7268,7 +7268,7 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
7268
7268
|
justify-content: center;
|
|
7269
7269
|
}
|
|
7270
7270
|
.ContextModal-module_landscapeContentlayout__IFqQN .ContextModal-module_content__-KrFF {
|
|
7271
|
-
padding-
|
|
7271
|
+
padding-inline-start: 0;
|
|
7272
7272
|
}
|
|
7273
7273
|
@media (min-width: 768px) {
|
|
7274
7274
|
.ContextModal-module_landscapeContentlayout__IFqQN .ContextModal-module_content__-KrFF {
|
|
@@ -7476,7 +7476,7 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
7476
7476
|
|
|
7477
7477
|
.InputEditModal-module_pseudoScrollbar__WCHmn {
|
|
7478
7478
|
/* Tech debt - this !important existed before Stylelint rules */
|
|
7479
|
-
padding-
|
|
7479
|
+
padding-inline-end: 15px !important; /* stylelint-disable-line declaration-no-important */
|
|
7480
7480
|
}
|
|
7481
7481
|
|
|
7482
7482
|
.InputEditModal-module_hide__N88RW {
|
|
@@ -7525,10 +7525,7 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
7525
7525
|
|
|
7526
7526
|
.InputEditModal-module_header__nivTf {
|
|
7527
7527
|
color: var(--color-purple-800, #2f2438);
|
|
7528
|
-
text-align:
|
|
7529
|
-
}
|
|
7530
|
-
.InputEditModal-module_header__nivTf.InputEditModal-module_textAlignRTL__5QQP8 {
|
|
7531
|
-
text-align: right;
|
|
7528
|
+
text-align: start;
|
|
7532
7529
|
}
|
|
7533
7530
|
.InputEditModal-module_header__nivTf.InputEditModal-module_padded__ZdEIS {
|
|
7534
7531
|
padding: var(--spacing-md, 1.5rem) var(--spacing-lg, 2.25rem);
|
|
@@ -53,7 +53,7 @@ export type ConfirmationModalProps = BaseConfirmationModalProps & (ConfirmationM
|
|
|
53
53
|
* {@link https://cultureamp.design/?path=/docs/components-modals-confirmationmodal--docs Storybook}
|
|
54
54
|
*/
|
|
55
55
|
export declare const ConfirmationModal: {
|
|
56
|
-
({ isOpen, isProminent, unpadded, mood, variant, title, onConfirm, onAfterLeave, onAfterEnter, confirmLabel, dismissLabel, confirmWorking, onDismiss: propsOnDismiss, children, ...props }: ConfirmationModalProps): JSX.Element;
|
|
56
|
+
({ isOpen, isProminent, unpadded, mood, variant, title, onConfirm, onAfterLeave, onAfterEnter, confirmLabel, dismissLabel, confirmWorking, onDismiss: propsOnDismiss, children, className, ...props }: ConfirmationModalProps): JSX.Element;
|
|
57
57
|
displayName: string;
|
|
58
58
|
};
|
|
59
59
|
export {};
|
|
@@ -39,6 +39,6 @@ export type ContextModalProps = Readonly<{
|
|
|
39
39
|
* {@link https://cultureamp.design/?path=/docs/components-modals--contextmodal--docs Storybook}
|
|
40
40
|
*/
|
|
41
41
|
export declare const ContextModal: {
|
|
42
|
-
({ isOpen, unpadded, layout, title, onConfirm, onDismiss: propsOnDismiss, onAfterLeave, onAfterEnter, confirmLabel, confirmWorking, renderBackground, children, contentHeader, image, secondaryLabel, onSecondaryAction, ...props }: ContextModalProps): JSX.Element;
|
|
42
|
+
({ isOpen, unpadded, layout, title, onConfirm, onDismiss: propsOnDismiss, onAfterLeave, onAfterEnter, confirmLabel, confirmWorking, renderBackground, children, contentHeader, image, secondaryLabel, onSecondaryAction, className, ...props }: ContextModalProps): JSX.Element;
|
|
43
43
|
displayName: string;
|
|
44
44
|
};
|
|
@@ -10,8 +10,9 @@ export type GenericModalProps = {
|
|
|
10
10
|
onAfterEnter?: () => void;
|
|
11
11
|
/** A callback that is triggered after the modal is closed. */
|
|
12
12
|
onAfterLeave?: () => void;
|
|
13
|
+
className?: string;
|
|
13
14
|
};
|
|
14
15
|
export declare const GenericModal: {
|
|
15
|
-
({ id: propsId, children, isOpen, focusLockDisabled, onEscapeKeyup, onOutsideModalClick, onAfterEnter, onAfterLeave: propsOnAfterLeave, }: GenericModalProps): JSX.Element;
|
|
16
|
+
({ id: propsId, children, isOpen, focusLockDisabled, onEscapeKeyup, onOutsideModalClick, onAfterEnter, onAfterLeave: propsOnAfterLeave, className, }: GenericModalProps): JSX.Element;
|
|
16
17
|
displayName: string;
|
|
17
18
|
};
|
|
@@ -14,7 +14,6 @@ export type InputEditModalProps = {
|
|
|
14
14
|
onAfterEnter?: () => void;
|
|
15
15
|
/** A callback that is triggered after the modal is closed. */
|
|
16
16
|
onAfterLeave?: () => void;
|
|
17
|
-
localeDirection?: 'rtl' | 'ltr';
|
|
18
17
|
submitLabel?: string;
|
|
19
18
|
dismissLabel?: string;
|
|
20
19
|
secondaryLabel?: string;
|
|
@@ -33,6 +32,6 @@ export type InputEditModalProps = {
|
|
|
33
32
|
* {@link https://cultureamp.design/?path=/docs/components-modals-inputeditmodal--docs Storybook}
|
|
34
33
|
*/
|
|
35
34
|
export declare const InputEditModal: {
|
|
36
|
-
({ isOpen, mood, title, onSubmit, onSecondaryAction, onAfterLeave,
|
|
35
|
+
({ isOpen, mood, title, onSubmit, onSecondaryAction, onAfterLeave, submitLabel, dismissLabel, secondaryLabel, submitWorking, children, unpadded, onDismiss: propsOnDismiss, onAfterEnter, className, ...props }: InputEditModalProps): JSX.Element;
|
|
37
36
|
displayName: string;
|
|
38
37
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "1.73.
|
|
3
|
+
"version": "1.73.4",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -185,8 +185,8 @@
|
|
|
185
185
|
"svgo": "^3.3.2",
|
|
186
186
|
"tslib": "^2.8.1",
|
|
187
187
|
"tsx": "^4.19.2",
|
|
188
|
-
"@kaizen/
|
|
189
|
-
"@kaizen/
|
|
188
|
+
"@kaizen/design-tokens": "10.8.7",
|
|
189
|
+
"@kaizen/package-bundler": "2.0.4"
|
|
190
190
|
},
|
|
191
191
|
"devDependenciesComments": {
|
|
192
192
|
"sass": "Prevent deprecation warnings introduced in 1.80 as we plan to move away from sass",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
grid-template-columns: 0.2fr 2fr;
|
|
22
22
|
align-items: center;
|
|
23
23
|
color: $color-white;
|
|
24
|
-
text-align:
|
|
24
|
+
text-align: start;
|
|
25
25
|
border-radius: $border-solid-border-radius $border-solid-border-radius 0 0;
|
|
26
26
|
|
|
27
27
|
&.padded {
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
height: 30px;
|
|
54
54
|
|
|
55
55
|
@media (max-width: $layout-breakpoints-medium) {
|
|
56
|
-
margin-
|
|
56
|
+
margin-inline-end: 0.9375rem;
|
|
57
57
|
position: relative;
|
|
58
|
-
|
|
58
|
+
inset-block-start: 0.125rem;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -75,12 +75,12 @@
|
|
|
75
75
|
|
|
76
76
|
.iconContainer {
|
|
77
77
|
position: absolute;
|
|
78
|
-
|
|
78
|
+
inset-block-start: 8%;
|
|
79
79
|
|
|
80
80
|
@media (max-width: $layout-breakpoints-medium) {
|
|
81
81
|
position: relative;
|
|
82
|
-
|
|
83
|
-
margin-
|
|
82
|
+
inset-block-start: 0;
|
|
83
|
+
margin-block-end: $spacing-sm;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -124,6 +124,7 @@ export const ConfirmationModal = ({
|
|
|
124
124
|
confirmWorking,
|
|
125
125
|
onDismiss: propsOnDismiss,
|
|
126
126
|
children,
|
|
127
|
+
className,
|
|
127
128
|
...props
|
|
128
129
|
}: ConfirmationModalProps): JSX.Element => {
|
|
129
130
|
const variantName = variant ?? mood
|
|
@@ -158,6 +159,7 @@ export const ConfirmationModal = ({
|
|
|
158
159
|
onOutsideModalClick={onDismiss}
|
|
159
160
|
onAfterLeave={onAfterLeave}
|
|
160
161
|
onAfterEnter={onAfterEnter}
|
|
162
|
+
className={className}
|
|
161
163
|
>
|
|
162
164
|
<div className={styles.modal} data-modal {...props}>
|
|
163
165
|
<ModalHeader onDismiss={onDismiss}>
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
.footerWithSecondaryAction {
|
|
59
59
|
@extend %footer;
|
|
60
60
|
|
|
61
|
-
margin-
|
|
61
|
+
margin-inline-start: calc(-1 * #{$spacing-sm});
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.emptyFooter {
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
.content {
|
|
100
|
-
padding-
|
|
100
|
+
padding-inline-start: 0;
|
|
101
101
|
|
|
102
102
|
@media (min-width: $layout-breakpoints-medium) {
|
|
103
103
|
max-width: 100%;
|
|
@@ -71,6 +71,7 @@ export const ContextModal = ({
|
|
|
71
71
|
image,
|
|
72
72
|
secondaryLabel,
|
|
73
73
|
onSecondaryAction,
|
|
74
|
+
className,
|
|
74
75
|
...props
|
|
75
76
|
}: ContextModalProps): JSX.Element => {
|
|
76
77
|
const onDismiss = confirmWorking ? undefined : propsOnDismiss
|
|
@@ -105,6 +106,7 @@ export const ContextModal = ({
|
|
|
105
106
|
onOutsideModalClick={onDismiss}
|
|
106
107
|
onAfterLeave={onAfterLeave}
|
|
107
108
|
onAfterEnter={onAfterEnter}
|
|
109
|
+
className={className}
|
|
108
110
|
>
|
|
109
111
|
<div className={styles.modal} data-modal {...props}>
|
|
110
112
|
{renderBackground?.()}
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
|
|
116
116
|
.pseudoScrollbar {
|
|
117
117
|
/* Tech debt - this !important existed before Stylelint rules */
|
|
118
|
-
padding-
|
|
118
|
+
padding-inline-end: 15px !important; /* stylelint-disable-line declaration-no-important */
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.hide {
|
|
@@ -17,6 +17,7 @@ export type GenericModalProps = {
|
|
|
17
17
|
onAfterEnter?: () => void
|
|
18
18
|
/** A callback that is triggered after the modal is closed. */
|
|
19
19
|
onAfterLeave?: () => void
|
|
20
|
+
className?: string
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
export const GenericModal = ({
|
|
@@ -28,6 +29,7 @@ export const GenericModal = ({
|
|
|
28
29
|
onOutsideModalClick,
|
|
29
30
|
onAfterEnter,
|
|
30
31
|
onAfterLeave: propsOnAfterLeave,
|
|
32
|
+
className,
|
|
31
33
|
}: GenericModalProps): JSX.Element => {
|
|
32
34
|
const reactId = useId()
|
|
33
35
|
const id = propsId ?? reactId
|
|
@@ -137,6 +139,7 @@ export const GenericModal = ({
|
|
|
137
139
|
afterLeave={onAfterLeaveHandler}
|
|
138
140
|
data-generic-modal-transition-wrapper
|
|
139
141
|
onClick={(e: React.MouseEvent): void => e.stopPropagation()}
|
|
142
|
+
className={className}
|
|
140
143
|
>
|
|
141
144
|
<FocusLock
|
|
142
145
|
disabled={focusLockDisabled}
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.actionButton + .actionButton {
|
|
35
|
-
margin-
|
|
35
|
+
margin-inline-end: $spacing-sm;
|
|
36
36
|
|
|
37
37
|
@media (max-width: (calc(#{$layout-breakpoints-medium} - 1px))) {
|
|
38
|
-
margin-
|
|
38
|
+
margin-block-start: $spacing-sm;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.border {
|
|
54
|
-
border-
|
|
54
|
+
border-block-start: 1px solid $border-solid-border-color;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.start {
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
|
|
67
67
|
.fixed {
|
|
68
68
|
position: absolute;
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
inset-block-end: 0;
|
|
70
|
+
inset-inline-start: 0;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.filler {
|
|
@@ -26,7 +26,6 @@ export type InputEditModalProps = {
|
|
|
26
26
|
onAfterEnter?: () => void
|
|
27
27
|
/** A callback that is triggered after the modal is closed. */
|
|
28
28
|
onAfterLeave?: () => void
|
|
29
|
-
localeDirection?: 'rtl' | 'ltr'
|
|
30
29
|
submitLabel?: string
|
|
31
30
|
dismissLabel?: string
|
|
32
31
|
secondaryLabel?: string
|
|
@@ -49,7 +48,6 @@ export const InputEditModal = ({
|
|
|
49
48
|
onSubmit,
|
|
50
49
|
onSecondaryAction,
|
|
51
50
|
onAfterLeave,
|
|
52
|
-
localeDirection = 'ltr',
|
|
53
51
|
submitLabel = 'Submit',
|
|
54
52
|
dismissLabel = 'Cancel',
|
|
55
53
|
secondaryLabel,
|
|
@@ -58,6 +56,7 @@ export const InputEditModal = ({
|
|
|
58
56
|
unpadded = false,
|
|
59
57
|
onDismiss: propsOnDismiss,
|
|
60
58
|
onAfterEnter,
|
|
59
|
+
className,
|
|
61
60
|
...props
|
|
62
61
|
}: InputEditModalProps): JSX.Element => {
|
|
63
62
|
const onDismiss = submitWorking ? undefined : propsOnDismiss
|
|
@@ -87,16 +86,11 @@ export const InputEditModal = ({
|
|
|
87
86
|
onEscapeKeyup={onDismiss}
|
|
88
87
|
onAfterLeave={onAfterLeave}
|
|
89
88
|
onAfterEnter={onAfterEnter}
|
|
89
|
+
className={className}
|
|
90
90
|
>
|
|
91
|
-
<div className={styles.modal}
|
|
91
|
+
<div className={styles.modal} data-modal {...props}>
|
|
92
92
|
<ModalHeader onDismiss={onDismiss}>
|
|
93
|
-
<div
|
|
94
|
-
className={classnames(
|
|
95
|
-
styles.header,
|
|
96
|
-
localeDirection === 'rtl' && styles.textAlignRTL,
|
|
97
|
-
!unpadded && styles.padded,
|
|
98
|
-
)}
|
|
99
|
-
>
|
|
93
|
+
<div className={classnames(styles.header, !unpadded && styles.padded)}>
|
|
100
94
|
<ModalAccessibleLabel>
|
|
101
95
|
<Heading tag="h2" variant="heading-2">
|
|
102
96
|
{title}
|
|
@@ -105,12 +99,7 @@ export const InputEditModal = ({
|
|
|
105
99
|
</div>
|
|
106
100
|
</ModalHeader>
|
|
107
101
|
<ModalBody>
|
|
108
|
-
<div
|
|
109
|
-
className={classnames(styles.body, !unpadded && styles.padded)}
|
|
110
|
-
dir={localeDirection}
|
|
111
|
-
>
|
|
112
|
-
{children}
|
|
113
|
-
</div>
|
|
102
|
+
<div className={classnames(styles.body, !unpadded && styles.padded)}>{children}</div>
|
|
114
103
|
</ModalBody>
|
|
115
104
|
<ModalFooter
|
|
116
105
|
actions={footerActions}
|