@carbon/ibm-products 2.43.2-canary.81 → 2.43.2-canary.87
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/css/index-full-carbon.css +16 -66
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +7 -0
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +16 -66
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +16 -66
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/Coachmark/Coachmark.d.ts +6 -1
- package/es/components/Coachmark/Coachmark.js +37 -6
- package/es/components/Coachmark/CoachmarkOverlay.js +2 -4
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -7
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +22 -20
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +1 -0
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +2 -1
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +13 -3
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +1 -2
- package/es/components/ConditionBuilder/utils/util.d.ts +0 -1
- package/lib/components/Coachmark/Coachmark.d.ts +6 -1
- package/lib/components/Coachmark/Coachmark.js +36 -5
- package/lib/components/Coachmark/CoachmarkOverlay.js +2 -4
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -7
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +21 -19
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +1 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +2 -1
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +13 -3
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +1 -2
- package/lib/components/ConditionBuilder/utils/util.d.ts +0 -1
- package/package.json +4 -4
- package/scss/components/Coachmark/_coachmark-overlay.scss +6 -70
- package/scss/components/Coachmark/_coachmark.scss +5 -4
- package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +1 -3
- package/scss/components/CreateFullPage/_create-full-page.scss +7 -0
@@ -207,8 +207,7 @@ var navigateToNextRowCell = function navigateToNextRowCell(evt, currentRowIndex,
|
|
207
207
|
var nextRow = rows[nextRowIndex];
|
208
208
|
var itemName = evt.target.dataset.name;
|
209
209
|
if (nextRow !== null && nextRow !== void 0 && nextRow.querySelector("[data-name=\"".concat(itemName, "\"]"))) {
|
210
|
-
|
211
|
-
nextRow === null || nextRow === void 0 || (_nextRow$querySelecto = nextRow.querySelector("[data-name=\"".concat(itemName, "\"]"))) === null || _nextRow$querySelecto === void 0 || _nextRow$querySelecto.focus();
|
210
|
+
util.manageTabIndexAndFocus(nextRow === null || nextRow === void 0 ? void 0 : nextRow.querySelector("[data-name=\"".concat(itemName, "\"]")), conditionBuilderRef);
|
212
211
|
} else if (variant === 'tree') {
|
213
212
|
//when the next row is a if statement , then that row is focused. From any cell of last row of an group , arrow down select the next row (if)
|
214
213
|
util.manageTabIndexAndFocus(nextRow, conditionBuilderRef);
|
@@ -3,6 +3,5 @@ export function focusThisItem(currentElement: any, conditionBuilderRef: any): vo
|
|
3
3
|
export function traverseClockVise(eachElem: any, index: any, allElements: any, rotate: any, trapFocus: any, conditionBuilderRef: any): void;
|
4
4
|
export function traverseReverse(eachElem: any, index: any, allElements: any, rotate: any, trapFocus: any, conditionBuilderRef: any): void;
|
5
5
|
export function checkForHoldingKey(evt: any, key: any): any;
|
6
|
-
export function checkDuplicateAction(actionState: any, selectedId: any, currentActionId: any): boolean;
|
7
6
|
export function checkIsValid(item: any): any;
|
8
7
|
export function manageTabIndexAndFocus(currentElement: any, conditionBuilderRef: any): void;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carbon/ibm-products",
|
3
3
|
"description": "Carbon for IBM Products",
|
4
|
-
"version": "2.43.2-canary.
|
4
|
+
"version": "2.43.2-canary.87+da04d2343",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -81,7 +81,7 @@
|
|
81
81
|
"fs-extra": "^11.2.0",
|
82
82
|
"glob": "^10.3.10",
|
83
83
|
"jest": "^29.7.0",
|
84
|
-
"jest-config-ibm-cloud-cognitive": "^1.4.0
|
84
|
+
"jest-config-ibm-cloud-cognitive": "^1.4.0",
|
85
85
|
"jest-environment-jsdom": "^29.7.0",
|
86
86
|
"namor": "^1.1.2",
|
87
87
|
"npm-check-updates": "^16.14.12",
|
@@ -96,7 +96,7 @@
|
|
96
96
|
"dependencies": {
|
97
97
|
"@babel/runtime": "^7.23.9",
|
98
98
|
"@carbon/feature-flags": "^0.20.0",
|
99
|
-
"@carbon/ibm-products-styles": "^2.39.1-canary.
|
99
|
+
"@carbon/ibm-products-styles": "^2.39.1-canary.97+da04d2343",
|
100
100
|
"@carbon/telemetry": "^0.1.0",
|
101
101
|
"@dnd-kit/core": "^6.0.8",
|
102
102
|
"@dnd-kit/modifiers": "^7.0.0",
|
@@ -120,5 +120,5 @@
|
|
120
120
|
"react": "^16.8.6 || ^17.0.1 || ^18.2.0",
|
121
121
|
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
|
122
122
|
},
|
123
|
-
"gitHead": "
|
123
|
+
"gitHead": "da04d2343a7c5ff0926ff16f3522dee7a6dd558c"
|
124
124
|
}
|
@@ -45,6 +45,11 @@ $draghandle-btn-class: #{$block-class}__handle;
|
|
45
45
|
|
46
46
|
visibility: hidden;
|
47
47
|
|
48
|
+
&--tooltip {
|
49
|
+
position: initial;
|
50
|
+
transform: none !important;
|
51
|
+
}
|
52
|
+
|
48
53
|
&--fixed {
|
49
54
|
position: fixed;
|
50
55
|
right: $spacing-05;
|
@@ -68,45 +73,19 @@ $draghandle-btn-class: #{$block-class}__handle;
|
|
68
73
|
visibility: visible;
|
69
74
|
}
|
70
75
|
|
71
|
-
//
|
72
|
-
&__caret {
|
73
|
-
// background-color: this property is set in _coachmark-overlay-theme.scss
|
74
|
-
position: absolute;
|
75
|
-
z-index: 5902;
|
76
|
-
width: 0;
|
77
|
-
height: 0;
|
78
|
-
// border-bottom-color: this property is set in _coachmark-overlay-theme.scss
|
79
|
-
border-right: $caret-center solid transparent;
|
80
|
-
border-bottom: solid $caret-center $background-inverse;
|
81
|
-
border-left: $caret-center solid transparent;
|
82
|
-
}
|
83
|
-
|
84
|
-
// OVERLAY AND CARET POSITIONING
|
76
|
+
// OVERLAY POSITIONING
|
85
77
|
&--top {
|
86
78
|
$horizontal-push: calc($distance-offset - $caret-center);
|
87
79
|
$translate-y: calc(-1 * (100% + $distance-offset + $caret-height));
|
88
80
|
|
89
81
|
transform: translate(-50%, $translate-y);
|
90
82
|
|
91
|
-
.#{$block-class}__caret {
|
92
|
-
left: calc(50% - $caret-center);
|
93
|
-
transform: rotate(180deg);
|
94
|
-
}
|
95
|
-
|
96
83
|
&-left {
|
97
84
|
transform: translate(calc(-1 * $distance-offset), $translate-y);
|
98
|
-
.#{$block-class}__caret {
|
99
|
-
left: $horizontal-push;
|
100
|
-
transform: rotate(180deg);
|
101
|
-
}
|
102
85
|
}
|
103
86
|
|
104
87
|
&-right {
|
105
88
|
transform: translate(calc(-1 * (100% - $distance-offset)), $translate-y);
|
106
|
-
.#{$block-class}__caret {
|
107
|
-
right: $horizontal-push;
|
108
|
-
transform: rotate(180deg);
|
109
|
-
}
|
110
89
|
}
|
111
90
|
}
|
112
91
|
|
@@ -116,26 +95,13 @@ $draghandle-btn-class: #{$block-class}__handle;
|
|
116
95
|
$translate-y: calc($distance-offset + $caret-height);
|
117
96
|
|
118
97
|
transform: translate(-50%, $translate-y);
|
119
|
-
.#{$block-class}__caret {
|
120
|
-
top: $top;
|
121
|
-
left: calc(50% - $caret-center);
|
122
|
-
}
|
123
98
|
|
124
99
|
&-left {
|
125
100
|
transform: translate(calc(-1 * $distance-offset), $translate-y);
|
126
|
-
.#{$block-class}__caret {
|
127
|
-
top: $top;
|
128
|
-
left: $horizontal-push;
|
129
|
-
}
|
130
101
|
}
|
131
102
|
|
132
103
|
&-right {
|
133
104
|
transform: translate(calc(-1 * (100% - $distance-offset)), $translate-y);
|
134
|
-
|
135
|
-
.#{$block-class}__caret {
|
136
|
-
top: $top;
|
137
|
-
right: $horizontal-push;
|
138
|
-
}
|
139
105
|
}
|
140
106
|
}
|
141
107
|
|
@@ -145,28 +111,13 @@ $draghandle-btn-class: #{$block-class}__handle;
|
|
145
111
|
$vertical-push: calc($distance-offset - ($caret-height * 0.5));
|
146
112
|
|
147
113
|
transform: translate($translate-x, -50%);
|
148
|
-
.#{$block-class}__caret {
|
149
|
-
top: calc(50% - ($caret-height * 0.5));
|
150
|
-
right: $right;
|
151
|
-
transform: rotate(90deg);
|
152
|
-
}
|
153
114
|
|
154
115
|
&-top {
|
155
116
|
transform: translate($translate-x, calc(-1 * $distance-offset));
|
156
|
-
.#{$block-class}__caret {
|
157
|
-
top: $vertical-push;
|
158
|
-
right: $right;
|
159
|
-
transform: rotate(90deg);
|
160
|
-
}
|
161
117
|
}
|
162
118
|
|
163
119
|
&-bottom {
|
164
120
|
transform: translate($translate-x, calc(-1 * (100% - $distance-offset)));
|
165
|
-
.#{$block-class}__caret {
|
166
|
-
right: $right;
|
167
|
-
bottom: $vertical-push;
|
168
|
-
transform: rotate(90deg);
|
169
|
-
}
|
170
121
|
}
|
171
122
|
}
|
172
123
|
|
@@ -176,28 +127,13 @@ $draghandle-btn-class: #{$block-class}__handle;
|
|
176
127
|
$vertical-push: calc($distance-offset - ($caret-height * 0.5));
|
177
128
|
|
178
129
|
transform: translate($translate-x, -50%);
|
179
|
-
.#{$block-class}__caret {
|
180
|
-
top: calc(50% - ($caret-height * 0.5));
|
181
|
-
left: $left;
|
182
|
-
transform: rotate(-90deg);
|
183
|
-
}
|
184
130
|
|
185
131
|
&-top {
|
186
132
|
transform: translate($translate-x, calc(-1 * $distance-offset));
|
187
|
-
.#{$block-class}__caret {
|
188
|
-
top: $vertical-push;
|
189
|
-
left: $left;
|
190
|
-
transform: rotate(-90deg);
|
191
|
-
}
|
192
133
|
}
|
193
134
|
|
194
135
|
&-bottom {
|
195
136
|
transform: translate($translate-x, calc(-1 * (100% - $distance-offset)));
|
196
|
-
.#{$block-class}__caret {
|
197
|
-
bottom: $vertical-push;
|
198
|
-
left: $left;
|
199
|
-
transform: rotate(-90deg);
|
200
|
-
}
|
201
137
|
}
|
202
138
|
}
|
203
139
|
|
@@ -8,6 +8,7 @@
|
|
8
8
|
// Standard imports.
|
9
9
|
@use '../../global/styles/project-settings' as c4p-settings;
|
10
10
|
@use '../../global/styles/mixins';
|
11
|
+
@use '@carbon/styles/scss/config';
|
11
12
|
|
12
13
|
@use './coachmark-dragbar';
|
13
14
|
@use './coachmark-header';
|
@@ -23,8 +24,8 @@
|
|
23
24
|
// TODO: @use(s) of IBM Products component styles used by Coachmark
|
24
25
|
|
25
26
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
26
|
-
|
27
|
+
$block-class: #{c4p-settings.$pkg-prefix}--coachmark;
|
27
28
|
|
28
|
-
|
29
|
-
|
30
|
-
|
29
|
+
.#{$block-class} {
|
30
|
+
position: relative;
|
31
|
+
}
|
@@ -69,9 +69,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--coachmark-beacon;
|
|
69
69
|
}
|
70
70
|
.#{$block-class}__target {
|
71
71
|
// the hit area
|
72
|
-
|
73
|
-
top: calc(-1 * $spacing-05);
|
74
|
-
left: calc(-1 * $spacing-05);
|
72
|
+
display: flex;
|
75
73
|
width: $spacing-07;
|
76
74
|
height: $spacing-07;
|
77
75
|
padding: 0;
|
@@ -176,3 +176,10 @@ $step-block-class: #{c4p-settings.$pkg-prefix}--create-full-page__step;
|
|
176
176
|
.#{$block-class} .#{$block-class}__buttons {
|
177
177
|
border-top: 1px solid $layer-accent-01;
|
178
178
|
}
|
179
|
+
|
180
|
+
.#{$block-class}__header {
|
181
|
+
/* stylelint-disable-next-line max-nesting-depth */
|
182
|
+
button:first-of-type {
|
183
|
+
background: none;
|
184
|
+
}
|
185
|
+
}
|