@ni/nimble-components 19.6.3 → 19.7.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.
@@ -16232,7 +16232,7 @@
16232
16232
 
16233
16233
  /**
16234
16234
  * Do not edit directly
16235
- * Generated on Mon, 17 Jul 2023 16:01:38 GMT
16235
+ * Generated on Mon, 17 Jul 2023 16:59:02 GMT
16236
16236
  */
16237
16237
  const Information100DarkUi = "#a46eff";
16238
16238
  const Information100LightUi = "#804ad9";
@@ -24665,6 +24665,10 @@
24665
24665
  opacity: 0.6;
24666
24666
  }
24667
24667
 
24668
+ :host([appearance='accent']) div.container {
24669
+ opacity: 1;
24670
+ }
24671
+
24668
24672
  div.bit1,
24669
24673
  div.bit2 {
24670
24674
  background: var(--ni-private-spinner-bits-background-color);
@@ -24776,15 +24780,25 @@
24776
24780
  }
24777
24781
  `.withBehaviors(themeBehavior(Theme.light, css `
24778
24782
  :host {
24779
- --ni-private-spinner-bits-background-color: ${Black91}
24783
+ --ni-private-spinner-bits-background-color: ${Black91};
24784
+ }
24785
+ :host([appearance='accent']) {
24786
+ --ni-private-spinner-bits-background-color: ${DigitalGreenLight};
24787
+ }
24780
24788
  `), themeBehavior(Theme.dark, css `
24781
24789
  :host {
24782
24790
  --ni-private-spinner-bits-background-color: ${Black15};
24783
24791
  }
24792
+ :host([appearance='accent']) {
24793
+ --ni-private-spinner-bits-background-color: ${PowerGreen};
24794
+ }
24784
24795
  `), themeBehavior(Theme.color, css `
24785
24796
  :host {
24786
24797
  --ni-private-spinner-bits-background-color: ${White};
24787
24798
  }
24799
+ :host([appearance='accent']) {
24800
+ --ni-private-spinner-bits-background-color: ${PowerGreen};
24801
+ }
24788
24802
  `));
24789
24803
 
24790
24804
  const template$f = html `
@@ -24796,12 +24810,33 @@
24796
24810
  </template>
24797
24811
  `;
24798
24812
 
24813
+ /**
24814
+ * Types of spinner appearance.
24815
+ * @public
24816
+ */
24817
+ const SpinnerAppearance = {
24818
+ default: undefined,
24819
+ accent: 'accent'
24820
+ };
24821
+
24799
24822
  /**
24800
24823
  * A Nimble-styled spinner component.
24801
24824
  * A spinner is an animating indicator that can be placed in a particular region of a page to represent loading progress, or an ongoing operation, of an indeterminate / unknown duration.
24802
24825
  */
24803
24826
  class Spinner extends FoundationElement {
24827
+ constructor() {
24828
+ super(...arguments);
24829
+ /**
24830
+ * @public
24831
+ * @description
24832
+ * The appearance the spinner area should have.
24833
+ */
24834
+ this.appearance = SpinnerAppearance.default;
24835
+ }
24804
24836
  }
24837
+ __decorate$1([
24838
+ attr
24839
+ ], Spinner.prototype, "appearance", void 0);
24805
24840
  const nimbleSpinner = Spinner.compose({
24806
24841
  baseName: 'spinner',
24807
24842
  template: template$f,