@ni/nimble-components 11.8.2 → 11.8.5
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 +65 -23
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +794 -798
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/combobox/index.d.ts +23 -3
- package/dist/esm/combobox/index.js +64 -7
- package/dist/esm/combobox/index.js.map +1 -1
- package/dist/esm/number-field/styles.js +1 -6
- package/dist/esm/number-field/styles.js.map +1 -1
- package/dist/esm/text-area/styles.js +1 -6
- package/dist/esm/text-area/styles.js.map +1 -1
- package/dist/esm/text-field/styles.js +1 -6
- package/dist/esm/text-field/styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ export declare class Combobox extends FoundationCombobox implements IHasErrorTex
|
|
|
17
17
|
*
|
|
18
18
|
* @internal
|
|
19
19
|
*/
|
|
20
|
-
readonly dropdownButton
|
|
20
|
+
readonly dropdownButton?: ToggleButton;
|
|
21
21
|
/**
|
|
22
22
|
* A message explaining why the value is invalid.
|
|
23
23
|
*
|
|
@@ -26,16 +26,36 @@ export declare class Combobox extends FoundationCombobox implements IHasErrorTex
|
|
|
26
26
|
* HTML Attribute: error-text
|
|
27
27
|
*/
|
|
28
28
|
errorText: string | undefined;
|
|
29
|
+
private valueUpdatedByInput;
|
|
30
|
+
private valueBeforeTextUpdate?;
|
|
29
31
|
setPositioning(): void;
|
|
30
32
|
slottedOptionsChanged(prev: HTMLElement[], next: HTMLElement[]): void;
|
|
31
33
|
connectedCallback(): void;
|
|
32
|
-
disconnectedCallback(): void;
|
|
33
34
|
toggleButtonClickHandler(e: Event): void;
|
|
34
35
|
toggleButtonChangeHandler(e: Event): void;
|
|
35
36
|
toggleButtonKeyDownHandler(e: KeyboardEvent): boolean;
|
|
36
37
|
filterOptions(): void;
|
|
38
|
+
/**
|
|
39
|
+
* This is a workaround for the issue described here: https://github.com/microsoft/fast/issues/6267
|
|
40
|
+
* For now, we will update the value ourselves while a user types in text. Note that there is other
|
|
41
|
+
* implementation related to this (like the 'keydownEventHandler') needed to create the complete set
|
|
42
|
+
* of desired behavior described in the issue noted above.
|
|
43
|
+
*/
|
|
44
|
+
inputHandler(e: InputEvent): boolean | void;
|
|
45
|
+
keydownHandler(e: KeyboardEvent): boolean | void;
|
|
46
|
+
focusoutHandler(e: FocusEvent): boolean | void;
|
|
37
47
|
protected openChanged(): void;
|
|
38
48
|
private ariaLabelChanged;
|
|
39
49
|
private updateInputAriaLabel;
|
|
40
|
-
|
|
50
|
+
/**
|
|
51
|
+
* This will only emit a `change` event after text entry where the text in the input prior to
|
|
52
|
+
* typing is different than the text present upon an attempt to commit (e.g. pressing <Enter>).
|
|
53
|
+
* So, for a concrete example:
|
|
54
|
+
* 1) User types 'Sue' (when Combobox input was blank).
|
|
55
|
+
* 2) User presses <Enter> -> 'change' event fires
|
|
56
|
+
* 3) User deletes 'Sue'
|
|
57
|
+
* 4) User re-types 'Sue'
|
|
58
|
+
* 5) User presses <Enter> -> NO 'change' event is fired
|
|
59
|
+
*/
|
|
60
|
+
private emitChangeIfValueUpdated;
|
|
41
61
|
}
|
|
@@ -12,9 +12,7 @@ import { styles } from './styles';
|
|
|
12
12
|
export class Combobox extends FoundationCombobox {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
|
-
this.
|
|
16
|
-
this.open = false;
|
|
17
|
-
};
|
|
15
|
+
this.valueUpdatedByInput = false;
|
|
18
16
|
}
|
|
19
17
|
// Workaround for https://github.com/microsoft/fast/issues/5123
|
|
20
18
|
setPositioning() {
|
|
@@ -38,10 +36,6 @@ export class Combobox extends FoundationCombobox {
|
|
|
38
36
|
// Call setPositioning() after this.forcedPosition is initialized.
|
|
39
37
|
this.setPositioning();
|
|
40
38
|
this.updateInputAriaLabel();
|
|
41
|
-
this.addEventListener('focusout', this.focusOutHandler);
|
|
42
|
-
}
|
|
43
|
-
disconnectedCallback() {
|
|
44
|
-
this.removeEventListener('focusout', this.focusOutHandler);
|
|
45
39
|
}
|
|
46
40
|
toggleButtonClickHandler(e) {
|
|
47
41
|
e.stopImmediatePropagation();
|
|
@@ -68,6 +62,50 @@ export class Combobox extends FoundationCombobox {
|
|
|
68
62
|
const enabledOptions = this.filteredOptions.filter(o => !o.disabled);
|
|
69
63
|
this.filteredOptions = enabledOptions;
|
|
70
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* This is a workaround for the issue described here: https://github.com/microsoft/fast/issues/6267
|
|
67
|
+
* For now, we will update the value ourselves while a user types in text. Note that there is other
|
|
68
|
+
* implementation related to this (like the 'keydownEventHandler') needed to create the complete set
|
|
69
|
+
* of desired behavior described in the issue noted above.
|
|
70
|
+
*/
|
|
71
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
72
|
+
inputHandler(e) {
|
|
73
|
+
const returnValue = super.inputHandler(e);
|
|
74
|
+
if (!this.valueUpdatedByInput) {
|
|
75
|
+
this.valueBeforeTextUpdate = this.value;
|
|
76
|
+
}
|
|
77
|
+
this.value = this.control.value;
|
|
78
|
+
this.valueUpdatedByInput = true;
|
|
79
|
+
return returnValue;
|
|
80
|
+
}
|
|
81
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
82
|
+
keydownHandler(e) {
|
|
83
|
+
const returnValue = super.keydownHandler(e);
|
|
84
|
+
if (e.ctrlKey || e.altKey) {
|
|
85
|
+
return returnValue;
|
|
86
|
+
}
|
|
87
|
+
switch (e.key) {
|
|
88
|
+
case keyEnter:
|
|
89
|
+
this.emitChangeIfValueUpdated();
|
|
90
|
+
break;
|
|
91
|
+
case keyArrowDown:
|
|
92
|
+
case keyArrowUp:
|
|
93
|
+
if (this.open && this.valueUpdatedByInput) {
|
|
94
|
+
this.valueUpdatedByInput = false;
|
|
95
|
+
}
|
|
96
|
+
break;
|
|
97
|
+
default:
|
|
98
|
+
return returnValue;
|
|
99
|
+
}
|
|
100
|
+
return returnValue;
|
|
101
|
+
}
|
|
102
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
103
|
+
focusoutHandler(e) {
|
|
104
|
+
const returnValue = super.focusoutHandler(e);
|
|
105
|
+
this.open = false;
|
|
106
|
+
this.emitChangeIfValueUpdated();
|
|
107
|
+
return returnValue;
|
|
108
|
+
}
|
|
71
109
|
openChanged() {
|
|
72
110
|
super.openChanged();
|
|
73
111
|
if (this.dropdownButton) {
|
|
@@ -87,6 +125,24 @@ export class Combobox extends FoundationCombobox {
|
|
|
87
125
|
inputElement?.removeAttribute('aria-label');
|
|
88
126
|
}
|
|
89
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* This will only emit a `change` event after text entry where the text in the input prior to
|
|
130
|
+
* typing is different than the text present upon an attempt to commit (e.g. pressing <Enter>).
|
|
131
|
+
* So, for a concrete example:
|
|
132
|
+
* 1) User types 'Sue' (when Combobox input was blank).
|
|
133
|
+
* 2) User presses <Enter> -> 'change' event fires
|
|
134
|
+
* 3) User deletes 'Sue'
|
|
135
|
+
* 4) User re-types 'Sue'
|
|
136
|
+
* 5) User presses <Enter> -> NO 'change' event is fired
|
|
137
|
+
*/
|
|
138
|
+
emitChangeIfValueUpdated() {
|
|
139
|
+
if (this.valueUpdatedByInput) {
|
|
140
|
+
if (this.value !== this.valueBeforeTextUpdate) {
|
|
141
|
+
this.$emit('change');
|
|
142
|
+
}
|
|
143
|
+
this.valueUpdatedByInput = false;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
90
146
|
}
|
|
91
147
|
__decorate([
|
|
92
148
|
observable
|
|
@@ -121,6 +177,7 @@ const nimbleCombobox = Combobox.compose({
|
|
|
121
177
|
part="button"
|
|
122
178
|
aria-haspopup="true"
|
|
123
179
|
aria-expanded="${x => x.open}"
|
|
180
|
+
tabindex="-1"
|
|
124
181
|
>
|
|
125
182
|
<nimble-icon-arrow-expander-down
|
|
126
183
|
slot="start"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/combobox/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EACH,YAAY,EACZ,QAAQ,IAAI,kBAAkB,EAE9B,gBAAgB,IAAI,QAAQ,EAC/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,QAAQ,EACX,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,2BAA2B,CAAC;AACnC,OAAO,8BAA8B,CAAC;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AASlC;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,kBAAkB;IAAhD;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/combobox/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EACH,YAAY,EACZ,QAAQ,IAAI,kBAAkB,EAE9B,gBAAgB,IAAI,QAAQ,EAC/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,QAAQ,EACX,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,2BAA2B,CAAC;AACnC,OAAO,8BAA8B,CAAC;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AASlC;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,kBAAkB;IAAhD;;QAmBY,wBAAmB,GAAG,KAAK,CAAC;IAqJxC,CAAC;IAlJG,+DAA+D;IAC/C,cAAc;QAC1B,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AAC,QAAQ;;0BAElB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,KAAK,CAAC;2BAC5C,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,KAAK,CAAC;4BAC7C,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,KAAsB,CAAC;;;;iCAI3D,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;;;;;;;;;;UAUlC,iBAAiB;KACtB;CACJ,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { display } from '@microsoft/fast-foundation';
|
|
3
|
-
import { borderRgbPartialColor, borderHoverColor, borderWidth, bodyFontColor, bodyDisabledFontColor, controlHeight,
|
|
3
|
+
import { borderRgbPartialColor, borderHoverColor, borderWidth, bodyFontColor, bodyDisabledFontColor, controlHeight, controlLabelFont, controlLabelFontColor, labelHeight, smallDelay, bodyFont, failColor, standardPadding, controlLabelDisabledFontColor } from '../theme-provider/design-tokens';
|
|
4
4
|
import { appearanceBehavior } from '../utilities/style/appearance';
|
|
5
5
|
import { NumberFieldAppearance } from './types';
|
|
6
6
|
import { styles as errorStyles } from '../patterns/error/styles';
|
|
@@ -119,11 +119,6 @@ export const styles = css `
|
|
|
119
119
|
outline: none;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
.control::selection {
|
|
123
|
-
color: ${controlLabelFontColor};
|
|
124
|
-
background: rgba(${fillSelectedRgbPartialColor}, 0.3);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
122
|
.control::placeholder {
|
|
128
123
|
color: ${controlLabelFontColor};
|
|
129
124
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/number-field/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,qBAAqB,EACrB,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,qBAAqB,EACrB,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/number-field/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,qBAAqB,EACrB,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,qBAAqB,EACrB,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,QAAQ,EACR,SAAS,EACT,eAAe,EACf,6BAA6B,EAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEjE,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,cAAc,CAAC;MACvB,WAAW;;;gBAGD,QAAQ;;;iBAGP,aAAa;uBACP,WAAW,MAAM,aAAa;mDACF,WAAW;;cAEhD,aAAa,UAAU,WAAW;;;;;iBAK/B,qBAAqB;;;;;;iBAMrB,qBAAqB;gBACtB,gBAAgB;;;;iBAIf,6BAA6B;;;;;;;;;;;iCAWb,qBAAqB;mBACnC,WAAW;;;;+BAIC,gBAAgB;;;;6BAIlB,qBAAqB;;;;+BAInB,SAAS;;;;UAI9B,CAAA,yCAA0C,EAAE;;;;;;;;;;4BAU1B,WAAW;;;yBAGd,gBAAgB;;4BAEb,UAAU;;;;;;;;;;+BAUP,SAAS;;;;;;;;;;;;;;;;;;;;;;;;6BAwBX,eAAe;;;;;;;;;;;iBAW3B,qBAAqB;;;;iBAIrB,qBAAqB;;;;;;;MAOhC;AACE,uKAAuK,CAAC,EAC5K;;;8BAG0B,eAAe;;;;;;;;UAQnC,aAAa,CAAC,iBAAiB;;;;;;;;;8BASX,eAAe;;CAE5C,CAAC,aAAa,CACH,kBAAkB,CACd,qBAAqB,CAAC,SAAS,EAC/B,GAAG,CAAA;;uCAEoB,WAAW;;;SAGzC,CACI,EACD,kBAAkB,CACd,qBAAqB,CAAC,KAAK,EAC3B,GAAG,CAAA;;yCAEsB,qBAAqB;;;;;uCAKvB,WAAW;;;;;;;;;yCAST,qBAAqB;;SAErD,CACI,EACD,kBAAkB,CACd,qBAAqB,CAAC,OAAO,EAC7B,GAAG,CAAA;;gCAEa,WAAW;;;SAGlC,CACI,CACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { display } from '@microsoft/fast-foundation';
|
|
3
|
-
import { borderRgbPartialColor, borderHoverColor, borderWidth,
|
|
3
|
+
import { borderRgbPartialColor, borderHoverColor, borderWidth, smallDelay, bodyFontColor, bodyDisabledFontColor, controlLabelFont, controlLabelFontColor, bodyFont, controlLabelDisabledFontColor } from '../theme-provider/design-tokens';
|
|
4
4
|
import { appearanceBehavior } from '../utilities/style/appearance';
|
|
5
5
|
import { TextAreaAppearance } from './types';
|
|
6
6
|
export const styles = css `
|
|
@@ -70,11 +70,6 @@ export const styles = css `
|
|
|
70
70
|
box-shadow: none;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
.control::selection {
|
|
74
|
-
color: ${controlLabelFontColor};
|
|
75
|
-
background: rgba(${fillSelectedRgbPartialColor}, 0.3);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
73
|
.control::placeholder {
|
|
79
74
|
color: ${controlLabelFontColor};
|
|
80
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/text-area/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,qBAAqB,EACrB,gBAAgB,EAChB,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/text-area/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,qBAAqB,EACrB,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,QAAQ,EACR,6BAA6B,EAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,aAAa,CAAC;;;gBAGZ,QAAQ;;;iBAGP,aAAa;;;;;;iBAMb,qBAAqB;;;;;iBAKrB,qBAAqB;gBACtB,gBAAgB;;;;iBAIf,6BAA6B;;;;;;;;;;;;;;kBAc5B,WAAW;;iCAEI,UAAU,YAAY,UAAU;;;;;;;;;;;wBAWzC,gBAAgB;sCACF,gBAAgB;;;;wBAI9B,gBAAgB;;;;;;;;6BAQX,qBAAqB;;;;;iBAKjC,qBAAqB;;;;iBAIrB,6BAA6B;;;;;;;;;;;;;;;;;;;;CAoB7C;IACG,kBAAkB;KACjB,aAAa,CACV,kBAAkB,CACd,kBAAkB,CAAC,OAAO,EAC1B,GAAG,CAAA;;yCAE0B,qBAAqB;;;aAGjD,CACJ,EACD,kBAAkB,CACd,kBAAkB,CAAC,KAAK,EACxB,GAAG,CAAA;;6CAE8B,qBAAqB;;;;;;;;;6CASrB,qBAAqB;;aAErD,CACJ,CACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/indent */
|
|
2
2
|
import { css } from '@microsoft/fast-element';
|
|
3
3
|
import { display } from '@microsoft/fast-foundation';
|
|
4
|
-
import { borderRgbPartialColor, borderHoverColor, borderWidth, bodyFontColor, bodyDisabledFontColor, controlHeight, failColor,
|
|
4
|
+
import { borderRgbPartialColor, borderHoverColor, borderWidth, bodyFontColor, bodyDisabledFontColor, controlHeight, failColor, labelHeight, smallDelay, controlLabelFont, bodyFont, controlLabelFontColor, controlLabelDisabledFontColor, standardPadding } from '../theme-provider/design-tokens';
|
|
5
5
|
import { appearanceBehavior } from '../utilities/style/appearance';
|
|
6
6
|
import { TextFieldAppearance } from './types';
|
|
7
7
|
import { Theme } from '../theme-provider/types';
|
|
@@ -134,11 +134,6 @@ export const styles = css `
|
|
|
134
134
|
text-overflow: clip;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
.control::selection {
|
|
138
|
-
color: ${controlLabelFontColor};
|
|
139
|
-
background: rgba(${fillSelectedRgbPartialColor}, 0.3);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
137
|
.control::placeholder {
|
|
143
138
|
color: ${controlLabelFontColor};
|
|
144
139
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/text-field/styles.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,OAAO,EACH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C,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAyC5C;AACE;;6CAE6C,CAAC,EAClD;;;;;iBAKS,qBAAqB;;;;iBAIrB,qBAAqB;;;;;;;;;;4BAUV,WAAW;;;yBAGd,gBAAgB;;4BAEb,UAAU;;;;;;;;;;+BAUP,SAAS;;;;;;;;;;;;;;;;;UAiB9B,aAAa,CAAC,iBAAiB;;CAExC,CAAC,aAAa,CACX,kBAAkB,CACd,mBAAmB,CAAC,SAAS,EAC7B,GAAG,CAAA;;uCAE4B,WAAW;;;SAGzC,CACJ,EACD,kBAAkB,CACd,mBAAmB,CAAC,KAAK,EACzB,GAAG,CAAA;;yCAE8B,qBAAqB;;;;gCAI9B,WAAW;iCACV,WAAW;;;;;uCAKL,WAAW;;;;;;;;;yCAST,qBAAqB;;;;;yCAKrB,qBAAqB;;SAErD,CACJ,EACD,kBAAkB,CACd,mBAAmB,CAAC,OAAO,EAC3B,GAAG,CAAA;;gCAEqB,WAAW;;;SAGlC,CACJ,EACD,kBAAkB,CACd,mBAAmB,CAAC,SAAS,EAC7B,GAAG,CAAA;;gCAEqB,WAAW;iCACV,WAAW;;;;;;SAMnC,CACJ,EACD,aAAa,CACT,KAAK,CAAC,KAAK,EACX,GAAG,CAAA;;;;SAIF,CACJ,EACD,aAAa,CACT,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,EACzB,GAAG,CAAA;;;;SAIF,CACJ,CACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/nimble-components",
|
|
3
|
-
"version": "11.8.
|
|
3
|
+
"version": "11.8.5",
|
|
4
4
|
"description": "Styled web components for the NI Nimble Design System",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run generate-icons && npm run build-components && npm run bundle-components && npm run generate-scss && npm run build-storybook",
|