@ni/nimble-components 35.2.1 → 35.2.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 +99 -34
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +99 -34
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/switch/styles.js +101 -36
- package/dist/esm/switch/styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -10399,7 +10399,9 @@ const XF=It`
|
|
|
10399
10399
|
flex-direction: column;
|
|
10400
10400
|
cursor: pointer;
|
|
10401
10401
|
--ni-private-switch-height: 24px;
|
|
10402
|
-
--ni-private-switch-indicator-size:
|
|
10402
|
+
--ni-private-switch-indicator-size: 24px;
|
|
10403
|
+
--ni-private-switch-indicator-inner-size: 18px;
|
|
10404
|
+
--ni-private-switch-indicator-margin: -2px;
|
|
10403
10405
|
padding-bottom: calc(
|
|
10404
10406
|
${Nl} - var(--ni-private-switch-height)
|
|
10405
10407
|
);
|
|
@@ -10437,20 +10439,36 @@ const XF=It`
|
|
|
10437
10439
|
display: flex;
|
|
10438
10440
|
height: var(--ni-private-switch-height);
|
|
10439
10441
|
width: calc(var(--ni-private-switch-height) * 2);
|
|
10440
|
-
background-color:
|
|
10442
|
+
background-color: var(--ni-private-switch-background-color);
|
|
10441
10443
|
border-radius: calc(var(--ni-private-switch-height) / 2);
|
|
10442
10444
|
align-items: center;
|
|
10443
|
-
border: calc(${Hl}
|
|
10445
|
+
border: calc(${Hl}) solid transparent;
|
|
10444
10446
|
}
|
|
10445
10447
|
|
|
10446
|
-
:host([
|
|
10447
|
-
background-color: var(--ni-private-switch-background-
|
|
10448
|
+
:host([aria-checked='true']) .switch {
|
|
10449
|
+
background-color: var(--ni-private-switch-background-selected-color);
|
|
10450
|
+
}
|
|
10451
|
+
|
|
10452
|
+
:host([aria-checked='true']:hover) .switch {
|
|
10453
|
+
background-color: var(--ni-private-switch-background-selected-rollover-color);
|
|
10448
10454
|
}
|
|
10449
10455
|
|
|
10450
10456
|
:host(${Ho}) .switch {
|
|
10451
10457
|
border-color: ${Sl};
|
|
10452
10458
|
}
|
|
10453
10459
|
|
|
10460
|
+
:host(${Ho}[aria-checked='true']) .switch {
|
|
10461
|
+
background-color: var(--ni-private-switch-background-selected-rollover-color);
|
|
10462
|
+
}
|
|
10463
|
+
|
|
10464
|
+
:host([disabled]) .switch {
|
|
10465
|
+
background-color: var(--ni-private-switch-background-disabled-color);
|
|
10466
|
+
}
|
|
10467
|
+
|
|
10468
|
+
:host([disabled]:hover) .switch {
|
|
10469
|
+
background-color: var(--ni-private-switch-background-disabled-color);
|
|
10470
|
+
}
|
|
10471
|
+
|
|
10454
10472
|
.checked-indicator-spacer {
|
|
10455
10473
|
flex-grow: 0;
|
|
10456
10474
|
transition: flex-grow ${Xc} ease-in-out;
|
|
@@ -10468,51 +10486,81 @@ const XF=It`
|
|
|
10468
10486
|
width: var(--ni-private-switch-indicator-size);
|
|
10469
10487
|
height: var(--ni-private-switch-indicator-size);
|
|
10470
10488
|
border-radius: calc(var(--ni-private-switch-indicator-size) / 2);
|
|
10471
|
-
margin:
|
|
10472
|
-
calc(
|
|
10473
|
-
var(--ni-private-switch-height) - var(
|
|
10474
|
-
--ni-private-switch-indicator-size
|
|
10475
|
-
)
|
|
10476
|
-
) /
|
|
10477
|
-
2
|
|
10478
|
-
);
|
|
10489
|
+
margin: var(--ni-private-switch-indicator-margin);
|
|
10479
10490
|
border: ${Hl} solid
|
|
10480
10491
|
var(--ni-private-switch-indicator-border-color);
|
|
10481
10492
|
}
|
|
10482
10493
|
|
|
10494
|
+
:host([aria-checked='true']) .checked-indicator {
|
|
10495
|
+
border-color: var(--ni-private-switch-indicator-border-selected-color);
|
|
10496
|
+
}
|
|
10497
|
+
|
|
10483
10498
|
:host(:hover) .checked-indicator {
|
|
10484
10499
|
border: calc(${Hl} * 2) solid ${Sl};
|
|
10485
10500
|
}
|
|
10486
10501
|
|
|
10502
|
+
:host(${Ho}) .checked-indicator {
|
|
10503
|
+
border: calc(${Hl} * 2) solid ${Sl};
|
|
10504
|
+
}
|
|
10505
|
+
|
|
10487
10506
|
:host([disabled]) .checked-indicator {
|
|
10488
|
-
background-color:
|
|
10489
|
-
--ni-private-switch-indicator-background-disabled-color
|
|
10490
|
-
);
|
|
10507
|
+
background-color: transparent;
|
|
10491
10508
|
border: ${Hl} solid
|
|
10492
10509
|
var(--ni-private-switch-indicator-border-disabled-color);
|
|
10493
10510
|
}
|
|
10494
10511
|
|
|
10495
|
-
:host(
|
|
10496
|
-
|
|
10512
|
+
:host([disabled]:hover) .checked-indicator {
|
|
10513
|
+
background-color: transparent;
|
|
10514
|
+
border: ${Hl} solid
|
|
10515
|
+
var(--ni-private-switch-indicator-border-disabled-color);
|
|
10497
10516
|
}
|
|
10498
10517
|
|
|
10499
|
-
.checked-indicator
|
|
10500
|
-
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
10518
|
+
:host([disabled]${Ho}) .checked-indicator {
|
|
10519
|
+
background-color: transparent;
|
|
10520
|
+
border: ${Hl} solid
|
|
10521
|
+
var(--ni-private-switch-indicator-border-disabled-color);
|
|
10522
|
+
}
|
|
10523
|
+
|
|
10524
|
+
:host([disabled]:active) .checked-indicator-inner {
|
|
10525
|
+
background-color: var(
|
|
10526
|
+
--ni-private-switch-indicator-border-disabled-color
|
|
10527
|
+
);
|
|
10504
10528
|
opacity: 0;
|
|
10505
|
-
transition: opacity ${Xc} ease-in-out;
|
|
10506
10529
|
}
|
|
10507
10530
|
|
|
10508
|
-
:host([disabled]) .checked-indicator-inner {
|
|
10531
|
+
:host([disabled]${Ho}) .checked-indicator-inner {
|
|
10509
10532
|
background-color: var(
|
|
10510
10533
|
--ni-private-switch-indicator-border-disabled-color
|
|
10511
10534
|
);
|
|
10535
|
+
opacity: 0;
|
|
10536
|
+
}
|
|
10537
|
+
|
|
10538
|
+
.checked-indicator-inner {
|
|
10539
|
+
width: var(--ni-private-switch-indicator-inner-size);
|
|
10540
|
+
height: var(--ni-private-switch-indicator-inner-size);
|
|
10541
|
+
border-radius: calc(var(--ni-private-switch-indicator-inner-size) / 2);
|
|
10542
|
+
opacity: 0;
|
|
10512
10543
|
}
|
|
10513
10544
|
|
|
10514
10545
|
:host([aria-checked='true']) .checked-indicator-inner {
|
|
10546
|
+
opacity: 0;
|
|
10547
|
+
}
|
|
10548
|
+
|
|
10549
|
+
:host(${Ho}) .checked-indicator-inner {
|
|
10515
10550
|
opacity: 1;
|
|
10551
|
+
background-color: var(--ni-private-switch-indicator-background-color);
|
|
10552
|
+
border: 1px solid var(--ni-private-switch-indicator-border-selected-color);
|
|
10553
|
+
}
|
|
10554
|
+
|
|
10555
|
+
:host(:active) .checked-indicator-inner {
|
|
10556
|
+
opacity: 1;
|
|
10557
|
+
background-color: var(--ni-private-switch-indicator-background-active-color);
|
|
10558
|
+
}
|
|
10559
|
+
|
|
10560
|
+
:host([disabled]) .checked-indicator-inner {
|
|
10561
|
+
background-color: var(
|
|
10562
|
+
--ni-private-switch-indicator-border-disabled-color
|
|
10563
|
+
);
|
|
10516
10564
|
}
|
|
10517
10565
|
|
|
10518
10566
|
slot[name='checked-message']::slotted(*) {
|
|
@@ -10527,26 +10575,43 @@ const XF=It`
|
|
|
10527
10575
|
}
|
|
10528
10576
|
`.withBehaviors(Hm(Uo,It`
|
|
10529
10577
|
:host {
|
|
10578
|
+
--ni-private-switch-background-color: ${ol(Fa,.1)};
|
|
10530
10579
|
--ni-private-switch-background-disabled-color: ${ol(Fa,.07)};
|
|
10580
|
+
--ni-private-switch-background-selected-color: ${ol(La,.6)};
|
|
10581
|
+
--ni-private-switch-background-selected-rollover-color: ${ol(La,.3)};
|
|
10531
10582
|
--ni-private-switch-indicator-background-color: ${Aa};
|
|
10532
|
-
--ni-private-switch-indicator-background-disabled-color: ${ol(
|
|
10533
|
-
--ni-private-switch-indicator-
|
|
10534
|
-
|
|
10583
|
+
--ni-private-switch-indicator-background-disabled-color: ${ol(Fa,.15)};
|
|
10584
|
+
--ni-private-switch-indicator-background-active-color: ${ol(La,.3)};
|
|
10585
|
+
|
|
10586
|
+
--ni-private-switch-indicator-border-color: ${ol(Fa,.3)};
|
|
10587
|
+
--ni-private-switch-indicator-border-selected-color: ${La};
|
|
10588
|
+
--ni-private-switch-indicator-border-disabled-color: ${ol(Fa,.15)};
|
|
10589
|
+
|
|
10535
10590
|
}
|
|
10536
10591
|
`),Hm(qo,It`
|
|
10537
10592
|
:host {
|
|
10593
|
+
--ni-private-switch-background-color: ${ol($a,.1)};
|
|
10538
10594
|
--ni-private-switch-background-disabled-color: ${ol($a,.07)};
|
|
10539
|
-
--ni-private-switch-
|
|
10540
|
-
--ni-private-switch-
|
|
10541
|
-
--ni-private-switch-indicator-
|
|
10542
|
-
--ni-private-switch-indicator-
|
|
10595
|
+
--ni-private-switch-background-selected-color: ${ol(Ua,.6)};
|
|
10596
|
+
--ni-private-switch-background-selected-rollover-color: ${ol(Ua,.3)};
|
|
10597
|
+
--ni-private-switch-indicator-background-color: ${Ia};
|
|
10598
|
+
--ni-private-switch-indicator-background-disabled-color: ${ol($a,.1)};
|
|
10599
|
+
--ni-private-switch-indicator-background-active-color: ${ol(Ua,.3)};
|
|
10600
|
+
--ni-private-switch-indicator-border-color: ${ol($a,.3)};
|
|
10601
|
+
--ni-private-switch-indicator-border-selected-color: ${Ua};
|
|
10602
|
+
--ni-private-switch-indicator-border-disabled-color: ${ol($a,.15)};
|
|
10543
10603
|
}
|
|
10544
10604
|
`),Hm(jo,It`
|
|
10545
10605
|
:host {
|
|
10606
|
+
--ni-private-switch-background-color: ${ol(Aa,.1)};
|
|
10546
10607
|
--ni-private-switch-background-disabled-color: ${ol(Aa,.07)};
|
|
10547
|
-
--ni-private-switch-
|
|
10608
|
+
--ni-private-switch-background-selected-color: ${ol(Aa,.6)};
|
|
10609
|
+
--ni-private-switch-background-selected-rollover-color: ${ol(Aa,.3)};
|
|
10610
|
+
--ni-private-switch-indicator-background-color: ${ol(Aa,.3)};
|
|
10548
10611
|
--ni-private-switch-indicator-background-disabled-color: ${ol(Aa,.1)};
|
|
10549
|
-
--ni-private-switch-indicator-
|
|
10612
|
+
--ni-private-switch-indicator-background-active-color: ${ol(Aa,.3)};
|
|
10613
|
+
--ni-private-switch-indicator-border-color: ${ol(Aa,.3)};
|
|
10614
|
+
--ni-private-switch-indicator-border-selected-color: ${Aa} ;
|
|
10550
10615
|
--ni-private-switch-indicator-border-disabled-color: ${ol(Aa,.3)};
|
|
10551
10616
|
}
|
|
10552
10617
|
`)),JF=Q`
|