@ni/nimble-components 15.5.1 → 15.5.3

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.
@@ -15298,7 +15298,7 @@
15298
15298
  */
15299
15299
  const focusVisible$1 = canUseFocusVisible() ? "focus-visible" : "focus";
15300
15300
 
15301
- const styles$y = css `
15301
+ const styles$z = css `
15302
15302
  :host {
15303
15303
  contain: layout;
15304
15304
  display: block;
@@ -15322,7 +15322,7 @@
15322
15322
  baseName: 'anchored-region',
15323
15323
  baseClass: AnchoredRegion$1,
15324
15324
  template: anchoredRegionTemplate,
15325
- styles: styles$y
15325
+ styles: styles$z
15326
15326
  });
15327
15327
  DesignSystem.getOrCreate()
15328
15328
  .withPrefix('nimble')
@@ -15688,9 +15688,9 @@
15688
15688
  const prefix = 'ni-nimble';
15689
15689
  const styleNameFromTokenName = (tokenName) => `${prefix}-${tokenName}`;
15690
15690
 
15691
- const template$9 = html `<slot></slot>`;
15691
+ const template$a = html `<slot></slot>`;
15692
15692
 
15693
- const styles$x = css `
15693
+ const styles$y = css `
15694
15694
  :host {
15695
15695
  display: contents;
15696
15696
  }
@@ -15746,8 +15746,8 @@
15746
15746
  ], ThemeProvider.prototype, "theme", void 0);
15747
15747
  const nimbleDesignSystemProvider = ThemeProvider.compose({
15748
15748
  baseName: 'theme-provider',
15749
- styles: styles$x,
15750
- template: template$9
15749
+ styles: styles$y,
15750
+ template: template$a
15751
15751
  });
15752
15752
  DesignSystem.getOrCreate()
15753
15753
  .withPrefix('nimble')
@@ -15971,7 +15971,7 @@
15971
15971
  */
15972
15972
  const themeBehavior = (theme, styles) => new ThemeStyleSheetBehavior(theme, styles);
15973
15973
 
15974
- const styles$w = css `
15974
+ const styles$x = css `
15975
15975
  ${display('inline-block')}
15976
15976
 
15977
15977
  :host {
@@ -16034,7 +16034,7 @@
16034
16034
  baseName: 'breadcrumb',
16035
16035
  baseClass: Breadcrumb$1,
16036
16036
  template: breadcrumbTemplate,
16037
- styles: styles$w
16037
+ styles: styles$x
16038
16038
  });
16039
16039
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBreadcrumb());
16040
16040
 
@@ -16652,7 +16652,7 @@
16652
16652
  */
16653
16653
  const focusVisible = `:${focusVisible$1}`;
16654
16654
 
16655
- const styles$v = css `
16655
+ const styles$w = css `
16656
16656
  ${display('inline-flex')}
16657
16657
 
16658
16658
  :host {
@@ -16732,7 +16732,7 @@
16732
16732
  baseName: 'breadcrumb-item',
16733
16733
  baseClass: BreadcrumbItem$1,
16734
16734
  template: breadcrumbItemTemplate,
16735
- styles: styles$v,
16735
+ styles: styles$w,
16736
16736
  separator: forwardSlash16X16.data
16737
16737
  });
16738
16738
  DesignSystem.getOrCreate()
@@ -16817,7 +16817,7 @@
16817
16817
  block: 'block'
16818
16818
  };
16819
16819
 
16820
- const styles$u = css `
16820
+ const styles$v = css `
16821
16821
  ${display('inline-flex')}
16822
16822
 
16823
16823
  :host {
@@ -17021,7 +17021,7 @@
17021
17021
  }
