@ni/nimble-components 20.10.3 → 20.11.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.
@@ -7516,6 +7516,16 @@
7516
7516
  applyMixins(DelegatesARIAButton, ARIAGlobalStatesAndProperties);
7517
7517
  applyMixins(Button$1, StartEnd, DelegatesARIAButton);
7518
7518
 
7519
+ /**
7520
+ * An Card Custom HTML Element.
7521
+ *
7522
+ * @slot - The default slot for the card content
7523
+ *
7524
+ * @public
7525
+ */
7526
+ let Card$1 = class Card extends FoundationElement {
7527
+ };
7528
+
7519
7529
  /**
7520
7530
  * The template for the {@link @microsoft/fast-foundation#(Checkbox:class)} component.
7521
7531
  * @public
@@ -16288,7 +16298,7 @@
16288
16298
 
16289
16299
  /**
16290
16300
  * Do not edit directly
16291
- * Generated on Wed, 01 Nov 2023 14:47:40 GMT
16301
+ * Generated on Wed, 01 Nov 2023 16:12:34 GMT
16292
16302
  */
16293
16303
 
16294
16304
  const Information100DarkUi = "#a46eff";
@@ -16673,9 +16683,9 @@
16673
16683
  return `${prefix}${uniqueIdCounter++}`;
16674
16684
  }
16675
16685
 
16676
- const template$A = html `<slot></slot>`;
16686
+ const template$B = html `<slot></slot>`;
16677
16687
 
16678
- const styles$T = css `
16688
+ const styles$U = css `
16679
16689
  :host {
16680
16690
  display: contents;
16681
16691
  }
@@ -16792,8 +16802,8 @@
16792
16802
  ], ThemeProvider.prototype, "theme", void 0);
16793
16803
  const nimbleDesignSystemProvider = ThemeProvider.compose({
16794
16804
  baseName: 'theme-provider',
16795
- styles: styles$T,
16796
- template: template$A
16805
+ styles: styles$U,
16806
+ template: template$B
16797
16807
  });
16798
16808
  DesignSystem.getOrCreate()
16799
16809
  .withPrefix('nimble')
@@ -16823,7 +16833,7 @@
16823
16833
  const actionRgbPartialColor = DesignToken.create(styleNameFromTokenName(tokenNames.actionRgbPartialColor)).withDefault((element) => hexToRgbPartial(getColorForTheme(element, Black91, Black15, White)));
16824
16834
  const applicationBackgroundColor = DesignToken.create(styleNameFromTokenName(tokenNames.applicationBackgroundColor)).withDefault((element) => getColorForTheme(element, White, Black85, ForestGreen));
16825
16835
  DesignToken.create(styleNameFromTokenName(tokenNames.headerBackgroundColor)).withDefault((element) => getColorForTheme(element, Black7, Black88, ForestGreen));
16826
- DesignToken.create(styleNameFromTokenName(tokenNames.sectionBackgroundColor)).withDefault((element) => getColorForTheme(element, Black15, Black80, ForestGreen));
16836
+ const sectionBackgroundColor = DesignToken.create(styleNameFromTokenName(tokenNames.sectionBackgroundColor)).withDefault((element) => getColorForTheme(element, Black15, Black80, ForestGreen));
16827
16837
  DesignToken.create(styleNameFromTokenName(tokenNames.dividerBackgroundColor)).withDefault((element) => getColorForTheme(element, Black15, Black80, ForestGreen));
16828
16838
  const fillSelectedColor = DesignToken.create(styleNameFromTokenName(tokenNames.fillSelectedColor)).withDefault((element) => hexToRgbaCssColor(getFillSelectedColorForTheme(element), 0.2));
16829
16839
  const fillSelectedRgbPartialColor = DesignToken.create(styleNameFromTokenName(tokenNames.fillSelectedRgbPartialColor)).withDefault((element) => hexToRgbPartial(getFillSelectedColorForTheme(element)));
@@ -16988,7 +16998,7 @@
16988
16998
  }
16989
16999
  }
16990
17000
 
16991
- const styles$S = css `
17001
+ const styles$T = css `
16992
17002
  ${display('inline')}
16993
17003
 
