@ni/spright-components 5.4.1 → 5.4.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.
@@ -74755,12 +74755,33 @@ focus outline in that case.
74755
74755
  rgba(${borderRgbPartialColor}, 0.3);
74756
74756
  margin: ${smallPadding} ${mediumPadding};
74757
74757
  }
74758
+
74759
+ [part='start'] {
74760
+ display: none;
74761
+ }
74762
+
74763
+ [part='end'] {
74764
+ margin-left: auto;
74765
+ display: flex;
74766
+ }
74758
74767
  `;
74759
74768
 
74760
- const template$9 = html `
74769
+ /* eslint-disable @typescript-eslint/indent */
74770
+ // prettier-ignore
74771
+ const template$9 = (context, definition) => html `
74761
74772
  <template slot="end">
74762
- <div class="separator"></div>
74763
- <slot></slot>
74773
+ ${when(x => x.defaultSlottedElements.length > 0, html `
74774
+ <div class="separator"></div>
74775
+ `)}
74776
+ ${startSlotTemplate(context, definition)}
74777
+ <slot
74778
+ ${slotted({
74779
+ filter: (n) => n instanceof HTMLElement,
74780
+ property: 'defaultSlottedElements',
74781
+ })}
74782
+ >
74783
+ </slot>
74784
+ ${endSlotTemplate(context, definition)}
74764
74785
  </template>
74765
74786
  `;
74766
74787
 
@@ -74768,13 +74789,22 @@ focus outline in that case.
74768
74789
  * A nimble-styled container for toolbar content next to tabs.
74769
74790
  */
74770
74791
  class TabsToolbar extends FoundationElement {
74792
+ constructor() {
74793
+ super(...arguments);
74794
+ /** @internal */
74795
+ this.defaultSlottedElements = [];
74796
+ }
74771
74797
  }
74798
+ __decorate([
74799
+ observable
74800
+ ], TabsToolbar.prototype, "defaultSlottedElements", void 0);
74772
74801
  const nimbleTabsToolbar = TabsToolbar.compose({
74773
74802
  baseName: 'tabs-toolbar',
74774
74803
  template: template$9,
74775
74804
  styles: styles$a
74776
74805
  });
74777
74806
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabsToolbar());
74807
+ applyMixins(TabsToolbar, StartEnd);
74778
74808
 
74779
74809
  const TextAreaAppearance = {
74780
74810
  outline: 'outline',