17022
17022
  `));
17023
17023
 
17024
- const styles$t = styles$u.withBehaviors(appearanceBehavior(ButtonAppearance.outline, css `
17024
+ const styles$u = styles$v.withBehaviors(appearanceBehavior(ButtonAppearance.outline, css `
17025
17025
  :host([appearance-variant='primary']) .control {
17026
17026
  box-shadow: 0px 0px 0px ${borderWidth}
17027
17027
  rgba(${actionRgbPartialColor}, 0.3) inset;
@@ -17141,14 +17141,14 @@
17141
17141
  baseName: 'button',
17142
17142
  baseClass: Button$1,
17143
17143
  template: buttonTemplate,
17144
- styles: styles$t,
17144
+ styles: styles$u,
17145
17145
  shadowOptions: {
17146
17146
  delegatesFocus: true
17147
17147
  }
17148
17148
  });
17149
17149
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleButton());
17150
17150
 
17151
- const styles$s = css `
17151
+ const styles$t = css `
17152
17152
  ${display('inline-flex')}
17153
17153
 
17154
17154
  :host {
@@ -17307,14 +17307,14 @@
17307
17307
  const nimbleCardButton = CardButton.compose({
17308
17308
  baseName: 'card-button',
17309
17309
  template: buttonTemplate,
17310
- styles: styles$s,
17310
+ styles: styles$t,
17311
17311
  shadowOptions: {
17312
17312
  delegatesFocus: true
17313
17313
  }
17314
17314
  });
17315
17315
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCardButton());
17316
17316
 
17317
- const styles$r = css `
17317
+ const styles$s = css `
17318
17318
  ${display('inline-flex')}
17319
17319
 
17320
17320
  :host {
@@ -17432,14 +17432,14 @@
17432
17432
  baseName: 'checkbox',
17433
17433
  baseClass: Checkbox$1,
17434
17434
  template: checkboxTemplate,
17435
- styles: styles$r,
17435
+ styles: styles$s,
17436
17436
  checkedIndicator: check16X16.data,
17437
17437
  indeterminateIndicator: minus16X16.data
17438
17438
  });
17439
17439
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCheckbox());
17440
17440
 
17441
- const styles$q = css `
17442
- ${styles$u}
17441
+ const styles$r = css `
17442
+ ${styles$v}
17443
17443
 
17444
17444
  .control[aria-pressed='true'] {
17445
17445
  background-color: ${fillSelectedColor};
@@ -17465,7 +17465,7 @@
17465
17465
  }
17466
17466
  `;
17467
17467
 
17468
- const template$8 = (context, definition) => html `
17468
+ const template$9 = (context, definition) => html `
17469
17469
  <div
17470
17470
  role="button"
17471
17471
  part="control"
@@ -17540,8 +17540,8 @@
17540
17540
  applyMixins(ToggleButton, StartEnd, DelegatesARIAButton);
17541
17541
  const nimbleToggleButton = ToggleButton.compose({
17542
17542
  baseName: 'toggle-button',
17543
- template: template$8,
17544
- styles: styles$q,
17543
+ template: template$9,
17544
+ styles: styles$r,
17545
17545
  shadowOptions: {
17546
17546
  delegatesFocus: true
17547
17547
  }
@@ -17554,13 +17554,13 @@
17554
17554
  </div>
17555
17555
  `;
17556
17556
 
17557
- const template$7 = html `
17557
+ const template$8 = html `
17558
17558
  <template>
17559
17559
  <div class="icon" :innerHTML=${x => x.icon.data}></div>
17560
17560
  </template
17561
17561
  `;
17562
17562
 
17563
- const styles$p = css `
17563
+ const styles$q = css `
17564
17564
  ${display('inline-flex')}
17565
17565
 
17566
17566
  :host {
@@ -17613,8 +17613,8 @@
17613
17613
  const registerIcon = (baseName, iconClass) => {
17614
17614
  const composedIcon = iconClass.compose({
17615
17615
  baseName,
17616
- template: template$7,
17617
- styles: styles$p,
17616
+ template: template$8,
17617
+ styles: styles$q,
17618
17618
  baseClass: iconClass
17619
17619
  });
17620
17620
  DesignSystem.getOrCreate().withPrefix('nimble').register(composedIcon());
@@ -17648,7 +17648,7 @@
17648
17648
  block: 'block'
17649
17649
  };
17650
17650
 
17651
- const styles$o = css `
17651
+ const styles$p = css `
17652
17652
  ${display('inline-flex')}
17653
17653
 
17654
17654
  :host {
@@ -17876,7 +17876,7 @@
17876
17876
  }
17877
17877
  `));
17878
17878
 
17879
- const styles$n = css `
17879
+ const styles$o = css `
17880
17880
  .error-icon {
17881
17881
  display: none;
17882
17882
  }
@@ -17914,9 +17914,9 @@
17914
17914
  }
17915
17915
  `;
17916
17916
 
17917
- const styles$m = css `
17917
+ const styles$n = css `
17918
+ ${styles$p}
17918
17919
  ${styles$o}
17919
- ${styles$n}
17920
17920
 
17921
17921
  :host {
17922
17922
  --ni-private-hover-bottom-border-width: 2px;
@@ -18152,7 +18152,7 @@
18152
18152
  baseName: 'combobox',
18153
18153
  baseClass: Combobox$1,
18154
18154
  template: comboboxTemplate,
18155
- styles: styles$m,
18155
+ styles: styles$n,
18156
18156
  shadowOptions: {
18157
18157
  delegatesFocus: true
18158
18158
  },
@@ -18196,7 +18196,7 @@
18196
18196
  */
18197
18197
  const UserDismissed = Symbol('user dismissed');
18198
18198
 
18199
- const styles$l = css `
18199
+ const styles$m = css `
18200
18200
  ${display('grid')}
18201
18201
 
18202
18202
  dialog {
@@ -18312,7 +18312,7 @@
18312
18312
  }
18313
18313
  `));
18314
18314
 
18315
- const template$6 = html `
18315
+ const template$7 = html `
18316
18316
  <template>
18317
18317
  <dialog
18318
18318
  ${ref('dialogElement')}
@@ -18438,13 +18438,13 @@
18438
18438
  applyMixins(Dialog, ARIAGlobalStatesAndProperties);
18439
18439
  const nimbleDialog = Dialog.compose({
18440
18440
  baseName: 'dialog',
18441
- template: template$6,
18442
- styles: styles$l,
18441
+ template: template$7,
18442
+ styles: styles$m,
18443
18443
  baseClass: Dialog
18444
18444
  });
18445
18445
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDialog());
18446
18446
 
18447
- const styles$k = css `
18447
+ const styles$l = css `
18448
18448
  ${display('block')}
18449
18449
 
18450
18450
  :host {
@@ -18599,7 +18599,7 @@
18599
18599
  }
18600
18600
  `));
18601
18601
 
18602
- const template$5 = html `
18602
+ const template$6 = html `
18603
18603
  <dialog
18604
18604
  ${ref('dialog')}
18605
18605
  aria-label="${x => x.ariaLabel}"
@@ -18713,8 +18713,8 @@
18713
18713
  applyMixins(Drawer, ARIAGlobalStatesAndProperties);
18714
18714
  const nimbleDrawer = Drawer.compose({
18715
18715
  baseName: 'drawer',
18716
- template: template$5,
18717
- styles: styles$k
18716
+ template: template$6,
18717
+ styles: styles$l
18718
18718
  });
18719
18719
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDrawer());
18720
18720
 
@@ -20346,7 +20346,7 @@
20346
20346
  }
20347
20347
  registerIcon('icon-xmark-check', IconXmarkCheck);
20348
20348
 
20349
- const styles$j = css `
20349
+ const styles$k = css `
20350
20350
  ${display('flex')}
20351
20351
 
20352
20352
  :host {
@@ -20426,11 +20426,11 @@
20426
20426
  baseName: 'list-option',
20427
20427
  baseClass: ListboxOption,
20428
20428
  template: listboxOptionTemplate,
20429
- styles: styles$j
20429
+ styles: styles$k
20430
20430
  });
20431
20431
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleListOption());
20432
20432
 
