carbon-addons-iot-react 2.151.0-next.2 → 2.151.0-next.3

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/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.151.0-next.3](https://github.com/carbon-design-system/carbon-addons-iot-react/compare/v2.151.0-next.2...v2.151.0-next.3) (2022-08-03)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **listspinner:** check for window before calling methods ([a742335](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/a742335a7928e57adc866acf2568d803981b2fab))
12
+ * **listspinner:** test ([f07ec6e](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/f07ec6e12e997da9ba1c18db0af12bde55d48521))
13
+ * **timepicker:** add exceptions to jest ([41ce295](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/41ce29581243f3fa93a8cabbc7378038c522abb3))
14
+ * **timepicker:** fix issues with keyboard nav ([ecef4e9](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/ecef4e97eb1079d9b077921f76df0e1fe0f670b0))
15
+ * **timepicker:** fix long label issue ([87c3376](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/87c3376adccb2c8c0a301e4f909103297d79d5c6))
16
+ * **timepicker:** refactor code that was causing warnings ([3cd711a](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/3cd711a575e3e9c4a173f0f90f7b33ec7789f4bb))
17
+ * **timepicker:** remove unused variables ([19de1d1](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/19de1d159d227901eb5e9f0880cf1cd5d3dc0550))
18
+
19
+
20
+ ### Features
21
+
22
+ * **listspinner:** add keyboard a11y for up/down btns ([d4732e2](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/d4732e278f3c6ef8c4a78fd0f892edb78942fb21))
23
+ * **listspinner:** create listspinner first pass ([835a7b2](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/835a7b27dcd9793b62f37468b9480b1757784abd))
24
+ * **listspinner:** swap requestAnimation frame with setTimeout ([d5bce01](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/d5bce01a50c84c6f1300d7966f5925829f0fb391))
25
+ * **timepicker:** add awareness to dropdown positioning ([c567a4a](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/c567a4ad5796c0bfb18a0beafcb1ec9761eeec58))
26
+ * **timepicker:** add validation and peformance improvments ([29df414](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/29df414c8f237586a6a4aa1c6cc41e9332d084c9))
27
+ * **timepicker:** build dropdown pieces ([25676bd](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/25676bd8018c1f7da68932447b85613f5cadd85c))
28
+ * **timepicker:** change directions for markup ([c964fb4](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/c964fb4479ea0cc7d1b86591933c100302a62112))
29
+ * **timepicker:** clean up files ([a2e3610](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/a2e3610eebeccb59e7eb96801ff3804ded7c3677))
30
+ * **timepicker:** initial work for timepicker ([fa8dff7](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/fa8dff70c026760d12708882eac30ced108cf1a2))
31
+
32
+
33
+
34
+
35
+
6
36
  # [2.151.0-next.2](https://github.com/carbon-design-system/carbon-addons-iot-react/compare/v2.151.0-next.1...v2.151.0-next.2) (2022-07-27)
7
37
 
8
38
 
@@ -32317,6 +32317,402 @@ html[dir=rtl] .iot--list-builder__reset-button .bx--btn__icon {
32317
32317
  margin-right: 0.5rem;
32318
32318
  }
32319
32319
 
32320
+ .iot--list-spinner {
32321
+ /* stylelint-disable declaration-property-unit-blacklist */
32322
+ /* stylelint-enable declaration-property-unit-blacklist */
32323
+ }
32324
+ .iot--list-spinner__section {
32325
+ align-items: flex-start;
32326
+ display: flex;
32327
+ flex-direction: column;
32328
+ position: relative;
32329
+ width: 5rem;
32330
+ max-height: 17.5rem;
32331
+ overflow: hidden;
32332
+ }
32333
+ .iot--list-spinner__list-container {
32334
+ position: relative;
32335
+ min-width: 5rem;
32336
+ min-height: 12.5rem;
32337
+ overflow: hidden;
32338
+ }
32339
+ .iot--list-spinner__list {
32340
+ position: absolute;
32341
+ top: 0;
32342
+ left: 0;
32343
+ bottom: 0;
32344
+ right: 0;
32345
+ overflow: hidden;
32346
+ scrollbar-color: #ffffff;
32347
+ scrollbar-width: none;
32348
+ /* stylelint-disable-next-line */
32349
+ }
32350
+ .iot--list-spinner__list::scrollbar, .iot--list-spinner__list::-webkit-scrollbar {
32351
+ display: none;
32352
+ width: 0;
32353
+ }
32354
+ .iot--list-spinner__list-item {
32355
+ align-items: center;
32356
+ display: flex;
32357
+ flex-direction: column;
32358
+ height: 2.5rem;
32359
+ justify-content: center;
32360
+ text-align: center;
32361
+ width: 100%;
32362
+ }
32363
+ .iot--list-spinner__list .iot--list-spinner__list-item--selected, .iot--list-spinner__list .iot--list-spinner__list-item--selected .iot--btn {
32364
+ color: #ffffff;
32365
+ }
32366
+ .iot--list-spinner__list .iot--list-spinner__list-item--selected:hover, .iot--list-spinner__list .iot--list-spinner__list-item--selected .iot--btn:hover {
32367
+ background: #e5e5e5;
32368
+ color: #161616;
32369
+ }
32370
+ .iot--list-spinner__btn, .iot--list-spinner__list-item .iot--btn {
32371
+ color: #161616;
32372
+ justify-content: center;
32373
+ margin: 0 auto;
32374
+ min-height: unset;
32375
+ max-height: 2.5rem;
32376
+ width: 100%;
32377
+ }
32378
+ .iot--list-spinner__btn .bx--btn__icon, .iot--list-spinner__list-item .iot--btn .bx--btn__icon {
32379
+ margin: 0 auto;
32380
+ }
32381
+ .iot--list-spinner__btn {
32382
+ z-index: 1;
32383
+ }
32384
+ .iot--list-spinner__btn:first-child {
32385
+ box-shadow: 0 1px 5px 4px #ffffff;
32386
+ border-width: 1.5px;
32387
+ }
32388
+ .iot--list-spinner__btn:last-child {
32389
+ box-shadow: 0 -1px 5px 4px #ffffff;
32390
+ border-width: 1.5px;
32391
+ }
32392
+
32393
+ .iot--list-spinner {
32394
+ /* stylelint-disable declaration-property-unit-blacklist */
32395
+ /* stylelint-enable declaration-property-unit-blacklist */
32396
+ }
32397
+ .iot--list-spinner__section {
32398
+ align-items: flex-start;
32399
+ display: flex;
32400
+ flex-direction: column;
32401
+ position: relative;
32402
+ width: 5rem;
32403
+ max-height: 17.5rem;
32404
+ overflow: hidden;
32405
+ }
32406
+ .iot--list-spinner__list-container {
32407
+ position: relative;
32408
+ min-width: 5rem;
32409
+ min-height: 12.5rem;
32410
+ overflow: hidden;
32411
+ }
32412
+ .iot--list-spinner__list {
32413
+ position: absolute;
32414
+ top: 0;
32415
+ left: 0;
32416
+ bottom: 0;
32417
+ right: 0;
32418
+ overflow: hidden;
32419
+ scrollbar-color: #ffffff;
32420
+ scrollbar-width: none;
32421
+ /* stylelint-disable-next-line */
32422
+ }
32423
+ .iot--list-spinner__list::scrollbar, .iot--list-spinner__list::-webkit-scrollbar {
32424
+ display: none;
32425
+ width: 0;
32426
+ }
32427
+ .iot--list-spinner__list-item {
32428
+ align-items: center;
32429
+ display: flex;
32430
+ flex-direction: column;
32431
+ height: 2.5rem;
32432
+ justify-content: center;
32433
+ text-align: center;
32434
+ width: 100%;
32435
+ }
32436
+ .iot--list-spinner__list .iot--list-spinner__list-item--selected, .iot--list-spinner__list .iot--list-spinner__list-item--selected .iot--btn {
32437
+ color: #ffffff;
32438
+ }
32439
+ .iot--list-spinner__list .iot--list-spinner__list-item--selected:hover, .iot--list-spinner__list .iot--list-spinner__list-item--selected .iot--btn:hover {
32440
+ background: #e5e5e5;
32441
+ color: #161616;
32442
+ }
32443
+ .iot--list-spinner__btn, .iot--list-spinner__list-item .iot--btn {
32444
+ color: #161616;
32445
+ justify-content: center;
32446
+ margin: 0 auto;
32447
+ min-height: unset;
32448
+ max-height: 2.5rem;
32449
+ width: 100%;
32450
+ }
32451
+ .iot--list-spinner__btn .bx--btn__icon, .iot--list-spinner__list-item .iot--btn .bx--btn__icon {
32452
+ margin: 0 auto;
32453
+ }
32454
+ .iot--list-spinner__btn {
32455
+ z-index: 1;
32456
+ }
32457
+ .iot--list-spinner__btn:first-child {
32458
+ box-shadow: 0 1px 5px 4px #ffffff;
32459
+ border-width: 1.5px;
32460
+ }
32461
+ .iot--list-spinner__btn:last-child {
32462
+ box-shadow: 0 -1px 5px 4px #ffffff;
32463
+ border-width: 1.5px;
32464
+ }
32465
+
32466
+ .iot--time-picker {
32467
+ width: 16.125rem;
32468
+ position: relative;
32469
+ }
32470
+ .iot--time-picker input {
32471
+ font-family: "IBM Plex Mono", "Menlo", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", Courier, monospace;
32472
+ padding-right: 2rem;
32473
+ }
32474
+ .iot--time-picker__wrapper {
32475
+ position: relative;
32476
+ }
32477
+ .iot--time-picker__wrapper--selected input {
32478
+ border: 0.125rem solid #393939;
32479
+ }
32480
+ .iot--time-picker .bx--text-input__field-outer-wrapper {
32481
+ justify-content: flex-end;
32482
+ }
32483
+ .iot--time-picker__wrapper-sm .iot--time-picker {
32484
+ height: 1rem;
32485
+ }
32486
+ .iot--time-picker__wrapper-md .iot--time-picker {
32487
+ height: 1.25rem;
32488
+ }
32489
+ .iot--time-picker__wrapper-lg .iot--time-picker .bx--text-input__field-outer-wrapper {
32490
+ height: 3rem;
32491
+ }
32492
+ .iot--time-picker.iot--time-picker--invalid .iot--time-picker-range__helper-text,
32493
+ .iot--time-picker.iot--time-picker--invalid .iot--time-picker__helper-text {
32494
+ color: #da1e28;
32495
+ }
32496
+ .iot--time-picker .bx--text-input__invalid-icon {
32497
+ display: none;
32498
+ }
32499
+ .iot--time-picker__icon {
32500
+ -webkit-appearance: none;
32501
+ -moz-appearance: none;
32502
+ appearance: none;
32503
+ background: none;
32504
+ border: 0.125rem solid transparent;
32505
+ box-sizing: content-box;
32506
+ cursor: pointer;
32507
+ height: 1rem;
32508
+ padding: 0.25rem;
32509
+ position: absolute;
32510
+ right: 0.5rem;
32511
+ -webkit-transform: translateY(0.875rem);
32512
+ transform: translateY(0.875rem);
32513
+ width: 1rem;
32514
+ }
32515
+ .iot--time-picker__icon:focus {
32516
+ border-color: #0f62fe;
32517
+ }
32518
+ .iot--time-picker__wrapper-sm .iot--time-picker__icon {
32519
+ bottom: 1rem;
32520
+ }
32521
+ .iot--time-picker__wrapper-md .iot--time-picker__icon {
32522
+ bottom: 1.25rem;
32523
+ }
32524
+ .iot--time-picker__wrapper-lg .iot--time-picker__icon {
32525
+ bottom: 1.5rem;
32526
+ }
32527
+ .iot--time-picker--disabled .iot--time-picker__icon svg {
32528
+ fill: #c6c6c6;
32529
+ }
32530
+ .iot--time-picker--disabled .iot--time-picker__icon {
32531
+ cursor: not-allowed;
32532
+ pointer-events: none;
32533
+ }
32534
+ .iot--time-picker--warn .iot--time-picker__icon--warn:not(.iot--time-picker__icon--invalid) svg {
32535
+ fill: #f1c21b;
32536
+ }
32537
+ .iot--time-picker--warn .iot--time-picker__icon--warn:not(.iot--time-picker__icon--invalid) svg path:first-of-type {
32538
+ fill: #161616;
32539
+ opacity: 1;
32540
+ }
32541
+ .iot--time-picker--invalid .iot--time-picker__icon--invalid svg {
32542
+ fill: #da1e28;
32543
+ }
32544
+ .iot--time-picker .bx--text-input__invalid-icon,
32545
+ .iot--time-picker .bx--text-input__readonly-icon {
32546
+ display: none;
32547
+ }
32548
+ .iot--time-picker .bx--label {
32549
+ max-width: 16.125rem;
32550
+ overflow: hidden;
32551
+ word-break: break-word;
32552
+ }
32553
+
32554
+ .bx--text-input__field-wrapper[data-invalid] ~ .bx--form-requirement,
32555
+ .bx--text-input__field-wrapper--warning ~ .bx--form-requirement {
32556
+ display: none;
32557
+ }
32558
+
32559
+ .iot--time-picker-range {
32560
+ display: grid;
32561
+ gap: 0.15rem;
32562
+ grid-template-columns: 1fr 1fr;
32563
+ }
32564
+ .iot--time-picker-range .iot--time-picker__wrapper {
32565
+ grid-column: 2;
32566
+ grid-row: 1;
32567
+ display: flex;
32568
+ }
32569
+ .iot--time-picker-range .iot--time-picker__wrapper:first-child {
32570
+ grid-column: 1;
32571
+ }
32572
+ .iot--time-picker-range .iot--time-picker__wrapper .bx--text-input__field-outer-wrapper {
32573
+ justify-content: flex-end;
32574
+ }
32575
+ .iot--time-picker-range__helper-text {
32576
+ grid-column: 1/3;
32577
+ grid-row: 2;
32578
+ }
32579
+ .iot--time-picker-range fieldset {
32580
+ grid-column: 1/3;
32581
+ width: 100%;
32582
+ display: grid;
32583
+ gap: 0.15rem;
32584
+ grid-template-columns: 1fr 1fr;
32585
+ }
32586
+ .iot--time-picker-range fieldset legend {
32587
+ grid-column: 1/3;
32588
+ grid-row: 1;
32589
+ }
32590
+ .iot--time-picker-range fieldset legend + .iot--time-picker__wrapper {
32591
+ grid-column: 1;
32592
+ }
32593
+ .iot--time-picker-range fieldset .iot--time-picker-range__helper-text {
32594
+ grid-column: 1/3;
32595
+ grid-row: 3;
32596
+ }
32597
+ .iot--time-picker-range .bx--label,
32598
+ .iot--time-picker-range .iot--time-picker__wrapper {
32599
+ max-width: 8rem;
32600
+ }
32601
+
32602
+ .iot--time-picker-spinner {
32603
+ background-color: #ffffff;
32604
+ box-shadow: 0 7px 10px 2px #ddd;
32605
+ display: flex;
32606
+ gap: 1px;
32607
+ justify-content: center;
32608
+ height: 280px;
32609
+ opacity: 0;
32610
+ overflow: hidden;
32611
+ -ms-scroll-chaining: none;
32612
+ overscroll-behavior: contain;
32613
+ padding: 0 0.5rem;
32614
+ position: absolute;
32615
+ width: 16.125rem;
32616
+ /* stylelint-disable-next-line */
32617
+ transition: opacity 0.25s;
32618
+ -webkit-animation: fadeIn 0.25s forwards;
32619
+ animation: fadeIn 0.25s forwards;
32620
+ }
32621
+ .iot--time-picker-spinner::before {
32622
+ background: #0f62fe;
32623
+ content: "";
32624
+ width: calc(100% - 1rem);
32625
+ height: 40px;
32626
+ position: absolute;
32627
+ top: 50%;
32628
+ -webkit-transform: translateY(-50%);
32629
+ transform: translateY(-50%);
32630
+ }
32631
+ .iot--time-picker-spinner button {
32632
+ -webkit-appearance: none;
32633
+ -moz-appearance: none;
32634
+ appearance: none;
32635
+ background: transparent;
32636
+ border: 1px solid transparent;
32637
+ z-index: 1;
32638
+ }
32639
+ .iot--time-picker-spinner button:focus {
32640
+ border-color: #0f62fe;
32641
+ }
32642
+ .iot--time-picker-spinner-section {
32643
+ align-items: flex-start;
32644
+ display: flex;
32645
+ flex-direction: column;
32646
+ position: relative;
32647
+ width: 80px;
32648
+ }
32649
+ .iot--time-picker-spinner-section:nth-child(3) {
32650
+ justify-content: center;
32651
+ padding-top: 40px;
32652
+ }
32653
+ .iot--time-picker-spinner-list {
32654
+ position: relative;
32655
+ width: 80px;
32656
+ overflow: hidden;
32657
+ }
32658
+ .iot--time-picker-spinner-list li {
32659
+ align-items: center;
32660
+ display: flex;
32661
+ flex-direction: column;
32662
+ height: 40px;
32663
+ justify-content: center;
32664
+ text-align: center;
32665
+ width: 100%;
32666
+ }
32667
+ .iot--time-picker-spinner .iot--time-picker-spinner-button {
32668
+ color: #161616;
32669
+ justify-content: center;
32670
+ margin: 0 auto;
32671
+ min-height: unset;
32672
+ max-height: 40px;
32673
+ width: 100%;
32674
+ }
32675
+ .iot--time-picker-spinner .iot--time-picker-spinner-button--selected {
32676
+ color: #ffffff;
32677
+ }
32678
+ .iot--time-picker-spinner .iot--time-picker-spinner-button--selected:hover {
32679
+ color: #161616;
32680
+ }
32681
+ .iot--time-picker-spinner .iot--time-picker-spinner-button .bx--btn__icon {
32682
+ margin: 0 auto;
32683
+ }
32684
+
32685
+ .iot--time-picker-spinner-last-list-spinner > .iot--list-spinner__btn {
32686
+ display: none;
32687
+ }
32688
+ .iot--time-picker-spinner-last-list-spinner .iot--list-spinner__list-container {
32689
+ height: 100%;
32690
+ display: flex;
32691
+ justify-content: center;
32692
+ flex-direction: column;
32693
+ }
32694
+ .iot--time-picker-spinner-last-list-spinner li {
32695
+ -webkit-transform: translateY(7.5rem);
32696
+ transform: translateY(7.5rem);
32697
+ }
32698
+
32699
+ @-webkit-keyframes fadeIn {
32700
+ from {
32701
+ opacity: 0;
32702
+ }
32703
+ to {
32704
+ opacity: 1;
32705
+ }
32706
+ }
32707
+
32708
+ @keyframes fadeIn {
32709
+ from {
32710
+ opacity: 0;
32711
+ }
32712
+ to {
32713
+ opacity: 1;
32714
+ }
32715
+ }
32320
32716
  .iot--tear-sheet-wrapper {
32321
32717
  top: 0;
32322
32718
  left: 0;