@ni/nimble-components 20.12.0 → 20.13.0

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.
@@ -13842,7 +13842,7 @@
13842
13842
  aria-orientation="${x => x.orientation}"
13843
13843
  orientation="${x => x.orientation}"
13844
13844
  role="toolbar"
13845
- @click="${(x, c) => x.clickHandler(c.event)}"
13845
+ @mousedown="${(x, c) => x.mouseDownHandler(c.event)}"
13846
13846
  @focusin="${(x, c) => x.focusinHandler(c.event)}"
13847
13847
  @keydown="${(x, c) => x.keydownHandler(c.event)}"
13848
13848
  ${children$1({
@@ -13953,9 +13953,9 @@
13953
13953
  *
13954
13954
  * @internal
13955
13955
  */
13956
- clickHandler(e) {
13956
+ mouseDownHandler(e) {
13957
13957
  var _a;
13958
- const activeIndex = (_a = this.focusableElements) === null || _a === void 0 ? void 0 : _a.indexOf(e.target);
13958
+ const activeIndex = (_a = this.focusableElements) === null || _a === void 0 ? void 0 : _a.findIndex(x => x.contains(e.target));
13959
13959
  if (activeIndex > -1 && this.activeIndex !== activeIndex) {
13960
13960
  this.setFocusedElement(activeIndex);
13961
13961
  }
@@ -16298,7 +16298,7 @@
16298
16298
 
16299
16299
  /**
16300
16300
  * Do not edit directly
16301
- * Generated on Wed, 01 Nov 2023 20:26:57 GMT
16301
+ * Generated on Thu, 02 Nov 2023 18:04:35 GMT
16302
16302
  */
16303
16303
 
16304
16304
  const Information100DarkUi = "#a46eff";
@@ -16886,7 +16886,7 @@
16886
16886
  createFontTokens(tokenNames.headlinePlus1Font, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), Headline2Family, Headline2Weight, Headline2Size, Headline2LineHeight, Headline2FallbackFontFamily);
16887
16887
  createFontTokens(tokenNames.titlePlus2Font, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), Title3Family, Title3Weight, Title3Size, Title3LineHeight, Title3FallbackFontFamily);
16888
16888
  const [titlePlus1Font, titlePlus1FontColor, titlePlus1DisabledFontColor, titlePlus1FontFamily, titlePlus1FontWeight, titlePlus1FontSize, titlePlus1FontLineHeight, titlePlus1FallbackFontFamily] = createFontTokens(tokenNames.titlePlus1Font, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), Title2Family, Title2Weight, Title2Size, Title2LineHeight, Title2FallbackFontFamily);
16889
- createFontTokens(tokenNames.titleFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), Title1Family, Title1Weight, Title1Size, Title1LineHeight, Title1FallbackFontFamily);
16889
+ const [titleFont, titleFontColor, titleDisabledFontColor, titleFontFamily, titleFontWeight, titleFontSize, titleFontLineHeight, titleFallbackFontFamily] = createFontTokens(tokenNames.titleFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), Title1Family, Title1Weight, Title1Size, Title1LineHeight, Title1FallbackFontFamily);
16890
16890
  createFontTokens(tokenNames.subtitlePlus1Font, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), Subtitle2Family, Subtitle2Weight, Subtitle2Size, Subtitle2LineHeight, Subtitle2FallbackFontFamily);
16891
16891
  const [subtitleFont, subtitleFontColor, subtitleDisabledFontColor, subtitleFontFamily, subtitleFontWeight, subtitleFontSize, subtitleFontLineHeight, subtitleFallbackFontFamily] = createFontTokens(tokenNames.subtitleFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), Subtitle1Family, Subtitle1Weight, Subtitle1Size, Subtitle1LineHeight, Subtitle1FallbackFontFamily);
16892
16892
  const [linkFont, linkFontColor, linkDisabledFontColor, linkFontFamily, linkFontWeight, linkFontSize, linkFontLineHeight, linkFallbackFontFamily] = createFontTokens(tokenNames.linkFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), LinkLightUiFamily, LinkLightUiWeight, LinkLightUiSize, LinkLineHeight, LinkFallbackFontFamily);
@@ -18863,10 +18863,18 @@
18863
18863
  name: 'arrow_expander_up_16_x_16',
