@ni/nimble-components 20.13.0 → 20.14.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.
@@ -16298,7 +16298,7 @@
16298
16298
 
16299
16299
  /**
16300
16300
  * Do not edit directly
16301
- * Generated on Thu, 02 Nov 2023 18:04:35 GMT
16301
+ * Generated on Wed, 08 Nov 2023 15:51:23 GMT
16302
16302
  */
16303
16303
 
16304
16304
  const Information100DarkUi = "#a46eff";
@@ -16468,6 +16468,12 @@
16468
16468
  iconSize: 'icon-size',
16469
16469
  groupHeaderTextTransform: 'group-header-text-transform',
16470
16470
  drawerWidth: 'drawer-width',
16471
+ dialogSmallWidth: 'dialog-small-width',
16472
+ dialogSmallHeight: 'dialog-small-height',
16473
+ dialogSmallMaxHeight: 'dialog-small-max-height',
16474
+ dialogLargeWidth: 'dialog-large-width',
16475
+ dialogLargeHeight: 'dialog-large-height',
16476
+ dialogLargeMaxHeight: 'dialog-large-max-height',
16471
16477
  bannerGapSize: 'banner-gap-size',
16472
16478
  spinnerSmallHeight: 'spinner-small-height',
16473
16479
  spinnerMediumHeight: 'spinner-medium-height',
@@ -16873,6 +16879,12 @@
16873
16879
  const borderWidth = DesignToken.create(styleNameFromTokenName(tokenNames.borderWidth)).withDefault('1px');
16874
16880
  const iconSize = DesignToken.create(styleNameFromTokenName(tokenNames.iconSize)).withDefault('16px');
16875
16881
  const drawerWidth = DesignToken.create(styleNameFromTokenName(tokenNames.drawerWidth)).withDefault('784px');
16882
+ const dialogSmallWidth = DesignToken.create(styleNameFromTokenName(tokenNames.dialogSmallWidth)).withDefault('400px');
16883
+ const dialogSmallHeight = DesignToken.create(styleNameFromTokenName(tokenNames.dialogSmallHeight)).withDefault('fit-content');
16884
+ const dialogSmallMaxHeight = DesignToken.create(styleNameFromTokenName(tokenNames.dialogSmallMaxHeight)).withDefault('600px');
16885
+ DesignToken.create(styleNameFromTokenName(tokenNames.dialogLargeWidth)).withDefault('1024px');
16886
+ DesignToken.create(styleNameFromTokenName(tokenNames.dialogLargeHeight)).withDefault('680px');
16887
+ DesignToken.create(styleNameFromTokenName(tokenNames.dialogLargeMaxHeight)).withDefault('680px');
16876
16888
  DesignToken.create(styleNameFromTokenName(tokenNames.bannerGapSize)).withDefault('1px');
16877
16889
  const spinnerSmallHeight = DesignToken.create(styleNameFromTokenName(tokenNames.spinnerSmallHeight)).withDefault('16px');
16878
16890
  DesignToken.create(styleNameFromTokenName(tokenNames.spinnerMediumHeight)).withDefault('32px');
@@ -19948,14 +19960,15 @@
19948
19960
  display: contents;
19949
19961
  }
19950
19962
 
19951
- ::slotted([slot='title']) {
19963
+ slot[name='title'] {
19952
19964
  font: ${titleFont};
19953
19965
  color: ${titleFontColor};
19954
19966
  }
19955
19967
  `;
19956
19968
 
19957
19969
  const template$s = html `
19958
- <section aria-labelledby="title-slot">
19970
+ ${'' /* Explicitly set role to work around Lighthouse error. See https://github.com/ni/nimble/issues/1650. */}
19971
+ <section role="region" aria-labelledby="title-slot">
19959
19972
  <slot name="title" id="title-slot"></slot>
19960
19973
  <slot></slot>
19961
19974
  </section>
@@ -21129,8 +21142,9 @@
21129
21142
  border: none;
21130
21143
  box-shadow: ${elevation3BoxShadow};
21131
21144
  padding: 0px;
21132
- width: 400px;
21133
- max-height: 600px;
21145
+ width: ${dialogSmallWidth};
21146
+ height: ${dialogSmallHeight};
21147
+ max-height: ${dialogSmallMaxHeight};
21134
21148
  }
21135
21149
 
21136
21150
  dialog[open] {
@@ -21226,6 +21240,7 @@
21226
21240
  <dialog
21227
21241
  ${ref('dialogElement')}
21228
21242
  role="dialog"
21243
+ part="control"
21229
21244
  @cancel="${(x, c) => x.cancelHandler(c.event)}"
21230
21245
  aria-labelledby="header"
21231
21246
  >