20433
- const styles$i = css `
20433
+ const styles$j = css `
20434
20434
  ${display('grid')}
20435
20435
 
20436
20436
  :host {
@@ -20485,11 +20485,11 @@
20485
20485
  baseName: 'menu',
20486
20486
  baseClass: Menu$1,
20487
20487
  template: menuTemplate,
20488
- styles: styles$i
20488
+ styles: styles$j
20489
20489
  });
20490
20490
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenu());
20491
20491
 
20492
- const styles$h = css `
20492
+ const styles$i = css `
20493
20493
  ${display('inline-block')}
20494
20494
 
20495
20495
  :host {
@@ -20508,7 +20508,7 @@
20508
20508
  `;
20509
20509
 
20510
20510
  // prettier-ignore
20511
- const template$4 = html `
20511
+ const template$5 = html `
20512
20512
  <template
20513
20513
  ?open="${x => x.open}"
20514
20514
  @focusout="${(x, c) => x.focusoutHandler(c.event)}"
@@ -20716,15 +20716,15 @@
20716
20716
  ], MenuButton.prototype, "slottedMenus", void 0);
20717
20717
  const nimbleMenuButton = MenuButton.compose({
20718
20718
  baseName: 'menu-button',
20719
- template: template$4,
20720
- styles: styles$h,
20719
+ template: template$5,
20720
+ styles: styles$i,
20721
20721
  shadowOptions: {
20722
20722
  delegatesFocus: true
20723
20723
  }
20724
20724
  });
20725
20725
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuButton());
20726
20726
 
20727
- const styles$g = css `
20727
+ const styles$h = css `
20728
20728
  ${display('grid')}
20729
20729
 
20730
20730
  :host {
@@ -20822,7 +20822,7 @@
20822
20822
  baseName: 'menu-item',
20823
20823
  baseClass: MenuItem$1,
20824
20824
  template: menuItemTemplate,
20825
- styles: styles$g,
20825
+ styles: styles$h,
20826
20826
  expandCollapseGlyph: arrowExpanderRight16X16.data
20827
20827
  });
20828
20828
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuItem());
@@ -20836,9 +20836,9 @@
20836
20836
  block: 'block'
20837
20837
  };
20838
20838
 
20839
- const styles$f = css `
20839
+ const styles$g = css `
20840
20840
  ${display('inline-block')}
20841
- ${styles$n}
20841
+ ${styles$o}
20842
20842
 
20843
20843
  :host {
20844
20844
  font: ${bodyFont};
@@ -21052,7 +21052,7 @@
21052
21052
  baseName: 'number-field',
21053
21053
  baseClass: NumberField$1,
21054
21054
  template: numberFieldTemplate,
21055
- styles: styles$f,
21055
+ styles: styles$g,
21056
21056
  shadowOptions: {
21057
21057
  delegatesFocus: true
21058
21058
  },
@@ -21093,7 +21093,7 @@
21093
21093
  });
21094
21094
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleNumberField());
21095
21095
 
21096
- const styles$e = css `
21096
+ const styles$f = css `
21097
21097
  ${display('inline-flex')}
21098
21098
 
21099
21099
  :host {
@@ -21193,12 +21193,12 @@
21193
21193
  baseName: 'radio',
21194
21194
  baseClass: Radio$1,
21195
21195
  template: radioTemplate,
21196
- styles: styles$e,
21196
+ styles: styles$f,
21197
21197
  checkedIndicator: circleFilled16X16.data
21198
21198
  });
21199
21199
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleRadio());
21200
21200
 
21201
- const styles$d = css `
21201
+ const styles$e = css `
21202
21202
  ${display('inline-block')}
21203
21203
 
21204
21204
  .positioning-region {
@@ -21233,16 +21233,16 @@
21233
21233
  baseName: 'radio-group',
21234
21234
  baseClass: RadioGroup$1,
21235
21235
  template: radioGroupTemplate,
21236
- styles: styles$d,
21236
+ styles: styles$e,
21237
21237
  shadowOptions: {
21238
21238
  delegatesFocus: true
21239
21239
  }
21240
21240
  });
21241
21241
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleRadioGroup());
21242
21242
 
21243
- const styles$c = css `
21243
+ const styles$d = css `
21244
+ ${styles$p}
21244
21245
  ${styles$o}
21245
- ${styles$n}
21246
21246
 
21247
21247
  ${
21248
21248
  /* We are using flex `order` to define the visual ordering of the selected value,
@@ -21318,7 +21318,7 @@
21318
21318
  baseName: 'select',
21319
21319
  baseClass: Select$1,
21320
21320
  template: selectTemplate,
21321
- styles: styles$c,
21321
+ styles: styles$d,
21322
21322
  indicator: arrowExpanderDown16X16.data,
21323
21323
  end: html `
21324
21324
  <${DesignSystem.tagFor(IconExclamationMark)}
@@ -21330,7 +21330,7 @@
21330
21330
  });
