@ni/nimble-components 11.14.0 → 11.15.1

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.
@@ -16434,164 +16434,161 @@
16434
16434
  :host([content-hidden]) [part='end'] {
16435
16435
  display: none;
16436
16436
  }
16437
- `
16438
- // prettier-ignore
16439
- .withBehaviors(appearanceBehavior(ButtonAppearance.outline, css `
16440
- .control {
16441
- background-color: transparent;
16442
- border-color: rgba(${actionRgbPartialColor}, 0.3);
16443
- }
16437
+ `.withBehaviors(appearanceBehavior(ButtonAppearance.outline, css `
16438
+ .control {
16439
+ background-color: transparent;
16440
+ border-color: rgba(${actionRgbPartialColor}, 0.3);
16441
+ }
16444
16442
 
16445
- .control:hover {
16446
- background-color: transparent;
16447
- border-color: ${borderHoverColor};
16448
- }
16443
+ .control:hover {
16444
+ background-color: transparent;
16445
+ border-color: ${borderHoverColor};
16446
+ }
16449
16447
 
16450
- .control${focusVisible} {
16451
- background-color: transparent;
16452
- border-color: ${borderHoverColor};
16453
- }
16448
+ .control${focusVisible} {
16449
+ background-color: transparent;
16450
+ border-color: ${borderHoverColor};
16451
+ }
16454
16452
 
16455
- .control:active {
16456
- background-color: ${fillSelectedColor};
16457
- border-color: ${fillSelectedColor};
16458
- }
16453
+ .control:active {
16454
+ background-color: ${fillSelectedColor};
16455
+ border-color: ${fillSelectedColor};
16456
+ }
16459
16457
 
16460
- .control[disabled] {
16461
- background-color: transparent;
16462
- border-color: rgba(${borderRgbPartialColor}, 0.2);
16463
- }
16464
- `), appearanceBehavior(ButtonAppearance.ghost, css `
16465
- .control {
16466
- background-color: transparent;
16467
- border-color: transparent;
16468
- }
16458
+ .control[disabled] {
16459
+ background-color: transparent;
16460
+ border-color: rgba(${borderRgbPartialColor}, 0.2);
16461
+ }
16462
+ `), appearanceBehavior(ButtonAppearance.ghost, css `
16463
+ .control {
16464
+ background-color: transparent;
16465
+ border-color: transparent;
16466
+ }
16469
16467
 
16470
- .control:hover {
16471
- background-color: transparent;
16472
- border-color: ${borderHoverColor};
16473
- }
16468
+ .control:hover {
16469
+ background-color: transparent;
16470
+ border-color: ${borderHoverColor};
16471
+ }
16474
16472
 
16475
- .control${focusVisible} {
16476
- background-color: transparent;
16477
- border-color: ${borderHoverColor};
16478
- }
16473
+ .control${focusVisible} {
16474
+ background-color: transparent;
16475
+ border-color: ${borderHoverColor};
16476
+ }
16479
16477
 
16480
- .control:active {
16481
- background-color: ${fillSelectedColor};
16482
- border-color: ${fillSelectedColor};
16483
- }
16478
+ .control:active {
16479
+ background-color: ${fillSelectedColor};
16480
+ border-color: ${fillSelectedColor};
16481
+ }
16484
16482
 
16485
- .control[disabled] {
16486
- background-color: transparent;
16487
- border-color: transparent;
16488
- }
16489
- `), appearanceBehavior(ButtonAppearance.block, css `
16490
- .control {
16491
- background-color: rgba(${borderRgbPartialColor}, 0.1);
16492
- border-color: transparent;
16493
- }
16483
+ .control[disabled] {
16484
+ background-color: transparent;
16485
+ border-color: transparent;
16486
+ }
16487
+ `), appearanceBehavior(ButtonAppearance.block, css `
16488
+ .control {
16489
+ background-color: rgba(${borderRgbPartialColor}, 0.1);
16490
+ border-color: transparent;
16491
+ }
16494
16492
 
16495
- .control:hover {
16496
- background-color: transparent;
16497
- border-color: ${borderHoverColor};
16498
- }
16493
+ .control:hover {
16494
+ background-color: transparent;
16495
+ border-color: ${borderHoverColor};
16496
+ }
16499
16497
 
16500
- .control${focusVisible} {
16501
- background-color: rgba(${borderRgbPartialColor}, 0.1);
16502
- border-color: ${borderHoverColor};
16503
- }
16498
+ .control${focusVisible} {
16499
+ background-color: rgba(${borderRgbPartialColor}, 0.1);
16500
+ border-color: ${borderHoverColor};
16501
+ }
16504
16502
 
16505
- .control${focusVisible}:hover {
16506
- background-color: transparent;
16507
- }
16503
+ .control${focusVisible}:hover {
16504
+ background-color: transparent;
16505
+ }
16508
16506
 
