carbon-addons-iot-react 2.148.0-next.2 → 2.148.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 +16 -0
- package/css/carbon-addons-iot-react.css +158 -4
- package/css/carbon-addons-iot-react.css.map +1 -1
- package/es/components/MenuButton/MenuButton.js +110 -8
- package/es/components/MenuButton/SingleMenuButton.js +54 -4
- package/es/components/MenuButton/SplitMenuButton.js +54 -4
- package/es/components/MenuButton/utils.js +80 -23
- package/lib/components/MenuButton/MenuButton.js +109 -7
- package/lib/components/MenuButton/SingleMenuButton.js +54 -4
- package/lib/components/MenuButton/SplitMenuButton.js +54 -4
- package/lib/components/MenuButton/utils.js +80 -22
- package/lib/css/carbon-addons-iot-react.css +158 -4
- package/lib/css/carbon-addons-iot-react.css.map +1 -1
- package/lib/scss/components/Button/_button.scss +6 -1
- package/lib/scss/components/MenuButton/_menu-button-shadow-blocker.scss +192 -0
- package/lib/scss/components/MenuButton/_menu-button.scss +25 -4
- package/package.json +2 -2
- package/scss/components/Button/_button.scss +6 -1
- package/scss/components/MenuButton/_menu-button-shadow-blocker.scss +192 -0
- package/scss/components/MenuButton/_menu-button.scss +25 -4
- package/umd/carbon-addons-iot-react.js +999 -749
|
@@ -29551,7 +29551,7 @@ html[dir=rtl] .bx--list-box__label .iot--icon-dropdown__item {
|
|
|
29551
29551
|
left: 1rem;
|
|
29552
29552
|
right: initial;
|
|
29553
29553
|
}
|
|
29554
|
-
[dir=rtl] .iot--btn.bx--btn--ghost:not(.bx--btn--sm.bx--btn--icon-only) {
|
|
29554
|
+
[dir=rtl] .iot--btn.bx--btn--ghost:not(.bx--btn--sm.bx--btn--icon-only):not(.iot--menu-button__trigger) {
|
|
29555
29555
|
padding-left: 1rem;
|
|
29556
29556
|
padding-right: 1rem;
|
|
29557
29557
|
}
|
|
@@ -33618,29 +33618,183 @@ html[dir=rtl] .iot--hierarchy-list-bulk-header--title {
|
|
|
33618
33618
|
height: 3rem;
|
|
33619
33619
|
}
|
|
33620
33620
|
|
|
33621
|
+
.iot--menu-button--icon-only.bx--menu--open .iot--menu__shadow-blocker {
|
|
33622
|
+
position: absolute;
|
|
33623
|
+
display: block;
|
|
33624
|
+
height: calc(0.5rem - 0.0625rem);
|
|
33625
|
+
top: calc((-0.5rem) + 0.0625rem);
|
|
33626
|
+
left: 0;
|
|
33627
|
+
width: 2rem;
|
|
33628
|
+
background-color: #ffffff;
|
|
33629
|
+
border-bottom: 0.0625rem solid #ffffff;
|
|
33630
|
+
}
|
|
33631
|
+
.iot--menu-button--icon-only.bx--menu--open .iot--menu__shadow-blocker--flip-y {
|
|
33632
|
+
left: unset;
|
|
33633
|
+
right: 0;
|
|
33634
|
+
}
|
|
33635
|
+
.iot--menu-button--icon-only.bx--menu--open .iot--menu__shadow-blocker--flip-x {
|
|
33636
|
+
left: unset;
|
|
33637
|
+
top: var(--menu-height);
|
|
33638
|
+
}
|
|
33639
|
+
html[dir=rtl] .iot--menu-button--icon-only.bx--menu--open .iot--menu__shadow-blocker:not(.iot--menu__shadow-blocker--opens-horizontally) {
|
|
33640
|
+
left: 0;
|
|
33641
|
+
}
|
|
33642
|
+
.iot--menu-button--icon-only.bx--menu--open .iot--menu__shadow-blocker--md {
|
|
33643
|
+
width: 2.5rem;
|
|
33644
|
+
}
|
|
33645
|
+
.iot--menu-button--icon-only.bx--menu--open .iot--menu__shadow-blocker--lg {
|
|
33646
|
+
width: 3rem;
|
|
33647
|
+
}
|
|
33648
|
+
.iot--menu-button--icon-only.bx--menu--open .iot--menu__shadow-blocker--opens-horizontally {
|
|
33649
|
+
top: 0;
|
|
33650
|
+
height: 2rem;
|
|
33651
|
+
width: calc(0.5rem - 0.0625rem);
|
|
33652
|
+
left: calc((calc(0.5rem - 0.0625rem)) * -1);
|
|
33653
|
+
border-bottom: none;
|
|
33654
|
+
border-right: 0.0625rem solid #ffffff;
|
|
33655
|
+
}
|
|
33656
|
+
.iot--menu-button--icon-only.bx--menu--open .iot--menu__shadow-blocker--opens-horizontally.iot--menu__shadow-blocker--flip-y {
|
|
33657
|
+
right: calc((calc(0.5rem - 0.0625rem)) * -1);
|
|
33658
|
+
left: unset;
|
|
33659
|
+
border-right: none;
|
|
33660
|
+
border-left: 0.0625rem solid #ffffff;
|
|
33661
|
+
}
|
|
33662
|
+
.iot--menu-button--icon-only.bx--menu--open .iot--menu__shadow-blocker--opens-horizontally.iot--menu__shadow-blocker--md {
|
|
33663
|
+
height: 2.5rem;
|
|
33664
|
+
width: calc(0.5rem - 0.0625rem);
|
|
33665
|
+
}
|
|
33666
|
+
.iot--menu-button--icon-only.bx--menu--open .iot--menu__shadow-blocker--opens-horizontally.iot--menu__shadow-blocker--lg {
|
|
33667
|
+
height: 3rem;
|
|
33668
|
+
width: calc(0.5rem - 0.0625rem);
|
|
33669
|
+
}
|
|
33670
|
+
.iot--menu-button--icon-only.bx--menu--open:focus .iot--menu__shadow-blocker {
|
|
33671
|
+
border-bottom: 0.0625rem solid #0f62fe;
|
|
33672
|
+
}
|
|
33673
|
+
.iot--menu-button--icon-only.bx--menu--open:focus .iot--menu__shadow-blocker--flip-x {
|
|
33674
|
+
border-bottom-color: #ffffff;
|
|
33675
|
+
border-top: 0.0625rem solid #0f62fe;
|
|
33676
|
+
}
|
|
33677
|
+
.iot--menu-button--icon-only.bx--menu--open:focus .iot--menu__shadow-blocker--opens-horizontally {
|
|
33678
|
+
border-bottom: none;
|
|
33679
|
+
border-right: 0.0625rem solid #0f62fe;
|
|
33680
|
+
}
|
|
33681
|
+
.iot--menu-button--icon-only.bx--menu--open:focus .iot--menu__shadow-blocker--opens-horizontally.iot--menu__shadow-blocker--flip-y {
|
|
33682
|
+
border-right: none;
|
|
33683
|
+
border-left: 0.0625rem solid #0f62fe;
|
|
33684
|
+
}
|
|
33685
|
+
|
|
33686
|
+
.iot--menu-button--open .bx--btn.bx--btn--icon-only.bx--btn--ghost:focus:not(:active)::after {
|
|
33687
|
+
position: absolute;
|
|
33688
|
+
display: block;
|
|
33689
|
+
height: calc(0.5rem - 0.0625rem);
|
|
33690
|
+
width: calc(3rem - (2 * 0.0625rem));
|
|
33691
|
+
top: calc(3rem - 0.5rem - 0.0625rem);
|
|
33692
|
+
content: "";
|
|
33693
|
+
left: calc(0.0625rem * (-1));
|
|
33694
|
+
background-color: transparent;
|
|
33695
|
+
z-index: 9001;
|
|
33696
|
+
border: none;
|
|
33697
|
+
border-bottom: 0.0625rem solid #0f62fe;
|
|
33698
|
+
border-left: 0.0625rem solid #0f62fe;
|
|
33699
|
+
border-right: 0.0625rem solid #0f62fe;
|
|
33700
|
+
border-radius: 0;
|
|
33701
|
+
-webkit-transform: none;
|
|
33702
|
+
transform: none;
|
|
33703
|
+
box-shadow: none;
|
|
33704
|
+
padding: 0;
|
|
33705
|
+
}
|
|
33706
|
+
.iot--menu-button--open .bx--btn.bx--btn--icon-only.bx--btn--ghost:focus:not(:active).bx--btn--md::after {
|
|
33707
|
+
width: calc(2.5rem - (2 * 0.0625rem));
|
|
33708
|
+
top: calc(2.5rem - 0.5rem - 0.0625rem);
|
|
33709
|
+
}
|
|
33710
|
+
.iot--menu-button--open .bx--btn.bx--btn--icon-only.bx--btn--ghost:focus:not(:active).bx--btn--sm::after {
|
|
33711
|
+
width: calc(2rem - (2 * 0.0625rem));
|
|
33712
|
+
top: calc(2rem - 0.5rem - 0.0625rem);
|
|
33713
|
+
}
|
|
33714
|
+
.iot--menu-button--open.iot--menu-button--flip-x .bx--btn.bx--btn--icon-only.bx--btn--ghost:focus:not(:active)::after {
|
|
33715
|
+
top: -0.0625rem;
|
|
33716
|
+
border-top: 0.0625rem solid #0f62fe;
|
|
33717
|
+
border-bottom: 0;
|
|
33718
|
+
}
|
|
33719
|
+
.iot--menu-button--open.iot--menu-button--opens-horizontally .bx--btn.bx--btn--icon-only.bx--btn--ghost:focus:not(:active)::after {
|
|
33720
|
+
-webkit-transform: rotate(-90deg);
|
|
33721
|
+
transform: rotate(-90deg);
|
|
33722
|
+
top: calc(
|
|
33723
|
+
((3rem - 0.5rem) / 2) - 0.0625rem
|
|
33724
|
+
);
|
|
33725
|
+
left: calc(
|
|
33726
|
+
((3rem - 0.5rem) / 2) - 0.0625rem
|
|
33727
|
+
);
|
|
33728
|
+
}
|
|
33729
|
+
.iot--menu-button--open.iot--menu-button--opens-horizontally .bx--btn.bx--btn--icon-only.bx--btn--ghost:focus:not(:active).bx--btn--md::after {
|
|
33730
|
+
top: calc(
|
|
33731
|
+
((2.5rem - 0.5rem) / 2) - 0.0625rem
|
|
33732
|
+
);
|
|
33733
|
+
left: calc(
|
|
33734
|
+
((2.5rem - 0.5rem) / 2) - 0.0625rem
|
|
33735
|
+
);
|
|
33736
|
+
}
|
|
33737
|
+
.iot--menu-button--open.iot--menu-button--opens-horizontally .bx--btn.bx--btn--icon-only.bx--btn--ghost:focus:not(:active).bx--btn--sm::after {
|
|
33738
|
+
top: calc(
|
|
33739
|
+
((2rem - 0.5rem) / 2) - 0.0625rem
|
|
33740
|
+
);
|
|
33741
|
+
left: calc(
|
|
33742
|
+
((2rem - 0.5rem) / 2) - 0.0625rem
|
|
33743
|
+
);
|
|
33744
|
+
}
|
|
33745
|
+
.iot--menu-button--open.iot--menu-button--opens-horizontally.iot--menu-button--flip-y .bx--btn.bx--btn--icon-only.bx--btn--ghost:focus:not(:active)::after {
|
|
33746
|
+
-webkit-transform: rotate(90deg);
|
|
33747
|
+
transform: rotate(90deg);
|
|
33748
|
+
left: calc((((3rem - 0.5rem) / 2) + 0.0625rem) * -1);
|
|
33749
|
+
}
|
|
33750
|
+
.iot--menu-button--open.iot--menu-button--opens-horizontally.iot--menu-button--flip-y .bx--btn.bx--btn--icon-only.bx--btn--ghost:focus:not(:active).bx--btn--md::after {
|
|
33751
|
+
left: calc((((2.5rem - 0.5rem) / 2) + 0.0625rem) * -1);
|
|
33752
|
+
}
|
|
33753
|
+
.iot--menu-button--open.iot--menu-button--opens-horizontally.iot--menu-button--flip-y .bx--btn.bx--btn--icon-only.bx--btn--ghost:focus:not(:active).bx--btn--sm::after {
|
|
33754
|
+
left: calc((((2rem - 0.5rem) / 2) + 0.0625rem) * -1);
|
|
33755
|
+
}
|
|
33756
|
+
|
|
33621
33757
|
.iot--menu-button .iot--menu-button__primary + .iot--menu-button__secondary {
|
|
33622
33758
|
border-left: 1px solid #ffffff;
|
|
33623
33759
|
}
|
|
33624
33760
|
.iot--menu-button .bx--btn--ghost.bx--btn--icon-only {
|
|
33625
33761
|
color: #161616;
|
|
33626
33762
|
}
|
|
33627
|
-
.iot--menu-button--open .iot--menu-button__trigger {
|
|
33763
|
+
.iot--menu-button--open .iot--menu-button__trigger.bx--btn--primary {
|
|
33764
|
+
background-color: #002d9c;
|
|
33765
|
+
}
|
|
33766
|
+
.iot--menu-button--open .iot--menu-button__trigger.bx--btn--secondary {
|
|
33767
|
+
background-color: #6f6f6f;
|
|
33768
|
+
}
|
|
33769
|
+
.iot--menu-button--open .iot--menu-button__trigger.bx--btn--tertiary {
|
|
33628
33770
|
background-color: #002d9c;
|
|
33771
|
+
color: #ffffff;
|
|
33772
|
+
}
|
|
33773
|
+
.iot--menu-button--open .iot--menu-button__trigger.bx--btn--ghost {
|
|
33774
|
+
background-color: #c6c6c6;
|
|
33775
|
+
color: #0043ce;
|
|
33629
33776
|
}
|
|
33630
33777
|
.iot--menu-button--open .bx--btn--ghost.bx--btn--icon-only {
|
|
33631
33778
|
background-color: #ffffff;
|
|
33632
33779
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
|
|
33633
33780
|
}
|
|
33634
33781
|
|
|
33782
|
+
.iot--menu-button__menu {
|
|
33783
|
+
padding: 0;
|
|
33784
|
+
}
|
|
33785
|
+
.iot--menu-button__menu .bx--menu-divider {
|
|
33786
|
+
margin: 0;
|
|
33787
|
+
}
|
|
33788
|
+
|
|
33635
33789
|
.bx--menu.bx--menu--open.bx--menu--root {
|
|
33636
33790
|
opacity: var(--iot-menu-button-menu-opacity);
|
|
33637
33791
|
}
|
|
33638
33792
|
|
|
33639
|
-
html[dir=rtl] .iot--menu-
|
|
33793
|
+
html[dir=rtl] .iot--menu-button__menu .bx--menu-option__icon {
|
|
33640
33794
|
margin-right: 0;
|
|
33641
33795
|
margin-left: 0.5rem;
|
|
33642
33796
|
}
|
|
33643
|
-
html[dir=rtl] .iot--menu-
|
|
33797
|
+
html[dir=rtl] .iot--menu-button__menu .bx--menu-option__info {
|
|
33644
33798
|
margin-left: 0;
|
|
33645
33799
|
margin-right: 1rem;
|
|
33646
33800
|
-webkit-transform: rotate(180deg);
|