16994
17004
  :host {
@@ -17071,7 +17081,7 @@
17071
17081
  `;
17072
17082
 
17073
17083
  // prettier-ignore
17074
- const template$z = (_context, definition) => html `<a
17084
+ const template$A = (_context, definition) => html `<a
17075
17085
  class="control"
17076
17086
  part="control"
17077
17087
  download="${x => x.download}"
@@ -17161,8 +17171,8 @@
17161
17171
  const nimbleAnchor = Anchor.compose({
17162
17172
  baseName: 'anchor',
17163
17173
  baseClass: Anchor$1,
17164
- template: template$z,
17165
- styles: styles$S,
17174
+ template: template$A,
17175
+ styles: styles$T,
17166
17176
  shadowOptions: {
17167
17177
  delegatesFocus: true
17168
17178
  }
@@ -17265,7 +17275,7 @@
17265
17275
  padding: 0;
17266
17276
  `;
17267
17277
 
17268
- const styles$R = css `
17278
+ const styles$S = css `
17269
17279
  @layer base, hover, focusVisible, active, disabled, top;
17270
17280
 
17271
17281
  @layer base {
@@ -17542,8 +17552,8 @@
17542
17552
  }
17543
17553
  `));
17544
17554
 
17545
- const styles$Q = css `
17546
- ${styles$R}
17555
+ const styles$R = css `
17556
+ ${styles$S}
17547
17557
  ${buttonAppearanceVariantStyles}
17548
17558
 
17549
17559
  .control {
@@ -17551,7 +17561,7 @@
17551
17561
  }
17552
17562
  `;
17553
17563
 
17554
- const template$y = (context, definition) => html `
17564
+ const template$z = (context, definition) => html `
17555
17565
  <a
17556
17566
  class="control"
17557
17567
  part="control"
@@ -17633,8 +17643,8 @@
17633
17643
  ], AnchorButton.prototype, "disabled", void 0);
