@ni/nimble-components 11.5.0 → 11.6.2
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 +56 -6
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +107 -73
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/combobox/styles.js +5 -1
- package/dist/esm/combobox/styles.js.map +1 -1
- package/dist/esm/list-option/styles.js +2 -1
- package/dist/esm/list-option/styles.js.map +1 -1
- package/dist/esm/patterns/dropdown/styles.js +1 -4
- package/dist/esm/patterns/dropdown/styles.js.map +1 -1
- package/dist/esm/patterns/dropdown/types.d.ts +6 -0
- package/dist/esm/patterns/dropdown/types.js +5 -0
- package/dist/esm/patterns/dropdown/types.js.map +1 -1
- package/dist/esm/select/index.d.ts +3 -1
- package/dist/esm/select/index.js +11 -1
- package/dist/esm/select/index.js.map +1 -1
- package/dist/esm/select/styles.js +35 -1
- package/dist/esm/select/styles.js.map +1 -1
- package/dist/esm/select/types.d.ts +5 -0
- package/dist/esm/select/types.js +6 -0
- package/dist/esm/select/types.js.map +1 -0
- package/package.json +1 -1
|
@@ -16283,10 +16283,7 @@
|
|
|
16283
16283
|
:host::before {
|
|
16284
16284
|
content: '';
|
|
16285
16285
|
position: absolute;
|
|
16286
|
-
bottom: calc(
|
|
16287
|
-
var(--ni-private-hover-indicator-width) +
|
|
16288
|
-
var(--ni-private-indicator-lines-gap)
|
|
16289
|
-
);
|
|
16286
|
+
bottom: calc(${borderWidth} + var(--ni-private-indicator-lines-gap));
|
|
16290
16287
|
width: 0px;
|
|
16291
16288
|
height: 0px;
|
|
16292
16289
|
justify-self: center;
|
|
@@ -16507,6 +16504,10 @@
|
|
|
16507
16504
|
bottom-border-width: var(--ni-private-bottom-border-width);
|
|
16508
16505
|
}
|
|
16509
16506
|
|
|
16507
|
+
.control:focus-within {
|
|
16508
|
+
border-bottom-color: ${borderHoverColor};
|
|
16509
|
+
}
|
|
16510
|
+
|
|
16510
16511
|
:host(.invalid) .control {
|
|
16511
16512
|
border-bottom: var(--ni-private-bottom-border-width) solid ${failColor};
|
|
16512
16513
|
}
|
|
@@ -19650,6 +19651,7 @@
|
|
|
19650
19651
|
font: ${bodyFont};
|
|
19651
19652
|
cursor: pointer;
|
|
19652
19653
|
justify-content: left;
|
|
19654
|
+
height: ${controlHeight};
|
|
19653
19655
|
}
|
|
19654
19656
|
|
|
19655
19657
|
.content {
|
|
@@ -20494,14 +20496,59 @@
|
|
|
20494
20496
|
});
|
|
20495
20497
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleNumberField());
|
|
20496
20498
|
|
|
20499
|
+
({
|
|
20500
|
+
above: SelectPosition.above,
|
|
20501
|
+
below: SelectPosition.below
|
|
20502
|
+
});
|
|
20503
|
+
const DropdownAppearance = {
|
|
20504
|
+
underline: 'underline',
|
|
20505
|
+
outline: 'outline',
|
|
20506
|
+
block: 'block'
|
|
20507
|
+
};
|
|
20508
|
+
|
|
20497
20509
|
const styles$b = css `
|
|
20498
20510
|
${styles$l}
|
|
20499
|
-
|
|
20511
|
+
`.withBehaviors(appearanceBehavior(DropdownAppearance.underline, css `
|
|
20512
|
+
.control {
|
|
20513
|
+
padding-top: ${borderWidth};
|
|
20514
|
+
padding-left: calc(${borderWidth} + ${standardPadding} / 2);
|
|
20515
|
+
padding-right: ${borderWidth};
|
|
20516
|
+
}
|
|
20517
|
+
|
|
20518
|
+
:host([disabled]) .control {
|
|
20519
|
+
border-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
20520
|
+
}
|
|
20521
|
+
`), appearanceBehavior(DropdownAppearance.outline, css `
|
|
20522
|
+
.control {
|
|
20523
|
+
border: ${borderWidth} solid rgba(${borderRgbPartialColor}, 0.3);
|
|
20524
|
+
}
|
|
20525
|
+
|
|
20526
|
+
:host(.invalid) .errortext {
|
|
20527
|
+
top: calc(${controlHeight} - ${borderWidth});
|
|
20528
|
+
}
|
|
20529
|
+
`), appearanceBehavior(DropdownAppearance.block, css `
|
|
20530
|
+
.control {
|
|
20531
|
+
background-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
20532
|
+
padding-left: calc(${borderWidth} + ${standardPadding} / 2);
|
|
20533
|
+
padding-right: ${borderWidth};
|
|
20534
|
+
padding-bottom: calc(${borderWidth});
|
|
20535
|
+
border-bottom: ${borderWidth}
|
|
20536
|
+
rgba(${borderRgbPartialColor}, 0.07);
|
|
20537
|
+
}
|
|
20538
|
+
|
|
20539
|
+
:host([disabled]) .control {
|
|
20540
|
+
background-color: rgba(${borderRgbPartialColor}, 0.07);
|
|
20541
|
+
}
|
|
20542
|
+
`));
|
|
20500
20543
|
|
|
20501
20544
|
/**
|
|
20502
|
-
* A nimble-
|
|
20545
|
+
* A nimble-styled HTML select
|
|
20503
20546
|
*/
|
|
20504
20547
|
class Select extends Select$1 {
|
|
20548
|
+
constructor() {
|
|
20549
|
+
super(...arguments);
|
|
20550
|
+
this.appearance = DropdownAppearance.underline;
|
|
20551
|
+
}
|
|
20505
20552
|
// Workaround for https://github.com/microsoft/fast/issues/5123
|
|
20506
20553
|
setPositioning() {
|
|
20507
20554
|
if (!this.$fastController.isConnected) {
|
|
@@ -20529,6 +20576,9 @@
|
|
|
20529
20576
|
}
|
|
20530
20577
|
}
|
|
20531
20578
|
}
|
|
20579
|
+
__decorate([
|
|
20580
|
+
attr
|
|
20581
|
+
], Select.prototype, "appearance", void 0);
|
|
20532
20582
|
const nimbleSelect = Select.compose({
|
|
20533
20583
|
baseName: 'select',
|
|
20534
20584
|
baseClass: Select$1,
|