16509
- .control:active {
16510
- background-color: ${fillSelectedColor};
16511
- border-color: ${fillSelectedColor};
16512
- }
16507
+ .control:active {
16508
+ background-color: ${fillSelectedColor};
16509
+ border-color: ${fillSelectedColor};
16510
+ }
16513
16511
 
16514
- .control[disabled] {
16515
- background-color: rgba(${borderRgbPartialColor}, 0.1);
16516
- border-color: transparent;
16517
- }
16518
- `));
16512
+ .control[disabled] {
16513
+ background-color: rgba(${borderRgbPartialColor}, 0.1);
16514
+ border-color: transparent;
16515
+ }
16516
+ `));
16519
16517
 
16520
- // prettier-ignore
16521
- const styles$s = styles$t
16522
- .withBehaviors(appearanceBehavior(ButtonAppearance.outline, css `
16523
- :host(.primary) .control {
16524
- box-shadow: 0px 0px 0px ${borderWidth} rgba(${actionRgbPartialColor}, 0.3) inset;
16525
- }
16518
+ const styles$s = styles$t.withBehaviors(appearanceBehavior(ButtonAppearance.outline, css `
16519
+ :host(.primary) .control {
16520
+ box-shadow: 0px 0px 0px ${borderWidth}
16521
+ rgba(${actionRgbPartialColor}, 0.3) inset;
16522
+ }
16526
16523
 
16527
- :host(.primary) .control:hover {
16528
- box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
16529
- }
16524
+ :host(.primary) .control:hover {
16525
+ box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
16526
+ }
16530
16527
 
16531
- :host(.primary) .control${focusVisible} {
16532
- box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
16533
- }
16528
+ :host(.primary) .control${focusVisible} {
16529
+ box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
16530
+ }
16534
16531
 
16535
- :host(.primary) .control:active {
16536
- box-shadow: none;
16537
- }
16532
+ :host(.primary) .control:active {
16533
+ box-shadow: none;
16534
+ }
16538
16535
 
16539
- :host(.primary) .control[disabled] {
16540
- box-shadow: none;
16541
- }
16542
- `), appearanceBehavior(ButtonAppearance.block, css `
16543
- :host(.primary) .control {
16544
- background-clip: padding-box;
16545
- border-color: rgba(${actionRgbPartialColor}, 0.3);
16546
- border-width: calc(2 * ${borderWidth});
16547
- padding: 0 calc(${standardPadding} - ${borderWidth});
16548
- }
16536
+ :host(.primary) .control[disabled] {
16537
+ box-shadow: none;
16538
+ }
16539
+ `), appearanceBehavior(ButtonAppearance.block, css `
16540
+ :host(.primary) .control {
16541
+ background-clip: padding-box;
16542
+ border-color: rgba(${actionRgbPartialColor}, 0.3);
16543
+ border-width: calc(2 * ${borderWidth});
16544
+ padding: 0 calc(${standardPadding} - ${borderWidth});
16545
+ }
16549
16546
 
16550
- :host(.primary[content-hidden]) .control {
16551
- padding: 0px;
16552
- }
16547
+ :host(.primary[content-hidden]) .control {
16548
+ padding: 0px;
16549
+ }
16553
16550
 
16554
- :host(.primary) .control:hover {
16555
- border-color: ${borderHoverColor};
16556
- box-shadow: none;
16557
- }
16551
+ :host(.primary) .control:hover {
16552
+ border-color: ${borderHoverColor};
16553
+ box-shadow: none;
16554
+ }
16558
16555
 
16559
- :host(.primary) .control${focusVisible} {
16560
- background-clip: border-box;
16561
- border-color: ${borderHoverColor};
16562
- border-width: ${borderWidth};
16563
- box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
16564
- padding: 0 ${standardPadding};
16565
- }
16556
+ :host(.primary) .control${focusVisible} {
16557
+ background-clip: border-box;
16558
+ border-color: ${borderHoverColor};
16559
+ border-width: ${borderWidth};
16560
+ box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
16561
+ padding: 0 ${standardPadding};
16562
+ }
16566
16563
 
16567
- :host(.primary[content-hidden]) .control${focusVisible} {
16568
- padding: 0px;
16569
- }
16564
+ :host(.primary[content-hidden]) .control${focusVisible} {
16565
+ padding: 0px;
16566
+ }
16570
16567
 
16571
- :host(.primary) .control:active {
16572
- background-clip: border-box;
16573
- border-color: ${fillSelectedColor};
16574
- border-width: ${borderWidth};
16575
- box-shadow: none;
16576
- padding: 0 ${standardPadding};
16577
- }
16568
+ :host(.primary) .control:active {
16569
+ background-clip: border-box;
16570
+ border-color: ${fillSelectedColor};
16571
+ border-width: ${borderWidth};
16572
+ box-shadow: none;
16573
+ padding: 0 ${standardPadding};
16574
+ }
16578
16575
 
16579
- :host(.primary[content-hidden]) .control:active {
16580
- padding: 0px;
16581
- }
16576
+ :host(.primary[content-hidden]) .control:active {
16577
+ padding: 0px;
16578
+ }
16582
16579
 
16583
- :host(.primary) .control[disabled] {
16584
- background-clip: border-box;
16585
- border-color: transparent;
16586
- border-width: ${borderWidth};
16587
- box-shadow: none;
16588
- padding: 0 ${standardPadding};
16589
- }
16580
+ :host(.primary) .control[disabled] {
16581
+ background-clip: border-box;
16582
+ border-color: transparent;
16583
+ border-width: ${borderWidth};
16584
+ box-shadow: none;
16585
+ padding: 0 ${standardPadding};
16586
+ }
16590
16587
 
16591
- :host(.primary[content-hidden]) .control[disabled] {
16592
- padding: 0px;
16593
- }
16594
- `));
16588
+ :host(.primary[content-hidden]) .control[disabled] {
16589
+ padding: 0px;
16590
+ }
16591
+ `));
16595
16592
 