21331
21331
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSelect());
21332
21332
 
21333
- const styles$b = css `
21333
+ const styles$c = css `
21334
21334
  ${display('inline-flex')}
21335
21335
 
21336
21336
  :host {
@@ -21493,7 +21493,7 @@
21493
21493
  `));
21494
21494
 
21495
21495
  // prettier-ignore
21496
- const template$3 = html `
21496
+ const template$4 = html `
21497
21497
  <template
21498
21498
  role="switch"
21499
21499
  aria-checked="${x => x.checked}"
@@ -21537,12 +21537,12 @@
21537
21537
  const nimbleSwitch = Switch.compose({
21538
21538
  baseClass: Switch$1,
21539
21539
  baseName: 'switch',
21540
- template: template$3,
21541
- styles: styles$b
21540
+ template: template$4,
21541
+ styles: styles$c
21542
21542
  });
21543
21543
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSwitch());
21544
21544
 
21545
- const styles$a = css `
21545
+ const styles$b = css `
21546
21546
  ${display('inline-flex')}
21547
21547
 
21548
21548
  :host {
@@ -21646,11 +21646,11 @@
21646
21646
  baseName: 'tab',
21647
21647
  baseClass: Tab$1,
21648
21648
  template: tabTemplate,
21649
- styles: styles$a
21649
+ styles: styles$b
21650
21650
  });
21651
21651
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTab());
21652
21652
 
21653
- const styles$9 = css `
21653
+ const styles$a = css `
21654
21654
  ${display('block')}
21655
21655
 
21656
21656
  :host {
@@ -21670,10 +21670,28 @@
21670
21670
  baseName: 'tab-panel',
21671
21671
  baseClass: TabPanel$1,
21672
21672
  template: tabPanelTemplate,
21673
- styles: styles$9
21673
+ styles: styles$a
21674
21674
  });
21675
21675
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabPanel());
21676
21676
 
21677
+ const styles$9 = css `
21678
+ ${display('flex')}
21679
+ `;
21680
+
21681
+ const template$3 = html ` <template> Nimble table here </template> `;
21682
+
21683
+ /**
21684
+ * A nimble-styled table.
21685
+ */
21686
+ class Table extends FoundationElement {
21687
+ }
21688
+ const nimbleTable = Table.compose({
21689
+ baseName: 'table',
21690
+ template: template$3,
21691
+ styles: styles$9
21692
+ });
21693
+ DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTable());
21694
+
21677
21695
  const styles$8 = css `
21678
21696
  ${display('grid')}
21679
21697
 
@@ -21914,7 +21932,7 @@
21914
21932
 
21915
21933
  const styles$5 = css `
21916
21934
  ${display('inline-block')}
21917
- ${styles$n}
21935
+ ${styles$o}
21918
21936
 
21919
21937
  :host {
21920
21938
  font: ${bodyFont};