17634
17644
  const nimbleAnchorButton = AnchorButton.compose({
17635
17645
  baseName: 'anchor-button',
17636
- template: template$y,
17637
- styles: styles$Q,
17646
+ template: template$z,
17647
+ styles: styles$R,
17638
17648
  shadowOptions: {
17639
17649
  delegatesFocus: true
17640
17650
  }
@@ -17642,7 +17652,7 @@
17642
17652
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorButton());
17643
17653
  DesignSystem.tagFor(AnchorButton);
17644
17654
 
17645
- const styles$P = css `
17655
+ const styles$Q = css `
17646
17656
  ${display('grid')}
17647
17657
 
17648
17658
  :host {
@@ -17719,7 +17729,7 @@
17719
17729
  }
17720
17730
  `;
17721
17731
 
17722
- const template$x = (context, definition) => html `
17732
+ const template$y = (context, definition) => html `
17723
17733
  <template
17724
17734
  role="menuitem"
17725
17735
  class="${x => (typeof x.startColumnCount === 'number'
@@ -17825,8 +17835,8 @@
17825
17835
  // FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
17826
17836
  const nimbleAnchorMenuItem = AnchorMenuItem.compose({
17827
17837
  baseName: 'anchor-menu-item',
17828
- template: template$x,
17829
- styles: styles$P,
17838
+ template: template$y,
17839
+ styles: styles$Q,
17830
17840
  shadowOptions: {
17831
17841
  delegatesFocus: true
17832
17842
  }
@@ -17850,7 +17860,7 @@
17850
17860
  }
17851
17861
  });
17852
17862
 
17853
- const styles$O = css `
17863
+ const styles$P = css `
17854
17864
  ${display('inline-flex')}
17855
17865
 
17856
17866
  :host {
@@ -17966,7 +17976,7 @@
17966
17976
  }
17967
17977
  `;
17968
17978
 
17969
- const template$w = (context, definition) => html `
17979
+ const template$x = (context, definition) => html `
17970
17980
  <template slot="anchortab" role="tab" aria-disabled="${x => x.disabled}">
17971
17981
  <a
17972
17982
  download="${x => x.download}"
@@ -18018,8 +18028,8 @@
18018
18028
  // FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
18019
18029
  const nimbleAnchorTab = AnchorTab.compose({
18020
18030
  baseName: 'anchor-tab',
18021
- template: template$w,
18022
- styles: styles$O,
18031
+ template: template$x,
18032
+ styles: styles$P,
18023
18033
  shadowOptions: {
18024
18034
  delegatesFocus: true
18025
18035
  }
@@ -18027,7 +18037,7 @@
18027
18037
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorTab());
18028
18038
  DesignSystem.tagFor(AnchorTab);
18029
18039
 
18030
- const styles$N = css `
18040
+ const styles$O = css `
18031
18041
  ${display('grid')}
18032
18042
 
18033
18043
  :host {
@@ -18049,7 +18059,7 @@
18049
18059
  }
18050
18060
  `;
18051
18061
 
18052
- const template$v = (context, definition) => html `
18062
+ const template$w = (context, definition) => html `
18053
18063
  ${startSlotTemplate(context, definition)}
18054
18064
  <div ${ref('tablist')} class="tablist" part="tablist" role="tablist">
18055
18065
  <slot name="anchortab" ${slotted('tabs')}></slot>
@@ -18255,8 +18265,8 @@
18255
18265
  applyMixins(AnchorTabs, StartEnd);
18256
18266
  const nimbleAnchorTabs = AnchorTabs.compose({
18257
18267
  baseName: 'anchor-tabs',
18258
- template: template$v,
18259
- styles: styles$N,
18268
+ template: template$w,
18269
+ styles: styles$O,
18260
18270
  shadowOptions: {
18261
18271
  delegatesFocus: false
18262
18272
  }
@@ -18273,7 +18283,7 @@
18273
18283
  -webkit-user-select: none;
18274
18284
  `;
18275
18285
 
18276
- const styles$M = css `
18286
+ const styles$N = css `
18277
18287
  ${display('block')}
18278
18288
 
18279
18289
  :host {
@@ -18374,7 +18384,7 @@
18374
18384
  }
18375
18385
  `;
18376
18386
 
18377
- const template$u = (context, definition) => html `
18387
+ const template$v = (context, definition) => html `
18378
18388
  <template
18379
18389
  role="treeitem"
18380
18390
  slot="${x => (x.isNestedItem() ? 'item' : null)}"
@@ -18511,8 +18521,8 @@
18511
18521
  // FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
18512
18522
  const nimbleAnchorTreeItem = AnchorTreeItem.compose({
18513
18523
  baseName: 'anchor-tree-item',
18514
- template: template$u,
18515
- styles: styles$M,
18524
+ template: template$v,
18525
+ styles: styles$N,
18516
18526
  shadowOptions: {
18517
18527
  delegatesFocus: true
18518
18528
  }
@@ -18522,7 +18532,7 @@
18522
18532
  .register(nimbleAnchorTreeItem());
18523
18533
  DesignSystem.tagFor(AnchorTreeItem);
18524
18534
 
18525
- const styles$L = css `
18535
+ const styles$M = css `
18526
18536
  :host {
18527
18537
  contain: layout;
18528
18538
  display: block;
@@ -18546,7 +18556,7 @@
18546
18556
  baseName: 'anchored-region',
18547
18557
  baseClass: AnchoredRegion$1,
18548
18558
  template: anchoredRegionTemplate,
18549
- styles: styles$L
18559
+ styles: styles$M
18550
18560
  });
18551
18561
  DesignSystem.getOrCreate()
18552
18562
  .withPrefix('nimble')
@@ -18626,7 +18636,7 @@
18626
18636
  */
18627
18637
  const themeBehavior = (theme, styles) => new ThemeStyleSheetBehavior(theme, styles);
18628
18638
 
18629
- const styles$K = css `
18639
+ const styles$L = css `
18630
18640
  ${display('flex')}
18631
18641
 
18632
18642
  :host {
@@ -18769,8 +18779,8 @@
18769
18779
  }
18770
18780
  `));
18771
18781
 
18772
- const styles$J = css `
18773
- ${styles$R}
18782
+ const styles$K = css `
18783
+ ${styles$S}
18774
18784
  ${buttonAppearanceVariantStyles}
18775
18785
  `;
18776
18786
 
@@ -18816,7 +18826,7 @@
18816
18826
  baseName: 'button',
18817
18827
  baseClass: Button$1,
18818
18828
  template: buttonTemplate,
18819
- styles: styles$J,
18829
+ styles: styles$K,
18820
18830
  shadowOptions: {
18821
18831
  delegatesFocus: true
18822
18832
  }
@@ -19495,13 +19505,13 @@
19495
19505
  };
19496
19506
 
19497
19507
  // Avoiding any whitespace in the template because this is an inline element
19498
- const template$t = html `<div
19508
+ const template$u = html `<div
19499
19509
  class="icon"
19500
19510
  aria-hidden="true"
19501
19511
  :innerHTML=${x => x.icon.data}
19502
19512
  ></div>`;
