@ni/nimble-components 18.13.1 → 18.13.2

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.
@@ -2618,6 +2618,16 @@
2618
2618
  }
2619
2619
  }
2620
2620
  }
2621
+ /**
2622
+ * Transforms a template literal string into partial CSS.
2623
+ * @param strings - The string fragments that are interpolated with the values.
2624
+ * @param values - The values that are interpolated with the string fragments.
2625
+ * @public
2626
+ */
2627
+ function cssPartial(strings, ...values) {
2628
+ const { styles, behaviors } = collectStyles(strings, values);
2629
+ return new CSSPartial(styles, behaviors);
2630
+ }
2621
2631
 
2622
2632
  /** @internal */
2623
2633
  function newSplice(index, removed, addedCount) {
@@ -16356,7 +16366,7 @@
16356
16366
 
16357
16367
  /**
16358
16368
  * Do not edit directly
16359
- * Generated on Fri, 05 May 2023 15:11:52 GMT
16369
+ * Generated on Fri, 05 May 2023 20:05:11 GMT
16360
16370
  */
16361
16371
  const Information100DarkUi = "#a46eff";
16362
16372
  const Information100LightUi = "#804ad9";
@@ -18210,6 +18220,15 @@
18210
18220
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorTabs());
18211
18221
  DesignSystem.tagFor(AnchorTabs);
18212
18222
 
18223
+ /**
18224
+ * Set user-select: none in a way that works across all supported browsers.
18225
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/user-select#browser_compatibility
18226
+ */
18227
+ const userSelectNone = cssPartial `
18228
+ user-select: none;
18229
+ -webkit-user-select: none;
18230
+ `;
18231
+
18213
18232
  const styles$H = css `
18214
18233
  ${display('block')}
18215
18234
 
@@ -18277,7 +18296,7 @@
18277
18296
  padding-left: 10px;
18278
18297
  font: inherit;
18279
18298
  font-size: ${bodyFontSize};
18280
- user-select: none;
18299
+ ${userSelectNone}
18281
18300
  position: relative;
18282
18301
  margin-inline-start: ${iconSize};
18283
18302
  }
@@ -19420,7 +19439,7 @@
19420
19439
 
19421
19440
  :host {
19422
19441
  align-items: center;
19423
- user-select: none;
19442
+ ${userSelectNone}
19424
19443
  width: ${iconSize};
19425
19444
  height: ${iconSize};
19426
19445
  }
@@ -19965,7 +19984,7 @@
19965
19984
  align-items: center;
19966
19985
  cursor: pointer;
19967
19986
  outline: none;
19968
- user-select: none;
19987
+ ${userSelectNone}
19969
19988
  }
19970
19989
 
19971
19990
  :host([disabled]) {
@@ -20227,7 +20246,7 @@
20227
20246
  height: ${controlHeight};
20228
20247
  position: relative;
20229
20248
  justify-content: center;
20230
- user-select: none;
20249
+ ${userSelectNone}
20231
20250
  min-width: 250px;
20232
20251
  outline: none;
20233
20252
  vertical-align: top;
@@ -20501,7 +20520,7 @@
20501
20520
 
20502
20521
  :host([disabled]) *,
20503
20522
  :host([disabled]) {
20504
- user-select: none;
20523
+ ${userSelectNone}
20505
20524
  color: ${bodyDisabledFontColor};
20506
20525
  }
20507
20526
 
@@ -23676,7 +23695,7 @@
23676
23695
  :host {
23677
23696
  font: ${bodyFont};
23678
23697
  outline: none;
23679
- user-select: none;
23698
+ ${userSelectNone}
23680
23699
  color: ${bodyFontColor};
23681
23700
  --ni-private-hover-indicator-width: calc(${borderWidth} + 1px);
23682
23701
  --ni-private-height-within-border: calc(
@@ -23728,7 +23747,7 @@
23728
23747
  content: ' ';
23729
23748
  color: transparent;
23730
23749
  width: 0px;
23731
- user-select: none;
23750
+ ${userSelectNone}
23732
23751
  }
23733
23752
 
23734
23753
  .root::after {
@@ -28814,7 +28833,7 @@
28814
28833
 
28815
28834
  .group-header-view {
28816
28835
  padding-left: calc(${standardPadding} / 2);
28817
- user-select: none;
28836
+ ${userSelectNone}
28818
28837
  overflow: hidden;
28819
28838
  display: flex;
28820
28839
  }
@@ -28822,7 +28841,7 @@
28822
28841
  .group-row-child-count {
28823
28842
  padding-left: 2px;
28824
28843
  pointer-events: none;
28825
- user-select: none;
28844
+ ${userSelectNone}
28826
28845
  }
28827
28846
 
28828
28847
  @media (prefers-reduced-motion) {
@@ -31298,7 +31317,7 @@
31298
31317
  :host {
31299
31318
  font: ${bodyFont};
31300
31319
  outline: none;
31301
- user-select: none;
31320
+ ${userSelectNone}
31302
31321
  color: ${bodyFontColor};
31303
31322
  flex-direction: column;
31304
31323
  vertical-align: top;
@@ -31644,8 +31663,7 @@
31644
31663
  :host {
31645
31664
  font: ${bodyFont};
31646
31665
  outline: none;
31647
- user-select: none;
31648
- --webkit-user-select: none;
31666
+ ${userSelectNone}
31649
31667
  color: ${bodyFontColor};
31650
31668
  --ni-private-hover-indicator-width: calc(${borderWidth} + 1px);
31651
31669
  --ni-private-height-within-border: calc(
@@ -31707,7 +31725,7 @@
31707
31725
  content: ' ';
31708
31726
  color: transparent;
31709
31727
  width: 0px;
31710
- user-select: none;
31728
+ ${userSelectNone}
31711
31729
  }
31712
31730
 
31713
31731
  :host([appearance='frameless'][full-bleed]) .root::before {
@@ -31719,7 +31737,7 @@
31719
31737
  content: ' ';
31720
31738
  color: transparent;
31721
31739
  width: 0px;
31722
- user-select: none;
31740
+ ${userSelectNone}
31723
31741
  }
31724
31742
 
31725
31743
  :host([appearance='frameless'][full-bleed]) .root::after {
@@ -32264,7 +32282,7 @@
32264
32282
  padding-left: 10px;
32265
32283
  font: inherit;
32266
32284
  font-size: ${bodyFontSize};
32267
- user-select: none;
32285
+ ${userSelectNone}
32268
32286
  position: relative;
32269
32287
  margin-inline-start: ${iconSize};
32270
32288
  }