@ni/nimble-components 29.1.4 → 29.1.6

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.
@@ -16304,7 +16304,7 @@
16304
16304
 
16305
16305
  /**
16306
16306
  * Do not edit directly
16307
- * Generated on Tue, 21 May 2024 22:41:18 GMT
16307
+ * Generated on Tue, 28 May 2024 20:00:12 GMT
16308
16308
  */
16309
16309
 
16310
16310
  const Information100DarkUi = "#a46eff";
@@ -16929,9 +16929,9 @@
16929
16929
  const [subtitlePlus1Font, subtitlePlus1FontColor, subtitlePlus1DisabledFontColor, subtitlePlus1FontFamily, subtitlePlus1FontWeight, subtitlePlus1FontSize, subtitlePlus1FontLineHeight] = createFontTokens(tokenNames.subtitlePlus1Font, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), Subtitle2Family, Subtitle2Weight, Subtitle2Size, Subtitle2LineHeight);
16930
16930
  const [subtitleFont, subtitleFontColor, subtitleDisabledFontColor, subtitleFontFamily, subtitleFontWeight, subtitleFontSize, subtitleFontLineHeight] = createFontTokens(tokenNames.subtitleFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), Subtitle1Family, Subtitle1Weight, Subtitle1Size, Subtitle1LineHeight);
16931
16931
  const [linkFont, linkFontColor, linkDisabledFontColor, linkFontFamily, linkFontWeight, linkFontSize, linkFontLineHeight] = createFontTokens(tokenNames.linkFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), LinkLightUiFamily, LinkLightUiWeight, LinkLightUiSize, LinkLineHeight);
16932
- const [linkActiveFont, linkActiveFontColor, linkActiveDisabledFontColor, linkActiveFontFamily, linkActiveFontWeight, linkActiveFontSize, linkActiveFontLineHeight] = createFontTokens(tokenNames.linkActiveFont, (element) => getColorForTheme(element, DigitalGreenLight, DigitalGreenLight, hexToRgbaCssColor(White, 0.6)), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), LinkLightUiFamily, LinkLightUiWeight, LinkLightUiSize, LinkLineHeight);
16933
- const [linkProminentFont, linkProminentFontColor, linkProminentDisabledFontColor, linkProminentFontFamily, linkProminentFontWeight, linkProminentFontSize, linkProminentFontLineHeight] = createFontTokens(tokenNames.linkProminentFont, (element) => getColorForTheme(element, DigitalGreenDark105, PowerGreen, PowerGreen), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), LinkLightUiFamily, LinkLightUiWeight, LinkLightUiSize, LinkLineHeight);
16934
- const [linkActiveProminentFont, linkActiveProminentFontColor, linkActiveProminentDisabledFontColor, linkActiveProminentFontFamily, linkActiveProminentFontWeight, linkActiveProminentFontSize, linkActiveProminentFontLineHeight] = createFontTokens(tokenNames.linkActiveProminentFont, (element) => getColorForTheme(element, DigitalGreenLight, DigitalGreenLight, hexToRgbaCssColor(White, 0.6)), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), LinkLightUiFamily, LinkLightUiWeight, LinkLightUiSize, LinkLineHeight);
16932
+ const [linkActiveFont, linkActiveFontColor, linkActiveDisabledFontColor, linkActiveFontFamily, linkActiveFontWeight, linkActiveFontSize, linkActiveFontLineHeight] = createFontTokens(tokenNames.linkActiveFont, (element) => getColorForTheme(element, DigitalGreenLight, DigitalGreenLight, hexToRgbaCssColor(White, 0.75)), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), LinkLightUiFamily, LinkLightUiWeight, LinkLightUiSize, LinkLineHeight);
16933
+ const [linkProminentFont, linkProminentFontColor, linkProminentDisabledFontColor, linkProminentFontFamily, linkProminentFontWeight, linkProminentFontSize, linkProminentFontLineHeight] = createFontTokens(tokenNames.linkProminentFont, (element) => getColorForTheme(element, DigitalGreenDark105, PowerGreen, White), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), LinkLightUiFamily, LinkLightUiWeight, LinkLightUiSize, LinkLineHeight);
16934
+ const [linkActiveProminentFont, linkActiveProminentFontColor, linkActiveProminentDisabledFontColor, linkActiveProminentFontFamily, linkActiveProminentFontWeight, linkActiveProminentFontSize, linkActiveProminentFontLineHeight] = createFontTokens(tokenNames.linkActiveProminentFont, (element) => getColorForTheme(element, DigitalGreenLight, DigitalGreenLight, hexToRgbaCssColor(White, 0.75)), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), LinkLightUiFamily, LinkLightUiWeight, LinkLightUiSize, LinkLineHeight);
16935
16935
  const [placeholderFont, placeholderFontColor, placeholderDisabledFontColor, placeholderFontFamily, placeholderFontWeight, placeholderFontSize, placeholderFontLineHeight] = createFontTokens(tokenNames.placeholderFont, (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.6), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), PlaceholderFamily, PlaceholderWeight, PlaceholderSize, PlaceholderLineHeight);
