@ni/nimble-components 29.7.3 → 29.7.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.
@@ -1,31 +1,21 @@
1
1
  import { css } from '@microsoft/fast-element';
2
2
  import { display } from '../utilities/style/display';
3
- import { bodyEmphasizedFont, linkActiveFontColor, linkActiveProminentFontColor, linkFont, linkFontColor, linkProminentFontColor } from '../theme-provider/design-tokens';
3
+ import { bodyEmphasizedFont, linkFontColor, linkProminentFontColor } from '../theme-provider/design-tokens';
4
4
  export const styles = css `
5
5
  ${display('inline-block')}
6
6
 
7
- :host {
8
- font: ${linkFont};
9
- --ni-private-breadcrumb-link-font-color: ${linkFontColor};
10
- --ni-private-breadcrumb-link-active-font-color: ${linkActiveFontColor};
11
- }
12
-
13
- :host([appearance='prominent']) {
14
- --ni-private-breadcrumb-link-font-color: ${linkProminentFontColor};
15
- --ni-private-breadcrumb-link-active-font-color: ${linkActiveProminentFontColor};
16
- }
17
-
18
7
  .list {
19
8
  display: flex;
20
9
  flex-wrap: wrap;
21
10
  }
22
11
 
23
- ::slotted(*:first-child) {
24
- padding-left: 0px;
12
+ ::slotted(:last-child) {
13
+ font: ${bodyEmphasizedFont};
14
+ color: ${linkFontColor};
25
15
  }
26
16
 
27
- ::slotted(*:not([href]):last-child) {
28
- font: ${bodyEmphasizedFont};
17
+ :host([appearance='prominent']) ::slotted(:last-child) {
18
+ color: ${linkProminentFontColor};
29
19
  }
30
20
  `;
31
21
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/breadcrumb/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,kBAAkB,EAClB,mBAAmB,EACnB,4BAA4B,EAC5B,QAAQ,EACR,aAAa,EACb,sBAAsB,EACzB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,cAAc,CAAC;;;gBAGb,QAAQ;mDAC2B,aAAa;0DACN,mBAAmB;;;;mDAI1B,sBAAsB;0DACf,4BAA4B;;;;;;;;;;;;;gBAatE,kBAAkB;;CAEjC,CAAC","sourcesContent":["import { css } from '@microsoft/fast-element';\nimport { display } from '../utilities/style/display';\nimport {\n bodyEmphasizedFont,\n linkActiveFontColor,\n linkActiveProminentFontColor,\n linkFont,\n linkFontColor,\n linkProminentFontColor\n} from '../theme-provider/design-tokens';\n\nexport const styles = css`\n ${display('inline-block')}\n\n :host {\n font: ${linkFont};\n --ni-private-breadcrumb-link-font-color: ${linkFontColor};\n --ni-private-breadcrumb-link-active-font-color: ${linkActiveFontColor};\n }\n\n :host([appearance='prominent']) {\n --ni-private-breadcrumb-link-font-color: ${linkProminentFontColor};\n --ni-private-breadcrumb-link-active-font-color: ${linkActiveProminentFontColor};\n }\n\n .list {\n display: flex;\n flex-wrap: wrap;\n }\n\n ::slotted(*:first-child) {\n padding-left: 0px;\n }\n\n ::slotted(*:not([href]):last-child) {\n font: ${bodyEmphasizedFont};\n }\n`;\n"]}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/breadcrumb/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,kBAAkB,EAClB,aAAa,EACb,sBAAsB,EACzB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,cAAc,CAAC;;;;;;;;gBAQb,kBAAkB;iBACjB,aAAa;;;;iBAIb,sBAAsB;;CAEtC,CAAC","sourcesContent":["import { css } from '@microsoft/fast-element';\nimport { display } from '../utilities/style/display';\nimport {\n bodyEmphasizedFont,\n linkFontColor,\n linkProminentFontColor\n} from '../theme-provider/design-tokens';\n\nexport const styles = css`\n ${display('inline-block')}\n\n .list {\n display: flex;\n flex-wrap: wrap;\n }\n\n ::slotted(:last-child) {\n font: ${bodyEmphasizedFont};\n color: ${linkFontColor};\n }\n\n :host([appearance='prominent']) ::slotted(:last-child) {\n color: ${linkProminentFontColor};\n }\n`;\n"]}
@@ -1,72 +1,92 @@
1
1
  import { css } from '@microsoft/fast-element';
2
2
  import { display } from '../utilities/style/display';
3
- import { bodyFontColor, borderHoverColor, borderWidth, controlHeight, iconSize, linkFont, placeholderFontColor } from '../theme-provider/design-tokens';
3
+ import { borderHoverColor, controlHeight, iconSize, linkActiveFontColor, linkDisabledFontColor, linkFont, linkFontColor, mediumPadding, placeholderFontColor } from '../theme-provider/design-tokens';
4
4
  import { focusVisible } from '../utilities/style/focus';
