@ni/nimble-components 11.15.1 → 12.0.1

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.
Files changed (71) hide show
  1. package/dist/all-components-bundle.js +460 -416
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +929 -911
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/breadcrumb/index.d.ts +2 -0
  6. package/dist/esm/breadcrumb/index.js +5 -0
  7. package/dist/esm/breadcrumb/index.js.map +1 -1
  8. package/dist/esm/breadcrumb/styles.js +4 -4
  9. package/dist/esm/breadcrumb/types.d.ts +9 -0
  10. package/dist/esm/breadcrumb/types.js +9 -0
  11. package/dist/esm/breadcrumb/types.js.map +1 -0
  12. package/dist/esm/button/index.d.ts +9 -3
  13. package/dist/esm/button/index.js +3 -0
  14. package/dist/esm/button/index.js.map +1 -1
  15. package/dist/esm/button/styles.js +17 -14
  16. package/dist/esm/button/styles.js.map +1 -1
  17. package/dist/esm/button/types.d.ts +9 -0
  18. package/dist/esm/button/types.js +8 -0
  19. package/dist/esm/button/types.js.map +1 -1
  20. package/dist/esm/combobox/index.d.ts +6 -6
  21. package/dist/esm/combobox/index.js +15 -9
  22. package/dist/esm/combobox/index.js.map +1 -1
  23. package/dist/esm/combobox/styles.js +5 -5
  24. package/dist/esm/drawer/styles.js +0 -4
  25. package/dist/esm/drawer/styles.js.map +1 -1
  26. package/dist/esm/icon-base/index.d.ts +9 -2
  27. package/dist/esm/icon-base/index.js +6 -1
  28. package/dist/esm/icon-base/index.js.map +1 -1
  29. package/dist/esm/icon-base/styles.js +4 -4
  30. package/dist/esm/icon-base/types.d.ts +6 -6
  31. package/dist/esm/icon-base/types.js +5 -5
  32. package/dist/esm/icon-base/types.js.map +1 -1
  33. package/dist/esm/list-option/styles.js +2 -2
  34. package/dist/esm/menu-button/index.d.ts +5 -5
  35. package/dist/esm/menu-button/index.js.map +1 -1
  36. package/dist/esm/menu-button/template.d.ts +1 -3
  37. package/dist/esm/menu-button/template.js +6 -5
  38. package/dist/esm/menu-button/template.js.map +1 -1
  39. package/dist/esm/number-field/index.d.ts +4 -5
  40. package/dist/esm/number-field/index.js +23 -12
  41. package/dist/esm/number-field/index.js.map +1 -1
  42. package/dist/esm/number-field/styles.js +5 -4
  43. package/dist/esm/number-field/styles.js.map +1 -1
  44. package/dist/esm/patterns/button/types.d.ts +1 -1
  45. package/dist/esm/patterns/dropdown/styles.js +1 -1
  46. package/dist/esm/patterns/dropdown/types.d.ts +8 -0
  47. package/dist/esm/patterns/dropdown/types.js +2 -3
  48. package/dist/esm/patterns/dropdown/types.js.map +1 -1
  49. package/dist/esm/patterns/error/styles.js +4 -4
  50. package/dist/esm/patterns/error/template.d.ts +2 -2
  51. package/dist/esm/patterns/error/template.js.map +1 -1
  52. package/dist/esm/patterns/error/types.d.ts +5 -4
  53. package/dist/esm/text-field/index.d.ts +5 -5
  54. package/dist/esm/text-field/index.js +13 -8
  55. package/dist/esm/text-field/index.js.map +1 -1
  56. package/dist/esm/text-field/styles.js +6 -6
  57. package/dist/esm/toggle-button/index.d.ts +2 -2
  58. package/dist/esm/tooltip/index.d.ts +8 -0
  59. package/dist/esm/tooltip/index.js +12 -0
  60. package/dist/esm/tooltip/index.js.map +1 -1
  61. package/dist/esm/tooltip/styles.js +8 -8
  62. package/dist/esm/tooltip/template.d.ts +1 -3
  63. package/dist/esm/tooltip/template.js +13 -8
  64. package/dist/esm/tooltip/template.js.map +1 -1
  65. package/dist/esm/tooltip/types.d.ts +4 -4
  66. package/dist/esm/tooltip/types.js +3 -3
  67. package/dist/esm/tooltip/types.js.map +1 -1
  68. package/dist/esm/tree-item/styles.d.ts +1 -3
  69. package/dist/esm/tree-item/styles.js +181 -176
  70. package/dist/esm/tree-item/styles.js.map +1 -1
  71. package/package.json +2 -2