16936
16936
  const [bodyFont, bodyFontColor, bodyDisabledFontColor, bodyFontFamily, bodyFontWeight, bodyFontSize, bodyFontLineHeight] = createFontTokens(tokenNames.bodyFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), BodyFamily, BodyWeight, BodySize, BodyLineHeight);
16937
16937
  const [bodyEmphasizedFont, bodyEmphasizedFontColor, bodyEmphasizedDisabledFontColor, bodyEmphasizedFontFamily, bodyEmphasizedFontWeight, bodyEmphasizedFontSize, bodyEmphasizedFontLineHeight] = createFontTokens(tokenNames.bodyEmphasizedFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), BodyEmphasizedFamily, BodyEmphasizedWeight, BodyEmphasizedSize, BodyEmphasizedLineHeight);
@@ -17090,6 +17090,7 @@
17090
17090
  outline: none;
17091
17091
  box-shadow: inset 0px -1px;
17092
17092
  text-decoration: underline;
17093
+ color: ${borderHoverColor};
17093
17094
  }
17094
17095
  }
17095
17096
 
@@ -17238,6 +17239,15 @@
17238
17239
  ghost: 'ghost',
17239
17240
  block: 'block'
17240
17241
  };
17242
+ /**
17243
+ * Types of button appearance variants.
17244
+ * @public
17245
+ */
17246
+ const ButtonAppearanceVariant = {
17247
+ default: undefined,
17248
+ primary: 'primary',
17249
+ accent: 'accent'
17250
+ };
17241
17251
 
17242
17252
  /**
17243
17253
  * A behavior to add or remove a stylesheet from an element based on a property. The behavior ensures that
@@ -18711,8 +18721,6 @@
18711
18721
  font-size: 12.8px;
18712
18722
  align-items: top;
18713
18723
  overflow: hidden;
18714
- color: ${White};
18715
- ${iconColor.cssCustomProperty}: ${hexToRgbaCssColor(White, 0.6)};
18716
18724
  }
18717
18725
 
18718
18726
  :host(:not([open])) {
@@ -18720,6 +18728,7 @@
18720
18728
  }
18721
18729
 
18722
18730
  .container {
18731
+ color: ${bodyFontColor};
18723
18732
  display: flex;
18724
18733
  width: 100%;
18725
18734
  }
@@ -18730,6 +18739,7 @@
18730
18739
  justify-content: center;
18731
18740
  margin-top: 8px;
18732
18741
  flex: 0 0 auto;
18742
+ opacity: 0.6;
18733
18743
  }
18734
18744
 
18735
18745
  .text {
@@ -18756,6 +18766,8 @@
18756
18766
  align-items: center;
18757
18767
  justify-content: center;
18758
18768
  align-self: flex-start;
18769
+ margin-top: ${smallPadding};
18770
+ ${controlHeight.cssCustomProperty}: ${controlSlimHeight};
18759
18771
  }
18760
18772
 
18761
18773
  slot[name='action'] {
@@ -18766,44 +18778,14 @@
18766
18778
  }
18767
18779
 
18768
18780
  slot[name='action']::slotted(nimble-anchor) {
18769
- ${linkFontColor.cssCustomProperty}: ${White};
18770
- ${linkDisabledFontColor.cssCustomProperty}: ${White};
18771
- ${linkActiveFontColor.cssCustomProperty}: ${hexToRgbaCssColor(White, 0.6)};
18772
18781
  font-size: 12.8px;
18773
18782
  }
18774
18783
 
18775
- slot[name='action']::slotted(nimble-button) {
18776
- ${controlHeight.cssCustomProperty}: ${controlSlimHeight};
18777
- ${buttonLabelFontColor.cssCustomProperty}: ${White};
18778
- ${fillSelectedColor.cssCustomProperty}: ${hexToRgbaCssColor(White, 0.2)};
18779
- ${borderHoverColor.cssCustomProperty}: ${White};
18780
- }
18781
-
18782
- slot[name='action']::slotted(nimble-button[appearance='outline']) {
18783
- ${actionRgbPartialColor.cssCustomProperty}: ${White}
18784
- }
18785
-
18786
18784
  .dismiss {
18787
18785
  width: 48px;
18788
18786
  display: flex;
18789
18787
  justify-content: center;
18790
18788
  }
18791
-
18792
- .dismiss nimble-button {
18793
- ${controlHeight.cssCustomProperty}: 16px;
18794
- ${iconSize.cssCustomProperty}: 14px;
18795
- ${buttonLabelFontColor.cssCustomProperty}: ${White};
18796
- ${borderHoverColor.cssCustomProperty}: transparent;
18797
- ${fillSelectedColor.cssCustomProperty}: ${hexToRgbaCssColor(White, 0.2)};
18798
- }
18799
-
18800
- .dismiss nimble-button:focus-within {
18801
- outline: 2px solid ${White};
18802
- }
18803
-
18804
- .dismiss nimble-button:hover {
18805
- background: ${hexToRgbaCssColor(White, 0.2)};
18806
- }
18807
18789
  `.withBehaviors(themeBehavior(Theme.light, css `
18808
18790
  :host {
18809
18791
  background: ${Black75};
@@ -19801,15 +19783,15 @@
19801
19783
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
19802
19784
  // See generation source in nimble-components/build/generate-icons
19803
19785
  /**
19804
- * The icon component for the 'xmark' icon
19786
+ * The icon component for the 'times' icon
19805
19787
  */
