@ni/spright-components 1.0.6 → 1.0.7
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.
|
@@ -16304,7 +16304,7 @@
|
|
|
16304
16304
|
|
|
16305
16305
|
/**
|
|
16306
16306
|
* Do not edit directly
|
|
16307
|
-
* Generated on
|
|
16307
|
+
* Generated on Tue, 28 May 2024 20:00:12 GMT
|
|
16308
16308
|
*/
|
|
16309
16309
|
|
|
16310
16310
|
const Information100DarkUi = "#a46eff";
|
|
@@ -17239,6 +17239,15 @@
|
|
|
17239
17239
|
ghost: 'ghost',
|
|
17240
17240
|
block: 'block'
|
|
17241
17241
|
};
|
|
17242
|
+
/**
|
|
17243
|
+
* Types of button appearance variants.
|
|
17244
|
+
* @public
|
|
17245
|
+
*/
|
|
17246
|
+
const ButtonAppearanceVariant = {
|
|
17247
|
+
default: undefined,
|
|
17248
|
+
primary: 'primary',
|
|
17249
|
+
accent: 'accent'
|
|
17250
|
+
};
|
|
17242
17251
|
|
|
17243
17252
|
/**
|
|
17244
17253
|
* A behavior to add or remove a stylesheet from an element based on a property. The behavior ensures that
|
|
@@ -18712,8 +18721,6 @@
|
|
|
18712
18721
|
font-size: 12.8px;
|
|
18713
18722
|
align-items: top;
|
|
18714
18723
|
overflow: hidden;
|
|
18715
|
-
color: ${White};
|
|
18716
|
-
${iconColor.cssCustomProperty}: ${hexToRgbaCssColor(White, 0.6)};
|
|
18717
18724
|
}
|
|
18718
18725
|
|
|
18719
18726
|
:host(:not([open])) {
|
|
@@ -18721,6 +18728,7 @@
|
|
|
18721
18728
|
}
|
|
18722
18729
|
|
|
18723
18730
|
.container {
|
|
18731
|
+
color: ${bodyFontColor};
|
|
18724
18732
|
display: flex;
|
|
18725
18733
|
width: 100%;
|
|
18726
18734
|
}
|
|
@@ -18731,6 +18739,7 @@
|
|
|
18731
18739
|
justify-content: center;
|
|
18732
18740
|
margin-top: 8px;
|
|
18733
18741
|
flex: 0 0 auto;
|
|
18742
|
+
opacity: 0.6;
|
|
18734
18743
|
}
|
|
18735
18744
|
|
|
18736
18745
|
.text {
|
|
@@ -18757,6 +18766,8 @@
|
|
|
18757
18766
|
align-items: center;
|
|
18758
18767
|
justify-content: center;
|
|
18759
18768
|
align-self: flex-start;
|
|
18769
|
+
margin-top: ${smallPadding};
|
|
18770
|
+
${controlHeight.cssCustomProperty}: ${controlSlimHeight};
|
|
18760
18771
|
}
|
|
18761
18772
|
|
|
18762
18773
|
slot[name='action'] {
|
|
@@ -18767,44 +18778,14 @@
|
|
|
18767
18778
|
}
|
|
18768
18779
|
|
|
18769
18780
|
slot[name='action']::slotted(nimble-anchor) {
|
|
18770
|
-
${linkFontColor.cssCustomProperty}: ${White};
|
|
18771
|
-
${linkDisabledFontColor.cssCustomProperty}: ${White};
|
|
18772
|
-
${linkActiveFontColor.cssCustomProperty}: ${hexToRgbaCssColor(White, 0.6)};
|
|
18773
18781
|
font-size: 12.8px;
|
|
18774
18782
|
}
|
|
18775
18783
|
|
|
18776
|
-
slot[name='action']::slotted(nimble-button) {
|
|
18777
|
-
${controlHeight.cssCustomProperty}: ${controlSlimHeight};
|
|
18778
|
-
${buttonLabelFontColor.cssCustomProperty}: ${White};
|
|
18779
|
-
${fillSelectedColor.cssCustomProperty}: ${hexToRgbaCssColor(White, 0.2)};
|
|
18780
|
-
${borderHoverColor.cssCustomProperty}: ${White};
|
|
18781
|
-
}
|
|
18782
|
-
|
|
18783
|
-
slot[name='action']::slotted(nimble-button[appearance='outline']) {
|
|
18784
|
-
${actionRgbPartialColor.cssCustomProperty}: ${White}
|
|
18785
|
-
}
|
|
18786
|
-
|
|
18787
18784
|
.dismiss {
|
|
18788
18785
|
width: 48px;
|
|
18789
18786
|
display: flex;
|
|
18790
18787
|
justify-content: center;
|
|
18791
18788
|
}
|
|
18792
|
-
|
|
18793
|
-
.dismiss nimble-button {
|
|
18794
|
-
${controlHeight.cssCustomProperty}: 16px;
|
|
18795
|
-
${iconSize.cssCustomProperty}: 14px;
|
|
18796
|
-
${buttonLabelFontColor.cssCustomProperty}: ${White};
|
|
18797
|
-
${borderHoverColor.cssCustomProperty}: transparent;
|
|
18798
|
-
${fillSelectedColor.cssCustomProperty}: ${hexToRgbaCssColor(White, 0.2)};
|
|
18799
|
-
}
|
|
18800
|
-
|
|
18801
|
-
.dismiss nimble-button:focus-within {
|
|
18802
|
-
outline: 2px solid ${White};
|
|
18803
|
-
}
|
|
18804
|
-
|
|
18805
|
-
.dismiss nimble-button:hover {
|
|
18806
|
-
background: ${hexToRgbaCssColor(White, 0.2)};
|
|
18807
|
-
}
|
|
18808
18789
|
`.withBehaviors(themeBehavior(Theme.light, css `
|
|
18809
18790
|
:host {
|
|
18810
18791
|
background: ${Black75};
|
|
@@ -19802,15 +19783,15 @@
|
|
|
19802
19783
|
// AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
|
|
19803
19784
|
// See generation source in nimble-components/build/generate-icons
|
|
19804
19785
|
/**
|
|
19805
|
-
* The icon component for the '
|
|
19786
|
+
* The icon component for the 'times' icon
|
|
19806
19787
|
*/
|
|
19807
|
-
class
|
|
19788
|
+
class IconTimes extends Icon {
|
|
19808
19789
|
constructor() {
|
|
19809
|
-
super(
|
|
19790
|
+
super(times16X16);
|
|
19810
19791
|
}
|
|
19811
19792
|
}
|
|
19812
|
-
registerIcon('icon-
|
|
19813
|
-
const
|
|
19793
|
+
registerIcon('icon-times', IconTimes);
|
|
19794
|
+
const iconTimesTag = 'nimble-icon-times';
|
|
19814
19795
|
|
|
19815
19796
|
/**
|
|
19816
19797
|
* Severities of banners.
|
|
@@ -19869,56 +19850,58 @@
|
|
|
19869
19850
|
|
|
19870
19851
|
// prettier-ignore
|
|
19871
19852
|
const template$z = html `
|
|
19872
|
-
|
|
19873
|
-
|
|
19874
|
-
|
|
19875
|
-
|
|
19876
|
-
|
|
19877
|
-
|
|
19878
|
-
|
|
19879
|
-
|
|
19880
|
-
|
|
19881
|
-
|
|
19882
|
-
|
|
19883
|
-
|
|
19884
|
-
|
|
19885
|
-
|
|
19886
|
-
|
|
19887
|
-
|
|
19888
|
-
|
|
19889
|
-
|
|
19890
|
-
|
|
19891
|
-
|
|
19892
|
-
|
|
19893
|
-
|
|
19894
|
-
|
|
19895
|
-
|
|
19896
|
-
|
|
19897
|
-
|
|
19898
|
-
|
|
19899
|
-
|
|
19900
|
-
|
|
19901
|
-
|
|
19902
|
-
${when(x => x.severity === BannerSeverity.information, html `
|
|
19903
|
-
<${iconInfoTag} role="img" aria-label="${x => popupIconInformationLabel.getValueFor(x)}"></${iconInfoTag}>
|
|
19904
|
-
`)}
|
|
19905
|
-
</div>
|
|
19906
|
-
<div class="text">
|
|
19907
|
-
<slot name="title" id="titleSlot"></slot>
|
|
19908
|
-
<slot></slot>
|
|
19909
|
-
</div>
|
|
19910
|
-
<div class="controls">
|
|
19911
|
-
<slot name="action"></slot>
|
|
19912
|
-
<div class="dismiss">
|
|
19913
|
-
${when(x => !x.preventDismiss, html `
|
|
19914
|
-
<${buttonTag} appearance="ghost" content-hidden @click="${x => x.dismissBanner()}">
|
|
19915
|
-
<${iconXmarkTag} slot="start"></${iconXmarkTag}>
|
|
19916
|
-
${x => popupDismissLabel.getValueFor(x)}
|
|
19917
|
-
</${buttonTag}>
|
|
19853
|
+
<${themeProviderTag} theme="${Theme.color}">
|
|
19854
|
+
<div class="container"
|
|
19855
|
+
role="status"
|
|
19856
|
+
aria-atomic="${x => x.ariaAtomic}"
|
|
19857
|
+
aria-busy="${x => x.ariaBusy}"
|
|
19858
|
+
aria-controls="${x => x.ariaControls}"
|
|
19859
|
+
aria-current="${x => x.ariaCurrent}"
|
|
19860
|
+
aria-describedby="${x => x.ariaDescribedby}"
|
|
19861
|
+
aria-details="${x => x.ariaDetails}"
|
|
19862
|
+
aria-disabled="${x => x.ariaDisabled}"
|
|
19863
|
+
aria-errormessage="${x => x.ariaErrormessage}"
|
|
19864
|
+
aria-expanded="${x => x.ariaExpanded}"
|
|
19865
|
+
aria-flowto="${x => x.ariaFlowto}"
|
|
19866
|
+
aria-haspopup="${x => x.ariaHaspopup}"
|
|
19867
|
+
aria-hidden="${x => x.ariaHidden}"
|
|
19868
|
+
aria-invalid="${x => x.ariaInvalid}"
|
|
19869
|
+
aria-keyshortcuts="${x => x.ariaKeyshortcuts}"
|
|
19870
|
+
aria-label="${x => x.ariaLabel}"
|
|
19871
|
+
aria-labelledby="titleSlot"
|
|
19872
|
+
aria-live="${x => x.ariaLive}"
|
|
19873
|
+
aria-owns="${x => x.ariaOwns}"
|
|
19874
|
+
aria-relevant="${x => x.ariaRelevant}"
|
|
19875
|
+
aria-roledescription="${x => x.ariaRoledescription}"
|
|
19876
|
+
>
|
|
19877
|
+
<div class="icon">
|
|
19878
|
+
${when(x => x.severity === BannerSeverity.error, html `
|
|
19879
|
+
<${iconExclamationMarkTag} role="img" aria-label="${x => popupIconErrorLabel.getValueFor(x)}"></${iconExclamationMarkTag}>
|
|
19880
|
+
`)}
|
|
19881
|
+
${when(x => x.severity === BannerSeverity.warning, html `
|
|
19882
|
+
<${iconTriangleFilledTag} role="img" aria-label="${x => popupIconWarningLabel.getValueFor(x)}"></${iconTriangleFilledTag}>
|
|
19918
19883
|
`)}
|
|
19884
|
+
${when(x => x.severity === BannerSeverity.information, html `
|
|
19885
|
+
<${iconInfoTag} role="img" aria-label="${x => popupIconInformationLabel.getValueFor(x)}"></${iconInfoTag}>
|
|
19886
|
+
`)}
|
|
19887
|
+
</div>
|
|
19888
|
+
<div class="text">
|
|
19889
|
+
<slot name="title" id="titleSlot"></slot>
|
|
19890
|
+
<slot></slot>
|
|
19891
|
+
</div>
|
|
19892
|
+
<div class="controls">
|
|
19893
|
+
<slot name="action"></slot>
|
|
19894
|
+
<div class="dismiss">
|
|
19895
|
+
${when(x => !x.preventDismiss, html `
|
|
19896
|
+
<${buttonTag} appearance="${ButtonAppearance.ghost}" appearance-variant="${ButtonAppearanceVariant.primary}" content-hidden @click="${x => x.dismissBanner()}">
|
|
19897
|
+
<${iconTimesTag} slot="start"></${iconTimesTag}>
|
|
19898
|
+
${x => popupDismissLabel.getValueFor(x)}
|
|
19899
|
+
</${buttonTag}>
|
|
19900
|
+
`)}
|
|
19901
|
+
</div>
|
|
19919
19902
|
</div>
|
|
19920
19903
|
</div>
|
|
19921
|
-
|
|
19904
|
+
</${themeProviderTag}>
|
|
19922
19905
|
`;
|
|
19923
19906
|
|
|
19924
19907
|
/**
|
|
@@ -24327,19 +24310,6 @@
|
|
|
24327
24310
|
}
|
|
24328
24311
|
registerIcon('icon-tile-size', IconTileSize);
|
|
24329
24312
|
|
|
24330
|
-
// AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
|
|
24331
|
-
// See generation source in nimble-components/build/generate-icons
|
|
24332
|
-
/**
|
|
24333
|
-
* The icon component for the 'times' icon
|
|
24334
|
-
*/
|
|
24335
|
-
class IconTimes extends Icon {
|
|
24336
|
-
constructor() {
|
|
24337
|
-
super(times16X16);
|
|
24338
|
-
}
|
|
24339
|
-
}
|
|
24340
|
-
registerIcon('icon-times', IconTimes);
|
|
24341
|
-
const iconTimesTag = 'nimble-icon-times';
|
|
24342
|
-
|
|
24343
24313
|
// AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
|
|
24344
24314
|
// See generation source in nimble-components/build/generate-icons
|
|
24345
24315
|
/**
|
|
@@ -24558,6 +24528,18 @@
|
|
|
24558
24528
|
}
|
|
24559
24529
|
registerIcon('icon-wrench-hammer', IconWrenchHammer);
|
|
24560
24530
|
|
|
24531
|
+
// AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
|
|
24532
|
+
// See generation source in nimble-components/build/generate-icons
|
|
24533
|
+
/**
|
|
24534
|
+
* The icon component for the 'xmark' icon
|
|
24535
|
+
*/
|
|
24536
|
+
class IconXmark extends Icon {
|
|
24537
|
+
constructor() {
|
|
24538
|
+
super(xmark16X16);
|
|
24539
|
+
}
|
|
24540
|
+
}
|
|
24541
|
+
registerIcon('icon-xmark', IconXmark);
|
|
24542
|
+
|
|
24561
24543
|
// AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
|
|
24562
24544
|
// See generation source in nimble-components/build/generate-icons
|
|
24563
24545
|
/**
|