@ni/nimble-components 3.1.0 → 3.2.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,12 @@
1
+ import { Breadcrumb as FoundationBreadcrumb } from '@microsoft/fast-foundation';
2
+ export type { Breadcrumb };
3
+ declare global {
4
+ interface HTMLElementTagNameMap {
5
+ 'nimble-breadcrumb': Breadcrumb;
6
+ }
7
+ }
8
+ /**
9
+ * A nimble-styled breadcrumb
10
+ */
11
+ declare class Breadcrumb extends FoundationBreadcrumb {
12
+ }
@@ -0,0 +1,16 @@
1
+ import { DesignSystem, Breadcrumb as FoundationBreadcrumb, breadcrumbTemplate as template } from '@microsoft/fast-foundation';
2
+ import { styles } from './styles';
3
+ /**
4
+ * A nimble-styled breadcrumb
5
+ */
6
+ class Breadcrumb extends FoundationBreadcrumb {
7
+ }
8
+ const nimbleBreadcrumb = Breadcrumb.compose({
9
+ baseName: 'breadcrumb',
10
+ baseClass: FoundationBreadcrumb,
11
+ // @ts-expect-error FAST templates have incorrect type, see: https://github.com/microsoft/fast/issues/5047
12
+ template,
13
+ styles
14
+ });
15
+ DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBreadcrumb());
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/breadcrumb/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,UAAU,IAAI,oBAAoB,EAClC,kBAAkB,IAAI,QAAQ,EACjC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAUlC;;GAEG;AACH,MAAM,UAAW,SAAQ,oBAAoB;CAAG;AAEhD,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,CAAC;IACxC,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,oBAAoB;IAC/B,0GAA0G;IAC1G,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const styles: import("@microsoft/fast-element").ElementStyles;
@@ -0,0 +1,25 @@
1
+ import { css } from '@microsoft/fast-element';
2
+ import { display } from '@microsoft/fast-foundation';
3
+ import { bodyFont } from '../theme-provider/design-tokens';
4
+ export const styles = css `
5
+ ${display('inline-block')}
6
+
7
+ :host {
8
+ box-sizing: border-box;
9
+ font: ${bodyFont};
10
+ }
11
+
12
+ .list {
13
+ display: flex;
14
+ flex-wrap: wrap;
15
+ }
16
+
17
+ ::slotted(*:first-child) {
18
+ padding-left: 0px;
19
+ }
20
+
21
+ ::slotted(*:not([href]):last-child) {
22
+ font-weight: bold;
23
+ }
24
+ `;
25
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +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,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAE3D,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,cAAc,CAAC;;;;gBAIb,QAAQ;;;;;;;;;;;;;;;CAevB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { BreadcrumbItem as FoundationBreadcrumbItem } from '@microsoft/fast-foundation';
2
+ export type { BreadcrumbItem };
3
+ declare global {
4
+ interface HTMLElementTagNameMap {
5
+ 'nimble-breadcrumb-item': BreadcrumbItem;
6
+ }
7
+ }
8
+ /**
9
+ * A nimble-styled breadcrumb item
10
+ */
11
+ declare class BreadcrumbItem extends FoundationBreadcrumbItem {
12
+ }
@@ -0,0 +1,20 @@
1
+ import { DesignSystem, BreadcrumbItem as FoundationBreadcrumbItem, breadcrumbItemTemplate as template } from '@microsoft/fast-foundation';
2
+ import { forwardSlash16X16 } from '@ni/nimble-tokens/dist-icons-esm/nimble-icons-inline';
3
+ import { styles } from './styles';
4
+ /**
5
+ * A nimble-styled breadcrumb item
6
+ */
7
+ class BreadcrumbItem extends FoundationBreadcrumbItem {
8
+ }
9
+ const nimbleBreadcrumbItem = BreadcrumbItem.compose({
10
+ baseName: 'breadcrumb-item',
11
+ baseClass: FoundationBreadcrumbItem,
12
+ // @ts-expect-error FAST templates have incorrect type, see: https://github.com/microsoft/fast/issues/5047
13
+ template,
14
+ styles,
15
+ separator: forwardSlash16X16.data
16
+ });
17
+ DesignSystem.getOrCreate()
18
+ .withPrefix('nimble')
19
+ .register(nimbleBreadcrumbItem());
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/breadcrumb-item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,cAAc,IAAI,wBAAwB,EAC1C,sBAAsB,IAAI,QAAQ,EAErC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AACzF,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAUlC;;GAEG;AACH,MAAM,cAAe,SAAQ,wBAAwB;CAAG;AAExD,MAAM,oBAAoB,GAAG,cAAc,CAAC,OAAO,CAAwB;IACvE,QAAQ,EAAE,iBAAiB;IAC3B,SAAS,EAAE,wBAAwB;IACnC,0GAA0G;IAC1G,QAAQ;IACR,MAAM;IACN,SAAS,EAAE,iBAAiB,CAAC,IAAI;CACpC,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE;KACrB,UAAU,CAAC,QAAQ,CAAC;KACpB,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const styles: import("@microsoft/fast-element").ElementStyles;
@@ -0,0 +1,65 @@
1
+ import { css } from '@microsoft/fast-element';
2
+ import { display } from '@microsoft/fast-foundation';
3
+ import { bodyFont, bodyFontColor, borderHoverColor, borderWidth, controlHeight, iconSize, passColor } from '../theme-provider/design-tokens';
4
+ export const styles = css `
5
+ ${display('inline-flex')}
6
+
7
+ :host {
8
+ height: ${controlHeight};
9
+ box-sizing: border-box;
10
+ font: ${bodyFont};
11
+ color: ${bodyFontColor};
12
+ padding-left: 4px;
13
+ }
14
+
15
+ .listitem {
16
+ line-height: ${controlHeight};
17
+ }
18
+
19
+ .control {
20
+ color: ${bodyFontColor};
21
+ cursor: default;
22
+ border: ${borderWidth} solid transparent;
23
+ padding: 4px 4px 0px 4px;
24
+ }
25
+
26
+ .control:link {
27
+ cursor: pointer;
28
+ text-decoration: none;
29
+ }
30
+
31
+ .control:hover {
32
+ text-decoration: underline;
33
+ }
34
+
35
+ .control:active {
36
+ color: ${passColor};
37
+ text-decoration: underline;
38
+ }
39
+
40
+ .control:link:focus-within {
41
+ outline-color: ${borderHoverColor};
42
+ }
43
+
44
+ .start,
45
+ .end {
46
+ display: none;
47
+ }
48
+
49
+ .separator {
50
+ padding-left: 2px;
51
+ padding-right: 2px;
52
+ }
53
+
54
+ slot[name='separator'] svg {
55
+ position: relative;
56
+ top: 4px;
57
+ width: ${iconSize};
58
+ height: ${iconSize};
59
+ }
60
+
61
+ slot[name='separator'] path {
62
+ fill: ${bodyFontColor};
63
+ }
64
+ `;
65
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +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,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,QAAQ,EACR,SAAS,EACZ,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,aAAa,CAAC;;;kBAGV,aAAa;;gBAEf,QAAQ;iBACP,aAAa;;;;;uBAKP,aAAa;;;;iBAInB,aAAa;;kBAEZ,WAAW;;;;;;;;;;;;;;iBAcZ,SAAS;;;;;yBAKD,gBAAgB;;;;;;;;;;;;;;;;iBAgBxB,QAAQ;kBACP,QAAQ;;;;gBAIV,aAAa;;CAE5B,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { Breadcrumb as FoundationBreadcrumb } from '@microsoft/fast-foundation';
2
+ export type { Breadcrumb };
3
+ declare global {
4
+ interface HTMLElementTagNameMap {
5
+ 'nimble-breadcrumb': Breadcrumb;
6
+ }
7
+ }
8
+ /**
9
+ * A nimble-styled breadcrumb
10
+ */
11
+ declare class Breadcrumb extends FoundationBreadcrumb {
12
+ }
@@ -0,0 +1 @@
1
+ export declare const styles: import("@microsoft/fast-element").ElementStyles;
@@ -0,0 +1,12 @@
1
+ import { BreadcrumbItem as FoundationBreadcrumbItem } from '@microsoft/fast-foundation';
2
+ export type { BreadcrumbItem };
3
+ declare global {
4
+ interface HTMLElementTagNameMap {
5
+ 'nimble-breadcrumb-item': BreadcrumbItem;
6
+ }
7
+ }
8
+ /**
9
+ * A nimble-styled breadcrumb item
10
+ */
11
+ declare class BreadcrumbItem extends FoundationBreadcrumbItem {
12
+ }
@@ -0,0 +1 @@
1
+ export declare const styles: import("@microsoft/fast-element").ElementStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/nimble-components",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "Styled web components for the NI Nimble Design System",
5
5
  "scripts": {
6
6
  "build": "npm run build-components && npm run generate-scss && npm run build-storybook",