@ni/spright-components 6.23.1 → 6.23.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.
|
@@ -14916,6 +14916,7 @@
|
|
|
14916
14916
|
linkActiveProminentFont: 'link-active-prominent-font',
|
|
14917
14917
|
placeholderFont: 'placeholder-font',
|
|
14918
14918
|
bodyFont: 'body-font',
|
|
14919
|
+
codeFont: 'code-font',
|
|
14919
14920
|
bodyEmphasizedFont: 'body-emphasized-font',
|
|
14920
14921
|
bodyPlus1Font: 'body-plus-1-font',
|
|
14921
14922
|
bodyPlus1EmphasizedFont: 'body-plus-1-emphasized-font',
|
|
@@ -16324,6 +16325,8 @@
|
|
|
16324
16325
|
const ControlLabel1Weight = "600";
|
|
16325
16326
|
const BodyFamily = "Source Sans Pro";
|
|
16326
16327
|
const BodyWeight = "400";
|
|
16328
|
+
const CodeFamily = "Noto Sans Mono";
|
|
16329
|
+
const CodeWeight = "400";
|
|
16327
16330
|
const Body2Family = "Source Sans Pro";
|
|
16328
16331
|
const Body2Weight = "400";
|
|
16329
16332
|
const GroupLabel1Family = "Source Sans Pro";
|
|
@@ -16359,6 +16362,7 @@
|
|
|
16359
16362
|
const Title2Size = "22px";
|
|
16360
16363
|
const ControlLabel1Size = "11px";
|
|
16361
16364
|
const BodySize = "14px";
|
|
16365
|
+
const CodeSize = "13px";
|
|
16362
16366
|
const Body2Size = "16px";
|
|
16363
16367
|
const GroupLabel1Size = "11px";
|
|
16364
16368
|
const ButtonLabel1Size = "14px";
|
|
@@ -16537,6 +16541,7 @@
|
|
|
16537
16541
|
...createFont('linkActiveProminent', createThemeColor(DigitalGreenLight, DigitalGreenLight, hexToRgbaCssColor(White, 0.75)), hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), LinkLightUiFamily, LinkLightUiWeight, LinkLightUiSize, LinkLineHeight),
|
|
16538
16542
|
...createFont('placeholder', hexToRgbaCssThemeColor(alias.defaultFontColor, 0.6, 0.6, 0.6), hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), PlaceholderFamily, PlaceholderWeight, PlaceholderSize, PlaceholderLineHeight),
|
|
16539
16543
|
...createFont('body', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), BodyFamily, BodyWeight, BodySize, BodyLineHeight),
|
|
16544
|
+
...createFont('code', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), CodeFamily, CodeWeight, CodeSize, BodyLineHeight),
|
|
16540
16545
|
...createFont('bodyEmphasized', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), BodyEmphasizedFamily, BodyEmphasizedWeight, BodyEmphasizedSize, BodyEmphasizedLineHeight),
|
|
16541
16546
|
...createFont('bodyPlus1', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), Body2Family, Body2Weight, Body2Size, Body2LineHeight),
|
|
16542
16547
|
...createFont('bodyPlus1Emphasized', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), BodyEmphasized2Family, BodyEmphasized2Weight, BodyEmphasized2Size, BodyEmphasized2LineHeight),
|
|
@@ -16720,6 +16725,7 @@
|
|
|
16720
16725
|
const [linkActiveProminentFont, linkActiveProminentFontColor] = createFontTokens(tokenNames.linkActiveProminentFont, tokenValues.linkActiveProminentFont, tokenValues.linkActiveProminentFontColor, tokenValues.linkActiveProminentDisabledFontColor, tokenValues.linkActiveProminentFontFamily, tokenValues.linkActiveProminentFontWeight, tokenValues.linkActiveProminentFontSize, tokenValues.linkActiveProminentFontLineHeight);
|
|
16721
16726
|
const [placeholderFont, placeholderFontColor] = createFontTokens(tokenNames.placeholderFont, tokenValues.placeholderFont, tokenValues.placeholderFontColor, tokenValues.placeholderDisabledFontColor, tokenValues.placeholderFontFamily, tokenValues.placeholderFontWeight, tokenValues.placeholderFontSize, tokenValues.placeholderFontLineHeight);
|
|
16722
16727
|
const [bodyFont, bodyFontColor, bodyDisabledFontColor, bodyFontFamily, bodyFontWeight, bodyFontSize, bodyFontLineHeight] = createFontTokens(tokenNames.bodyFont, tokenValues.bodyFont, tokenValues.bodyFontColor, tokenValues.bodyDisabledFontColor, tokenValues.bodyFontFamily, tokenValues.bodyFontWeight, tokenValues.bodyFontSize, tokenValues.bodyFontLineHeight);
|
|
16728
|
+
createFontTokens(tokenNames.codeFont, tokenValues.codeFont, tokenValues.codeFontColor, tokenValues.codeDisabledFontColor, tokenValues.codeFontFamily, tokenValues.codeFontWeight, tokenValues.codeFontSize, tokenValues.codeFontLineHeight);
|
|
16723
16729
|
const [bodyEmphasizedFont, bodyEmphasizedFontColor, bodyEmphasizedDisabledFontColor, bodyEmphasizedFontFamily, bodyEmphasizedFontWeight] = createFontTokens(tokenNames.bodyEmphasizedFont, tokenValues.bodyEmphasizedFont, tokenValues.bodyEmphasizedFontColor, tokenValues.bodyEmphasizedDisabledFontColor, tokenValues.bodyEmphasizedFontFamily, tokenValues.bodyEmphasizedFontWeight, tokenValues.bodyEmphasizedFontSize, tokenValues.bodyEmphasizedFontLineHeight);
|
|
16724
16730
|
createFontTokens(tokenNames.bodyPlus1Font, tokenValues.bodyPlus1Font, tokenValues.bodyPlus1FontColor, tokenValues.bodyPlus1DisabledFontColor, tokenValues.bodyPlus1FontFamily, tokenValues.bodyPlus1FontWeight, tokenValues.bodyPlus1FontSize, tokenValues.bodyPlus1FontLineHeight);
|
|
16725
16731
|
createFontTokens(tokenNames.bodyPlus1EmphasizedFont, tokenValues.bodyPlus1EmphasizedFont, tokenValues.bodyPlus1EmphasizedFontColor, tokenValues.bodyPlus1EmphasizedDisabledFontColor, tokenValues.bodyPlus1EmphasizedFontFamily, tokenValues.bodyPlus1EmphasizedFontWeight, tokenValues.bodyPlus1EmphasizedFontSize, tokenValues.bodyPlus1EmphasizedFontLineHeight);
|
|
@@ -20872,18 +20878,27 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
20872
20878
|
}
|
|
20873
20879
|
|
|
20874
20880
|
.icon {
|
|
20875
|
-
|
|
20876
|
-
|
|
20877
|
-
justify-content: center;
|
|
20878
|
-
margin-top: 8px;
|
|
20881
|
+
display: none;
|
|
20882
|
+
margin: 8px ${smallPadding} 0 ${standardPadding};
|
|
20879
20883
|
flex: 0 0 auto;
|
|
20880
20884
|
opacity: 0.6;
|
|
20881
20885
|
}
|
|
20882
20886
|
|
|
20887
|
+
:host([severity='error']) .icon,
|
|
20888
|
+
:host([severity='warning']) .icon,
|
|
20889
|
+
:host([severity='information']) .icon {
|
|
20890
|
+
display: flex;
|
|
20891
|
+
}
|
|
20892
|
+
|
|
20883
20893
|
.text {
|
|
20884
20894
|
display: inline;
|
|
20885
|
-
margin
|
|
20886
|
-
|
|
20895
|
+
margin: 7px 0 7px ${standardPadding};
|
|
20896
|
+
}
|
|
20897
|
+
|
|
20898
|
+
:host([severity='error']) .text,
|
|
20899
|
+
:host([severity='warning']) .text,
|
|
20900
|
+
:host([severity='information']) .text {
|
|
20901
|
+
margin-left: 0;
|
|
20887
20902
|
}
|
|
20888
20903
|
|
|
20889
20904
|
slot[name='title'] {
|
|
@@ -20914,14 +20929,20 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
20914
20929
|
white-space: nowrap;
|
|
20915
20930
|
}
|
|
20916
20931
|
|
|
20932
|
+
:host([prevent-dismiss]) slot[name='action'] {
|
|
20933
|
+
margin-right: 12px;
|
|
20934
|
+
}
|
|
20935
|
+
|
|
20917
20936
|
slot[name='action']::slotted(nimble-anchor) {
|
|
20918
20937
|
font-size: 12.8px;
|
|
20919
20938
|
}
|
|
20920
20939
|
|
|
20921
20940
|
.dismiss {
|
|
20922
|
-
|
|
20923
|
-
|
|
20924
|
-
|
|
20941
|
+
margin: 0 12px 0 ${standardPadding};
|
|
20942
|
+
}
|
|
20943
|
+
|
|
20944
|
+
:host([prevent-dismiss]) .dismiss {
|
|
20945
|
+
display: none;
|
|
20925
20946
|
}
|
|
20926
20947
|
`.withBehaviors(themeBehavior(Theme.light, css `
|
|
20927
20948
|
:host {
|