5
5
  export const styles = css `
6
- ${display('inline-flex')}
6
+ @layer base, hover, focusVisible, active, disabled;
7
7
 
8
- :host {
9
- height: ${controlHeight};
10
- padding-left: calc(4px - ${borderWidth});
8
+ @layer base {
9
+ ${display('inline-flex')}
11
10
 
12
- ${
11
+ :host {
12
+ height: ${controlHeight};
13
+
14
+ ${
13
15
  /* When href removed the .control element is also removed
14
- so this becomes the fallback color for the slot */ ''}
15
- color: ${bodyFontColor};
16
- font: ${linkFont};
17
- }
16
+ so this becomes the fallback color for the slot */ ''}
17
+ color: ${linkDisabledFontColor};
18
+ font: ${linkFont};
19
+ }
18
20
 
19
- .listitem {
20
- display: flex;
21
- align-items: center;
22
- }
21
+ .listitem {
22
+ display: flex;
23
+ align-items: center;
24
+ }
23
25
 
24
- .control {
25
- color: var(--ni-private-breadcrumb-link-font-color);
26
- display: flex;
27
- align-items: center;
28
- justify-content: center;
29
- border: ${borderWidth} solid transparent;
30
- padding-right: calc(4px - ${borderWidth});
31
- text-decoration: none;
32
- }
26
+ .control {
27
+ color: ${linkFontColor};
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ text-decoration: none;
32
+ }
33
33
 
34
- .control:hover {
35
- text-decoration: underline;
36
- }
34
+ [part='start'] {
35
+ display: none;
36
+ }
37
37
 
38
- .control${focusVisible} {
39
- border: ${borderWidth} solid ${borderHoverColor};
40
- outline: 2px solid ${borderHoverColor};
41
- outline-offset: 1px;
42
- }
38
+ .content {
39
+ pointer-events: none;
40
+ }
43
41
 
44
- .control:active {
45
- color: var(--ni-private-breadcrumb-link-active-font-color);
46
- text-decoration: none;
47
- }
42
+ [part='end'] {
43
+ display: none;
44
+ }
45
+
46
+ .separator {
47
+ padding-left: ${mediumPadding};
48
+ padding-right: ${mediumPadding};
49
+ }
50
+
51
+ slot[name='separator'] {
52
+ display: flex;
53
+ align-items: center;
54
+ }
48
55
 
49
- [part='start'] {
50
- display: none;
56
+ slot[name='separator'] svg {
57
+ width: ${iconSize};
58
+ height: ${iconSize};
59
+ fill: ${placeholderFontColor};
60
+ }
51
61
  }
52
62
 
53
- .content {
54
- pointer-events: none;
63
+ @layer hover {
64
+ .control:any-link:hover {
65
+ text-decoration: underline;
66
+ }
55
67
  }
56
68
 
57
- [part='end'] {
58
- display: none;
69
+ @layer focusVisible {
70
+ .control${focusVisible} {
71
+ outline: none;
72
+ box-shadow: inset 0px -1px;
73
+ text-decoration: underline;
74
+ color: ${borderHoverColor};
75
+ }
59
76
  }
60
77
 
61
- slot[name='separator'] {
62
- display: flex;
63
- align-items: center;
78
+ @layer active {
79
+ .control:active {
80
+ color: ${linkActiveFontColor};
81
+ text-decoration: underline;
82
+ box-shadow: none;
83
+ }
64
84
  }
65
85
 
66
- slot[name='separator'] svg {
67
- width: ${iconSize};
68
- height: ${iconSize};
69
- fill: ${placeholderFontColor};
86
+ @layer disabled {
87
+ .control:not(:any-link) {
88
+ color: ${linkDisabledFontColor};
89
+ }
70
90
  }
71
91
  `;
