@ni/nimble-components 11.0.1 → 11.0.4
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 +184 -124
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +184 -124
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/menu-button/template.js +1 -1
- package/dist/esm/menu-button/template.js.map +1 -1
- package/dist/esm/number-field/styles.js +53 -20
- package/dist/esm/number-field/styles.js.map +1 -1
- package/dist/esm/select/styles.js +78 -29
- package/dist/esm/select/styles.js.map +1 -1
- package/dist/esm/text-field/styles.js +54 -75
- package/dist/esm/text-field/styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -18241,7 +18241,7 @@
|
|
|
18241
18241
|
<${context.tagFor(ToggleButton)}
|
|
18242
18242
|
part="button"
|
|
18243
18243
|
appearance="${x => x.appearance}"
|
|
18244
|
-
content-hidden="${x => x.contentHidden}"
|
|
18244
|
+
?content-hidden="${x => x.contentHidden}"
|
|
18245
18245
|
?checked="${x => x.open}"
|
|
18246
18246
|
?disabled="${x => x.disabled}"
|
|
18247
18247
|
aria-haspopup="true"
|
|
@@ -18561,6 +18561,7 @@
|
|
|
18561
18561
|
user-select: none;
|
|
18562
18562
|
color: ${bodyFontColor};
|
|
18563
18563
|
height: calc(${labelHeight} + ${controlHeight});
|
|
18564
|
+
--ni-private-hover-indicator-width: calc(${borderWidth} + 1px);
|
|
18564
18565
|
}
|
|
18565
18566
|
|
|
18566
18567
|
:host([disabled]) {
|
|
@@ -18568,32 +18569,71 @@
|
|
|
18568
18569
|
cursor: default;
|
|
18569
18570
|
}
|
|
18570
18571
|
|
|
18572
|
+
.label {
|
|
18573
|
+
display: flex;
|
|
18574
|
+
color: ${controlLabelFontColor};
|
|
18575
|
+
font: ${controlLabelFont};
|
|
18576
|
+
}
|
|
18577
|
+
|
|
18571
18578
|
.root {
|
|
18572
18579
|
box-sizing: border-box;
|
|
18573
18580
|
position: relative;
|
|
18574
18581
|
display: flex;
|
|
18575
18582
|
flex-direction: row;
|
|
18583
|
+
justify-content: center;
|
|
18576
18584
|
border-radius: 0px;
|
|
18577
18585
|
border-bottom: ${borderWidth} solid rgba(${borderRgbPartialColor}, 0.3);
|
|
18578
|
-
|
|
18579
|
-
|
|
18586
|
+
gap: calc(${standardPadding} / 2);
|
|
18587
|
+
}
|
|
18588
|
+
|
|
18589
|
+
.root:focus-within {
|
|
18590
|
+
border-bottom-color: ${borderHoverColor};
|
|
18591
|
+
}
|
|
18592
|
+
|
|
18593
|
+
:host([disabled]) .root,
|
|
18594
|
+
:host([disabled]) .root:hover {
|
|
18595
|
+
border-bottom: ${borderWidth} solid ${bodyDisabledFontColor};
|
|
18596
|
+
}
|
|
18597
|
+
|
|
18598
|
+
.root::before {
|
|
18599
|
+
${ /* Empty string causes alignment issue */''}
|
|
18600
|
+
content: ' ';
|
|
18601
|
+
color: transparent;
|
|
18602
|
+
width: 0px;
|
|
18603
|
+
user-select: none;
|
|
18604
|
+
}
|
|
18605
|
+
|
|
18606
|
+
.root::after {
|
|
18607
|
+
content: '';
|
|
18608
|
+
position: absolute;
|
|
18609
|
+
bottom: calc(-1 * ${borderWidth});
|
|
18610
|
+
width: 0px;
|
|
18611
|
+
height: 0px;
|
|
18612
|
+
border-bottom: ${borderHoverColor}
|
|
18613
|
+
var(--ni-private-hover-indicator-width) solid;
|
|
18614
|
+
transition: width ${smallDelay} ease-in;
|
|
18580
18615
|
}
|
|
18581
18616
|
|
|
18582
18617
|
@media (prefers-reduced-motion) {
|
|
18583
|
-
.root {
|
|
18618
|
+
.root::after {
|
|
18584
18619
|
transition-duration: 0s;
|
|
18585
18620
|
}
|
|
18586
18621
|
}
|
|
18587
18622
|
|
|
18588
|
-
.root
|
|
18589
|
-
border-bottom:
|
|
18590
|
-
padding-bottom: 0px;
|
|
18623
|
+
:host(.invalid) .root::after {
|
|
18624
|
+
border-bottom-color: ${failColor};
|
|
18591
18625
|
}
|
|
18592
18626
|
|
|
18593
|
-
:host(
|
|
18594
|
-
|
|
18595
|
-
|
|
18596
|
-
|
|
18627
|
+
:host(:hover) .root::after {
|
|
18628
|
+
width: 100%;
|
|
18629
|
+
}
|
|
18630
|
+
|
|
18631
|
+
:host([disabled]:hover) .root::after {
|
|
18632
|
+
width: 0px;
|
|
18633
|
+
}
|
|
18634
|
+
|
|
18635
|
+
[part='start'] {
|
|
18636
|
+
display: contents;
|
|
18597
18637
|
}
|
|
18598
18638
|
|
|
18599
18639
|
.control {
|
|
@@ -18601,11 +18641,10 @@
|
|
|
18601
18641
|
font: inherit;
|
|
18602
18642
|
background: transparent;
|
|
18603
18643
|
color: inherit;
|
|
18604
|
-
height:
|
|
18644
|
+
height: calc(${controlHeight} - ${borderWidth});
|
|
18605
18645
|
width: 100%;
|
|
18606
|
-
margin-top: auto;
|
|
18607
|
-
margin-bottom: auto;
|
|
18608
18646
|
border: none;
|
|
18647
|
+
padding: 0px;
|
|
18609
18648
|
}
|
|
18610
18649
|
|
|
18611
18650
|
.control:hover,
|
|
@@ -18632,12 +18671,6 @@
|
|
|
18632
18671
|
color: ${bodyDisabledFontColor};
|
|
18633
18672
|
}
|
|
18634
18673
|
|
|
18635
|
-
.label {
|
|
18636
|
-
display: flex;
|
|
18637
|
-
color: ${controlLabelFontColor};
|
|
18638
|
-
font: ${controlLabelFont};
|
|
18639
|
-
}
|
|
18640
|
-
|
|
18641
18674
|
.controls {
|
|
18642
18675
|
display: flex;
|
|
18643
18676
|
flex-direction: column;
|
|
@@ -18696,35 +18729,66 @@
|
|
|
18696
18729
|
font: ${bodyFont};
|
|
18697
18730
|
height: ${controlHeight};
|
|
18698
18731
|
position: relative;
|
|
18732
|
+
justify-content: center;
|
|
18699
18733
|
user-select: none;
|
|
18700
18734
|
min-width: 250px;
|
|
18701
18735
|
outline: none;
|
|
18702
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;
|
|
18703
18740
|
}
|
|
18704
18741
|
|
|
18705
|
-
|
|
18706
|
-
|
|
18707
|
-
display: inline-flex;
|
|
18708
|
-
flex-direction: column;
|
|
18709
|
-
left: 0;
|
|
18710
|
-
overflow-y: auto;
|
|
18742
|
+
:host::before {
|
|
18743
|
+
content: '';
|
|
18711
18744
|
position: absolute;
|
|
18712
|
-
|
|
18713
|
-
|
|
18714
|
-
|
|
18715
|
-
var(--ni-private-select-max-height) - 2 *
|
|
18716
|
-
var(--ni-private-listbox-padding)
|
|
18745
|
+
bottom: calc(
|
|
18746
|
+
var(--ni-private-hover-indicator-width) +
|
|
18747
|
+
var(--ni-private-indicator-lines-gap)
|
|
18717
18748
|
);
|
|
18718
|
-
|
|
18719
|
-
|
|
18720
|
-
|
|
18721
|
-
border:
|
|
18722
|
-
|
|
18723
|
-
|
|
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;
|
|
18724
18755
|
}
|
|
18725
18756
|
|
|
18726
|
-
|
|
18727
|
-
|
|
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;
|
|
18728
18792
|
}
|
|
18729
18793
|
|
|
18730
18794
|
.control {
|
|
@@ -18745,23 +18809,40 @@
|
|
|
18745
18809
|
}
|
|
18746
18810
|
|
|
18747
18811
|
:host(.open:not(:hover)) .control {
|
|
18748
|
-
border-bottom: ${
|
|
18749
|
-
transition: border-bottom ${smallDelay}, padding-bottom ${smallDelay};
|
|
18750
|
-
}
|
|
18751
|
-
|
|
18752
|
-
:host(:hover) .control {
|
|
18753
|
-
border-bottom: 2px solid ${borderHoverColor};
|
|
18754
|
-
padding-bottom: 0px;
|
|
18755
|
-
transition: border-bottom ${smallDelay}, padding-bottom ${smallDelay};
|
|
18812
|
+
border-bottom-color: ${borderHoverColor};
|
|
18756
18813
|
}
|
|
18757
18814
|
|
|
18758
18815
|
:host([disabled]) .control,
|
|
18759
18816
|
:host([disabled]) .control:hover {
|
|
18760
|
-
border-bottom: ${
|
|
18761
|
-
padding-bottom: 1px;
|
|
18817
|
+
border-bottom-color: ${bodyDisabledFontColor};
|
|
18762
18818
|
color: ${bodyDisabledFontColor};
|
|
18763
18819
|
}
|
|
18764
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
|
+
|
|
18765
18846
|
:host([open][position='above']) .listbox {
|
|
18766
18847
|
border-bottom-left-radius: 0;
|
|
18767
18848
|
border-bottom-right-radius: 0;
|
|
@@ -19472,6 +19553,10 @@
|
|
|
19472
19553
|
--webkit-user-select: none;
|
|
19473
19554
|
color: ${bodyFontColor};
|
|
19474
19555
|
height: calc(${labelHeight} + ${controlHeight});
|
|
19556
|
+
--ni-private-hover-indicator-width: calc(${borderWidth} + 1px);
|
|
19557
|
+
--ni-private-height-within-border: calc(
|
|
19558
|
+
${controlHeight} - 2 * ${borderWidth}
|
|
19559
|
+
);
|
|
19475
19560
|
}
|
|
19476
19561
|
|
|
19477
19562
|
:host([disabled]) {
|
|
@@ -19495,22 +19580,10 @@
|
|
|
19495
19580
|
flex-direction: row;
|
|
19496
19581
|
border-radius: 0px;
|
|
19497
19582
|
font: inherit;
|
|
19498
|
-
transition: border-bottom ${smallDelay}, padding-bottom ${smallDelay};
|
|
19499
19583
|
align-items: center;
|
|
19500
|
-
|
|
19584
|
+
justify-content: center;
|
|
19501
19585
|
border: 0px solid rgba(${borderRgbPartialColor}, 0.3);
|
|
19502
|
-
border-bottom-width: var(--ni-private-bottom-border-width);
|
|
19503
19586
|
gap: calc(${standardPadding} / 2);
|
|
19504
|
-
padding-bottom: calc(
|
|
19505
|
-
var(--ni-private-hover-bottom-border-width) -
|
|
19506
|
-
var(--ni-private-bottom-border-width)
|
|
19507
|
-
);
|
|
19508
|
-
}
|
|
19509
|
-
|
|
19510
|
-
@media (prefers-reduced-motion) {
|
|
19511
|
-
.root {
|
|
19512
|
-
transition-duration: 0s;
|
|
19513
|
-
}
|
|
19514
19587
|
}
|
|
19515
19588
|
|
|
19516
19589
|
:host(.invalid) .root {
|
|
@@ -19525,21 +19598,6 @@
|
|
|
19525
19598
|
border-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
19526
19599
|
}
|
|
19527
19600
|
|
|
19528
|
-
.root:hover {
|
|
19529
|
-
--ni-private-bottom-border-width: var(
|
|
19530
|
-
--ni-private-hover-bottom-border-width
|
|
19531
|
-
);
|
|
19532
|
-
border-bottom-color: ${borderHoverColor};
|
|
19533
|
-
}
|
|
19534
|
-
|
|
19535
|
-
:host([readonly]) .root:hover {
|
|
19536
|
-
--ni-private-bottom-border-width: 1px;
|
|
19537
|
-
}
|
|
19538
|
-
|
|
19539
|
-
:host([disabled]) .root:hover {
|
|
19540
|
-
--ni-private-bottom-border-width: 1px;
|
|
19541
|
-
}
|
|
19542
|
-
|
|
19543
19601
|
.root:focus-within {
|
|
19544
19602
|
border-bottom-color: ${borderHoverColor};
|
|
19545
19603
|
}
|
|
@@ -19587,10 +19645,7 @@
|
|
|
19587
19645
|
background: transparent;
|
|
19588
19646
|
color: inherit;
|
|
19589
19647
|
padding: 0px;
|
|
19590
|
-
height:
|
|
19591
|
-
${controlHeight} - ${borderWidth} -
|
|
19592
|
-
var(--ni-private-hover-bottom-border-width)
|
|
19593
|
-
);
|
|
19648
|
+
height: ${controlHeight};
|
|
19594
19649
|
width: 100%;
|
|
19595
19650
|
margin-top: auto;
|
|
19596
19651
|
margin-bottom: auto;
|
|
@@ -19634,6 +19689,36 @@
|
|
|
19634
19689
|
display: contents;
|
|
19635
19690
|
}
|
|
19636
19691
|
|
|
19692
|
+
[part='end']::after {
|
|
19693
|
+
content: '';
|
|
19694
|
+
position: absolute;
|
|
19695
|
+
bottom: calc(-1 * ${borderWidth});
|
|
19696
|
+
width: 0px;
|
|
19697
|
+
height: 0px;
|
|
19698
|
+
border-bottom: ${borderHoverColor}
|
|
19699
|
+
var(--ni-private-hover-indicator-width) solid;
|
|
19700
|
+
transition: width ${smallDelay} ease-in;
|
|
19701
|
+
}
|
|
19702
|
+
|
|
19703
|
+
@media (prefers-reduced-motion) {
|
|
19704
|
+
[part='end']::after {
|
|
19705
|
+
transition-duration: 0s;
|
|
19706
|
+
}
|
|
19707
|
+
}
|
|
19708
|
+
|
|
19709
|
+
:host(.invalid) [part='end']::after {
|
|
19710
|
+
border-bottom-color: ${failColor};
|
|
19711
|
+
}
|
|
19712
|
+
|
|
19713
|
+
:host(:hover) [part='end']::after {
|
|
19714
|
+
width: 100%;
|
|
19715
|
+
}
|
|
19716
|
+
|
|
19717
|
+
:host([disabled]:hover) [part='end']::after,
|
|
19718
|
+
:host([readonly]:hover) [part='end']::after {
|
|
19719
|
+
width: 0px;
|
|
19720
|
+
}
|
|
19721
|
+
|
|
19637
19722
|
.error-content {
|
|
19638
19723
|
display: none;
|
|
19639
19724
|
}
|
|
@@ -19689,46 +19774,33 @@
|
|
|
19689
19774
|
}
|
|
19690
19775
|
`.withBehaviors(appearanceBehavior(TextFieldAppearance.underline, css `
|
|
19691
19776
|
.root {
|
|
19692
|
-
|
|
19777
|
+
border-bottom-width: ${borderWidth};
|
|
19778
|
+
}
|
|
19779
|
+
|
|
19780
|
+
.control {
|
|
19781
|
+
height: var(--ni-private-height-within-border);
|
|
19693
19782
|
padding-top: ${borderWidth};
|
|
19694
19783
|
padding-left: ${borderWidth};
|
|
19695
19784
|
padding-right: ${borderWidth};
|
|
19696
19785
|
}
|
|
19697
|
-
|
|
19698
|
-
:host([disabled]) .root {
|
|
19699
|
-
border-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
19700
|
-
}
|
|
19701
|
-
|
|
19702
|
-
:host([disabled]) .root:hover {
|
|
19703
|
-
--ni-private-bottom-border-width: 1px;
|
|
19704
|
-
}
|
|
19705
19786
|
`), appearanceBehavior(TextFieldAppearance.block, css `
|
|
19706
19787
|
.root {
|
|
19707
19788
|
background-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
19708
|
-
--ni-private-bottom-border-width: 0px;
|
|
19709
|
-
padding-top: ${borderWidth};
|
|
19710
|
-
padding-left: ${borderWidth};
|
|
19711
|
-
padding-right: ${borderWidth};
|
|
19712
19789
|
}
|
|
19713
19790
|
|
|
19714
|
-
.
|
|
19715
|
-
|
|
19716
|
-
|
|
19717
|
-
|
|
19718
|
-
.root:focus-within:hover {
|
|
19719
|
-
--ni-private-bottom-border-width: var(
|
|
19720
|
-
--ni-private-hover-bottom-border-width
|
|
19721
|
-
);
|
|
19791
|
+
.control {
|
|
19792
|
+
padding-left: ${borderWidth};
|
|
19793
|
+
padding-right: ${borderWidth};
|
|
19722
19794
|
}
|
|
19723
19795
|
|
|
19796
|
+
.root:focus-within,
|
|
19724
19797
|
:host(.invalid) .root {
|
|
19725
|
-
|
|
19798
|
+
border-bottom-width: ${borderWidth};
|
|
19726
19799
|
}
|
|
19727
19800
|
|
|
19728
|
-
|
|
19729
|
-
|
|
19730
|
-
|
|
19731
|
-
);
|
|
19801
|
+
.root:focus-within .control,
|
|
19802
|
+
:host(.invalid) .control {
|
|
19803
|
+
height: calc(${controlHeight} - ${borderWidth});
|
|
19732
19804
|
}
|
|
19733
19805
|
|
|
19734
19806
|
:host([readonly]) .root {
|
|
@@ -19739,28 +19811,20 @@
|
|
|
19739
19811
|
:host([disabled]) .root {
|
|
19740
19812
|
background-color: rgba(${borderRgbPartialColor}, 0.07);
|
|
19741
19813
|
}
|
|
19742
|
-
|
|
19743
|
-
:host([disabled]) .root:hover {
|
|
19744
|
-
--ni-private-bottom-border-width: 0px;
|
|
19745
|
-
}
|
|
19746
|
-
|
|
19747
|
-
:host(.invalid[disabled]) .root {
|
|
19748
|
-
--ni-private-bottom-border-width: 1px;
|
|
19749
|
-
}
|
|
19750
19814
|
`), appearanceBehavior(TextFieldAppearance.outline, css `
|
|
19751
19815
|
.root {
|
|
19752
|
-
--ni-private-bottom-border-width: 1px;
|
|
19753
19816
|
border-width: ${borderWidth};
|
|
19754
|
-
|
|
19817
|
+
}
|
|
19818
|
+
|
|
19819
|
+
.control {
|
|
19820
|
+
height: var(--ni-private-height-within-border);
|
|
19755
19821
|
}
|
|
19756
19822
|
|
|
19757
19823
|
:host(.invalid) .errortext {
|
|
19758
19824
|
top: calc(${controlHeight} - ${borderWidth});
|
|
19759
19825
|
}
|
|
19760
19826
|
`), appearanceBehavior(TextFieldAppearance.frameless, css `
|
|
19761
|
-
.
|
|
19762
|
-
--ni-private-bottom-border-width: 0px;
|
|
19763
|
-
padding-top: ${borderWidth};
|
|
19827
|
+
.control {
|
|
19764
19828
|
padding-left: ${borderWidth};
|
|
19765
19829
|
padding-right: ${borderWidth};
|
|
19766
19830
|
}
|
|
@@ -19768,10 +19832,6 @@
|
|
|
19768
19832
|
:host([readonly]) .root {
|
|
19769
19833
|
border-color: transparent;
|
|
19770
19834
|
}
|
|
19771
|
-
|
|
19772
|
-
.root:hover {
|
|
19773
|
-
--ni-private-bottom-border-width: 0px;
|
|
19774
|
-
}
|
|
19775
19835
|
`), themeBehavior(css `
|
|
19776
19836
|
${'' /* Light theme */}
|
|
19777
19837
|
.control::-ms-reveal {
|