19806
- class IconXmark extends Icon {
19788
+ class IconTimes extends Icon {
19807
19789
  constructor() {
19808
- super(xmark16X16);
19790
+ super(times16X16);
19809
19791
  }
19810
19792
  }
19811
- registerIcon('icon-xmark', IconXmark);
19812
- const iconXmarkTag = 'nimble-icon-xmark';
19793
+ registerIcon('icon-times', IconTimes);
19794
+ const iconTimesTag = 'nimble-icon-times';
19813
19795
 
19814
19796
  /**
19815
19797
  * Severities of banners.
@@ -19868,56 +19850,58 @@
19868
19850
 
19869
19851
  // prettier-ignore
19870
19852
  const template$y = html `
19871
- <div class="container"
19872
- role="status"
19873
- aria-atomic="${x => x.ariaAtomic}"
19874
- aria-busy="${x => x.ariaBusy}"
19875
- aria-controls="${x => x.ariaControls}"
19876
- aria-current="${x => x.ariaCurrent}"
19877
- aria-describedby="${x => x.ariaDescribedby}"
19878
- aria-details="${x => x.ariaDetails}"
19879
- aria-disabled="${x => x.ariaDisabled}"
19880
- aria-errormessage="${x => x.ariaErrormessage}"
19881
- aria-expanded="${x => x.ariaExpanded}"
19882
- aria-flowto="${x => x.ariaFlowto}"
19883
- aria-haspopup="${x => x.ariaHaspopup}"
19884
- aria-hidden="${x => x.ariaHidden}"
19885
- aria-invalid="${x => x.ariaInvalid}"
19886
- aria-keyshortcuts="${x => x.ariaKeyshortcuts}"
19887
- aria-label="${x => x.ariaLabel}"
19888
- aria-labelledby="titleSlot"
19889
- aria-live="${x => x.ariaLive}"
19890
- aria-owns="${x => x.ariaOwns}"
19891
- aria-relevant="${x => x.ariaRelevant}"
19892
- aria-roledescription="${x => x.ariaRoledescription}"
19893
- >
19894
- <div class="icon">
19895
- ${when(x => x.severity === BannerSeverity.error, html `
19896
- <${iconExclamationMarkTag} role="img" aria-label="${x => popupIconErrorLabel.getValueFor(x)}"></${iconExclamationMarkTag}>
19897
- `)}
19898
- ${when(x => x.severity === BannerSeverity.warning, html `
19899
- <${iconTriangleFilledTag} role="img" aria-label="${x => popupIconWarningLabel.getValueFor(x)}"></${iconTriangleFilledTag}>
19900
- `)}
19901
- ${when(x => x.severity === BannerSeverity.information, html `
19902
- <${iconInfoTag} role="img" aria-label="${x => popupIconInformationLabel.getValueFor(x)}"></${iconInfoTag}>
19903
- `)}
19904
- </div>
19905
- <div class="text">
19906
- <slot name="title" id="titleSlot"></slot>
19907
- <slot></slot>
19908
- </div>
19909
- <div class="controls">
19910
- <slot name="action"></slot>
19911
- <div class="dismiss">
19912
- ${when(x => !x.preventDismiss, html `
19913
- <${buttonTag} appearance="ghost" content-hidden @click="${x => x.dismissBanner()}">
19914
- <${iconXmarkTag} slot="start"></${iconXmarkTag}>
19915
- ${x => popupDismissLabel.getValueFor(x)}
19916
- </${buttonTag}>
19853
+ <${themeProviderTag} theme="${Theme.color}">
19854
+ <div class="container"
19855
+ role="status"
19856
+ aria-atomic="${x => x.ariaAtomic}"
19857
+ aria-busy="${x => x.ariaBusy}"
19858
+ aria-controls="${x => x.ariaControls}"
19859
+ aria-current="${x => x.ariaCurrent}"
19860
+ aria-describedby="${x => x.ariaDescribedby}"
19861
+ aria-details="${x => x.ariaDetails}"
19862
+ aria-disabled="${x => x.ariaDisabled}"
19863
+ aria-errormessage="${x => x.ariaErrormessage}"
19864
+ aria-expanded="${x => x.ariaExpanded}"
19865
+ aria-flowto="${x => x.ariaFlowto}"
19866
+ aria-haspopup="${x => x.ariaHaspopup}"
19867
+ aria-hidden="${x => x.ariaHidden}"
19868
+ aria-invalid="${x => x.ariaInvalid}"
19869
+ aria-keyshortcuts="${x => x.ariaKeyshortcuts}"
19870
+ aria-label="${x => x.ariaLabel}"
19871
+ aria-labelledby="titleSlot"
19872
+ aria-live="${x => x.ariaLive}"
19873
+ aria-owns="${x => x.ariaOwns}"
19874
+ aria-relevant="${x => x.ariaRelevant}"
19875
+ aria-roledescription="${x => x.ariaRoledescription}"
19876
+ >
19877
+ <div class="icon">
19878
+ ${when(x => x.severity === BannerSeverity.error, html `
19879
+ <${iconExclamationMarkTag} role="img" aria-label="${x => popupIconErrorLabel.getValueFor(x)}"></${iconExclamationMarkTag}>
19880
+ `)}
19881
+ ${when(x => x.severity === BannerSeverity.warning, html `
19882
+ <${iconTriangleFilledTag} role="img" aria-label="${x => popupIconWarningLabel.getValueFor(x)}"></${iconTriangleFilledTag}>
19917
19883
  `)}
19884
+ ${when(x => x.severity === BannerSeverity.information, html `
19885
+ <${iconInfoTag} role="img" aria-label="${x => popupIconInformationLabel.getValueFor(x)}"></${iconInfoTag}>
19886
+ `)}
19887
+ </div>
19888
+ <div class="text">
19889
+ <slot name="title" id="titleSlot"></slot>
19890
+ <slot></slot>
19891
+ </div>
19892
+ <div class="controls">
19893
+ <slot name="action"></slot>
19894
+ <div class="dismiss">
19895
+ ${when(x => !x.preventDismiss, html `
19896
+ <${buttonTag} appearance="${ButtonAppearance.ghost}" appearance-variant="${ButtonAppearanceVariant.primary}" content-hidden @click="${x => x.dismissBanner()}">
19897
+ <${iconTimesTag} slot="start"></${iconTimesTag}>
19898
+ ${x => popupDismissLabel.getValueFor(x)}
19899
+ </${buttonTag}>
19900
+ `)}
19901
+ </div>
19918
19902
  </div>
19919
19903
  </div>
19920
- </div>
19904
+ </${themeProviderTag}>
19921
19905
  `;
19922
19906
 
19923
19907
  /**
@@ -24326,19 +24310,6 @@
24326
24310
  }
24327
24311
  registerIcon('icon-tile-size', IconTileSize);
24328
24312
 
24329
- // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
24330
- // See generation source in nimble-components/build/generate-icons
24331
- /**
24332
- * The icon component for the 'times' icon
24333
- */
24334
- class IconTimes extends Icon {
24335
- constructor() {
24336
- super(times16X16);
24337
- }
24338
- }
24339
- registerIcon('icon-times', IconTimes);
24340
- const iconTimesTag = 'nimble-icon-times';
24341
-
24342
24313
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
24343
24314
  // See generation source in nimble-components/build/generate-icons
24344
24315
  /**
@@ -24557,6 +24528,18 @@
24557
24528
  }
24558
24529
  registerIcon('icon-wrench-hammer', IconWrenchHammer);
24559
24530
 
24531
+ // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
24532
+ // See generation source in nimble-components/build/generate-icons
24533
+ /**
24534
+ * The icon component for the 'xmark' icon
24535
+ */
24536
+ class IconXmark extends Icon {
24537
+ constructor() {
24538
+ super(xmark16X16);
24539
+ }
24540
+ }
24541
+ registerIcon('icon-xmark', IconXmark);
24542
+
24560
24543
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
24561
24544
  // See generation source in nimble-components/build/generate-icons
24562
24545
  /**