@ni/nimble-components 34.3.3 → 34.4.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.
@@ -0,0 +1,30 @@
1
+ import { FoundationElement, type EndOptions, type FoundationElementDefinition, type StartOptions } from '@ni/fast-foundation';
2
+ import { ChipAppearance } from './types';
3
+ declare global {
4
+ interface HTMLElementTagNameMap {
5
+ 'nimble-chip': Chip;
6
+ }
7
+ }
8
+ export type ChipOptions = FoundationElementDefinition & StartOptions & EndOptions;
9
+ /**
10
+ * A Nimble chip component
11
+ */
12
+ export declare class Chip extends FoundationElement {
13
+ removable: boolean;
14
+ disabled: boolean;
15
+ appearance: ChipAppearance;
16
+ tabIndex: number;
17
+ /** @internal */
18
+ readonly content?: HTMLElement[];
19
+ /** @internal */
20
+ hasOverflow: boolean;
21
+ /** @internal */
22
+ get elementTextContent(): string;
23
+ /** @internal */
24
+ get removeButtonContent(): string;
25
+ /** @internal */
26
+ contentSlot: HTMLSlotElement;
27
+ /** @internal */
28
+ handleRemoveClick(): void;
29
+ }
30
+ export declare const chipTag = "nimble-chip";
@@ -0,0 +1,62 @@
1
+ import { __decorate } from "tslib";
2
+ import { attr, nullableNumberConverter, observable } from '@ni/fast-element';
3
+ import { applyMixins, DesignSystem, FoundationElement, StartEnd } from '@ni/fast-foundation';
4
+ import { styles } from './styles';
5
+ import { template } from './template';
6
+ import { ChipAppearance } from './types';
7
+ import { slotTextContent } from '../utilities/models/slot-text-content';
8
+ import { itemRemoveLabel } from '../label-provider/core/label-tokens';
9
+ /**
10
+ * A Nimble chip component
11
+ */
12
+ export class Chip extends FoundationElement {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.removable = false;
16
+ this.disabled = false;
17
+ this.appearance = ChipAppearance.outline;
18
+ /** @internal */
19
+ this.hasOverflow = false;
20
+ }
21
+ /** @internal */
22
+ get elementTextContent() {
23
+ return slotTextContent(this.contentSlot);
24
+ }
25
+ /** @internal */
26
+ get removeButtonContent() {
27
+ return itemRemoveLabel.getValueFor(this);
28
+ }
29
+ /** @internal */
30
+ handleRemoveClick() {
31
+ if (this.removable) {
32
+ this.$emit('remove');
33
+ }
34
+ }
35
+ }
36
+ __decorate([
37
+ attr({ mode: 'boolean' })
38
+ ], Chip.prototype, "removable", void 0);
39
+ __decorate([
40
+ attr({ mode: 'boolean' })
41
+ ], Chip.prototype, "disabled", void 0);
42
+ __decorate([
43
+ attr()
44
+ ], Chip.prototype, "appearance", void 0);
45
+ __decorate([
46
+ attr({ attribute: 'tabindex', converter: nullableNumberConverter })
47
+ ], Chip.prototype, "tabIndex", void 0);
48
+ __decorate([
49
+ observable
50
+ ], Chip.prototype, "hasOverflow", void 0);
51
+ applyMixins(Chip, StartEnd);
52
+ const nimbleChip = Chip.compose({
53
+ baseName: 'chip',
54
+ template,
55
+ styles,
56
+ shadowOptions: {
57
+ delegatesFocus: true
58
+ }
59
+ });
60
+ DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleChip());
61
+ export const chipTag = 'nimble-chip';
62
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/chip/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EACH,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,QAAQ,EAIX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAYtE;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,iBAAiB;IAA3C;;QAE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ignSystem,\n FoundationElement,\n StartEnd,\n type EndOptions,\n type FoundationElementDefinition,\n type StartOptions\n} from '@ni/fast-foundation';\nimport { styles } from './styles';\nimport { template } from './template';\nimport { ChipAppearance } from './types';\nimport { slotTextContent } from '../utilities/models/slot-text-content';\nimport { itemRemoveLabel } from '../label-provider/core/label-tokens';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nimble-chip': Chip;\n }\n}\n\nexport type ChipOptions = FoundationElementDefinition &\n StartOptions &\n EndOptions;\n\n/**\n * A Nimble chip component\n */\nexport class Chip extends FoundationElement {\n @attr({ mode: 'boolean' })\n public removable = false;\n\n @attr({ mode: 'boolean' })\n public disabled = false;\n\n @attr()\n public appearance: ChipAppearance = ChipAppearance.outline;\n\n @attr({ attribute: 'tabindex', converter: nullableNumberConverter })\n public override tabIndex!: number;\n\n /** @internal */\n public readonly content?: HTMLElement[];\n\n /** @internal */\n @observable\n public hasOverflow = false;\n\n /** @internal */\n public get elementTextContent(): string {\n return slotTextContent(this.contentSlot);\n }\n\n /** @internal */\n public get removeButtonContent(): string {\n return itemRemoveLabel.getValueFor(this);\n }\n\n /** @internal */\n public contentSlot!: HTMLSlotElement;\n\n /** @internal */\n public handleRemoveClick(): void {\n if (this.removable) {\n this.$emit('remove');\n }\n }\n}\napplyMixins(Chip, StartEnd);\n\nconst nimbleChip = Chip.compose<ChipOptions>({\n baseName: 'chip',\n template,\n styles,\n shadowOptions: {\n delegatesFocus: true\n }\n});\n\nDesignSystem.getOrCreate().withPrefix('nimble').register(nimbleChip());\nexport const chipTag = 'nimble-chip';\n"]}
@@ -0,0 +1 @@
1
+ export declare const styles: import("@ni/fast-element").ElementStyles;
@@ -0,0 +1,66 @@
1
+ import { css } from '@ni/fast-element';
2
+ import { actionRgbPartialColor, bodyDisabledFontColor, bodyFont, bodyFontColor, borderRgbPartialColor, borderWidth, controlHeight, iconColor, iconSize, mediumPadding, smallPadding } from '../theme-provider/design-tokens';
3
+ import { display } from '../utilities/style/display';
4
+ import { appearanceBehavior } from '../utilities/style/appearance';
5
+ import { ChipAppearance } from './types';
6
+ export const styles = css `
7
+ ${display('inline-flex')}
8
+
9
+ :host {
10
+ height: ${controlHeight};
11
+ width: fit-content;
12
+ max-width: 300px;
13
+ color: ${bodyFontColor};
14
+ font: ${bodyFont};
15
+ padding: 0 ${mediumPadding};
16
+ gap: 4px;
17
+ background-color: transparent;
18
+ border: ${borderWidth} solid rgba(${actionRgbPartialColor}, 0.3);
19
+ border-radius: 4px;
20
+ justify-content: center;
21
+ align-items: center;
22
+ }
23
+
24
+ :host([disabled]) {
25
+ cursor: default;
26
+ color: ${bodyDisabledFontColor};
27
+ border-color: rgba(${borderRgbPartialColor}, 0.3);
28
+ }
29
+
30
+ :host([disabled]) slot[name='start']::slotted(*) {
31
+ opacity: 0.3;
32
+ ${iconColor.cssCustomProperty}: ${bodyFontColor};
33
+ }
34
+
35
+ slot[name='start']::slotted(*) {
36
+ flex-shrink: 0;
37
+ }
38
+
39
+ [part='start'] {
40
+ display: contents;
41
+ ${iconColor.cssCustomProperty}: ${bodyFontColor};
42
+ }
43
+
44
+ .content {
45
+ text-overflow: ellipsis;
46
+ overflow: hidden;
47
+ white-space: nowrap;
48
+ }
49
+
50
+ .remove-button {
51
+ height: ${iconSize};
52
+ width: ${iconSize};
53
+ margin-right: calc(-1 * ${smallPadding});
54
+ }
55
+
56
+ [part='end'] {
57
+ display: none;
58
+ }
59
+ `.withBehaviors(appearanceBehavior(ChipAppearance.block, css `
60
+ :host,
61
+ :host([disabled]) {
62
+ background-color: rgba(${borderRgbPartialColor}, 0.1);
63
+ border-color: transparent;
64
+ }
65
+ `));
66
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/chip/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EACH,qBAAqB,EACrB,qBAAqB,EACrB,QAAQ,EACR,aAAa,EACb,qBAAqB,EACrB,WAAW,EACX,aAAa,EACb,SAAS,EACT,QAAQ,EACR,aAAa,EACb,YAAY,EACf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,aAAa,CAAC;;;kBAGV,aAAa;;;iBAGd,aAAa;gBACd,QAAQ;qBACH,aAAa;;;kBAGhB,WAAW,eAAe,qBAAqB;;;;;;;;iBAQhD,qBAAqB;6BACT,qBAAqB;;;;;UAKxC,SAAS,CAAC,iBAAiB,KAAK,aAAa;;;;;;;;;UAS7C,SAAS,CAAC,iBAAiB,KAAK,aAAa;;;;;;;;;;kBAUrC,QAAQ;iBACT,QAAQ;kCACS,YAAY;;;;;;CAM7C,CAAC,aAAa,CACX,kBAAkB,CACd,cAAc,CAAC,KAAK,EACpB,GAAG,CAAA;;;yCAG8B,qBAAqB;;;SAGrD,CACJ,CACJ,CAAC","sourcesContent":["import { css } from '@ni/fast-element';\nimport {\n actionRgbPartialColor,\n bodyDisabledFontColor,\n bodyFont,\n bodyFontColor,\n borderRgbPartialColor,\n borderWidth,\n controlHeight,\n iconColor,\n iconSize,\n mediumPadding,\n smallPadding\n} from '../theme-provider/design-tokens';\nimport { display } from '../utilities/style/display';\nimport { appearanceBehavior } from '../utilities/style/appearance';\nimport { ChipAppearance } from './types';\n\nexport const styles = css`\n ${display('inline-flex')}\n\n :host {\n height: ${controlHeight};\n width: fit-content;\n max-width: 300px;\n color: ${bodyFontColor};\n font: ${bodyFont};\n padding: 0 ${mediumPadding};\n gap: 4px;\n background-color: transparent;\n border: ${borderWidth} solid rgba(${actionRgbPartialColor}, 0.3);\n border-radius: 4px;\n justify-content: center;\n align-items: center;\n }\n\n :host([disabled]) {\n cursor: default;\n color: ${bodyDisabledFontColor};\n border-color: rgba(${borderRgbPartialColor}, 0.3);\n }\n\n :host([disabled]) slot[name='start']::slotted(*) {\n opacity: 0.3;\n ${iconColor.cssCustomProperty}: ${bodyFontColor};\n }\n\n slot[name='start']::slotted(*) {\n flex-shrink: 0;\n }\n\n [part='start'] {\n display: contents;\n ${iconColor.cssCustomProperty}: ${bodyFontColor};\n }\n\n .content {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\n .remove-button {\n height: ${iconSize};\n width: ${iconSize};\n margin-right: calc(-1 * ${smallPadding});\n }\n\n [part='end'] {\n display: none;\n }\n`.withBehaviors(\n appearanceBehavior(\n ChipAppearance.block,\n css`\n :host,\n :host([disabled]) {\n background-color: rgba(${borderRgbPartialColor}, 0.1);\n border-color: transparent;\n }\n `\n )\n);\n"]}
@@ -0,0 +1,4 @@
1
+ import { type ViewTemplate } from '@ni/fast-element';
2
+ import { type FoundationElementTemplate } from '@ni/fast-foundation';
3
+ import type { Chip, ChipOptions } from '.';
4
+ export declare const template: FoundationElementTemplate<ViewTemplate<Chip>, ChipOptions>;
@@ -0,0 +1,37 @@
1
+ import { html, ref, slotted, when } from '@ni/fast-element';
2
+ import { endSlotTemplate, startSlotTemplate } from '@ni/fast-foundation';
3
+ import { overflow } from '../utilities/directive/overflow';
4
+ import { buttonTag } from '../button';
5
+ import { iconTimesTag } from '../icons/times';
6
+ import { ButtonAppearance } from '../button/types';
7
+ // prettier-ignore
8
+ export const template = (context, definition) => html `
9
+ ${startSlotTemplate(context, definition)}
10
+ <span
11
+ class="content"
12
+ part="content"
13
+ ${overflow('hasOverflow')}
14
+ title=${x => (x.hasOverflow && x.elementTextContent
15
+ ? x.elementTextContent
16
+ : null)}
17
+ >
18
+ <slot
19
+ ${ref('contentSlot')}
20
+ ${slotted({ property: 'content' })}
21
+ ></slot>
22
+ </span>
23
+ ${when(x => x.removable && !x.disabled, html `
24
+ <${buttonTag}
25
+ class="remove-button"
26
+ content-hidden
27
+ appearance="${ButtonAppearance.ghost}"
28
+ tabindex="${x => x.tabIndex}"
29
+ @click="${x => x.handleRemoveClick()}"
30
+ >
31
+ <${iconTimesTag} slot="start"></${iconTimesTag}>
32
+ ${x => x.removeButtonContent}
33
+ </${buttonTag}>
34
+ `)}
35
+ ${endSlotTemplate(context, definition)}
36
+ `;
37
+ //# sourceMappingURL=template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/chip/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAqB,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EACH,eAAe,EACf,iBAAiB,EAEpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,kBAAkB;AAClB,MAAM,CAAC,MAAM,QAAQ,GAGjB,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC,IAAI,CAAM;MACjC,iBAAiB,CAAC,OAAO,EAAE,UAAU,CAAC;;;;UAIlC,QAAQ,CAAC,aAAa,CAAC;gBACjB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,kBAAkB;IACvD,CAAC,CAAC,CAAC,CAAC,kBAAkB;IACtB,CAAC,CAAC,IAAI,CAAC;;;cAGG,GAAG,CAAC,aAAa,CAAC;cAClB,OAAO,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;;;MAGxC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAM;WAC3C,SAAS;;;0BAGM,gBAAgB,CAAC,KAAK;wBACxB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;sBACjB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,iBAAiB,EAAE;;eAEjC,YAAY,mBAAmB,YAAY;cAC5C,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAmB;YAC5B,SAAS;KAChB,CAAC;MACA,eAAe,CAAC,OAAO,EAAE,UAAU,CAAC;CACzC,CAAC","sourcesContent":["import { html, ref, slotted, when, type ViewTemplate } from '@ni/fast-element';\nimport {\n endSlotTemplate,\n startSlotTemplate,\n type FoundationElementTemplate\n} from '@ni/fast-foundation';\nimport type { Chip, ChipOptions } from '.';\nimport { overflow } from '../utilities/directive/overflow';\nimport { buttonTag } from '../button';\nimport { iconTimesTag } from '../icons/times';\nimport { ButtonAppearance } from '../button/types';\n\n// prettier-ignore\nexport const template: FoundationElementTemplate<\nViewTemplate<Chip>,\nChipOptions\n> = (context, definition) => html<Chip>`\n ${startSlotTemplate(context, definition)}\n <span\n class=\"content\"\n part=\"content\"\n ${overflow('hasOverflow')}\n title=${x => (x.hasOverflow && x.elementTextContent\n ? x.elementTextContent\n : null)}\n >\n <slot\n ${ref('contentSlot')}\n ${slotted({ property: 'content' })}\n ></slot>\n </span>\n ${when(x => x.removable && !x.disabled, html<Chip>`\n <${buttonTag}\n class=\"remove-button\"\n content-hidden\n appearance=\"${ButtonAppearance.ghost}\"\n tabindex=\"${x => x.tabIndex}\"\n @click=\"${x => x.handleRemoveClick()}\"\n >\n <${iconTimesTag} slot=\"start\"></${iconTimesTag}>\n ${x => x.removeButtonContent}\n </${buttonTag}>\n `)}\n ${endSlotTemplate(context, definition)}\n`;\n"]}
@@ -0,0 +1,14 @@
1
+ import type { Chip } from '..';
2
+ /**
3
+ * Page object for the `nimble-chip` component to provide consistent ways
4
+ * of querying and interacting with the component during tests.
5
+ */
6
+ export declare class ChipPageObject {
7
+ protected readonly chipElement: Chip;
8
+ constructor(chipElement: Chip);
9
+ isRemoveButtonVisible(): boolean;
10
+ getRemoveButtonTextContent(): string;
11
+ clickRemoveButton(): void;
12
+ getRemoveButtonTabIndex(): string | null;
13
+ private getRemoveButton;
14
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Page object for the `nimble-chip` component to provide consistent ways
3
+ * of querying and interacting with the component during tests.
4
+ */
5
+ export class ChipPageObject {
6
+ constructor(chipElement) {
7
+ this.chipElement = chipElement;
8
+ }
9
+ isRemoveButtonVisible() {
10
+ const removeButton = this.getRemoveButton();
11
+ return removeButton ? removeButton !== null : false;
12
+ }
13
+ getRemoveButtonTextContent() {
14
+ const removeButton = this.getRemoveButton();
15
+ return removeButton?.textContent?.trim() ?? '';
16
+ }
17
+ clickRemoveButton() {
18
+ const removeButton = this.getRemoveButton();
19
+ if (removeButton) {
20
+ removeButton.click();
21
+ }
22
+ else {
23
+ throw new Error('Remove button not found');
24
+ }
25
+ }
26
+ getRemoveButtonTabIndex() {
27
+ const removeButton = this.getRemoveButton();
28
+ if (removeButton) {
29
+ return removeButton.getAttribute('tabindex');
30
+ }
31
+ throw new Error('Remove button not found');
32
+ }
33
+ getRemoveButton() {
34
+ return (this.chipElement.shadowRoot?.querySelector('.remove-button') ?? null);
35
+ }
36
+ }
37
+ //# sourceMappingURL=chip.pageobject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chip.pageobject.js","sourceRoot":"","sources":["../../../../src/chip/testing/chip.pageobject.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,OAAO,cAAc;IACvB,YAAsC,WAAiB;QAAjB,gBAAW,GAAX,WAAW,CAAM;IAAG,CAAC;IAEpD,qBAAqB;QACxB,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;QAC5C,OAAO,YAAY,CAAC,CAAC,CAAC,YAAY,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IACxD,CAAC;IAEM,0BAA0B;QAC7B,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;QAC5C,OAAO,YAAY,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACnD,CAAC;IAEM,iBAAiB;QACpB,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;QAC5C,IAAI,YAAY,EAAE,CAAC;YACf,YAAY,CAAC,KAAK,EAAE,CAAC;QACzB,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC/C,CAAC;IACL,CAAC;IAEM,uBAAuB;QAC1B,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;QAC5C,IAAI,YAAY,EAAE,CAAC;YACf,OAAO,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QACjD,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;IAEO,eAAe;QACnB,OAAO,CACH,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,aAAa,CACtC,gBAAgB,CACnB,IAAI,IAAI,CACZ,CAAC;IACN,CAAC;CACJ","sourcesContent":["import type { Chip } from '..';\nimport type { Button } from '../../button';\n\n/**\n * Page object for the `nimble-chip` component to provide consistent ways\n * of querying and interacting with the component during tests.\n */\nexport class ChipPageObject {\n public constructor(protected readonly chipElement: Chip) {}\n\n public isRemoveButtonVisible(): boolean {\n const removeButton = this.getRemoveButton();\n return removeButton ? removeButton !== null : false;\n }\n\n public getRemoveButtonTextContent(): string {\n const removeButton = this.getRemoveButton();\n return removeButton?.textContent?.trim() ?? '';\n }\n\n public clickRemoveButton(): void {\n const removeButton = this.getRemoveButton();\n if (removeButton) {\n removeButton.click();\n } else {\n throw new Error('Remove button not found');\n }\n }\n\n public getRemoveButtonTabIndex(): string | null {\n const removeButton = this.getRemoveButton();\n if (removeButton) {\n return removeButton.getAttribute('tabindex');\n }\n throw new Error('Remove button not found');\n }\n\n private getRemoveButton(): Button | null {\n return (\n this.chipElement.shadowRoot?.querySelector<Button>(\n '.remove-button'\n ) ?? null\n );\n }\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export declare const ChipAppearance: {
2
+ readonly outline: "outline";
3
+ readonly block: "block";
4
+ };
5
+ export type ChipAppearance = (typeof ChipAppearance)[keyof typeof ChipAppearance];
@@ -0,0 +1,5 @@
1
+ export const ChipAppearance = {
2
+ outline: 'outline',
3
+ block: 'block'
4
+ };
5
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/chip/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACR,CAAC","sourcesContent":["export const ChipAppearance = {\n outline: 'outline',\n block: 'block'\n} as const;\nexport type ChipAppearance =\n (typeof ChipAppearance)[keyof typeof ChipAppearance];\n"]}
@@ -16,6 +16,7 @@ declare const supportedLabels: {
16
16
  readonly loading: import("@ni/fast-foundation").DesignToken<string>;
17
17
  readonly scrollBackward: import("@ni/fast-foundation").DesignToken<string>;
18
18
  readonly scrollForward: import("@ni/fast-foundation").DesignToken<string>;
19
+ readonly itemRemove: import("@ni/fast-foundation").DesignToken<string>;
19
20
  };
