@ni/nimble-components 8.6.0 → 8.6.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.
- package/dist/all-components-bundle.js +13 -6
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +4 -3
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/drawer/index.js +9 -3
- package/dist/esm/drawer/index.js.map +1 -1
- package/dist/esm/nimble-components/src/theme-provider/design-tokens.d.ts +1 -1
- package/dist/esm/theme-provider/design-tokens.d.ts +1 -1
- package/dist/esm/theme-provider/design-tokens.js +2 -2
- package/dist/esm/theme-provider/design-tokens.js.map +1 -1
- package/package.json +2 -2
|
@@ -12232,7 +12232,7 @@
|
|
|
12232
12232
|
|
|
12233
12233
|
/**
|
|
12234
12234
|
* Do not edit directly
|
|
12235
|
-
* Generated on Tue,
|
|
12235
|
+
* Generated on Tue, 10 May 2022 14:21:51 GMT
|
|
12236
12236
|
*/
|
|
12237
12237
|
const Warning100DarkUi = "#ff8126";
|
|
12238
12238
|
const Pass100LightUi = "#009921";
|
|
@@ -12315,8 +12315,9 @@
|
|
|
12315
12315
|
const BodyEmphasizedLineHeight = "18px";
|
|
12316
12316
|
const ButtonLabel1LineHeight = "16px";
|
|
12317
12317
|
const TooltipCaptionLineHeight = "14px";
|
|
12318
|
-
const SmallDelay = "0.
|
|
12318
|
+
const SmallDelay = "0.075s"; // Short animation delay used for control state change animation
|
|
12319
12319
|
const MediumDelay = "0.15s"; // Medium animation delay for control state change animation
|
|
12320
|
+
const LargeDelay = "0.25s"; // Long animation delay used for control state change animation
|
|
12320
12321
|
|
|
12321
12322
|
const hexCharacters = 'a-f\\d';
|
|
12322
12323
|
const match3or4Hex = `#?[${hexCharacters}]{3}[${hexCharacters}]?`;
|
|
@@ -12686,7 +12687,7 @@
|
|
|
12686
12687
|
// Animation Tokens
|
|
12687
12688
|
const smallDelay = DesignToken.create(styleNameFromTokenName(tokenNames.smallDelay)).withDefault(SmallDelay);
|
|
12688
12689
|
const mediumDelay = DesignToken.create(styleNameFromTokenName(tokenNames.mediumDelay)).withDefault(MediumDelay);
|
|
12689
|
-
const largeDelay = DesignToken.create(styleNameFromTokenName(tokenNames.largeDelay)).withDefault(
|
|
12690
|
+
const largeDelay = DesignToken.create(styleNameFromTokenName(tokenNames.largeDelay)).withDefault(LargeDelay);
|
|
12690
12691
|
// Private helpers functions
|
|
12691
12692
|
function hexToRgbPartial(hexValue) {
|
|
12692
12693
|
const { red, green, blue } = hexRgb(hexValue);
|
|
@@ -15401,9 +15402,15 @@
|
|
|
15401
15402
|
}
|
|
15402
15403
|
updateAnimationDuration() {
|
|
15403
15404
|
const disableAnimations = prefersReducedMotionMediaQuery.matches;
|
|
15404
|
-
|
|
15405
|
-
|
|
15406
|
-
|
|
15405
|
+
if (disableAnimations) {
|
|
15406
|
+
this.animationDurationMilliseconds = animationDurationWhenDisabledMilliseconds;
|
|
15407
|
+
}
|
|
15408
|
+
else {
|
|
15409
|
+
// string ends in 's' unit specifier
|
|
15410
|
+
const secondsString = largeDelay.getValueFor(this);
|
|
15411
|
+
const secondsNumber = parseFloat(secondsString);
|
|
15412
|
+
this.animationDurationMilliseconds = 1000 * secondsNumber;
|
|
15413
|
+
}
|
|
15407
15414
|
}
|
|
15408
15415
|
animateOpening() {
|
|
15409
15416
|
this.animateOpenClose(true);
|