19503
19513
 
19504
- const styles$I = css `
19514
+ const styles$J = css `
19505
19515
  ${display('inline-flex')}
19506
19516
 
19507
19517
  :host {
@@ -19554,8 +19564,8 @@
19554
19564
  const registerIcon = (baseName, iconClass) => {
19555
19565
  const composedIcon = iconClass.compose({
19556
19566
  baseName,
19557
- template: template$t,
19558
- styles: styles$I,
19567
+ template: template$u,
19568
+ styles: styles$J,
19559
19569
  baseClass: iconClass
19560
19570
  });
19561
19571
  DesignSystem.getOrCreate().withPrefix('nimble').register(composedIcon());
@@ -19659,7 +19669,7 @@
19659
19669
  }).withDefault(coreLabelDefaults.informationIconLabel);
19660
19670
 
19661
19671
  // prettier-ignore
19662
- const template$s = html `
19672
+ const template$t = html `
19663
19673
  <div class="container"
19664
19674
  role="status"
19665
19675
  aria-atomic="${x => x.ariaAtomic}"
@@ -19775,13 +19785,13 @@
19775
19785
  applyMixins(Banner, ARIAGlobalStatesAndProperties);
19776
19786
  const nimbleBanner = Banner.compose({
19777
19787
  baseName: 'banner',
19778
- template: template$s,
19779
- styles: styles$K
19788
+ template: template$t,
19789
+ styles: styles$L
19780
19790
  });
19781
19791
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBanner());
19782
19792
  DesignSystem.tagFor(Banner);
19783
19793
 
19784
- const styles$H = css `
19794
+ const styles$I = css `
19785
19795
  ${display('inline-block')}
19786
19796
 
19787
19797
  :host {
@@ -19822,12 +19832,12 @@
19822
19832
  baseName: 'breadcrumb',
19823
19833
  baseClass: Breadcrumb$1,
19824
19834
  template: breadcrumbTemplate,
19825
- styles: styles$H
19835
+ styles: styles$I
19826
19836
  });
19827
19837
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBreadcrumb());
19828
19838
  DesignSystem.tagFor(Breadcrumb);
19829
19839
 
19830
- const styles$G = css `
19840
+ const styles$H = css `
19831
19841
  ${display('inline-flex')}
19832
19842
 
19833
19843
  :host {
@@ -19901,7 +19911,7 @@
19901
19911
  baseName: 'breadcrumb-item',
19902
19912
  baseClass: BreadcrumbItem$1,
19903
19913
  template: breadcrumbItemTemplate,
19904
- styles: styles$G,
19914
+ styles: styles$H,
19905
19915
  separator: forwardSlash16X16.data
19906
19916
  });
19907
19917
  DesignSystem.getOrCreate()
@@ -19909,6 +19919,36 @@
19909
19919
  .register(nimbleBreadcrumbItem());
19910
19920
  DesignSystem.tagFor(BreadcrumbItem);
19911
19921
 
19922
+ const styles$G = css `
19923
+ ${display('flex')}
19924
+
19925
+ :host {
19926
+ flex-direction: column;
19927
+ gap: ${standardPadding};
19928
+ padding: ${standardPadding};
19929
+ border: ${borderWidth} solid ${borderColor};
19930
+ font: ${bodyFont};
19931
+ color: ${bodyFontColor};
19932
+ background-color: ${sectionBackgroundColor};
19933
+ }
19934
+ `;
19935
+
19936
+ const template$s = html `<slot></slot>`;
19937
+
19938
+ /**
19939
+ * A nimble-styled card
19940
+ */
19941
+ class Card extends Card$1 {
19942
+ }
19943
+ const nimbleCard = Card.compose({
19944
+ baseName: 'card',
19945
+ baseClass: Card$1,
19946
+ template: template$s,
19947
+ styles: styles$G
19948
+ });
19949
+ DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCard());
19950
+ DesignSystem.tagFor(Card);
19951
+
19912
19952
  const styles$F = css `
19913
19953
  ${display('inline-flex')}
19914
19954
 
@@ -20202,7 +20242,7 @@
20202
20242
  const checkboxTag = DesignSystem.tagFor(Checkbox);
20203
20243
 
20204
20244
  const styles$D = css `
20205
- ${styles$R}
20245
+ ${styles$S}
20206
20246
 
20207
20247
  @layer base {
20208
20248
  .control[aria-pressed='true'] {