@@ -1,12 +1,12 @@
1
1
  import { html, ref, when } from '@microsoft/fast-element';
2
+ import { DesignSystem } from '@microsoft/fast-foundation';
2
3
  import { AnchoredRegion } from '../anchored-region';
3
4
  import { IconExclamationMark } from '../icons/exclamation-mark';
4
5
  import { IconInfo } from '../icons/info';
5
6
  // prettier-ignore
6
- export const template = context => {
7
- return html `
7
+ export const template = html `
8
8
  ${when(x => x.tooltipVisible, html `
9
- <${context.tagFor(AnchoredRegion)}
9
+ <${DesignSystem.tagFor(AnchoredRegion)}
10
10
  class="anchored-region"
11
11
  fixed-placement="true"
12
12
  auto-update-mode="${x => x.autoUpdateMode}"
@@ -24,12 +24,17 @@ export const template = context => {
24
24
  ${ref('region')}
25
25
  >
26
26
  <div class="tooltip" part="tooltip" role="tooltip">
27
- <${context.tagFor(IconExclamationMark)} class="fail status-icon"></${context.tagFor(IconExclamationMark)}>
28
- <${context.tagFor(IconInfo)} class="information status-icon"></${context.tagFor(IconInfo)}>
27
+ <${DesignSystem.tagFor(IconExclamationMark)}
28
+ severity="error"
29
+ class="status-icon"
30
+ ></${DesignSystem.tagFor(IconExclamationMark)}>
31
+ <${DesignSystem.tagFor(IconInfo)}
32
+ severity="information"
33
+ class="status-icon"
34
+ ></${DesignSystem.tagFor(IconInfo)}>
29
35
  <slot></slot>
30
36
  </div>
31
- </${context.tagFor(AnchoredRegion)}>
37
+ </${DesignSystem.tagFor(AnchoredRegion)}>
32
38
  `)}
33
- `;
34
- };
39
+ `;
35
40
  //# sourceMappingURL=template.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/tooltip/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAgB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAExE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,kBAAkB;AAClB,MAAM,CAAC,MAAM,QAAQ,GAAqD,OAAO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AAY,CAAC,MAAM,CAAC,cAAc,CAAC;SAC1C,CACJ;CACJ,CAAC"}
@@ -2,9 +2,9 @@
2
2
  * Types of tooltip appearance.
3
3
  * @public
4
4
  */
5
- export declare const TooltipStatus: {
6
- readonly default: "";
7
- readonly fail: "fail";
5
+ export declare const TooltipSeverity: {
6
+ readonly default: undefined;
7
+ readonly error: "error";
8
8
  readonly information: "information";
9
9
  };
10
- export declare type TooltipStatus = typeof TooltipStatus[keyof typeof TooltipStatus];
10
+ export declare type TooltipSeverity = typeof TooltipSeverity[keyof typeof TooltipSeverity];
@@ -2,9 +2,9 @@
2
2
  * Types of tooltip appearance.
3
3
  * @public
4
4
  */
5
- export const TooltipStatus = {
6
- default: '',
7
- fail: 'fail',
5
+ export const TooltipSeverity = {
6
+ default: undefined,
7
+ error: 'error',
8
8
  information: 'information'
9
9
  };
10
10
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/tooltip/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;CACpB,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/tooltip/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CACpB,CAAC"}
@@ -1,3 +1 @@
1
- import { ElementStyles } from '@microsoft/fast-element';
2
- import { FoundationElementTemplate, TreeItemOptions } from '@microsoft/fast-foundation';
3
- export declare const styles: FoundationElementTemplate<ElementStyles, TreeItemOptions>;
1
+ export declare const styles: import("@microsoft/fast-element").ElementStyles;
@@ -1,199 +1,204 @@
1
1
  import { css } from '@microsoft/fast-element';
2
- import { display, TreeItem } from '@microsoft/fast-foundation';
2
+ import { display } from '@microsoft/fast-foundation';
3
3
  import { focusVisible } from '../utilities/style/focus';
4
4
  import { bodyFontColor, bodyFontFamily, bodyFontSize, bodyFontWeight, borderHoverColor, fillSelectedColor, fillHoverColor, fillHoverSelectedColor, borderWidth, iconSize } from '../theme-provider/design-tokens';
5
5
  import { groupSelectedAttribute } from '../tree-view/types';
6
6
  import { DirectionalStyleSheetBehavior } from '../utilities/style/direction';
7
- export const styles = (context, _definition) => css `
8
- ${display('block')}
7
+ export const styles = css `
8
+ ${display('block')}
9
9
 
10
- :host {
11
- ${
10
+ :host {
11
+ ${
12
12
  /* don't set font-size here or else it overrides what we set on .items */ ''}
13
- font-family: ${bodyFontFamily};
14
- font-weight: ${bodyFontWeight};
15
- contain: content;
16
- position: relative;
17
- outline: none;
18
- color: ${bodyFontColor};
19
- cursor: pointer;
20
- --ni-private-tree-item-nested-width: 0;
21
- }
22
-
23
- ${ /* this controls the side border */''}
24
- :host([${groupSelectedAttribute}])::after {
25
- background: ${borderHoverColor};
26
- border-radius: 0px;
27
- content: '';
28
- display: block;
29
- position: absolute;
30
- top: 0px;
31
- width: calc(${borderWidth} * 2);
32
- height: calc(${iconSize} * 2);
33
- }
34
-
35
- .positioning-region {
36
- display: flex;
37
- position: relative;
38
- box-sizing: border-box;
39
- height: calc(${iconSize} * 2);
40
- }
41
-
42
- .positioning-region:hover {
43
- background: ${fillHoverColor};
44
- }
45
-
46
- :host([${groupSelectedAttribute}]) .positioning-region:hover {
47
- background: ${fillHoverSelectedColor};
48
- }
49
-
50
- :host(${focusVisible}) .positioning-region {
51
- box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
52
- outline: ${borderWidth} solid ${borderHoverColor};
53
- outline-offset: -2px;
54
- }
55
-
56
- :host([selected]) .positioning-region {
57
- background: ${fillSelectedColor};
58
- }
59
-
60
- :host([selected]) .positioning-region:hover {
61
- background: ${fillHoverSelectedColor};
62
- }
63
-
64
- .positioning-region::before {
65
- content: '';
66
- display: block;
67
- width: var(--ni-private-tree-item-nested-width);
68
- flex-shrink: 0;
69
- }
70
-
71
- .content-region {
72
- display: inline-flex;
73
- align-items: center;
74
- white-space: nowrap;
75
- width: 100%;
76
- padding-left: 10px;
77
- font: inherit;
78
- font-size: ${bodyFontSize};
79
- user-select: none;
80
- position: relative;
81
- margin-inline-start: ${iconSize};
82
- }
83
-
84
- :host(${focusVisible}) .content-region {
85
- outline: none;
86
- }
13
+ font-family: ${bodyFontFamily};
14
+ font-weight: ${bodyFontWeight};
15
+ contain: content;
16
+ position: relative;
17
+ outline: none;
18
+ color: ${bodyFontColor};
19
+ cursor: pointer;
20
+ --ni-private-tree-item-nested-width: 0;
21
+ }
22
+
23
+ ${ /* this controls the side border */''}
24
+ :host([${groupSelectedAttribute}])::after {
25
+ background: ${borderHoverColor};
26
+ border-radius: 0px;
27
+ content: '';
28
+ display: block;
29
+ position: absolute;
30
+ top: 0px;
31
+ width: calc(${borderWidth} * 2);
32
+ height: calc(${iconSize} * 2);
33
+ }
34
+
35
+ .positioning-region {
36
+ display: flex;
37
+ position: relative;
38
+ box-sizing: border-box;
39
+ height: calc(${iconSize} * 2);
40
+ }
41
+
42
+ .positioning-region:hover {
43
+ background: ${fillHoverColor};
44
+ }
45
+
46
+ :host([${groupSelectedAttribute}]) .positioning-region:hover {
47
+ background: ${fillHoverSelectedColor};
48
+ }
49
+
50
+ :host(${focusVisible}) .positioning-region {
51
+ box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
52
+ outline: ${borderWidth} solid ${borderHoverColor};
53
+ outline-offset: -2px;
54
+ }
55
+
56
+ :host([selected]) .positioning-region {
57
+ background: ${fillSelectedColor};
58
+ }
59
+
60
+ :host([selected]) .positioning-region:hover {
61
+ background: ${fillHoverSelectedColor};
62
+ }
63
+
64
+ .positioning-region::before {
65
+ content: '';
66
+ display: block;
67
+ width: var(--ni-private-tree-item-nested-width);
68
+ flex-shrink: 0;
69
+ }
70
+
71
+ .content-region {
72
+ display: inline-flex;
73
+ align-items: center;
74
+ white-space: nowrap;
75
+ width: 100%;
76
+ padding-left: 10px;
77
+ font: inherit;
78
+ font-size: ${bodyFontSize};
79
+ user-select: none;
80
+ position: relative;
81
+ margin-inline-start: ${iconSize};
82
+ }
83
+
84
+ :host(${focusVisible}) .content-region {
85
+ outline: none;
86
+ }
87
+
88
+ :host([disabled]) .content-region {
89
+ opacity: 0.5;
90
+ cursor: not-allowed;
91
+ }
92
+
93
+ .expand-collapse-button {
94
+ background: none;
95
+ border: none;
96
+ outline: none;
97
+ width: ${iconSize};
98
+ height: ${iconSize};
99
+ padding: 0px;
100
+ justify-content: center;
101
+ align-items: center;
102
+ cursor: pointer;
103
+ margin-left: 10px;
104
+ position: absolute;
105
+ }
106
+
107
+ .expand-collapse-button svg {
108
+ width: ${iconSize};
109
+ height: ${iconSize};
110
+ transition: transform 0.2s ease-in;
111
+ pointer-events: none;
112
+ fill: currentcolor;
113
+ }
114
+
115
+ ${
116
+ /* this rule keeps children without an icon text aligned with parents */ ''}
117
+ span[part="start"] {
118
+ width: ${iconSize};
119
+ }
87
120
 
88
- :host([disabled]) .content-region {
89
- opacity: 0.5;
90
- cursor: not-allowed;
91
- }
121
+ ${
122
+ /* the start class is applied when the corresponding slots is filled */ ''}
123
+ .start {
124
+ display: flex;
125
+ fill: currentcolor;
126
+ margin-inline-start: ${iconSize};
127
+ margin-inline-end: ${iconSize};
128
+ }
129
+
130
+ slot[name='start']::slotted(*) {
131
+ width: ${iconSize};
132
+ height: ${iconSize};
133
+ }
134
+
135
+ ${
136
+ /*
137
+ Cannot call DesignSystem.tagFor(TreeItem) as this string is evaluated
138
+ before the registration of the element itself; the style is self-referencing.
139
+ Instead styling against the role which is more general and likely a better approach.
140
+ */ ''}
141
+ ::slotted([role='treeitem']) {
142
+ --ni-private-tree-item-nested-width: 1em;
143
+ --ni-private-expand-collapse-button-nested-width: calc(
144
+ ${iconSize} * -1
145
+ );
146
+ }
147
+
148
+ ${ /* the end class is applied when the corresponding slots is filled */''}
149
+ .end {
150
+ display: flex;
151
+ fill: currentcolor;
152
+ margin-inline-start: ${iconSize};
153
+ }
154
+
155
+ .items {
156
+ display: none;
157
+ ${
158
+ /*
159
+ * this controls the nested indentation (by affecting .positioning-region::before)
160
+ * it must minimally contain arithmetic with an em and a px value
161
+ * make it larger or shorter by changing the px value
162
+ */ ''}
163
+ font-size: calc(1em + (${iconSize} * 2));
164
+ }
92
165
 
166
+ :host([expanded]) .items {
167
+ display: block;
168
+ }
169
+ `.withBehaviors(new DirectionalStyleSheetBehavior(
170
+ // ltr styles
171
+ css `
93
172
  .expand-collapse-button {
94
- background: none;
95
- border: none;
96
- outline: none;
97
- width: ${iconSize};
98
- height: ${iconSize};
99
- padding: 0px;
100
- justify-content: center;
101
- align-items: center;
102
- cursor: pointer;
103
- margin-left: 10px;
104
- position: absolute;
173
+ left: var(
174
+ --ni-private-expand-collapse-button-nested-width,
175
+ calc(${iconSize} * -1)
176
+ );
105
177
  }
106
178
 
107
179
  .expand-collapse-button svg {
108
- width: ${iconSize};
109
- height: ${iconSize};
110
- transition: transform 0.2s ease-in;
111
- pointer-events: none;
112
- fill: currentcolor;
113
- }
114
-
115
- ${
116
- /* this rule keeps children without an icon text aligned with parents */ ''}
117
- span[part="start"] {
118
- width: ${iconSize};
119
- }
120
-
121
- ${
122
- /* the start class is applied when the corresponding slots is filled */ ''}
123
- .start {
124
- display: flex;
125
- fill: currentcolor;
126
- margin-inline-start: ${iconSize};
127
- margin-inline-end: ${iconSize};
180
+ transform: rotate(90deg);
128
181
  }
129
182
 
130
- slot[name='start']::slotted(*) {
131
- width: ${iconSize};
132
- height: ${iconSize};
183
+ :host([expanded]) .expand-collapse-button svg {
184
+ transform: rotate(180deg);
133
185
  }
134
-
135
- ::slotted(${context.tagFor(TreeItem)}) {
136
- --ni-private-tree-item-nested-width: 1em;
137
- --ni-private-expand-collapse-button-nested-width: calc(
138
- ${iconSize} * -1
186
+ `,
187
+ // rtl styles
188
+ css `
189
+ .expand-collapse-button {
190
+ right: var(
191
+ --ni-private-expand-collapse-button-nested-width,
192
+ calc(${iconSize} * -1)
139
193
  );
140
194
  }
141
195
 
142
- ${
143
- /* the end class is applied when the corresponding slots is filled */ ''}
144
- .end {
145
- display: flex;
146
- fill: currentcolor;
147
- margin-inline-start: ${iconSize};
148
- }
149
-
150
- .items {
151
- display: none;
152
- ${
153
- /*
154
- * this controls the nested indentation (by affecting .positioning-region::before)
155
- * it must minimally contain arithmetic with an em and a px value
156
- * make it larger or shorter by changing the px value
157
- */ ''}
158
- font-size: calc(1em + (${iconSize} * 2));
196
+ .expand-collapse-button svg {
197
+ transform: rotate(180deg);
159
198
  }
160
199
 
161
- :host([expanded]) .items {
162
- display: block;
200
+ :host([expanded]) .expand-collapse-button svg {
201
+ transform: rotate(135deg);
163
202
  }
164
- `.withBehaviors(new DirectionalStyleSheetBehavior(
165
- // ltr styles
166
- css `
167
- .expand-collapse-button {
168
- left: var(
169
- --ni-private-expand-collapse-button-nested-width,
170
- calc(${iconSize} * -1)
171
- );
172
- }
173
-
174
- .expand-collapse-button svg {
175
- transform: rotate(90deg);
176
- }
177
-
178
- :host([expanded]) .expand-collapse-button svg {
179
- transform: rotate(180deg);
180
- }
181
- `,
182
- // rtl styles
183
- css `
184
- .expand-collapse-button {
185
- right: var(
186
- --ni-private-expand-collapse-button-nested-width,
187
- calc(${iconSize} * -1)
188
- );
189
- }
190
-
191
- .expand-collapse-button svg {
192
- transform: rotate(180deg);
193
- }
194
-
195
- :host([expanded]) .expand-collapse-button svg {
196
- transform: rotate(135deg);
197
- }
198
- `));
203
+ `));
199
204
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/tree-item/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAiB,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EACH,OAAO,EAEP,QAAQ,EAEX,MAAM,4BAA4B,CAAC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;;;YAG3B,YAAY;;;;;;;;;;;;;iBAaP,QAAQ;kBACP,QAAQ;;;;;;;;;;iBAUT,QAAQ;kBACP,QAAQ;;;;;;MAMpB;AACE,wEAAwE,CAAC,EAC7E;;iBAEa,QAAQ;;;MAGnB;AACE,uEAAuE,CAAC,EAC5E;;;;+BAI2B,QAAQ;6BACV,QAAQ;;;;iBAIpB,QAAQ;kBACP,QAAQ;;;MAGpB;AACE;;;;EAIF,CAAC,EACH;;;;cAIU,QAAQ;;;;MAIhB,CAAA,qEAAsE,EAAE;;;;+BAI/C,QAAQ;;;;;UAK7B;AACE;;;;GAIG,CAAC,EACR;iCACyB,QAAQ;;;;;;CAMxC,CAAC,aAAa,CACX,IAAI,6BAA6B;AAC7B,aAAa;AACb,GAAG,CAAA;;;;2BAIgB,QAAQ;;;;;;;;;;;SAW1B;AACD,aAAa;AACb,GAAG,CAAA;;;;2BAIgB,QAAQ;;;;;;;;;;;SAW1B,CACJ,CACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/nimble-components",
3
- "version": "11.15.1",
3
+ "version": "12.0.1",
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",
@@ -50,7 +50,7 @@
50
50
  "@microsoft/fast-element": "^1.10.1",
51
51
  "@microsoft/fast-foundation": "^2.46.11",
52
52
  "@microsoft/fast-web-utilities": "^5.4.1",
53
- "@ni/nimble-tokens": "^4.1.0",
53
+ "@ni/nimble-tokens": "^4.1.1",
54
54
  "hex-rgb": "^5.0.0",
55
55
  "tslib": "^2.2.0"
56
56
  },