@ni/nimble-components 21.10.2 → 22.0.0
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 +25 -25
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +3 -3
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/banner/template.js +4 -4
- package/dist/esm/banner/template.js.map +1 -1
- package/dist/esm/label-provider/core/index.d.ts +9 -9
- package/dist/esm/label-provider/core/index.js +10 -10
- package/dist/esm/label-provider/core/index.js.map +1 -1
- package/dist/esm/label-provider/core/label-token-defaults.js +3 -3
- package/dist/esm/label-provider/core/label-token-defaults.js.map +1 -1
- package/dist/esm/label-provider/core/label-tokens.d.ts +3 -3
- package/dist/esm/label-provider/core/label-tokens.js +9 -9
- package/dist/esm/label-provider/core/label-tokens.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { iconInfoTag } from '../icons/info';
|
|
|
5
5
|
import { iconTriangleFilledTag } from '../icons/triangle-filled';
|
|
6
6
|
import { iconXmarkTag } from '../icons/xmark';
|
|
7
7
|
import { BannerSeverity } from './types';
|
|
8
|
-
import {
|
|
8
|
+
import { popupIconErrorLabel, popupIconInformationLabel, popupDismissLabel, popupIconWarningLabel } from '../label-provider/core/label-tokens';
|
|
9
9
|
// prettier-ignore
|
|
10
10
|
export const template = html `
|
|
11
11
|
<div class="container"
|
|
@@ -33,13 +33,13 @@ export const template = html `
|
|
|
33
33
|
>
|
|
34
34
|
<div class="icon">
|
|
35
35
|
${when(x => x.severity === BannerSeverity.error, html `
|
|
36
|
-
<${iconExclamationMarkTag} role="img" aria-label="${x =>
|
|
36
|
+
<${iconExclamationMarkTag} role="img" aria-label="${x => popupIconErrorLabel.getValueFor(x)}"></${iconExclamationMarkTag}>
|
|
37
37
|
`)}
|
|
38
38
|
${when(x => x.severity === BannerSeverity.warning, html `
|
|
39
|
-
<${iconTriangleFilledTag} role="img" aria-label="${x =>
|
|
39
|
+
<${iconTriangleFilledTag} role="img" aria-label="${x => popupIconWarningLabel.getValueFor(x)}"></${iconTriangleFilledTag}>
|
|
40
40
|
`)}
|
|
41
41
|
${when(x => x.severity === BannerSeverity.information, html `
|
|
42
|
-
<${iconInfoTag} role="img" aria-label="${x =>
|
|
42
|
+
<${iconInfoTag} role="img" aria-label="${x => popupIconInformationLabel.getValueFor(x)}"></${iconInfoTag}>
|
|
43
43
|
`)}
|
|
44
44
|
</div>
|
|
45
45
|
<div class="text">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/banner/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EACH,
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/banner/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EA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CAAQ;mBACtD,sBAAsB,2BAA2B,CAAC,CAAC,EAAE,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,sBAAsB;aAC3H,CAAC;cACA,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,cAAc,CAAC,OAAO,EAAE,IAAI,CAAQ;mBACxD,qBAAqB,2BAA2B,CAAC,CAAC,EAAE,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,qBAAqB;aAC3H,CAAC;cACA,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,cAAc,CAAC,WAAW,EAAE,IAAI,CAAQ;mBAC5D,WAAW,2BAA2B,CAAC,CAAC,EAAE,CAAC,yBAAyB,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,WAAW;aAC3G,CAAC;;;;;;;;;kBASI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,cAAc,EAAE,IAAI,CAAQ;uBACpC,SAAS,8CAA8C,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,EAAE;2BACzE,YAAY,mBAAmB,YAAY;0BAC5C,CAAC,CAAC,EAAE,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,CAAC;wBACvC,SAAS;iBAChB,CAAC;;;;CAIjB,CAAC","sourcesContent":["import { html, when } from '@microsoft/fast-element';\nimport type { Banner } from '.';\nimport { buttonTag } from '../button';\nimport { iconExclamationMarkTag } from '../icons/exclamation-mark';\nimport { iconInfoTag } from '../icons/info';\nimport { iconTriangleFilledTag } from '../icons/triangle-filled';\nimport { iconXmarkTag } from '../icons/xmark';\nimport { BannerSeverity } from './types';\nimport {\n popupIconErrorLabel,\n popupIconInformationLabel,\n popupDismissLabel,\n popupIconWarningLabel\n} from '../label-provider/core/label-tokens';\n\n// prettier-ignore\nexport const template = html<Banner>`\n <div class=\"container\"\n role=\"status\"\n aria-atomic=\"${x => x.ariaAtomic}\"\n aria-busy=\"${x => x.ariaBusy}\"\n aria-controls=\"${x => x.ariaControls}\"\n aria-current=\"${x => x.ariaCurrent}\"\n aria-describedby=\"${x => x.ariaDescribedby}\"\n aria-details=\"${x => x.ariaDetails}\"\n aria-disabled=\"${x => x.ariaDisabled}\"\n aria-errormessage=\"${x => x.ariaErrormessage}\"\n aria-expanded=\"${x => x.ariaExpanded}\"\n aria-flowto=\"${x => x.ariaFlowto}\"\n aria-haspopup=\"${x => x.ariaHaspopup}\"\n aria-hidden=\"${x => x.ariaHidden}\"\n aria-invalid=\"${x => x.ariaInvalid}\"\n aria-keyshortcuts=\"${x => x.ariaKeyshortcuts}\"\n aria-label=\"${x => x.ariaLabel}\"\n aria-labelledby=\"titleSlot\"\n aria-live=\"${x => x.ariaLive}\"\n aria-owns=\"${x => x.ariaOwns}\"\n aria-relevant=\"${x => x.ariaRelevant}\"\n aria-roledescription=\"${x => x.ariaRoledescription}\"\n >\n <div class=\"icon\">\n ${when(x => x.severity === BannerSeverity.error, html<Banner>`\n <${iconExclamationMarkTag} role=\"img\" aria-label=\"${x => popupIconErrorLabel.getValueFor(x)}\"></${iconExclamationMarkTag}>\n `)}\n ${when(x => x.severity === BannerSeverity.warning, html<Banner>`\n <${iconTriangleFilledTag} role=\"img\" aria-label=\"${x => popupIconWarningLabel.getValueFor(x)}\"></${iconTriangleFilledTag}>\n `)}\n ${when(x => x.severity === BannerSeverity.information, html<Banner>`\n <${iconInfoTag} role=\"img\" aria-label=\"${x => popupIconInformationLabel.getValueFor(x)}\"></${iconInfoTag}>\n `)}\n </div>\n <div class=\"text\">\n <slot name=\"title\" id=\"titleSlot\"></slot>\n <slot></slot>\n </div>\n <div class=\"controls\">\n <slot name=\"action\"></slot>\n <div class=\"dismiss\">\n ${when(x => !x.preventDismiss, html<Banner>`\n <${buttonTag} appearance=\"ghost\" content-hidden @click=\"${x => x.dismissBanner()}\">\n <${iconXmarkTag} slot=\"start\"></${iconXmarkTag}>\n ${x => popupDismissLabel.getValueFor(x)}\n </${buttonTag}>\n `)}\n </div>\n </div>\n </div>\n`;\n"]}
|
|
@@ -8,9 +8,9 @@ declare const supportedLabels: {
|
|
|
8
8
|
readonly popupDismiss: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
9
9
|
readonly numericDecrement: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
10
10
|
readonly numericIncrement: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
11
|
+
readonly popupIconError: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
12
|
+
readonly popupIconWarning: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
13
|
+
readonly popupIconInformation: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
14
14
|
readonly filterSearch: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
15
15
|
readonly filterNoResults: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
16
16
|
};
|
|
@@ -21,18 +21,18 @@ export declare class LabelProviderCore extends LabelProviderBase<typeof supporte
|
|
|
21
21
|
popupDismiss: string | undefined;
|
|
22
22
|
numericDecrement: string | undefined;
|
|
23
23
|
numericIncrement: string | undefined;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
popupIconError: string | undefined;
|
|
25
|
+
popupIconWarning: string | undefined;
|
|
26
|
+
popupIconInformation: string | undefined;
|
|
27
27
|
filterSearch: string | undefined;
|
|
28
28
|
filterNoResults: string | undefined;
|
|
29
29
|
protected readonly supportedLabels: {
|
|
30
30
|
readonly popupDismiss: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
31
31
|
readonly numericDecrement: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
32
32
|
readonly numericIncrement: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
33
|
-
readonly
|
|
34
|
-
readonly
|
|
35
|
-
readonly
|
|
33
|
+
readonly popupIconError: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
34
|
+
readonly popupIconWarning: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
35
|
+
readonly popupIconInformation: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
36
36
|
readonly filterSearch: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
37
37
|
readonly filterNoResults: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
38
38
|
};
|
|
@@ -2,14 +2,14 @@ import { __decorate } from "tslib";
|
|
|
2
2
|
import { attr } from '@microsoft/fast-element';
|
|
3
3
|
import { DesignSystem } from '@microsoft/fast-foundation';
|
|
4
4
|
import { LabelProviderBase } from '../base';
|
|
5
|
-
import { popupDismissLabel, numericDecrementLabel, numericIncrementLabel,
|
|
5
|
+
import { popupDismissLabel, numericDecrementLabel, numericIncrementLabel, popupIconErrorLabel, popupIconWarningLabel, popupIconInformationLabel, filterSearchLabel, filterNoResultsLabel } from './label-tokens';
|
|
6
6
|
const supportedLabels = {
|
|
7
7
|
popupDismiss: popupDismissLabel,
|
|
8
8
|
numericDecrement: numericDecrementLabel,
|
|
9
9
|
numericIncrement: numericIncrementLabel,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
popupIconError: popupIconErrorLabel,
|
|
11
|
+
popupIconWarning: popupIconWarningLabel,
|
|
12
|
+
popupIconInformation: popupIconInformationLabel,
|
|
13
13
|
filterSearch: filterSearchLabel,
|
|
14
14
|
filterNoResults: filterNoResultsLabel
|
|
15
15
|
};
|
|
@@ -32,14 +32,14 @@ __decorate([
|
|
|
32
32
|
attr({ attribute: 'numeric-increment' })
|
|
33
33
|
], LabelProviderCore.prototype, "numericIncrement", void 0);
|
|
34
34
|
__decorate([
|
|
35
|
-
attr({ attribute: '
|
|
36
|
-
], LabelProviderCore.prototype, "
|
|
35
|
+
attr({ attribute: 'popup-icon-error' })
|
|
36
|
+
], LabelProviderCore.prototype, "popupIconError", void 0);
|
|
37
37
|
__decorate([
|
|
38
|
-
attr({ attribute: '
|
|
39
|
-
], LabelProviderCore.prototype, "
|
|
38
|
+
attr({ attribute: 'popup-icon-warning' })
|
|
39
|
+
], LabelProviderCore.prototype, "popupIconWarning", void 0);
|
|
40
40
|
__decorate([
|
|
41
|
-
attr({ attribute: '
|
|
42
|
-
], LabelProviderCore.prototype, "
|
|
41
|
+
attr({ attribute: 'popup-icon-information' })
|
|
42
|
+
], LabelProviderCore.prototype, "popupIconInformation", void 0);
|
|
43
43
|
__decorate([
|
|
44
44
|
attr({ attribute: 'filter-search' })
|
|
45
45
|
], LabelProviderCore.prototype, "filterSearch", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/label-provider/core/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAmB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EACH,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/label-provider/core/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAmB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EACH,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EACjB,oBAAoB,EACvB,MAAM,gBAAgB,CAAC;AAQxB,MAAM,eAAe,GAAG;IACpB,YAAY,EAAE,iBAAiB;IAC/B,gBAAgB,EAAE,qBAAqB;IACvC,gBAAgB,EAAE,qBAAqB;IACvC,cAAc,EAAE,mBAAmB;IACnC,gBAAgB,EAAE,qBAAqB;IACvC,oBAAoB,EAAE,yBAAyB;IAC/C,YAAY,EAAE,iBAAiB;IAC/B,eAAe,EAAE,oBAAoB;CAC/B,CAAC;AAEX;;GAEG;AACH,MAAM,OAAO,iBACT,SAAQ,iBAAyC;IADrD;;QA2BgC,oBAAe,GAAG,eAAe,CAAC;IAClE,CAAC;CAAA;AAxBG;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;uDACG;AAGxC;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAAC;2DACG;AAG5C;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAAC;2DACG;AAG5C;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;yDACE;AAG1C;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC;2DACE;AAG5C;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,wBAAwB,EAAE,CAAC;+DACE;AAGhD;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;uDACG;AAGxC;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAAC;0DACE;AAK/C,MAAM,uBAAuB,GAAG,iBAAiB,CAAC,OAAO,CAAC;IACtD,QAAQ,EAAE,qBAAqB;CAClC,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE;KACrB,UAAU,CAAC,QAAQ,CAAC;KACpB,QAAQ,CAAC,uBAAuB,EAAE,CAAC,CAAC;AACzC,MAAM,CAAC,MAAM,oBAAoB,GAAG,4BAA4B,CAAC","sourcesContent":["import { attr } from '@microsoft/fast-element';\nimport { DesignSystem } from '@microsoft/fast-foundation';\nimport { DesignTokensFor, LabelProviderBase } from '../base';\nimport {\n popupDismissLabel,\n numericDecrementLabel,\n numericIncrementLabel,\n popupIconErrorLabel,\n popupIconWarningLabel,\n popupIconInformationLabel,\n filterSearchLabel,\n filterNoResultsLabel\n} from './label-tokens';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nimble-label-provider-core': LabelProviderCore;\n }\n}\n\nconst supportedLabels = {\n popupDismiss: popupDismissLabel,\n numericDecrement: numericDecrementLabel,\n numericIncrement: numericIncrementLabel,\n popupIconError: popupIconErrorLabel,\n popupIconWarning: popupIconWarningLabel,\n popupIconInformation: popupIconInformationLabel,\n filterSearch: filterSearchLabel,\n filterNoResults: filterNoResultsLabel\n} as const;\n\n/**\n * Core label provider for Nimble\n */\nexport class LabelProviderCore\n extends LabelProviderBase<typeof supportedLabels>\n implements DesignTokensFor<typeof supportedLabels> {\n @attr({ attribute: 'popup-dismiss' })\n public popupDismiss: string | undefined;\n\n @attr({ attribute: 'numeric-decrement' })\n public numericDecrement: string | undefined;\n\n @attr({ attribute: 'numeric-increment' })\n public numericIncrement: string | undefined;\n\n @attr({ attribute: 'popup-icon-error' })\n public popupIconError: string | undefined;\n\n @attr({ attribute: 'popup-icon-warning' })\n public popupIconWarning: string | undefined;\n\n @attr({ attribute: 'popup-icon-information' })\n public popupIconInformation: string | undefined;\n\n @attr({ attribute: 'filter-search' })\n public filterSearch: string | undefined;\n\n @attr({ attribute: 'filter-no-results' })\n public filterNoResults: string | undefined;\n\n protected override readonly supportedLabels = supportedLabels;\n}\n\nconst nimbleLabelProviderCore = LabelProviderCore.compose({\n baseName: 'label-provider-core'\n});\n\nDesignSystem.getOrCreate()\n .withPrefix('nimble')\n .register(nimbleLabelProviderCore());\nexport const labelProviderCoreTag = 'nimble-label-provider-core';\n"]}
|
|
@@ -2,9 +2,9 @@ export const coreLabelDefaults = {
|
|
|
2
2
|
popupDismissLabel: 'Close',
|
|
3
3
|
numericIncrementLabel: 'Increment',
|
|
4
4
|
numericDecrementLabel: 'Decrement',
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
popupIconErrorLabel: 'Error',
|
|
6
|
+
popupIconWarningLabel: 'Warning',
|
|
7
|
+
popupIconInformationLabel: 'Information',
|
|
8
8
|
filterSearchLabel: 'Search',
|
|
9
9
|
filterNoResultsLabel: 'No items found'
|
|
10
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label-token-defaults.js","sourceRoot":"","sources":["../../../../src/label-provider/core/label-token-defaults.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,iBAAiB,GAA4C;IACtE,iBAAiB,EAAE,OAAO;IAC1B,qBAAqB,EAAE,WAAW;IAClC,qBAAqB,EAAE,WAAW;IAClC,
|
|
1
|
+
{"version":3,"file":"label-token-defaults.js","sourceRoot":"","sources":["../../../../src/label-provider/core/label-token-defaults.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,iBAAiB,GAA4C;IACtE,iBAAiB,EAAE,OAAO;IAC1B,qBAAqB,EAAE,WAAW;IAClC,qBAAqB,EAAE,WAAW;IAClC,mBAAmB,EAAE,OAAO;IAC5B,qBAAqB,EAAE,SAAS;IAChC,yBAAyB,EAAE,aAAa;IACxC,iBAAiB,EAAE,QAAQ;IAC3B,oBAAoB,EAAE,gBAAgB;CACzC,CAAC","sourcesContent":["import type * as TokensNamespace from './label-tokens';\n\ntype TokenName = keyof typeof TokensNamespace;\n\nexport const coreLabelDefaults: { readonly [key in TokenName]: string } = {\n popupDismissLabel: 'Close',\n numericIncrementLabel: 'Increment',\n numericDecrementLabel: 'Decrement',\n popupIconErrorLabel: 'Error',\n popupIconWarningLabel: 'Warning',\n popupIconInformationLabel: 'Information',\n filterSearchLabel: 'Search',\n filterNoResultsLabel: 'No items found'\n};\n"]}
|
|
@@ -2,8 +2,8 @@ import { DesignToken } from '@microsoft/fast-foundation';
|
|
|
2
2
|
export declare const popupDismissLabel: DesignToken<string>;
|
|
3
3
|
export declare const numericDecrementLabel: DesignToken<string>;
|
|
4
4
|
export declare const numericIncrementLabel: DesignToken<string>;
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
5
|
+
export declare const popupIconErrorLabel: DesignToken<string>;
|
|
6
|
+
export declare const popupIconWarningLabel: DesignToken<string>;
|
|
7
|
+
export declare const popupIconInformationLabel: DesignToken<string>;
|
|
8
8
|
export declare const filterSearchLabel: DesignToken<string>;
|
|
9
9
|
export declare const filterNoResultsLabel: DesignToken<string>;
|
|
@@ -12,18 +12,18 @@ export const numericIncrementLabel = DesignToken.create({
|
|
|
12
12
|
name: 'numeric-increment-label',
|
|
13
13
|
cssCustomPropertyName: null
|
|
14
14
|
}).withDefault(coreLabelDefaults.numericIncrementLabel);
|
|
15
|
-
export const
|
|
16
|
-
name: '
|
|
15
|
+
export const popupIconErrorLabel = DesignToken.create({
|
|
16
|
+
name: 'popup-icon-error-label',
|
|
17
17
|
cssCustomPropertyName: null
|
|
18
|
-
}).withDefault(coreLabelDefaults.
|
|
19
|
-
export const
|
|
20
|
-
name: '
|
|
18
|
+
}).withDefault(coreLabelDefaults.popupIconErrorLabel);
|
|
19
|
+
export const popupIconWarningLabel = DesignToken.create({
|
|
20
|
+
name: 'popup-icon-warning-label',
|
|
21
21
|
cssCustomPropertyName: null
|
|
22
|
-
}).withDefault(coreLabelDefaults.
|
|
23
|
-
export const
|
|
24
|
-
name: '
|
|
22
|
+
}).withDefault(coreLabelDefaults.popupIconWarningLabel);
|
|
23
|
+
export const popupIconInformationLabel = DesignToken.create({
|
|
24
|
+
name: 'popup-icon-information-label',
|
|
25
25
|
cssCustomPropertyName: null
|
|
26
|
-
}).withDefault(coreLabelDefaults.
|
|
26
|
+
}).withDefault(coreLabelDefaults.popupIconInformationLabel);
|
|
27
27
|
export const filterSearchLabel = DesignToken.create({
|
|
28
28
|
name: 'filter-search-label',
|
|
29
29
|
cssCustomPropertyName: null
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label-tokens.js","sourceRoot":"","sources":["../../../../src/label-provider/core/label-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO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C,MAAM,CAAS;IAC5D,IAAI,EAAE,yBAAyB;IAC/B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;AAExD,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC1D,IAAI,EAAE,wBAAwB;IAC9B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;AAEtD,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC5D,IAAI,EAAE,0BAA0B;IAChC,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;AAExD,MAAM,CAAC,MAAM,yBAAyB,GAAG,WAAW,CAAC,MAAM,CAAS;IAChE,IAAI,EAAE,8BAA8B;IACpC,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,CAAC;AAE5D,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAC,MAAM,CAAS;IACxD,IAAI,EAAE,qBAAqB;IAC3B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;AAEpD,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC3D,IAAI,EAAE,yBAAyB;IAC/B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAAC","sourcesContent":["import { DesignToken } from '@microsoft/fast-foundation';\nimport { coreLabelDefaults } from './label-token-defaults';\n\nexport const popupDismissLabel = DesignToken.create<string>({\n name: 'popup-dismiss-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.popupDismissLabel);\n\nexport const numericDecrementLabel = DesignToken.create<string>({\n name: 'numeric-decrement-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.numericDecrementLabel);\n\nexport const numericIncrementLabel = DesignToken.create<string>({\n name: 'numeric-increment-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.numericIncrementLabel);\n\nexport const popupIconErrorLabel = DesignToken.create<string>({\n name: 'popup-icon-error-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.popupIconErrorLabel);\n\nexport const popupIconWarningLabel = DesignToken.create<string>({\n name: 'popup-icon-warning-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.popupIconWarningLabel);\n\nexport const popupIconInformationLabel = DesignToken.create<string>({\n name: 'popup-icon-information-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.popupIconInformationLabel);\n\nexport const filterSearchLabel = DesignToken.create<string>({\n name: 'filter-search-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.filterSearchLabel);\n\nexport const filterNoResultsLabel = DesignToken.create<string>({\n name: 'filter-no-results-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.filterNoResultsLabel);\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/nimble-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.0",
|
|
4
4
|
"description": "Styled web components for the NI Nimble Design System",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run generate-icons && npm run generate-workers && npm run build-components && npm run bundle-components && npm run generate-scss && npm run build-storybook",
|