16596
16593
  /**
16597
16594
  * A nimble-styled HTML button
@@ -16639,7 +16636,6 @@
16639
16636
  });
16640
16637
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleButton());
16641
16638
 
16642
- // prettier-ignore
16643
16639
  const styles$r = css `
16644
16640
  ${display('inline-flex')}
16645
16641
 
@@ -16748,27 +16744,27 @@
16748
16744
  display: none;
16749
16745
  }
16750
16746
  `.withBehaviors(themeBehavior(Theme.light, css `
16751
- :host {
16752
- --ni-private-card-button-background-hover-color: ${hexToRgbaCssColor(White, 0.3)};
16753
- --ni-private-card-button-background-active-color: ${White};
16754
- --ni-private-card-button-border-active-color: ${hexToRgbaCssColor(Black91, 0.2)};
16755
- --ni-private-card-button-border-selected-color: ${hexToRgbaCssColor(Black91, 0.6)};
16756
- }
16757
- `), themeBehavior(Theme.dark, css `
16758
- :host {
16759
- --ni-private-card-button-background-hover-color: ${hexToRgbaCssColor(Black15, 0.07)};
16760
- --ni-private-card-button-background-active-color: ${hexToRgbaCssColor(Black15, 0.15)};
16761
- --ni-private-card-button-border-active-color: ${hexToRgbaCssColor(Black15, 0.2)};
16762
- --ni-private-card-button-border-selected-color: ${Black15};
16763
- }
16764
- `), themeBehavior(Theme.color, css `
16765
- :host {
16766
- --ni-private-card-button-background-hover-color: ${hexToRgbaCssColor(White, 0.07)};
16767
- --ni-private-card-button-background-active-color: ${hexToRgbaCssColor(White, 0.15)};
16768
- --ni-private-card-button-border-active-color: ${hexToRgbaCssColor(White, 0.2)};
16769
- --ni-private-card-button-border-selected-color: ${hexToRgbaCssColor(White, 0.6)};
16770
- }
16771
- `));
16747
+ :host {
16748
+ --ni-private-card-button-background-hover-color: ${hexToRgbaCssColor(White, 0.3)};
16749
+ --ni-private-card-button-background-active-color: ${White};
16750
+ --ni-private-card-button-border-active-color: ${hexToRgbaCssColor(Black91, 0.2)};
16751
+ --ni-private-card-button-border-selected-color: ${hexToRgbaCssColor(Black91, 0.6)};
16752
+ }
16753
+ `), themeBehavior(Theme.dark, css `
16754
+ :host {
16755
+ --ni-private-card-button-background-hover-color: ${hexToRgbaCssColor(Black15, 0.07)};
16756
+ --ni-private-card-button-background-active-color: ${hexToRgbaCssColor(Black15, 0.15)};
16757
+ --ni-private-card-button-border-active-color: ${hexToRgbaCssColor(Black15, 0.2)};
16758
+ --ni-private-card-button-border-selected-color: ${Black15};
16759
+ }
16760
+ `), themeBehavior(Theme.color, css `
16761
+ :host {
16762
+ --ni-private-card-button-background-hover-color: ${hexToRgbaCssColor(White, 0.07)};
16763
+ --ni-private-card-button-background-active-color: ${hexToRgbaCssColor(White, 0.15)};
16764
+ --ni-private-card-button-border-active-color: ${hexToRgbaCssColor(White, 0.2)};
16765
+ --ni-private-card-button-border-selected-color: ${hexToRgbaCssColor(White, 0.6)};
16766
+ }
16767
+ `));
16772
16768
 
16773
16769
  /**
16774
16770
  * A nimble-styled card button
@@ -22258,27 +22254,25 @@
22258
22254
  :host([resize='vertical']) .control {
22259
22255
  resize: vertical;
22260
22256
  }
22261
- `
22262
- // prettier-ignore
22263
- .withBehaviors(appearanceBehavior(TextAreaAppearance.outline, css `
22264
- .control {
22265
- border-color: rgba(${borderRgbPartialColor}, 0.3);
22266
- background-color: transparent;
22267
- }
22268
- `), appearanceBehavior(TextAreaAppearance.block, css `
22269
- .control {
22270
- background-color: rgba(${borderRgbPartialColor}, 0.1);
22271
- }
22257
+ `.withBehaviors(appearanceBehavior(TextAreaAppearance.outline, css `
22258
+ .control {
22259
+ border-color: rgba(${borderRgbPartialColor}, 0.3);
22260
+ background-color: transparent;
22261
+ }
22262
+ `), appearanceBehavior(TextAreaAppearance.block, css `
22263
+ .control {
22264
+ background-color: rgba(${borderRgbPartialColor}, 0.1);
22265
+ }
22272
22266
 
22273
- :host([readonly]) .control {
22274
- background-color: transparent;
22275
- }
22267
+ :host([readonly]) .control {
22268
+ background-color: transparent;
22269
+ }
22276
22270
 
22277
- :host([disabled]) .control {
22278
- border-color: transparent;
22279
- background-color: rgba(${borderRgbPartialColor}, 0.1);
22280
- }
22281
- `));
22271
+ :host([disabled]) .control {
22272
+ border-color: transparent;
22273
+ background-color: rgba(${borderRgbPartialColor}, 0.1);
22274
+ }
22275
+ `));
22282
22276
 
22283
22277
  /**
22284
22278
  * A nimble-styed HTML text area
@@ -22320,7 +22314,6 @@
22320
22314
  frameless: 'frameless'
22321
22315
  };
22322
22316
 
22323
- /* eslint-disable @typescript-eslint/indent */
22324
22317
  const styles$4 = css `
22325
22318
  ${display('inline-block')}
22326
22319
  ${styles$n}
@@ -23012,41 +23005,41 @@
23012
23005
  :host([expanded]) .items {
23013
23006
  display: block;
23014
23007
  }
23015
- `
23016
- // prettier-ignore
23017
- .withBehaviors(new DirectionalStyleSheetBehavior(css `
23018
- ${ /* ltr styles */''}
23019
- .expand-collapse-button {
23020
- left: var(
23021
- --ni-private-expand-collapse-button-nested-width,
23022
- calc(${iconSize} * -1)
23023
- );
23024
- }
23008
+ `.withBehaviors(new DirectionalStyleSheetBehavior(
23009
+ // ltr styles
23010
+ css `
23011
+ .expand-collapse-button {
23012
+ left: var(
23013
+ --ni-private-expand-collapse-button-nested-width,
23014
+ calc(${iconSize} * -1)
23015
+ );
23016
+ }
23025
23017
 
23026
- .expand-collapse-button svg {
23027
- transform: rotate(90deg);
23028
- }
23018
+ .expand-collapse-button svg {
23019
+ transform: rotate(90deg);
23020
+ }
23029
23021
 
23030
- :host([expanded]) .expand-collapse-button svg {
23031
- transform: rotate(180deg);
23032
- }
23033
- `, css `
23034
- ${ /* rtl styles */''}
23035
- .expand-collapse-button {
23036
- right: var(
23037
- --ni-private-expand-collapse-button-nested-width,
23038
- calc(${iconSize} * -1)
23039
- );
23040
- }
23022
+ :host([expanded]) .expand-collapse-button svg {
23023
+ transform: rotate(180deg);
23024
+ }
23025
+ `,
23026
+ // rtl styles
23027
+ css `
23028
+ .expand-collapse-button {
23029
+ right: var(
23030
+ --ni-private-expand-collapse-button-nested-width,
23031
+ calc(${iconSize} * -1)
23032
+ );
23033
+ }
23041
23034
 
23042
- .expand-collapse-button svg {
23043
- transform: rotate(180deg);
23044
- }
23035
+ .expand-collapse-button svg {
23036
+ transform: rotate(180deg);
23037
+ }
23045
23038
 
23046
- :host([expanded]) .expand-collapse-button svg {
23047
- transform: rotate(135deg);
23048
- }
23049
- `));
23039
+ :host([expanded]) .expand-collapse-button svg {
23040
+ transform: rotate(135deg);
23041
+ }
23042
+ `));
23050
23043
 
23051
23044
  /**
23052
23045
  * A function that returns a nimble-tree-item registration for configuring the component with a DesignSystem.