@ni/nimble-components 15.5.8 → 16.0.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.
- package/dist/all-components-bundle.js +1336 -965
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +2050 -1828
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/all-components.d.ts +2 -0
- package/dist/esm/all-components.js +2 -0
- package/dist/esm/all-components.js.map +1 -1
- package/dist/esm/anchor/index.d.ts +24 -0
- package/dist/esm/anchor/index.js +37 -0
- package/dist/esm/anchor/index.js.map +1 -0
- package/dist/esm/anchor/styles.d.ts +1 -0
- package/dist/esm/anchor/styles.js +86 -0
- package/dist/esm/anchor/styles.js.map +1 -0
- package/dist/esm/anchor/template.d.ts +4 -0
- package/dist/esm/anchor/template.js +53 -0
- package/dist/esm/anchor/template.js.map +1 -0
- package/dist/esm/anchor/types.d.ts +9 -0
- package/dist/esm/anchor/types.js +9 -0
- package/dist/esm/anchor/types.js.map +1 -0
- package/dist/esm/anchor-base/index.d.ts +6 -0
- package/dist/esm/anchor-base/index.js +7 -0
- package/dist/esm/anchor-base/index.js.map +1 -0
- package/dist/esm/anchor-button/index.d.ts +36 -0
- package/dist/esm/anchor-button/index.js +55 -0
- package/dist/esm/anchor-button/index.js.map +1 -0
- package/dist/esm/anchor-button/styles.d.ts +1 -0
- package/dist/esm/anchor-button/styles.js +11 -0
- package/dist/esm/anchor-button/styles.js.map +1 -0
- package/dist/esm/anchor-button/template.d.ts +4 -0
- package/dist/esm/anchor-button/template.js +44 -0
- package/dist/esm/anchor-button/template.js.map +1 -0
- package/dist/esm/anchor-button/types.d.ts +5 -0
- package/dist/esm/anchor-button/types.js +6 -0
- package/dist/esm/anchor-button/types.js.map +1 -0
- package/dist/esm/breadcrumb/styles.js +10 -36
- package/dist/esm/breadcrumb/styles.js.map +1 -1
- package/dist/esm/breadcrumb-item/styles.js +13 -14
- package/dist/esm/breadcrumb-item/styles.js.map +1 -1
- package/dist/esm/button/index.d.ts +2 -2
- package/dist/esm/button/index.js.map +1 -1
- package/dist/esm/button/styles.js +5 -82
- package/dist/esm/button/styles.js.map +1 -1
- package/dist/esm/button/types.d.ts +1 -10
- package/dist/esm/button/types.js +1 -9
- package/dist/esm/button/types.js.map +1 -1
- package/dist/esm/patterns/button/styles.d.ts +1 -0
- package/dist/esm/patterns/button/styles.js +81 -4
- package/dist/esm/patterns/button/styles.js.map +1 -1
- package/dist/esm/patterns/button/types.d.ts +18 -0
- package/dist/esm/patterns/button/types.js +8 -0
- package/dist/esm/patterns/button/types.js.map +1 -1
- package/dist/esm/theme-provider/design-token-comments.js +32 -8
- package/dist/esm/theme-provider/design-token-comments.js.map +1 -1
- package/dist/esm/theme-provider/design-token-names.js +32 -8
- package/dist/esm/theme-provider/design-token-names.js.map +1 -1
- package/dist/esm/theme-provider/design-tokens.d.ts +4 -1
- package/dist/esm/theme-provider/design-tokens.js +5 -2
- package/dist/esm/theme-provider/design-tokens.js.map +1 -1
- package/dist/esm/toggle-button/styles.js +2 -2
- package/dist/esm/wafer-map/index.d.ts +2 -0
- package/dist/esm/wafer-map/index.js +14 -1
- package/dist/esm/wafer-map/index.js.map +1 -1
- package/dist/esm/wafer-map/modules/rendering.d.ts +11 -0
- package/dist/esm/wafer-map/modules/rendering.js +26 -0
- package/dist/esm/wafer-map/modules/rendering.js.map +1 -0
- package/dist/esm/wafer-map/styles.js +55 -1
- package/dist/esm/wafer-map/styles.js.map +1 -1
- package/dist/esm/wafer-map/template.js +12 -9
- package/dist/esm/wafer-map/template.js.map +1 -1
- package/dist/tokens-internal.scss +168 -24
- package/dist/tokens.scss +88 -16
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-components.js","sourceRoot":"","sources":["../../src/all-components.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,mBAAmB,CAAC;AAC3B,OAAO,cAAc,CAAC;AACtB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,UAAU,CAAC;AAClB,OAAO,eAAe,CAAC;AACvB,OAAO,YAAY,CAAC;AACpB,OAAO,YAAY,CAAC;AACpB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC;AAClB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,eAAe,CAAC;AACvB,OAAO,QAAQ,CAAC;AAChB,OAAO,eAAe,CAAC;AACvB,OAAO,aAAa,CAAC;AACrB,OAAO,gBAAgB,CAAC;AACxB,OAAO,SAAS,CAAC;AACjB,OAAO,eAAe,CAAC;AACvB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC;AAClB,OAAO,OAAO,CAAC;AACf,OAAO,aAAa,CAAC;AACrB,OAAO,SAAS,CAAC;AACjB,OAAO,QAAQ,CAAC;AAChB,OAAO,gBAAgB,CAAC;AACxB,OAAO,aAAa,CAAC;AACrB,OAAO,cAAc,CAAC;AACtB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,iBAAiB,CAAC;AACzB,OAAO,WAAW,CAAC;AACnB,OAAO,WAAW,CAAC;AACnB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"all-components.js","sourceRoot":"","sources":["../../src/all-components.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,UAAU,CAAC;AAClB,OAAO,iBAAiB,CAAC;AACzB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,cAAc,CAAC;AACtB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,UAAU,CAAC;AAClB,OAAO,eAAe,CAAC;AACvB,OAAO,YAAY,CAAC;AACpB,OAAO,YAAY,CAAC;AACpB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC;AAClB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,eAAe,CAAC;AACvB,OAAO,QAAQ,CAAC;AAChB,OAAO,eAAe,CAAC;AACvB,OAAO,aAAa,CAAC;AACrB,OAAO,gBAAgB,CAAC;AACxB,OAAO,SAAS,CAAC;AACjB,OAAO,eAAe,CAAC;AACvB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC;AAClB,OAAO,OAAO,CAAC;AACf,OAAO,aAAa,CAAC;AACrB,OAAO,SAAS,CAAC;AACjB,OAAO,QAAQ,CAAC;AAChB,OAAO,gBAAgB,CAAC;AACxB,OAAO,aAAa,CAAC;AACrB,OAAO,cAAc,CAAC;AACtB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,iBAAiB,CAAC;AACzB,OAAO,WAAW,CAAC;AACnB,OAAO,WAAW,CAAC;AACnB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AnchorBase } from '../anchor-base';
|
|
2
|
+
import type { AnchorAppearance } from './types';
|
|
3
|
+
declare global {
|
|
4
|
+
interface HTMLElementTagNameMap {
|
|
5
|
+
'nimble-anchor': Anchor;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A nimble-styled anchor
|
|
10
|
+
*/
|
|
11
|
+
export declare class Anchor extends AnchorBase {
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
* @remarks
|
|
15
|
+
* HTML Attribute: underline-hidden
|
|
16
|
+
*/
|
|
17
|
+
underlineHidden: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
* @remarks
|
|
21
|
+
* HTML Attribute: appearance
|
|
22
|
+
*/
|
|
23
|
+
appearance: AnchorAppearance;
|
|
24
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { attr } from '@microsoft/fast-element';
|
|
3
|
+
import { DesignSystem, Anchor as FoundationAnchor } from '@microsoft/fast-foundation';
|
|
4
|
+
import { AnchorBase } from '../anchor-base';
|
|
5
|
+
import { styles } from './styles';
|
|
6
|
+
import { template } from './template';
|
|
7
|
+
/**
|
|
8
|
+
* A nimble-styled anchor
|
|
9
|
+
*/
|
|
10
|
+
export class Anchor extends AnchorBase {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
* @remarks
|
|
16
|
+
* HTML Attribute: underline-hidden
|
|
17
|
+
*/
|
|
18
|
+
this.underlineHidden = false;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
__decorate([
|
|
22
|
+
attr({ attribute: 'underline-hidden', mode: 'boolean' })
|
|
23
|
+
], Anchor.prototype, "underlineHidden", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
attr
|
|
26
|
+
], Anchor.prototype, "appearance", void 0);
|
|
27
|
+
const nimbleAnchor = Anchor.compose({
|
|
28
|
+
baseName: 'anchor',
|
|
29
|
+
baseClass: FoundationAnchor,
|
|
30
|
+
template,
|
|
31
|
+
styles,
|
|
32
|
+
shadowOptions: {
|
|
33
|
+
delegatesFocus: true
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchor());
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/anchor/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EACH,YAAY,EACZ,MAAM,IAAI,gBAAgB,EAE7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAStC;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,UAAU;IAAtC;;QACI;;;;WAIG;QAEI,oBAAe,GAAG,KAAK,CAAC;IASnC,CAAC;CAAA;AATG;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;+CAC1B;AAQ/B;IADC,IAAI;0CAC+B;AAGxC,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,CAAgB;IAC/C,QAAQ,EAAE,QAAQ;IAClB,SAAS,EAAE,gBAAgB;IAC3B,QAAQ;IACR,MAAM;IACN,aAAa,EAAE;QACX,cAAc,EAAE,IAAI;KACvB;CACJ,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
|
+
import { display } from '@microsoft/fast-foundation';
|
|
3
|
+
import { focusVisible } from '../utilities/style/focus';
|
|
4
|
+
import { linkActiveDisabledFontColor, linkActiveFontColor, linkActiveProminentFontColor, linkDisabledFontColor, linkFont, linkFontColor, linkProminentDisabledFontColor, linkProminentFontColor } from '../theme-provider/design-tokens';
|
|
5
|
+
export const styles = css `
|
|
6
|
+
${display('inline')}
|
|
7
|
+
|
|
8
|
+
:host {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
font: ${linkFont};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[part='start'] {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.control {
|
|
18
|
+
color: ${linkFontColor};
|
|
19
|
+
text-decoration: underline;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.control${focusVisible} {
|
|
23
|
+
display: inline;
|
|
24
|
+
outline: none;
|
|
25
|
+
box-shadow: inset 0px -1px ${linkFontColor};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.control:active {
|
|
29
|
+
color: ${linkActiveFontColor};
|
|
30
|
+
text-decoration: underline;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.control${focusVisible}:active {
|
|
34
|
+
box-shadow: inset 0px -1px ${linkActiveFontColor};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.control:not(:any-link) {
|
|
38
|
+
color: ${linkDisabledFontColor};
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.control:not(:any-link):active {
|
|
43
|
+
color: ${linkActiveDisabledFontColor};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([underline-hidden]) .control {
|
|
47
|
+
text-decoration: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([underline-hidden]) .control:hover {
|
|
51
|
+
text-decoration: underline;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host([underline-hidden]) .control${focusVisible} {
|
|
55
|
+
text-decoration: underline;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:host([underline-hidden]) .control:not(:any-link) {
|
|
59
|
+
text-decoration: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host([appearance='prominent']) .control {
|
|
63
|
+
color: ${linkProminentFontColor};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:host([appearance='prominent']) .control:active {
|
|
67
|
+
color: ${linkActiveProminentFontColor};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host([appearance='prominent']) .control${focusVisible} {
|
|
71
|
+
box-shadow: inset 0px -1px ${linkProminentFontColor};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:host([appearance='prominent']) .control${focusVisible}:active {
|
|
75
|
+
box-shadow: inset 0px -1px ${linkActiveProminentFontColor};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:host([appearance='prominent']) .control:not(:any-link) {
|
|
79
|
+
color: ${linkProminentDisabledFontColor};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
[part='end'] {
|
|
83
|
+
display: none;
|
|
84
|
+
}
|
|
85
|
+
`;
|
|
86
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/anchor/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EACH,2BAA2B,EAC3B,mBAAmB,EACnB,4BAA4B,EAC5B,qBAAqB,EACrB,QAAQ,EACR,aAAa,EACb,8BAA8B,EAC9B,sBAAsB,EACzB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,QAAQ,CAAC;;;;gBAIP,QAAQ;;;;;;;;iBAQP,aAAa;;;;cAIhB,YAAY;;;qCAGW,aAAa;;;;iBAIjC,mBAAmB;;;;cAItB,YAAY;qCACW,mBAAmB;;;;iBAIvC,qBAAqB;;;;;iBAKrB,2BAA2B;;;;;;;;;;;wCAWJ,YAAY;;;;;;;;;iBASnC,sBAAsB;;;;iBAItB,4BAA4B;;;8CAGC,YAAY;qCACrB,sBAAsB;;;8CAGb,YAAY;qCACrB,4BAA4B;;;;iBAIhD,8BAA8B;;;;;;CAM9C,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import { AnchorOptions, FoundationElementTemplate } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Anchor } from '.';
|
|
4
|
+
export declare const template: FoundationElementTemplate<ViewTemplate<Anchor>, AnchorOptions>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { html, ref, slotted } from '@microsoft/fast-element';
|
|
2
|
+
import { startSlotTemplate } from '@microsoft/fast-foundation';
|
|
3
|
+
// prettier-ignore
|
|
4
|
+
export const template = (context, definition) => html `
|
|
5
|
+
<a
|
|
6
|
+
class="control"
|
|
7
|
+
part="control"
|
|
8
|
+
download="${x => x.download}"
|
|
9
|
+
href=${x => x.href}
|
|
10
|
+
hreflang="${x => x.hreflang}"
|
|
11
|
+
ping="${x => x.ping}"
|
|
12
|
+
referrerpolicy="${x => x.referrerpolicy}"
|
|
13
|
+
rel="${x => x.rel}"
|
|
14
|
+
target="${x => x.target}"
|
|
15
|
+
type="${x => x.type}"
|
|
16
|
+
aria-atomic="${x => x.ariaAtomic}"
|
|
17
|
+
aria-busy="${x => x.ariaBusy}"
|
|
18
|
+
aria-controls="${x => x.ariaControls}"
|
|
19
|
+
aria-current="${x => x.ariaCurrent}"
|
|
20
|
+
aria-describedby="${x => x.ariaDescribedby}"
|
|
21
|
+
aria-details="${x => x.ariaDetails}"
|
|
22
|
+
aria-disabled="${x => x.ariaDisabled}"
|
|
23
|
+
aria-errormessage="${x => x.ariaErrormessage}"
|
|
24
|
+
aria-expanded="${x => x.ariaExpanded}"
|
|
25
|
+
aria-flowto="${x => x.ariaFlowto}"
|
|
26
|
+
aria-haspopup="${x => x.ariaHaspopup}"
|
|
27
|
+
aria-hidden="${x => x.ariaHidden}"
|
|
28
|
+
aria-invalid="${x => x.ariaInvalid}"
|
|
29
|
+
aria-keyshortcuts="${x => x.ariaKeyshortcuts}"
|
|
30
|
+
aria-label="${x => x.ariaLabel}"
|
|
31
|
+
aria-labelledby="${x => x.ariaLabelledby}"
|
|
32
|
+
aria-live="${x => x.ariaLive}"
|
|
33
|
+
aria-owns="${x => x.ariaOwns}"
|
|
34
|
+
aria-relevant="${x => x.ariaRelevant}"
|
|
35
|
+
aria-roledescription="${x => x.ariaRoledescription}"
|
|
36
|
+
${ref('control')}
|
|
37
|
+
>
|
|
38
|
+
${startSlotTemplate(context, definition)}
|
|
39
|
+
${ /* End slot template inlined to avoid extra whitespace.
|
|
40
|
+
See https://github.com/microsoft/fast/issues/6557 */''}
|
|
41
|
+
${ /* Whitespace intentionally avoided between tags for inline styles */''}
|
|
42
|
+
<span class="content" part="content"><slot ${slotted('defaultSlottedContent')}></slot></span
|
|
43
|
+
><span
|
|
44
|
+
part="end"
|
|
45
|
+
${ref('endContainer')}
|
|
46
|
+
class=${_x => (definition.end ? 'end' : null)}
|
|
47
|
+
>
|
|
48
|
+
<slot name="end" ${ref('end')} @slotchange="${x => x.handleEndContentChange()}">
|
|
49
|
+
${definition.end || ''}
|
|
50
|
+
</slot>
|
|
51
|
+
</span></a>
|
|
52
|
+
`;
|
|
53
|
+
//# sourceMappingURL=template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/anchor/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAgB,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAGH,iBAAiB,EACpB,MAAM,4BAA4B,CAAC;AAGpC,kBAAkB;AAClB,MAAM,CAAC,MAAM,QAAQ,GAGjB,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC,IAAI,CAAQ;;;;oBAIrB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;eACpB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;oBACN,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;gBACnB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;0BACD,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc;eAChC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG;kBACP,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM;gBACf,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;uBACJ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU;qBACnB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;yBACX,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;wBACpB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW;4BACd,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe;wBAC1B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW;yBACjB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;6BACf,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB;yBAC3B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;uBACrB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU;yBACf,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;uBACrB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU;wBAChB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW;6BACb,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB;sBAC9B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;2BACX,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc;qBAC3B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;qBACf,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;yBACX,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;gCACZ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAmB;UAChD,GAAG,CAAC,SAAS,CAAC;;UAEd,iBAAiB,CAAC,OAAO,EAAE,UAAU,CAAC;UACtC,CAAA;yDACwD,EAAE;UAC1D,CAAA,qEAAsE,EAAE;qDAC7B,OAAO,CAAC,uBAAuB,CAAC;;;cAGvE,GAAG,CAAC,cAAc,CAAC;oBACb,EAAE,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;;+BAE1B,GAAG,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,sBAAsB,EAAE;kBACvE,UAAU,CAAC,GAAG,IAAI,EAAE;;;CAGrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/anchor/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;CAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/anchor-base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAExE;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,gBAAgB;CAAG"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { AnchorBase } from '../anchor-base';
|
|
2
|
+
import { ButtonAppearance, ButtonAppearanceVariant, ButtonPattern, ButtonAppearanceVariantPattern } from '../patterns/button/types';
|
|
3
|
+
declare global {
|
|
4
|
+
interface HTMLElementTagNameMap {
|
|
5
|
+
'nimble-anchor-button': AnchorButton;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A nimble-styled anchor button
|
|
10
|
+
*/
|
|
11
|
+
export declare class AnchorButton extends AnchorBase implements ButtonPattern, ButtonAppearanceVariantPattern {
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
* @remarks
|
|
15
|
+
* HTML Attribute: appearance
|
|
16
|
+
*/
|
|
17
|
+
appearance: ButtonAppearance;
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
* @remarks
|
|
21
|
+
* HTML Attribute: appearance-variant
|
|
22
|
+
*/
|
|
23
|
+
appearanceVariant: ButtonAppearanceVariant;
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* @remarks
|
|
27
|
+
* HTML Attribute: content-hidden
|
|
28
|
+
*/
|
|
29
|
+
contentHidden: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* @public
|
|
32
|
+
* @remarks
|
|
33
|
+
* HTML Attribute: disabled
|
|
34
|
+
*/
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { attr } from '@microsoft/fast-element';
|
|
3
|
+
import { DesignSystem } from '@microsoft/fast-foundation';
|
|
4
|
+
import { AnchorBase } from '../anchor-base';
|
|
5
|
+
import { ButtonAppearance } from '../patterns/button/types';
|
|
6
|
+
import { styles } from './styles';
|
|
7
|
+
import { template } from './template';
|
|
8
|
+
/**
|
|
9
|
+
* A nimble-styled anchor button
|
|
10
|
+
*/
|
|
11
|
+
export class AnchorButton extends AnchorBase {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
* @remarks
|
|
17
|
+
* HTML Attribute: appearance
|
|
18
|
+
*/
|
|
19
|
+
this.appearance = ButtonAppearance.outline;
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
* @remarks
|
|
23
|
+
* HTML Attribute: content-hidden
|
|
24
|
+
*/
|
|
25
|
+
this.contentHidden = false;
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
* @remarks
|
|
29
|
+
* HTML Attribute: disabled
|
|
30
|
+
*/
|
|
31
|
+
this.disabled = false;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
__decorate([
|
|
35
|
+
attr
|
|
36
|
+
], AnchorButton.prototype, "appearance", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
attr({ attribute: 'appearance-variant' })
|
|
39
|
+
], AnchorButton.prototype, "appearanceVariant", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
attr({ attribute: 'content-hidden', mode: 'boolean' })
|
|
42
|
+
], AnchorButton.prototype, "contentHidden", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
attr({ mode: 'boolean' })
|
|
45
|
+
], AnchorButton.prototype, "disabled", void 0);
|
|
46
|
+
const nimbleAnchorButton = AnchorButton.compose({
|
|
47
|
+
baseName: 'anchor-button',
|
|
48
|
+
template,
|
|
49
|
+
styles,
|
|
50
|
+
shadowOptions: {
|
|
51
|
+
delegatesFocus: true
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorButton());
|
|
55
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/anchor-button/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAiB,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EACH,gBAAgB,EAInB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQtC;;GAEG;AACH,MAAM,OAAO,YACT,SAAQ,UAAU;IADtB;;QAGI;;;;WAIG;QAEI,eAAU,GAAqB,gBAAgB,CAAC,OAAO,CAAC;QAU/D;;;;WAIG;QAEI,kBAAa,GAAG,KAAK,CAAC;QAE7B;;;;WAIG;QAEI,aAAQ,GAAG,KAAK,CAAC;IAC5B,CAAC;CAAA;AAzBG;IADC,IAAI;gDAC0D;AAQ/D;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC;uDACQ;AAQlD;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;mDAC1B;AAQ7B;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8CACF;AAG5B,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,CAAgB;IAC3D,QAAQ,EAAE,eAAe;IACzB,QAAQ;IACR,MAAM;IACN,aAAa,EAAE;QACX,cAAc,EAAE,IAAI;KACvB;CACJ,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
|
+
import { buttonAppearanceVariantStyles, styles as buttonStyles } from '../patterns/button/styles';
|
|
3
|
+
export const styles = css `
|
|
4
|
+
${buttonStyles}
|
|
5
|
+
${buttonAppearanceVariantStyles}
|
|
6
|
+
|
|
7
|
+
.control {
|
|
8
|
+
text-decoration: none;
|
|
9
|
+
}
|
|
10
|
+
`;
|
|
11
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/anchor-button/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EACH,6BAA6B,EAC7B,MAAM,IAAI,YAAY,EACzB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,YAAY;MACZ,6BAA6B;;;;;CAKlC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import { AnchorOptions, FoundationElementTemplate } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { AnchorButton } from '.';
|
|
4
|
+
export declare const template: FoundationElementTemplate<ViewTemplate<AnchorButton>, AnchorOptions>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { html, ref, slotted } from '@microsoft/fast-element';
|
|
2
|
+
import { endSlotTemplate, startSlotTemplate } from '@microsoft/fast-foundation';
|
|
3
|
+
export const template = (context, definition) => html `
|
|
4
|
+
<a
|
|
5
|
+
class="control"
|
|
6
|
+
part="control"
|
|
7
|
+
download="${x => x.download}"
|
|
8
|
+
href=${x => (x.disabled ? null : x.href)}
|
|
9
|
+
hreflang="${x => x.hreflang}"
|
|
10
|
+
ping="${x => x.ping}"
|
|
11
|
+
referrerpolicy="${x => x.referrerpolicy}"
|
|
12
|
+
rel="${x => x.rel}"
|
|
13
|
+
target="${x => x.target}"
|
|
14
|
+
type="${x => x.type}"
|
|
15
|
+
aria-atomic="${x => x.ariaAtomic}"
|
|
16
|
+
aria-busy="${x => x.ariaBusy}"
|
|
17
|
+
aria-controls="${x => x.ariaControls}"
|
|
18
|
+
aria-current="${x => x.ariaCurrent}"
|
|
19
|
+
aria-describedby="${x => x.ariaDescribedby}"
|
|
20
|
+
aria-details="${x => x.ariaDetails}"
|
|
21
|
+
aria-disabled="${x => x.ariaDisabled}"
|
|
22
|
+
aria-errormessage="${x => x.ariaErrormessage}"
|
|
23
|
+
aria-expanded="${x => x.ariaExpanded}"
|
|
24
|
+
aria-flowto="${x => x.ariaFlowto}"
|
|
25
|
+
aria-haspopup="${x => x.ariaHaspopup}"
|
|
26
|
+
aria-hidden="${x => x.ariaHidden}"
|
|
27
|
+
aria-invalid="${x => x.ariaInvalid}"
|
|
28
|
+
aria-keyshortcuts="${x => x.ariaKeyshortcuts}"
|
|
29
|
+
aria-label="${x => x.ariaLabel}"
|
|
30
|
+
aria-labelledby="${x => x.ariaLabelledby}"
|
|
31
|
+
aria-live="${x => x.ariaLive}"
|
|
32
|
+
aria-owns="${x => x.ariaOwns}"
|
|
33
|
+
aria-relevant="${x => x.ariaRelevant}"
|
|
34
|
+
aria-roledescription="${x => x.ariaRoledescription}"
|
|
35
|
+
${ref('control')}
|
|
36
|
+
>
|
|
37
|
+
${startSlotTemplate(context, definition)}
|
|
38
|
+
<span class="content" part="content">
|
|
39
|
+
<slot ${slotted('defaultSlottedContent')}></slot>
|
|
40
|
+
</span>
|
|
41
|
+
${endSlotTemplate(context, definition)}
|
|
42
|
+
</a>
|
|
43
|
+
`;
|
|
44
|
+
//# sourceMappingURL=template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/anchor-button/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAgB,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAEH,eAAe,EAEf,iBAAiB,EACpB,MAAM,4BAA4B,CAAC;AAGpC,MAAM,CAAC,MAAM,QAAQ,GAGjB,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC,IAAI,CAAc;;;;oBAI3B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;eACpB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;oBAC5B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;gBACnB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;0BACD,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc;eAChC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG;kBACP,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM;gBACf,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;uBACJ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU;qBACnB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;yBACX,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;wBACpB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW;4BACd,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe;wBAC1B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW;yBACjB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;6BACf,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB;yBAC3B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;uBACrB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU;yBACf,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;uBACrB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU;wBAChB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW;6BACb,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB;sBAC9B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;2BACX,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc;qBAC3B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;qBACf,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;yBACX,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;gCACZ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAmB;UAChD,GAAG,CAAC,SAAS,CAAC;;UAEd,iBAAiB,CAAC,OAAO,EAAE,UAAU,CAAC;;oBAE5B,OAAO,CAAC,uBAAuB,CAAC;;UAE1C,eAAe,CAAC,OAAO,EAAE,UAAU,CAAC;;CAE7C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/anchor-button/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACH,gBAAgB,EAChB,uBAAuB,EAC1B,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { display } from '@microsoft/fast-foundation';
|
|
3
|
-
import {
|
|
4
|
-
import { bodyEmphasizedFont, bodyFont, bodyFontColor } from '../theme-provider/design-tokens';
|
|
5
|
-
import { Theme } from '../theme-provider/types';
|
|
6
|
-
import { hexToRgbaCssColor } from '../utilities/style/colors';
|
|
7
|
-
import { themeBehavior } from '../utilities/style/theme';
|
|
3
|
+
import { bodyEmphasizedFont, linkActiveFontColor, linkActiveProminentFontColor, linkFont, linkFontColor, linkProminentFontColor } from '../theme-provider/design-tokens';
|
|
8
4
|
export const styles = css `
|
|
9
5
|
${display('inline-block')}
|
|
10
6
|
|
|
11
7
|
:host {
|
|
12
8
|
box-sizing: border-box;
|
|
13
|
-
font: ${
|
|
14
|
-
--ni-private-breadcrumb-link-font-color: ${
|
|
9
|
+
font: ${linkFont};
|
|
10
|
+
--ni-private-breadcrumb-link-font-color: ${linkFontColor};
|
|
11
|
+
--ni-private-breadcrumb-link-active-font-color: ${linkActiveFontColor};
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host([appearance='prominent']) {
|
|
15
|
+
--ni-private-breadcrumb-link-font-color: ${linkProminentFontColor};
|
|
16
|
+
--ni-private-breadcrumb-link-active-font-color: ${linkActiveProminentFontColor};
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
.list {
|
|
@@ -19,10 +21,6 @@ export const styles = css `
|
|
|
19
21
|
flex-wrap: wrap;
|
|
20
22
|
}
|
|
21
23
|
|
|
22
|
-
:host([appearance='prominent']) {
|
|
23
|
-
--ni-private-breadcrumb-link-active-font-color: ${bodyFontColor};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
24
|
::slotted(*:first-child) {
|
|
27
25
|
padding-left: 0px;
|
|
28
26
|
}
|
|
@@ -30,29 +28,5 @@ export const styles = css `
|
|
|
30
28
|
::slotted(*:not([href]):last-child) {
|
|
31
29
|
font: ${bodyEmphasizedFont};
|
|
32
30
|
}
|
|
33
|
-
|
|
34
|
-
:host {
|
|
35
|
-
--ni-private-breadcrumb-link-active-font-color: ${DigitalGreenDark};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:host([appearance='prominent']) {
|
|
39
|
-
--ni-private-breadcrumb-link-font-color: ${DigitalGreenDark};
|
|
40
|
-
}
|
|
41
|
-
`), themeBehavior(Theme.dark, css `
|
|
42
|
-
:host {
|
|
43
|
-
--ni-private-breadcrumb-link-active-font-color: ${PowerGreen};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:host([appearance='prominent']) {
|
|
47
|
-
--ni-private-breadcrumb-link-font-color: ${PowerGreen};
|
|
48
|
-
}
|
|
49
|
-
`), themeBehavior(Theme.color, css `
|
|
50
|
-
:host {
|
|
51
|
-
--ni-private-breadcrumb-link-active-font-color: ${hexToRgbaCssColor(White, 0.6)};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
:host([appearance='prominent']) {
|
|
55
|
-
--ni-private-breadcrumb-link-font-color: ${PowerGreen};
|
|
56
|
-
}
|
|
57
|
-
`));
|
|
31
|
+
`;
|
|
58
32
|
//# 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,
|
|
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;;;;gBAIb,QAAQ;mDAC2B,aAAa;0DACN,mBAAmB;;;;mDAI1B,sBAAsB;0DACf,4BAA4B;;;;;;;;;;;;;gBAatE,kBAAkB;;CAEjC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { display } from '@microsoft/fast-foundation';
|
|
3
|
-
import {
|
|
3
|
+
import { bodyFontColor, borderHoverColor, borderWidth, controlHeight, iconSize, linkFont, placeholderFontColor } from '../theme-provider/design-tokens';
|
|
4
4
|
import { focusVisible } from '../utilities/style/focus';
|
|
5
5
|
export const styles = css `
|
|
6
6
|
${display('inline-flex')}
|
|
@@ -8,9 +8,13 @@ export const styles = css `
|
|
|
8
8
|
:host {
|
|
9
9
|
height: ${controlHeight};
|
|
10
10
|
box-sizing: border-box;
|
|
11
|
-
font: ${bodyFont};
|
|
12
|
-
color: ${bodyFontColor};
|
|
13
11
|
padding-left: calc(4px - ${borderWidth});
|
|
12
|
+
|
|
13
|
+
${
|
|
14
|
+
/* When href removed the .control element is also removed
|
|
15
|
+
so this becomes the fallback color for the slot */ ''}
|
|
16
|
+
color: ${bodyFontColor};
|
|
17
|
+
font: ${linkFont};
|
|
14
18
|
}
|
|
15
19
|
|
|
16
20
|
.listitem {
|
|
@@ -20,16 +24,11 @@ export const styles = css `
|
|
|
20
24
|
|
|
21
25
|
.control {
|
|
22
26
|
color: var(--ni-private-breadcrumb-link-font-color);
|
|
23
|
-
cursor: default;
|
|
24
27
|
display: flex;
|
|
25
28
|
align-items: center;
|
|
26
29
|
justify-content: center;
|
|
27
30
|
border: ${borderWidth} solid transparent;
|
|
28
31
|
padding-right: calc(4px - ${borderWidth});
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.control:any-link {
|
|
32
|
-
cursor: pointer;
|
|
33
32
|
text-decoration: none;
|
|
34
33
|
}
|
|
35
34
|
|
|
@@ -37,17 +36,17 @@ export const styles = css `
|
|
|
37
36
|
text-decoration: underline;
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
.control
|
|
41
|
-
color: var(--ni-private-breadcrumb-link-active-font-color);
|
|
42
|
-
text-decoration: underline;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.control:any-link${focusVisible} {
|
|
39
|
+
.control${focusVisible} {
|
|
46
40
|
border: ${borderWidth} solid ${borderHoverColor};
|
|
47
41
|
outline: 2px solid ${borderHoverColor};
|
|
48
42
|
outline-offset: 1px;
|
|
49
43
|
}
|
|
50
44
|
|
|
45
|
+
.control:active {
|
|
46
|
+
color: var(--ni-private-breadcrumb-link-active-font-color);
|
|
47
|
+
text-decoration: underline;
|
|
48
|
+
}
|
|
49
|
+
|
|
51
50
|
.start,
|
|
52
51
|
.end {
|
|
53
52
|
display: flex;
|
|
@@ -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,
|
|
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;;mCAEI,WAAW;;UAEpC;AACE;mDACmD,CAAC,EACxD;iBACS,aAAa;gBACd,QAAQ;;;;;;;;;;;;;kBAaN,WAAW;oCACO,WAAW;;;;;;;;cAQjC,YAAY;kBACR,WAAW,UAAU,gBAAgB;6BAC1B,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;iBAyB5B,QAAQ;kBACP,QAAQ;;;;gBAIV,oBAAoB;;CAEnC,CAAC"}
|