20
21
  /**
21
22
  * Core label provider for Nimble
@@ -32,6 +33,7 @@ export declare class LabelProviderCore extends LabelProviderBase<typeof supporte
32
33
  loading: string | undefined;
33
34
  scrollBackward: string | undefined;
34
35
  scrollForward: string | undefined;
36
+ itemRemove: string | undefined;
35
37
  protected readonly supportedLabels: {
36
38
  readonly popupDismiss: import("@ni/fast-foundation").DesignToken<string>;
37
39
  readonly numericDecrement: import("@ni/fast-foundation").DesignToken<string>;
@@ -44,6 +46,7 @@ export declare class LabelProviderCore extends LabelProviderBase<typeof supporte
44
46
  readonly loading: import("@ni/fast-foundation").DesignToken<string>;
45
47
  readonly scrollBackward: import("@ni/fast-foundation").DesignToken<string>;
46
48
  readonly scrollForward: import("@ni/fast-foundation").DesignToken<string>;
49
+ readonly itemRemove: import("@ni/fast-foundation").DesignToken<string>;
47
50
  };
48
51
  }
49
52
  export declare const labelProviderCoreTag = "nimble-label-provider-core";
@@ -2,7 +2,7 @@ import { __decorate } from "tslib";
2
2
  import { attr } from '@ni/fast-element';
3
3
  import { DesignSystem } from '@ni/fast-foundation';
4
4
  import { LabelProviderBase } from '../base';
5
- import { popupDismissLabel, numericDecrementLabel, numericIncrementLabel, popupIconErrorLabel, popupIconWarningLabel, popupIconInformationLabel, filterSearchLabel, filterNoResultsLabel, loadingLabel, scrollBackwardLabel, scrollForwardLabel } from './label-tokens';
5
+ import { popupDismissLabel, numericDecrementLabel, numericIncrementLabel, popupIconErrorLabel, popupIconWarningLabel, popupIconInformationLabel, filterSearchLabel, filterNoResultsLabel, loadingLabel, scrollBackwardLabel, scrollForwardLabel, itemRemoveLabel } from './label-tokens';
6
6
  import { styles } from '../base/styles';
7
7
  const supportedLabels = {
8
8
  popupDismiss: popupDismissLabel,
@@ -15,7 +15,8 @@ const supportedLabels = {
15
15
  filterNoResults: filterNoResultsLabel,
16
16
  loading: loadingLabel,
17
17
  scrollBackward: scrollBackwardLabel,
18
- scrollForward: scrollForwardLabel
18
+ scrollForward: scrollForwardLabel,
19
+ itemRemove: itemRemoveLabel
19
20
  };
20
21
  /**
21
22
  * Core label provider for Nimble
@@ -59,6 +60,9 @@ __decorate([
59
60
  __decorate([
60
61
  attr({ attribute: 'scroll-forward' })
61
62
  ], LabelProviderCore.prototype, "scrollForward", void 0);
63
+ __decorate([
64
+ attr({ attribute: 'item-remove' })
65
+ ], LabelProviderCore.prototype, "itemRemove", void 0);
62
66
  const nimbleLabelProviderCore = LabelProviderCore.compose({
63
67
  baseName: 'label-provider-core',
64
68
  styles
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/label-provider/core/index.ts"],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SAAS,EAAE,wBAAwB,EAAE,CAAC;+DACE;AAGzC;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;uDACG;AAGjC;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAAC;0DACE;AAGpC;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;kDACI;AAG5B;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;yDACG;AAGnC;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;wDACG;AAK7C,MAAM,uBAAuB,GAAG,iBAAiB,CAAC,OAAO,CAAC;IACtD,QAAQ,EAAE,qBAAqB;IAC/B,MAAM;CACT,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 '@ni/fast-element';\nimport { DesignSystem } from '@ni/fast-foundation';\nimport { type DesignTokensFor, LabelProviderBase } from '../base';\nimport {\n popupDismissLabel,\n numericDecrementLabel,\n numericIncrementLabel,\n popupIconErrorLabel,\n popupIconWarningLabel,\n popupIconInformationLabel,\n filterSearchLabel,\n filterNoResultsLabel,\n loadingLabel,\n scrollBackwardLabel,\n scrollForwardLabel\n} from './label-tokens';\nimport { styles } from '../base/styles';\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 loading: loadingLabel,\n scrollBackward: scrollBackwardLabel,\n scrollForward: scrollForwardLabel\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 @attr({ attribute: 'loading' })\n public loading: string | undefined;\n\n @attr({ attribute: 'scroll-backward' })\n public scrollBackward: string | undefined;\n\n @attr({ attribute: 'scroll-forward' })\n public scrollForward: string | undefined;\n\n protected override readonly supportedLabels = supportedLabels;\n}\n\nconst nimbleLabelProviderCore = LabelProviderCore.compose({\n baseName: 'label-provider-core',\n styles\n});\n\nDesignSystem.getOrCreate()\n .withPrefix('nimble')\n .register(nimbleLabelProviderCore());\nexport const labelProviderCoreTag = 'nimble-label-provider-core';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/label-provider/core/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAwB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EACH,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,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AAE,CAAC;yDACG;AAGnC;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;wDACG;AAGlC;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;qDACG;AAK1C,MAAM,uBAAuB,GAAG,iBAAiB,CAAC,OAAO,CAAC;IACtD,QAAQ,EAAE,qBAAqB;IAC/B,MAAM;CACT,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 '@ni/fast-element';\nimport { DesignSystem } from '@ni/fast-foundation';\nimport { type DesignTokensFor, LabelProviderBase } from '../base';\nimport {\n popupDismissLabel,\n numericDecrementLabel,\n numericIncrementLabel,\n popupIconErrorLabel,\n popupIconWarningLabel,\n popupIconInformationLabel,\n filterSearchLabel,\n filterNoResultsLabel,\n loadingLabel,\n scrollBackwardLabel,\n scrollForwardLabel,\n itemRemoveLabel\n} from './label-tokens';\nimport { styles } from '../base/styles';\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 loading: loadingLabel,\n scrollBackward: scrollBackwardLabel,\n scrollForward: scrollForwardLabel,\n itemRemove: itemRemoveLabel\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 @attr({ attribute: 'loading' })\n public loading: string | undefined;\n\n @attr({ attribute: 'scroll-backward' })\n public scrollBackward: string | undefined;\n\n @attr({ attribute: 'scroll-forward' })\n public scrollForward: string | undefined;\n\n @attr({ attribute: 'item-remove' })\n public itemRemove: string | undefined;\n\n protected override readonly supportedLabels = supportedLabels;\n}\n\nconst nimbleLabelProviderCore = LabelProviderCore.compose({\n baseName: 'label-provider-core',\n styles\n});\n\nDesignSystem.getOrCreate()\n .withPrefix('nimble')\n .register(nimbleLabelProviderCore());\nexport const labelProviderCoreTag = 'nimble-label-provider-core';\n"]}
@@ -9,6 +9,7 @@ export const coreLabelDefaults = {
9
9
  filterNoResultsLabel: 'No items found',
10
10
  loadingLabel: 'Loading…',
11
11
  scrollBackwardLabel: 'Scroll backward',
12
- scrollForwardLabel: 'Scroll forward'
12
+ scrollForwardLabel: 'Scroll forward',
13
+ itemRemoveLabel: 'Remove'
13
14
  };
14
15
  //# sourceMappingURL=label-token-defaults.js.map
@@ -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,mBAAmB,EAAE,OAAO;IAC5B,qBAAqB,EAAE,SAAS;IAChC,yBAAyB,EAAE,aAAa;IACxC,iBAAiB,EAAE,QAAQ;IAC3B,oBAAoB,EAAE,gBAAgB;IACtC,YAAY,EAAE,UAAU;IACxB,mBAAmB,EAAE,iBAAiB;IACtC,kBAAkB,EAAE,gBAAgB;CACvC,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 loadingLabel: 'Loading…',\n scrollBackwardLabel: 'Scroll backward',\n scrollForwardLabel: 'Scroll forward'\n};\n"]}
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;IACtC,YAAY,EAAE,UAAU;IACxB,mBAAmB,EAAE,iBAAiB;IACtC,kBAAkB,EAAE,gBAAgB;IACpC,eAAe,EAAE,QAAQ;CAC5B,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 loadingLabel: 'Loading…',\n scrollBackwardLabel: 'Scroll backward',\n scrollForwardLabel: 'Scroll forward',\n itemRemoveLabel: 'Remove'\n};\n"]}
@@ -10,3 +10,4 @@ export declare const filterNoResultsLabel: DesignToken<string>;
10
10
  export declare const loadingLabel: DesignToken<string>;
11
11
  export declare const scrollBackwardLabel: DesignToken<string>;
12
12
  export declare const scrollForwardLabel: DesignToken<string>;
13
+ export declare const itemRemoveLabel: DesignToken<string>;
@@ -44,4 +44,8 @@ export const scrollForwardLabel = DesignToken.create({
44
44
  name: 'scroll-forward-label',
45
45
  cssCustomPropertyName: null
46
46
  }).withDefault(coreLabelDefaults.scrollForwardLabel);
47
+ export const itemRemoveLabel = DesignToken.create({
48
+ name: 'item-remove-label',
49
+ cssCustomPropertyName: null
50
+ }).withDefault(coreLabelDefaults.itemRemoveLabel);
47
51
  //# sourceMappingURL=label-tokens.js.map
@@ -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,qBAAqB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,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,qBAAqB,GAAG,WAAW,CAAC,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,qBAAqB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC5D,IA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mBAAmB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC1D,IAAI,EAAE,uBAAuB;IAC7B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;AAEtD,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAC,MAAM,CAAS;IACzD,IAAI,EAAE,sBAAsB;IAC5B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC","sourcesContent":["import { DesignToken } from '@ni/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\nexport const loadingLabel = DesignToken.create<string>({\n name: 'loading-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.loadingLabel);\n\nexport const scrollBackwardLabel = DesignToken.create<string>({\n name: 'scroll-backward-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.scrollBackwardLabel);\n\nexport const scrollForwardLabel = DesignToken.create<string>({\n name: 'scroll-forward-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.scrollForwardLabel);\n"]}
1
+ {"version":3,"file":"label-tokens.js","sourceRoot":"","sources":["../../../../src/label-provider/core/label-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,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,qBAAqB,GAAG,WAAW,CAAC,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,qBAAqB,GAAG,WAAW,CAAC,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,mBAAm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9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;AAErD,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC,MAAM,CAAS;IACtD,IAAI,EAAE,mBAAmB;IACzB,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC","sourcesContent":["import { DesignToken } from '@ni/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\nexport const loadingLabel = DesignToken.create<string>({\n name: 'loading-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.loadingLabel);\n\nexport const scrollBackwardLabel = DesignToken.create<string>({\n name: 'scroll-backward-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.scrollBackwardLabel);\n\nexport const scrollForwardLabel = DesignToken.create<string>({\n name: 'scroll-forward-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.scrollForwardLabel);\n\nexport const itemRemoveLabel = DesignToken.create<string>({\n name: 'item-remove-label',\n cssCustomPropertyName: null\n}).withDefault(coreLabelDefaults.itemRemoveLabel);\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/nimble-components",
3
- "version": "34.3.3",
3
+ "version": "34.4.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",