@ni/nimble-components 8.4.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 +44 -13
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +35 -10
- 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/menu-button/index.d.ts +50 -0
- package/dist/esm/menu-button/index.js +154 -0
- package/dist/esm/menu-button/index.js.map +1 -0
- package/dist/esm/menu-button/styles.d.ts +1 -0
- package/dist/esm/menu-button/styles.js +29 -0
- package/dist/esm/menu-button/styles.js.map +1 -0
- package/dist/esm/menu-button/template.d.ts +2 -0
- package/dist/esm/menu-button/template.js +48 -0
- package/dist/esm/menu-button/template.js.map +1 -0
- package/dist/esm/menu-button/types.d.ts +15 -0
- package/dist/esm/menu-button/types.js +11 -0
- package/dist/esm/menu-button/types.js.map +1 -0
- package/dist/esm/nimble-components/src/menu-button/index.d.ts +50 -0
- package/dist/esm/nimble-components/src/menu-button/styles.d.ts +1 -0
- package/dist/esm/nimble-components/src/menu-button/template.d.ts +2 -0
- package/dist/esm/nimble-components/src/menu-button/types.d.ts +15 -0
- package/dist/esm/nimble-components/src/theme-provider/design-tokens.d.ts +1 -1
- package/dist/esm/text-field/styles.js +31 -7
- package/dist/esm/text-field/styles.js.map +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);
|
|
@@ -18211,6 +18218,7 @@
|
|
|
18211
18218
|
--ni-private-hover-bottom-border-width: 2px;
|
|
18212
18219
|
border: 0px solid rgba(${borderRgbPartialColor}, 0.3);
|
|
18213
18220
|
border-bottom-width: var(--ni-private-bottom-border-width);
|
|
18221
|
+
gap: calc(${standardPadding} / 2);
|
|
18214
18222
|
padding-bottom: calc(
|
|
18215
18223
|
var(--ni-private-hover-bottom-border-width) -
|
|
18216
18224
|
var(--ni-private-bottom-border-width)
|
|
@@ -18254,12 +18262,40 @@
|
|
|
18254
18262
|
border-bottom-color: ${borderHoverColor};
|
|
18255
18263
|
}
|
|
18256
18264
|
|
|
18265
|
+
:host([appearance='frameless'].clear-inline-padding) .root {
|
|
18266
|
+
padding-left: 0px;
|
|
18267
|
+
padding-right: 0px;
|
|
18268
|
+
}
|
|
18269
|
+
|
|
18270
|
+
.root::before {
|
|
18271
|
+
${ /* Empty string causes alignment issue */''}
|
|
18272
|
+
content: ' ';
|
|
18273
|
+
color: transparent;
|
|
18274
|
+
width: 0px;
|
|
18275
|
+
user-select: none;
|
|
18276
|
+
}
|
|
18277
|
+
|
|
18278
|
+
:host([appearance='frameless'].clear-inline-padding) .root::before {
|
|
18279
|
+
display: none;
|
|
18280
|
+
}
|
|
18281
|
+
|
|
18282
|
+
.root::after {
|
|
18283
|
+
${ /* Empty string causes alignment issue */''}
|
|
18284
|
+
content: ' ';
|
|
18285
|
+
color: transparent;
|
|
18286
|
+
width: 0px;
|
|
18287
|
+
user-select: none;
|
|
18288
|
+
}
|
|
18289
|
+
|
|
18290
|
+
:host([appearance='frameless'].clear-inline-padding) .root::after {
|
|
18291
|
+
display: none;
|
|
18292
|
+
}
|
|
18293
|
+
|
|
18257
18294
|
[part='start'] {
|
|
18258
18295
|
display: contents;
|
|
18259
18296
|
}
|
|
18260
18297
|
|
|
18261
18298
|
slot[name='start']::slotted(*) {
|
|
18262
|
-
margin-left: calc(${standardPadding} / 2);
|
|
18263
18299
|
flex: none;
|
|
18264
18300
|
}
|
|
18265
18301
|
|
|
@@ -18268,8 +18304,7 @@
|
|
|
18268
18304
|
font: inherit;
|
|
18269
18305
|
background: transparent;
|
|
18270
18306
|
color: inherit;
|
|
18271
|
-
padding
|
|
18272
|
-
padding-bottom: 0px;
|
|
18307
|
+
padding: 0px;
|
|
18273
18308
|
height: calc(
|
|
18274
18309
|
${controlHeight} - ${borderWidth} -
|
|
18275
18310
|
var(--ni-private-hover-bottom-border-width)
|
|
@@ -18277,8 +18312,6 @@
|
|
|
18277
18312
|
width: 100%;
|
|
18278
18313
|
margin-top: auto;
|
|
18279
18314
|
margin-bottom: auto;
|
|
18280
|
-
padding-left: calc(${standardPadding} / 2);
|
|
18281
|
-
padding-right: calc(${standardPadding} / 2);
|
|
18282
18315
|
border: none;
|
|
18283
18316
|
text-overflow: ellipsis;
|
|
18284
18317
|
}
|
|
@@ -18322,7 +18355,6 @@
|
|
|
18322
18355
|
:host(.invalid) .error-content svg {
|
|
18323
18356
|
height: ${iconSize};
|
|
18324
18357
|
width: ${iconSize};
|
|
18325
|
-
padding-right: 8px;
|
|
18326
18358
|
flex: none;
|
|
18327
18359
|
}
|
|
18328
18360
|
|
|
@@ -18363,7 +18395,6 @@
|
|
|
18363
18395
|
}
|
|
18364
18396
|
|
|
18365
18397
|
slot[name='actions']::slotted(*) {
|
|
18366
|
-
margin-right: 8px;
|
|
18367
18398
|
${controlHeight.cssCustomProperty}: 24px;
|
|
18368
18399
|
}
|
|
18369
18400
|
`.withBehaviors(appearanceBehavior(TextFieldAppearance.Underline, css `
|