@ni/nimble-components 11.0.2 → 11.0.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/dist/all-components-bundle.js +77 -29
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +77 -29
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/select/styles.js +78 -29
- package/dist/esm/select/styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -18729,35 +18729,66 @@
|
|
|
18729
18729
|
font: ${bodyFont};
|
|
18730
18730
|
height: ${controlHeight};
|
|
18731
18731
|
position: relative;
|
|
18732
|
+
justify-content: center;
|
|
18732
18733
|
user-select: none;
|
|
18733
18734
|
min-width: 250px;
|
|
18734
18735
|
outline: none;
|
|
18735
18736
|
vertical-align: top;
|
|
18737
|
+
--ni-private-hover-indicator-width: 2px;
|
|
18738
|
+
--ni-private-focus-indicator-width: 1px;
|
|
18739
|
+
--ni-private-indicator-lines-gap: 1px;
|
|
18736
18740
|
}
|
|
18737
18741
|
|
|
18738
|
-
|
|
18739
|
-
|
|
18740
|
-
display: inline-flex;
|
|
18741
|
-
flex-direction: column;
|
|
18742
|
-
left: 0;
|
|
18743
|
-
overflow-y: auto;
|
|
18742
|
+
:host::before {
|
|
18743
|
+
content: '';
|
|
18744
18744
|
position: absolute;
|
|
18745
|
-
|
|
18746
|
-
|
|
18747
|
-
|
|
18748
|
-
var(--ni-private-select-max-height) - 2 *
|
|
18749
|
-
var(--ni-private-listbox-padding)
|
|
18745
|
+
bottom: calc(
|
|
18746
|
+
var(--ni-private-hover-indicator-width) +
|
|
18747
|
+
var(--ni-private-indicator-lines-gap)
|
|
18750
18748
|
);
|
|
18751
|
-
|
|
18752
|
-
|
|
18753
|
-
|
|
18754
|
-
border:
|
|
18755
|
-
|
|
18756
|
-
|
|
18749
|
+
width: 0px;
|
|
18750
|
+
height: 0px;
|
|
18751
|
+
justify-self: center;
|
|
18752
|
+
border-bottom: ${borderHoverColor}
|
|
18753
|
+
var(--ni-private-focus-indicator-width) solid;
|
|
18754
|
+
transition: width ${smallDelay} ease-in;
|
|
18757
18755
|
}
|
|
18758
18756
|
|
|
18759
|
-
|
|
18760
|
-
|
|
18757
|
+
@media (prefers-reduced-motion) {
|
|
18758
|
+
:host::before {
|
|
18759
|
+
transition-duration: 0s;
|
|
18760
|
+
}
|
|
18761
|
+
}
|
|
18762
|
+
|
|
18763
|
+
:host(${focusVisible})::before {
|
|
18764
|
+
width: 100%;
|
|
18765
|
+
}
|
|
18766
|
+
|
|
18767
|
+
:host::after {
|
|
18768
|
+
content: '';
|
|
18769
|
+
position: absolute;
|
|
18770
|
+
bottom: 0px;
|
|
18771
|
+
width: 0px;
|
|
18772
|
+
height: 0px;
|
|
18773
|
+
justify-self: center;
|
|
18774
|
+
border-bottom: ${borderHoverColor}
|
|
18775
|
+
var(--ni-private-hover-indicator-width) solid;
|
|
18776
|
+
transition: width ${smallDelay} ease-in;
|
|
18777
|
+
}
|
|
18778
|
+
|
|
18779
|
+
@media (prefers-reduced-motion) {
|
|
18780
|
+
:host::after {
|
|
18781
|
+
transition-duration: 0s;
|
|
18782
|
+
}
|
|
18783
|
+
}
|
|
18784
|
+
|
|
18785
|
+
:host(:hover)::after,
|
|
18786
|
+
:host(${focusVisible})::after {
|
|
18787
|
+
width: 100%;
|
|
18788
|
+
}
|
|
18789
|
+
|
|
18790
|
+
:host([disabled]:hover)::after {
|
|
18791
|
+
width: 0px;
|
|
18761
18792
|
}
|
|
18762
18793
|
|
|
18763
18794
|
.control {
|
|
@@ -18778,23 +18809,40 @@
|
|
|
18778
18809
|
}
|
|
18779
18810
|
|
|
18780
18811
|
:host(.open:not(:hover)) .control {
|
|
18781
|
-
border-bottom: ${
|
|
18782
|
-
transition: border-bottom ${smallDelay}, padding-bottom ${smallDelay};
|
|
18783
|
-
}
|
|
18784
|
-
|
|
18785
|
-
:host(:hover) .control {
|
|
18786
|
-
border-bottom: 2px solid ${borderHoverColor};
|
|
18787
|
-
padding-bottom: 0px;
|
|
18788
|
-
transition: border-bottom ${smallDelay}, padding-bottom ${smallDelay};
|
|
18812
|
+
border-bottom-color: ${borderHoverColor};
|
|
18789
18813
|
}
|
|
18790
18814
|
|
|
18791
18815
|
:host([disabled]) .control,
|
|
18792
18816
|
:host([disabled]) .control:hover {
|
|
18793
|
-
border-bottom: ${
|
|
18794
|
-
padding-bottom: 1px;
|
|
18817
|
+
border-bottom-color: ${bodyDisabledFontColor};
|
|
18795
18818
|
color: ${bodyDisabledFontColor};
|
|
18796
18819
|
}
|
|
18797
18820
|
|
|
18821
|
+
.listbox {
|
|
18822
|
+
box-sizing: border-box;
|
|
18823
|
+
display: inline-flex;
|
|
18824
|
+
flex-direction: column;
|
|
18825
|
+
left: 0;
|
|
18826
|
+
overflow-y: auto;
|
|
18827
|
+
position: absolute;
|
|
18828
|
+
width: 100%;
|
|
18829
|
+
--ni-private-listbox-padding: ${smallPadding};
|
|
18830
|
+
max-height: calc(
|
|
18831
|
+
var(--ni-private-select-max-height) - 2 *
|
|
18832
|
+
var(--ni-private-listbox-padding)
|
|
18833
|
+
);
|
|
18834
|
+
z-index: 1;
|
|
18835
|
+
padding: var(--ni-private-listbox-padding);
|
|
18836
|
+
box-shadow: 0px 3px 3px ${popupBoxShadowColor};
|
|
18837
|
+
border: 1px solid ${popupBorderColor};
|
|
18838
|
+
background-color: ${applicationBackgroundColor};
|
|
18839
|
+
background-clip: padding-box;
|
|
18840
|
+
}
|
|
18841
|
+
|
|
18842
|
+
.listbox[hidden] {
|
|
18843
|
+
display: none;
|
|
18844
|
+
}
|
|
18845
|
+
|
|
18798
18846
|
:host([open][position='above']) .listbox {
|
|
18799
18847
|
border-bottom-left-radius: 0;
|
|
18800
18848
|
border-bottom-right-radius: 0;
|