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