72
92
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/breadcrumb-item/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,oBAAoB,EACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,aAAa,CAAC;;;kBAGV,aAAa;mCACI,WAAW;;UAEpC;AACE;mDACmD,CAAC,EACxD;iBACS,aAAa;gBACd,QAAQ;;;;;;;;;;;;;kBAaN,WAAW;oCACO,WAAW;;;;;;;;cAQjC,YAAY;kBACR,WAAW,UAAU,gBAAgB;6BAC1B,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2B5B,QAAQ;kBACP,QAAQ;gBACV,oBAAoB;;CAEnC,CAAC","sourcesContent":["import { css } from '@microsoft/fast-element';\nimport { display } from '../utilities/style/display';\nimport {\n bodyFontColor,\n borderHoverColor,\n borderWidth,\n controlHeight,\n iconSize,\n linkFont,\n placeholderFontColor\n} from '../theme-provider/design-tokens';\nimport { focusVisible } from '../utilities/style/focus';\n\nexport const styles = css`\n ${display('inline-flex')}\n\n :host {\n height: ${controlHeight};\n padding-left: calc(4px - ${borderWidth});\n\n ${\n /* When href removed the .control element is also removed\n so this becomes the fallback color for the slot */ ''\n }\n color: ${bodyFontColor};\n font: ${linkFont};\n }\n\n .listitem {\n display: flex;\n align-items: center;\n }\n\n .control {\n color: var(--ni-private-breadcrumb-link-font-color);\n display: flex;\n align-items: center;\n justify-content: center;\n border: ${borderWidth} solid transparent;\n padding-right: calc(4px - ${borderWidth});\n text-decoration: none;\n }\n\n .control:hover {\n text-decoration: underline;\n }\n\n .control${focusVisible} {\n border: ${borderWidth} solid ${borderHoverColor};\n outline: 2px solid ${borderHoverColor};\n outline-offset: 1px;\n }\n\n .control:active {\n color: var(--ni-private-breadcrumb-link-active-font-color);\n text-decoration: none;\n }\n\n [part='start'] {\n display: none;\n }\n\n .content {\n pointer-events: none;\n }\n\n [part='end'] {\n display: none;\n }\n\n slot[name='separator'] {\n display: flex;\n align-items: center;\n }\n\n slot[name='separator'] svg {\n width: ${iconSize};\n height: ${iconSize};\n fill: ${placeholderFontColor};\n }\n`;\n"]}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/breadcrumb-item/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,gBAAgB,EAChB,aAAa,EACb,QAAQ,EACR,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACR,aAAa,EACb,aAAa,EACb,oBAAoB,EACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;UAIf,OAAO,CAAC,aAAa,CAAC;;;sBAGV,aAAa;;cAErB;AACE;kDACkD,CAAC,EACvD;qBACS,qBAAqB;oBACtB,QAAQ;;;;;;;;;qBASP,aAAa;;;;;;;;;;;;;;;;;;;;4BAoBN,aAAa;6BACZ,aAAa;;;;;;;;;qBASrB,QAAQ;sBACP,QAAQ;oBACV,oBAAoB;;;;;;;;;;;kBAWtB,YAAY;;;;qBAIT,gBAAgB;;;;;;qBAMhB,mBAAmB;;;;;;;;qBAQnB,qBAAqB;;;CAGzC,CAAC","sourcesContent":["import { css } from '@microsoft/fast-element';\nimport { display } from '../utilities/style/display';\nimport {\n borderHoverColor,\n controlHeight,\n iconSize,\n linkActiveFontColor,\n linkDisabledFontColor,\n linkFont,\n linkFontColor,\n mediumPadding,\n placeholderFontColor\n} from '../theme-provider/design-tokens';\nimport { focusVisible } from '../utilities/style/focus';\n\nexport const styles = css`\n @layer base, hover, focusVisible, active, disabled;\n\n @layer base {\n ${display('inline-flex')}\n\n :host {\n height: ${controlHeight};\n\n ${\n /* When href removed the .control element is also removed\n so this becomes the fallback color for the slot */ ''\n }\n color: ${linkDisabledFontColor};\n font: ${linkFont};\n }\n\n .listitem {\n display: flex;\n align-items: center;\n }\n\n .control {\n color: ${linkFontColor};\n display: flex;\n align-items: center;\n justify-content: center;\n text-decoration: none;\n }\n\n [part='start'] {\n display: none;\n }\n\n .content {\n pointer-events: none;\n }\n\n [part='end'] {\n display: none;\n }\n\n .separator {\n padding-left: ${mediumPadding};\n padding-right: ${mediumPadding};\n }\n\n slot[name='separator'] {\n display: flex;\n align-items: center;\n }\n\n slot[name='separator'] svg {\n width: ${iconSize};\n height: ${iconSize};\n fill: ${placeholderFontColor};\n }\n }\n\n @layer hover {\n .control:any-link:hover {\n text-decoration: underline;\n }\n }\n\n @layer focusVisible {\n .control${focusVisible} {\n outline: none;\n box-shadow: inset 0px -1px;\n text-decoration: underline;\n color: ${borderHoverColor};\n }\n }\n\n @layer active {\n .control:active {\n color: ${linkActiveFontColor};\n text-decoration: underline;\n box-shadow: none;\n }\n }\n\n @layer disabled {\n .control:not(:any-link) {\n color: ${linkDisabledFontColor};\n }\n }\n`;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/nimble-components",
3
- "version": "29.7.3",
3
+ "version": "29.7.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 generate-workers && npm run build-components && npm run bundle-components && npm run generate-scss",
@@ -67,8 +67,8 @@
67
67
  "@microsoft/fast-foundation": "^2.49.6",
68
68
  "@microsoft/fast-web-utilities": "^6.0.0",
69
69
  "@ni/nimble-tokens": "^6.15.0",
70
- "@tanstack/table-core": "^8.10.7",
71
- "@tanstack/virtual-core": "^3.0.0-beta.68",
70
+ "@tanstack/table-core": "^8.19.2",
71
+ "@tanstack/virtual-core": "^3.8.1",
72
72
  "@tiptap/core": "^2.2.2",
73
73
  "@tiptap/extension-bold": "^2.2.2",
74
74
  "@tiptap/extension-bullet-list": "^2.2.2",