18864
18864
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="m12.5 11.263-1.11.732-3.357-5.472L4.603 12 3.5 11.257 8.045 4l4.455 7.263z"/></svg>`
18865
18865
  };
18866
+ const arrowInCircle16X16 = {
18867
+ name: 'arrow_in_circle_16_x_16',
18868
+ data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M10.5 5.25a3.24 3.24 0 0 0-2.738 1.513L11.236 8.5l-3.474 1.737A3.24 3.24 0 0 0 10.5 11.75a3.25 3.25 0 0 0 0-6.5Z"/><path class="cls-1" d="m4 6 1 2H2v1h3l-1 2 5-2.5L4 6Z"/></svg>`
18869
+ };
18866
18870
  const arrowLeftFromLine16X16 = {
18867
18871
  name: 'arrow_left_from_line_16_x_16',
18868
18872
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M12 14h2V2h-2ZM2 7.982 7.9 5 6.588 7.004 11 7v2H6.613L7.9 11Z"/></svg>`
18869
18873
  };
18874
+ const arrowOutCircle16X16 = {
18875
+ name: 'arrow_out_circle_16_x_16',
18876
+ data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="m9 6 1 2H7v1h3l-1 2 5-2.5L9 6Z"/><path class="cls-1" d="M6 10V7h2.367A3.237 3.237 0 0 0 5.5 5.25a3.25 3.25 0 0 0 0 6.5c1.25 0 2.324-.714 2.867-1.75H6Z"/></svg>`
18877
+ };
18870
18878
  const arrowPartialRotateLeft16X16 = {
18871
18879
  name: 'arrow_partial_rotate_left_16_x_16',
18872
18880
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M8 11.988a3.086 3.086 0 0 0 3.143-3.025 3.08 3.08 0 0 0-3.085-3.02v.088l.826 2.067-5.598-2.796L8.884 2.5l-.742 1.932a4.619 4.619 0 0 1 4.572 4.53A4.629 4.629 0 0 1 8 13.5Z"/></svg>`
@@ -19935,9 +19943,23 @@
19935
19943
  color: ${bodyFontColor};
19936
19944
  background-color: ${sectionBackgroundColor};
19937
19945
  }
19946
+
19947
+ section {
19948
+ display: contents;
19949
+ }
19950
+
19951
+ ::slotted([slot='title']) {
19952
+ font: ${titleFont};
19953
+ color: ${titleFontColor};
19954
+ }
19938
19955
  `;
19939
19956
 
19940
- const template$s = html `<slot></slot>`;
19957
+ const template$s = html `
19958
+ <section aria-labelledby="title-slot">
19959
+ <slot name="title" id="title-slot"></slot>
19960
+ <slot></slot>
19961
+ </section>
19962
+ `;
19941
19963
 
19942
19964
  /**
19943
19965
  * A nimble-styled card
@@ -21683,6 +21705,19 @@
21683
21705
  registerIcon('icon-arrow-expander-up', IconArrowExpanderUp);
21684
21706
  DesignSystem.tagFor(IconArrowExpanderUp);
21685
21707
 
21708
+ // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
21709
+ // See generation source in nimble-components/build/generate-icons
21710
+ /**
21711
+ * The icon component for the 'arrowInCircle' icon
21712
+ */
21713
+ class IconArrowInCircle extends Icon {
21714
+ constructor() {
21715
+ super(arrowInCircle16X16);
21716
+ }
21717
+ }
21718
+ registerIcon('icon-arrow-in-circle', IconArrowInCircle);
21719
+ DesignSystem.tagFor(IconArrowInCircle);
21720
+
21686
21721
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
21687
21722
  // See generation source in nimble-components/build/generate-icons
21688
21723
  /**
@@ -21696,6 +21731,19 @@
21696
21731
  registerIcon('icon-arrow-left-from-line', IconArrowLeftFromLine);
21697
21732
  DesignSystem.tagFor(IconArrowLeftFromLine);
21698
21733
 
21734
+ // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
21735
+ // See generation source in nimble-components/build/generate-icons
21736
+ /**
21737
+ * The icon component for the 'arrowOutCircle' icon
21738
+ */
21739
+ class IconArrowOutCircle extends Icon {
21740
+ constructor() {
21741
+ super(arrowOutCircle16X16);
21742
+ }
21743
+ }
21744
+ registerIcon('icon-arrow-out-circle', IconArrowOutCircle);
21745
+ DesignSystem.tagFor(IconArrowOutCircle);
21746
+
21699
21747
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
21700
21748
  // See generation source in nimble-components/build/generate-icons
21701
21749
  /**