@carbon/ibm-products 2.43.2-canary.115 → 2.43.2-canary.118

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,6 +22,15 @@
22
22
 
23
23
  $block-class: #{c4p-settings.$pkg-prefix}--condition-builder;
24
24
 
25
+ @mixin actions-animation($translateValue) {
26
+ z-index: -1;
27
+ opacity: 0;
28
+ pointer-events: none;
29
+ /* stylelint-disable-next-line carbon/layout-token-use */
30
+ transform: translateX($translateValue);
31
+ transition: all $duration-fast-02 motion(standard, productive);
32
+ }
33
+
25
34
  .#{$block-class}__condition-wrapper * {
26
35
  @include type-style('body-01');
27
36
  }
@@ -234,7 +243,10 @@ $colors: (
234
243
  .#{$block-class}__button,
235
244
  .#{$block-class}__condition-wrapper:not(.#{$block-class}__group-preview)
236
245
  > :nth-child(2)
237
- .#{$block-class}__button {
246
+ .#{$block-class}__button:not(
247
+ .#{$block-class}__add-button,
248
+ .#{$block-class}__add-condition-sub-group
249
+ ) {
238
250
  /* stylelint-disable-next-line carbon/theme-token-use */
239
251
  box-shadow: inset 0 #{$spacing-01} 0 0 var(--#{$block-class}__condition-wrapper-color);
240
252
  }
@@ -251,22 +263,30 @@ $colors: (
251
263
  align-self: center;
252
264
  margin-left: auto;
253
265
  }
254
- .#{$block-class}__add-condition-sub-group-wrapper {
255
- z-index: -1;
256
- width: 0;
257
- pointer-events: none;
258
- transform: translateX(-100%);
259
- // stylelint-disable-next-line carbon/motion-duration-use, carbon/motion-easing-use
260
- transition: transform motion(exit, productive) $duration-fast-02;
266
+ .#{$block-class}__add-button-wrapper > :nth-child(1) {
267
+ @include actions-animation(-100%);
268
+ }
269
+ .#{$block-class}__add-button-wrapper > :nth-child(2) {
270
+ @include actions-animation(-200%);
261
271
  }
262
- .#{$block-class}__add-condition-sub-group-wrapper--show {
272
+
273
+ .#{$block-class}__condition-block:focus-within:first-child
274
+ .#{$block-class}__add-button-wrapper
275
+ > span,
276
+ .#{$block-class}__condition--interacting
277
+ .#{$block-class}__add-button-wrapper
278
+ > span {
263
279
  z-index: 0;
264
- width: auto;
280
+ opacity: 1;
265
281
  pointer-events: all;
266
282
  transform: translateX(0);
283
+ /* stylelint-disable-next-line carbon/motion-easing-use */
284
+ transition: transform motion(exit, productive) $duration-fast-02;
267
285
  }
286
+
268
287
  .#{$block-class}__invalid-input {
269
288
  display: flex;
289
+ direction: rtl;
270
290
  }
271
291
  .#{$block-class}__invalid-input > svg {
272
292
  color: $support-warning;
package/telemetry.yml CHANGED
@@ -530,6 +530,7 @@ collect:
530
530
  - isStatement
531
531
  - onConnectorOperatorChange
532
532
  - onStatementChange
533
+ - setShowDeletionPreviewForSubgroups
533
534
  # ConditionBuilderAdd
534
535
  - buttonLabel
535
536
  - enableSubGroup
@@ -552,6 +553,7 @@ collect:
552
553
  # ConditionConnector
553
554
  - operator
554
555
  # ConditionPreview
556
+ - colorIndex
555
557
  - previewType
556
558
  # CreateFullPage
557
559
  - breadcrumbsOverflowAriaLabel