@ni/nimble-components 1.0.0-beta.125 → 1.0.0-beta.129
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/README.md +38 -16
- package/dist/esm/button/styles.js +10 -9
- package/dist/esm/button/styles.js.map +1 -1
- package/dist/esm/button/types.d.ts +1 -1
- package/dist/esm/button/types.js.map +1 -1
- package/dist/esm/checkbox/styles.js +4 -4
- package/dist/esm/checkbox/styles.js.map +1 -1
- package/dist/esm/drawer/index.js +4 -4
- package/dist/esm/drawer/index.js.map +1 -1
- package/dist/esm/drawer/styles.js +4 -4
- package/dist/esm/drawer/styles.js.map +1 -1
- package/dist/esm/drawer/types.d.ts +2 -2
- package/dist/esm/drawer/types.js.map +1 -1
- package/dist/esm/icon-base/styles.js +6 -6
- package/dist/esm/icon-base/styles.js.map +1 -1
- package/dist/esm/icon-base/types.d.ts +1 -1
- package/dist/esm/icon-base/types.js +4 -0
- package/dist/esm/icon-base/types.js.map +1 -1
- package/dist/esm/icons/all-icons.d.ts +9 -0
- package/dist/esm/icons/all-icons.js +9 -0
- package/dist/esm/icons/all-icons.js.map +1 -1
- package/dist/esm/icons/custom-status.d.ts +12 -0
- package/dist/esm/icons/custom-status.js +12 -0
- package/dist/esm/icons/custom-status.js.map +1 -0
- package/dist/esm/icons/done.d.ts +12 -0
- package/dist/esm/icons/done.js +12 -0
- package/dist/esm/icons/done.js.map +1 -0
- package/dist/esm/icons/looping.d.ts +12 -0
- package/dist/esm/icons/looping.js +12 -0
- package/dist/esm/icons/looping.js.map +1 -0
- package/dist/esm/icons/running.d.ts +12 -0
- package/dist/esm/icons/running.js +12 -0
- package/dist/esm/icons/running.js.map +1 -0
- package/dist/esm/icons/skipped.d.ts +12 -0
- package/dist/esm/icons/skipped.js +12 -0
- package/dist/esm/icons/skipped.js.map +1 -0
- package/dist/esm/icons/status.d.ts +12 -0
- package/dist/esm/icons/status.js +12 -0
- package/dist/esm/icons/status.js.map +1 -0
- package/dist/esm/icons/terminated.d.ts +12 -0
- package/dist/esm/icons/terminated.js +12 -0
- package/dist/esm/icons/terminated.js.map +1 -0
- package/dist/esm/icons/timed-out.d.ts +12 -0
- package/dist/esm/icons/timed-out.js +12 -0
- package/dist/esm/icons/timed-out.js.map +1 -0
- package/dist/esm/icons/waiting.d.ts +12 -0
- package/dist/esm/icons/waiting.js +12 -0
- package/dist/esm/icons/waiting.js.map +1 -0
- package/dist/esm/nimble-components/src/button/types.d.ts +1 -1
- package/dist/esm/nimble-components/src/drawer/types.d.ts +2 -2
- package/dist/esm/nimble-components/src/icon-base/types.d.ts +1 -1
- package/dist/esm/nimble-components/src/icons/all-icons.d.ts +9 -0
- package/dist/esm/nimble-components/src/icons/custom-status.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/done.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/looping.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/running.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/skipped.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/status.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/terminated.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/timed-out.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/waiting.d.ts +12 -0
- package/dist/esm/nimble-components/src/text-field/types.d.ts +1 -1
- package/dist/esm/nimble-components/src/theme-provider/design-token-comments.d.ts +6 -0
- package/dist/esm/nimble-components/src/theme-provider/design-token-names.d.ts +11 -0
- package/dist/esm/nimble-components/src/theme-provider/design-tokens.d.ts +4 -10
- package/dist/esm/nimble-components/src/theme-provider/index.d.ts +13 -8
- package/dist/esm/nimble-components/src/theme-provider/template.d.ts +2 -2
- package/dist/esm/nimble-components/src/theme-provider/types.d.ts +2 -2
- package/dist/esm/nimble-components/src/tree-view/types.d.ts +1 -1
- package/dist/esm/nimble-components/src/utilities/style/direction.d.ts +34 -0
- package/dist/esm/nimble-components/src/utilities/style/prefers-reduced-motion.d.ts +1 -5
- package/dist/esm/nimble-components/src/utilities/style/theme.d.ts +44 -0
- package/dist/esm/number-field/styles.js +3 -3
- package/dist/esm/number-field/styles.js.map +1 -1
- package/dist/esm/tabs-toolbar/styles.js +3 -2
- package/dist/esm/tabs-toolbar/styles.js.map +1 -1
- package/dist/esm/text-field/styles.js +20 -8
- package/dist/esm/text-field/styles.js.map +1 -1
- package/dist/esm/text-field/types.d.ts +1 -1
- package/dist/esm/text-field/types.js.map +1 -1
- package/dist/esm/theme-provider/design-token-comments.d.ts +6 -0
- package/dist/esm/theme-provider/design-token-comments.js +45 -0
- package/dist/esm/theme-provider/design-token-comments.js.map +1 -0
- package/dist/esm/theme-provider/design-token-names.d.ts +11 -0
- package/dist/esm/theme-provider/design-token-names.js +51 -0
- package/dist/esm/theme-provider/design-token-names.js.map +1 -0
- package/dist/esm/theme-provider/design-tokens.d.ts +4 -10
- package/dist/esm/theme-provider/design-tokens.js +86 -109
- package/dist/esm/theme-provider/design-tokens.js.map +1 -1
- package/dist/esm/theme-provider/index.d.ts +13 -8
- package/dist/esm/theme-provider/index.js +39 -6
- package/dist/esm/theme-provider/index.js.map +1 -1
- package/dist/esm/theme-provider/template.d.ts +2 -2
- package/dist/esm/theme-provider/template.js.map +1 -1
- package/dist/esm/theme-provider/types.d.ts +2 -2
- package/dist/esm/theme-provider/types.js +7 -7
- package/dist/esm/theme-provider/types.js.map +1 -1
- package/dist/esm/tree-item/styles.js +9 -7
- package/dist/esm/tree-item/styles.js.map +1 -1
- package/dist/esm/tree-view/types.d.ts +1 -1
- package/dist/esm/tree-view/types.js.map +1 -1
- package/dist/esm/utilities/style/direction.d.ts +34 -0
- package/dist/esm/utilities/style/direction.js +78 -0
- package/dist/esm/utilities/style/direction.js.map +1 -0
- package/dist/esm/utilities/style/focus.js +1 -1
- package/dist/esm/utilities/style/focus.js.map +1 -1
- package/dist/esm/utilities/style/prefers-reduced-motion.d.ts +1 -5
- package/dist/esm/utilities/style/prefers-reduced-motion.js +1 -7
- package/dist/esm/utilities/style/prefers-reduced-motion.js.map +1 -1
- package/dist/esm/utilities/style/theme.d.ts +44 -0
- package/dist/esm/utilities/style/theme.js +116 -0
- package/dist/esm/utilities/style/theme.js.map +1 -0
- package/dist/fonts.scss +3 -0
- package/dist/tokens-internal.scss +255 -0
- package/dist/tokens.scss +132 -0
- package/package.json +10 -6
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { display } from '@microsoft/fast-foundation';
|
|
3
|
-
import {
|
|
3
|
+
import { borderColorRgbPartial, borderColorHover, borderWidth, contentFontColor, contentFontColorDisabled, contentFontSize, controlHeight, failColor, fillColorSelectedRgbPartial, fontFamily, iconSize, labelFontColor, labelFontFamily, labelFontSize, labelFontWeight, labelHeight, labelTextTransform, smallDelay } from '../theme-provider/design-tokens';
|
|
4
|
+
import { Theme } from '../theme-provider/types';
|
|
5
|
+
import { themeBehavior } from '../utilities/style/theme';
|
|
4
6
|
export const styles = css `
|
|
5
7
|
${display('inline-block')}
|
|
6
8
|
|
|
@@ -24,7 +26,7 @@ export const styles = css `
|
|
|
24
26
|
flex-direction: row;
|
|
25
27
|
border-radius: 0px;
|
|
26
28
|
font-family: ${fontFamily};
|
|
27
|
-
border-bottom: ${borderWidth} solid rgba(${
|
|
29
|
+
border-bottom: ${borderWidth} solid rgba(${borderColorRgbPartial}, 0.3);
|
|
28
30
|
padding-bottom: 1px;
|
|
29
31
|
transition: border-bottom ${smallDelay}, padding-bottom ${smallDelay};
|
|
30
32
|
align-items: flex-end;
|
|
@@ -73,10 +75,6 @@ export const styles = css `
|
|
|
73
75
|
border: none;
|
|
74
76
|
}
|
|
75
77
|
|
|
76
|
-
.control::-ms-reveal {
|
|
77
|
-
filter: ${passwordRevealFilter};
|
|
78
|
-
}
|
|
79
|
-
|
|
80
78
|
.control:hover,
|
|
81
79
|
.control:focus,
|
|
82
80
|
.control:disabled,
|
|
@@ -86,7 +84,7 @@ export const styles = css `
|
|
|
86
84
|
|
|
87
85
|
.control::selection {
|
|
88
86
|
color: ${labelFontColor};
|
|
89
|
-
background: rgba(${
|
|
87
|
+
background: rgba(${fillColorSelectedRgbPartial}, 0.3);
|
|
90
88
|
}
|
|
91
89
|
|
|
92
90
|
.control::placeholder {
|
|
@@ -138,5 +136,19 @@ export const styles = css `
|
|
|
138
136
|
:host([disabled]) [part='end'] path {
|
|
139
137
|
fill: ${contentFontColorDisabled};
|
|
140
138
|
}
|
|
141
|
-
|
|
139
|
+
`.withBehaviors(themeBehavior(css `
|
|
140
|
+
${'' /* Light theme */}
|
|
141
|
+
.control::-ms-reveal {
|
|
142
|
+
filter: invert(0%);
|
|
143
|
+
}
|
|
144
|
+
`, css `
|
|
145
|
+
${'' /* Dark theme */}
|
|
146
|
+
.control::-ms-reveal {
|
|
147
|
+
filter: invert(100%);
|
|
148
|
+
}
|
|
149
|
+
`,
|
|
150
|
+
// Color theme
|
|
151
|
+
Theme.Dark,
|
|
152
|
+
// LegacyBlue theme
|
|
153
|
+
Theme.Light));
|
|
142
154
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/text-field/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,OAAO,EACH,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/text-field/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,OAAO,EACH,qBAAqB,EACrB,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,aAAa,EACb,SAAS,EACT,2BAA2B,EAC3B,UAAU,EACV,QAAQ,EACR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{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/text-field/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export const comments = {
|
|
2
|
+
actionColorRgbPartial: '',
|
|
3
|
+
applicationBackgroundColor: 'Background color for the application.',
|
|
4
|
+
fillColorSelected: '',
|
|
5
|
+
fillColorSelectedRgbPartial: '',
|
|
6
|
+
fillColorSelectedHover: '',
|
|
7
|
+
fillColorHover: '',
|
|
8
|
+
borderColor: '',
|
|
9
|
+
borderColorRgbPartial: '',
|
|
10
|
+
failColor: '',
|
|
11
|
+
warningColor: '',
|
|
12
|
+
passColor: '',
|
|
13
|
+
borderColorHover: '',
|
|
14
|
+
iconColor: '',
|
|
15
|
+
popupBoxShadowColor: '',
|
|
16
|
+
popupBorderColor: '',
|
|
17
|
+
controlHeight: '',
|
|
18
|
+
standardPadding: '',
|
|
19
|
+
labelHeight: '',
|
|
20
|
+
borderWidth: '',
|
|
21
|
+
iconSize: '',
|
|
22
|
+
drawerWidth: '',
|
|
23
|
+
fontFamily: '',
|
|
24
|
+
labelFontFamily: '',
|
|
25
|
+
groupLabelFontFamily: '',
|
|
26
|
+
drawerHeaderFontFamily: '',
|
|
27
|
+
labelFontSize: '',
|
|
28
|
+
contentFontSize: '',
|
|
29
|
+
groupLabelFontSize: '',
|
|
30
|
+
drawerHeaderFontSize: '',
|
|
31
|
+
groupLabelFontWeight: '',
|
|
32
|
+
labelFontWeight: '',
|
|
33
|
+
labelFontColor: '',
|
|
34
|
+
groupLabelFontColor: '',
|
|
35
|
+
contentFontColor: '',
|
|
36
|
+
buttonContentFontColor: '',
|
|
37
|
+
labelFontColorDisabled: '',
|
|
38
|
+
labelTextTransform: '',
|
|
39
|
+
groupLabelTextTransform: '',
|
|
40
|
+
contentFontColorDisabled: '',
|
|
41
|
+
smallDelay: '',
|
|
42
|
+
mediumDelay: '',
|
|
43
|
+
drawerAnimationDurationMs: ''
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=design-token-comments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design-token-comments.js","sourceRoot":"","sources":["../../../src/theme-provider/design-token-comments.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,QAAQ,GAA4C;IAC7D,qBAAqB,EAAE,EAAE;IACzB,0BAA0B,EAAE,uCAAuC;IACnE,iBAAiB,EAAE,EAAE;IACrB,2BAA2B,EAAE,EAAE;IAC/B,sBAAsB,EAAE,EAAE;IAC1B,cAAc,EAAE,EAAE;IAClB,WAAW,EAAE,EAAE;IACf,qBAAqB,EAAE,EAAE;IACzB,SAAS,EAAE,EAAE;IACb,YAAY,EAAE,EAAE;IAChB,SAAS,EAAE,EAAE;IACb,gBAAgB,EAAE,EAAE;IACpB,SAAS,EAAE,EAAE;IACb,mBAAmB,EAAE,EAAE;IACvB,gBAAgB,EAAE,EAAE;IACpB,aAAa,EAAE,EAAE;IACjB,eAAe,EAAE,EAAE;IACnB,WAAW,EAAE,EAAE;IACf,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,EAAE;IACZ,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IACd,eAAe,EAAE,EAAE;IACnB,oBAAoB,EAAE,EAAE;IACxB,sBAAsB,EAAE,EAAE;IAC1B,aAAa,EAAE,EAAE;IACjB,eAAe,EAAE,EAAE;IACnB,kBAAkB,EAAE,EAAE;IACtB,oBAAoB,EAAE,EAAE;IACxB,oBAAoB,EAAE,EAAE;IACxB,eAAe,EAAE,EAAE;IACnB,cAAc,EAAE,EAAE;IAClB,mBAAmB,EAAE,EAAE;IACvB,gBAAgB,EAAE,EAAE;IACpB,sBAAsB,EAAE,EAAE;IAC1B,sBAAsB,EAAE,EAAE;IAC1B,kBAAkB,EAAE,EAAE;IACtB,uBAAuB,EAAE,EAAE;IAC3B,wBAAwB,EAAE,EAAE;IAC5B,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,yBAAyB,EAAE,EAAE;CAChC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as TokensNamespace from './design-tokens';
|
|
2
|
+
declare type TokenName = keyof typeof TokensNamespace;
|
|
3
|
+
export declare const tokenNames: {
|
|
4
|
+
readonly [key in TokenName]: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const styleNameFromTokenName: (tokenName: string) => string;
|
|
7
|
+
export declare const cssPropertyFromTokenName: (tokenName: string) => string;
|
|
8
|
+
export declare const scssPropertyFromTokenName: (tokenName: string) => string;
|
|
9
|
+
export declare const scssInternalPropertyFromTokenName: (tokenName: string) => string;
|
|
10
|
+
export declare const scssInternalPropertySetterMarkdown: (tokenName: string, property: string) => string;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export const tokenNames = {
|
|
2
|
+
actionColorRgbPartial: 'action-color-rgb-partial',
|
|
3
|
+
applicationBackgroundColor: 'application-background-color',
|
|
4
|
+
fillColorSelected: 'fill-color-selected',
|
|
5
|
+
fillColorSelectedRgbPartial: 'fill-color-selected-rgb-partial',
|
|
6
|
+
fillColorSelectedHover: 'fill-color-selected-hover',
|
|
7
|
+
fillColorHover: 'fill-color-hover',
|
|
8
|
+
borderColor: 'border-color',
|
|
9
|
+
borderColorRgbPartial: 'border-color-rgb-partial',
|
|
10
|
+
failColor: 'fail-color',
|
|
11
|
+
warningColor: 'warning-color',
|
|
12
|
+
passColor: 'pass-color',
|
|
13
|
+
borderColorHover: 'border-color-hover',
|
|
14
|
+
iconColor: 'icon-color',
|
|
15
|
+
popupBoxShadowColor: 'popup-box-shadow-color',
|
|
16
|
+
popupBorderColor: 'popup-border-color',
|
|
17
|
+
controlHeight: 'control-height',
|
|
18
|
+
standardPadding: 'standard-padding',
|
|
19
|
+
labelHeight: 'label-height',
|
|
20
|
+
borderWidth: 'border-width',
|
|
21
|
+
iconSize: 'icon-size',
|
|
22
|
+
drawerWidth: 'drawer-width',
|
|
23
|
+
fontFamily: 'font-family',
|
|
24
|
+
labelFontFamily: 'label-font-family',
|
|
25
|
+
groupLabelFontFamily: 'group-label-font-family',
|
|
26
|
+
drawerHeaderFontFamily: 'drawer-header-font-family',
|
|
27
|
+
labelFontSize: 'label-font-size',
|
|
28
|
+
contentFontSize: 'content-font-size',
|
|
29
|
+
groupLabelFontSize: 'group-label-font-size',
|
|
30
|
+
drawerHeaderFontSize: 'drawer-header-font-size',
|
|
31
|
+
groupLabelFontWeight: 'group-label-font-weight',
|
|
32
|
+
labelFontWeight: 'label-font-weight',
|
|
33
|
+
labelFontColor: 'label-font-color',
|
|
34
|
+
groupLabelFontColor: 'group-label-font-color',
|
|
35
|
+
contentFontColor: 'content-font-color',
|
|
36
|
+
buttonContentFontColor: 'button-content-font-color',
|
|
37
|
+
labelFontColorDisabled: 'label-font-color-disabled',
|
|
38
|
+
labelTextTransform: 'label-text-transform',
|
|
39
|
+
groupLabelTextTransform: 'group-label-text-transform',
|
|
40
|
+
contentFontColorDisabled: 'content-font-color-disabled',
|
|
41
|
+
smallDelay: 'small-delay',
|
|
42
|
+
mediumDelay: 'medium-delay',
|
|
43
|
+
drawerAnimationDurationMs: 'drawer-animation-duration-ms'
|
|
44
|
+
};
|
|
45
|
+
const prefix = 'ni-nimble';
|
|
46
|
+
export const styleNameFromTokenName = (tokenName) => `${prefix}-${tokenName}`;
|
|
47
|
+
export const cssPropertyFromTokenName = (tokenName) => `--${prefix}-${tokenName}`;
|
|
48
|
+
export const scssPropertyFromTokenName = (tokenName) => `$${prefix}-${tokenName}`;
|
|
49
|
+
export const scssInternalPropertyFromTokenName = (tokenName) => `$${prefix}-internal-${tokenName}`;
|
|
50
|
+
export const scssInternalPropertySetterMarkdown = (tokenName, property) => `\`#{$${prefix}-internal-${tokenName}}: ${property};\``;
|
|
51
|
+
//# sourceMappingURL=design-token-names.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design-token-names.js","sourceRoot":"","sources":["../../../src/theme-provider/design-token-names.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,UAAU,GAA4C;IAC/D,qBAAqB,EAAE,0BAA0B;IACjD,0BAA0B,EAAE,8BAA8B;IAC1D,iBAAiB,EAAE,qBAAqB;IACxC,2BAA2B,EAAE,iCAAiC;IAC9D,sBAAsB,EAAE,2BAA2B;IACnD,cAAc,EAAE,kBAAkB;IAClC,WAAW,EAAE,cAAc;IAC3B,qBAAqB,EAAE,0BAA0B;IACjD,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,eAAe;IAC7B,SAAS,EAAE,YAAY;IACvB,gBAAgB,EAAE,oBAAoB;IACtC,SAAS,EAAE,YAAY;IACvB,mBAAmB,EAAE,wBAAwB;IAC7C,gBAAgB,EAAE,oBAAoB;IACtC,aAAa,EAAE,gBAAgB;IAC/B,eAAe,EAAE,kBAAkB;IACnC,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,cAAc;IAC3B,UAAU,EAAE,aAAa;IACzB,eAAe,EAAE,mBAAmB;IACpC,oBAAoB,EAAE,yBAAyB;IAC/C,sBAAsB,EAAE,2BAA2B;IACnD,aAAa,EAAE,iBAAiB;IAChC,eAAe,EAAE,mBAAmB;IACpC,kBAAkB,EAAE,uBAAuB;IAC3C,oBAAoB,EAAE,yBAAyB;IAC/C,oBAAoB,EAAE,yBAAyB;IAC/C,eAAe,EAAE,mBAAmB;IACpC,cAAc,EAAE,kBAAkB;IAClC,mBAAmB,EAAE,wBAAwB;IAC7C,gBAAgB,EAAE,oBAAoB;IACtC,sBAAsB,EAAE,2BAA2B;IACnD,sBAAsB,EAAE,2BAA2B;IACnD,kBAAkB,EAAE,sBAAsB;IAC1C,uBAAuB,EAAE,4BAA4B;IACrD,wBAAwB,EAAE,6BAA6B;IACvD,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,cAAc;IAC3B,yBAAyB,EAAE,8BAA8B;CAC5D,CAAC;AAEF,MAAM,MAAM,GAAG,WAAW,CAAC;AAE3B,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,SAAiB,EAAU,EAAE,CAAC,GAAG,MAAM,IAAI,SAAS,EAAE,CAAC;AAC9F,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,SAAiB,EAAU,EAAE,CAAC,KAAK,MAAM,IAAI,SAAS,EAAE,CAAC;AAClG,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,SAAiB,EAAU,EAAE,CAAC,IAAI,MAAM,IAAI,SAAS,EAAE,CAAC;AAClG,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,SAAiB,EAAU,EAAE,CAAC,IAAI,MAAM,aAAa,SAAS,EAAE,CAAC;AACnH,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAC9C,SAAiB,EACjB,QAAgB,EACV,EAAE,CAAC,QAAQ,MAAM,aAAa,SAAS,MAAM,QAAQ,KAAK,CAAC"}
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import { NimbleTheme } from './types';
|
|
3
|
-
export declare const theme: DesignToken<NimbleTheme>;
|
|
4
|
-
export declare const actionColorRgb: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
1
|
+
export declare const actionColorRgbPartial: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
5
2
|
export declare const applicationBackgroundColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
6
3
|
export declare const fillColorSelected: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
7
|
-
export declare const
|
|
4
|
+
export declare const fillColorSelectedRgbPartial: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
8
5
|
export declare const fillColorSelectedHover: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
9
6
|
export declare const fillColorHover: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
10
7
|
export declare const borderColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const failColorTheme: (element: HTMLElement) => string;
|
|
8
|
+
export declare const borderColorRgbPartial: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
13
9
|
export declare const failColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
14
|
-
export declare const warningColorTheme: (element: HTMLElement) => string;
|
|
15
10
|
export declare const warningColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
16
|
-
export declare const passColorTheme: (element: HTMLElement) => string;
|
|
17
11
|
export declare const passColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
18
12
|
export declare const borderColorHover: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
13
|
+
export declare const iconColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
19
14
|
export declare const popupBoxShadowColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
20
15
|
export declare const popupBorderColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
21
16
|
export declare const controlHeight: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
@@ -45,4 +40,3 @@ export declare const contentFontColorDisabled: import("@microsoft/fast-foundatio
|
|
|
45
40
|
export declare const smallDelay: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
46
41
|
export declare const mediumDelay: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
47
42
|
export declare const drawerAnimationDurationMs: import("@microsoft/fast-foundation").CSSDesignToken<number>;
|
|
48
|
-
export declare const passwordRevealFilter: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
@@ -1,65 +1,106 @@
|
|
|
1
1
|
import { DesignToken } from '@microsoft/fast-foundation';
|
|
2
2
|
import hexRgb from 'hex-rgb';
|
|
3
3
|
import { Black91, Black88, Black85, Black15, Black75, White, Enterprise, Selection100, SlLegacyBlue, Fail100LightUi, SmallDelay, MediumDelay, Fail100DarkUi, BodyFamily, BodySize, ControlLabel1Family, ControlLabel1Size, ControlLabel1Weight, Warning100LightUi, Warning100DarkUi, Pass100LightUi, Pass100DarkUi, Title2Size, Title2Family, GroupLabel1Family, GroupLabel1Size, GroupLabel1Weight, LegacyContentFamily } from '@ni/nimble-tokens/dist/styledictionary/js/tokens';
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import { Theme } from './types';
|
|
5
|
+
import { tokenNames, styleNameFromTokenName } from './design-token-names';
|
|
6
|
+
import { theme } from '.';
|
|
7
|
+
// Color Tokens
|
|
8
|
+
export const actionColorRgbPartial = DesignToken.create(styleNameFromTokenName(tokenNames.actionColorRgbPartial)).withDefault((element) => hexToRgbPartial(getColorForTheme(element, Black91, Black15, White, SlLegacyBlue)));
|
|
9
|
+
export const applicationBackgroundColor = DesignToken.create(styleNameFromTokenName(tokenNames.applicationBackgroundColor)).withDefault((element) => getColorForTheme(element, White, Black85, Enterprise, White));
|
|
10
|
+
export const fillColorSelected = DesignToken.create(styleNameFromTokenName(tokenNames.fillColorSelected)).withDefault((element) => hexToRgbaCssColor(getFillColorSelectedForTheme(element), 0.3));
|
|
11
|
+
export const fillColorSelectedRgbPartial = DesignToken.create(styleNameFromTokenName(tokenNames.fillColorSelectedRgbPartial)).withDefault((element) => hexToRgbPartial(getFillColorSelectedForTheme(element)));
|
|
12
|
+
export const fillColorSelectedHover = DesignToken.create(styleNameFromTokenName(tokenNames.fillColorSelectedHover)).withDefault((element) => hexToRgbaCssColor(getFillColorSelectedForTheme(element), 0.15));
|
|
13
|
+
export const fillColorHover = DesignToken.create(styleNameFromTokenName(tokenNames.fillColorHover)).withDefault((element) => hexToRgbaCssColor(getFillColorHoverForTheme(element), 0.1));
|
|
14
|
+
export const borderColor = DesignToken.create(styleNameFromTokenName(tokenNames.borderColor)).withDefault((element) => getDefaultLineColorForTheme(element));
|
|
15
|
+
export const borderColorRgbPartial = DesignToken.create(styleNameFromTokenName(tokenNames.borderColorRgbPartial)).withDefault((element) => hexToRgbPartial(getDefaultLineColorForTheme(element)));
|
|
16
|
+
export const failColor = DesignToken.create(styleNameFromTokenName(tokenNames.failColor)).withDefault((element) => getFailColorForTheme(element));
|
|
17
|
+
export const warningColor = DesignToken.create(styleNameFromTokenName(tokenNames.warningColor)).withDefault((element) => getWarningColorForTheme(element));
|
|
18
|
+
export const passColor = DesignToken.create(styleNameFromTokenName(tokenNames.passColor)).withDefault((element) => getPassColorForTheme(element));
|
|
19
|
+
export const borderColorHover = DesignToken.create(styleNameFromTokenName(tokenNames.borderColorHover)).withDefault((element) => getColorForTheme(element, Selection100, Selection100, White, hexToRgbaCssColor(SlLegacyBlue, 0.9)));
|
|
20
|
+
// Component Color Tokens
|
|
21
|
+
export const iconColor = DesignToken.create(styleNameFromTokenName(tokenNames.iconColor)).withDefault((element) => getColorForTheme(element, Black91, Black15, White, Black88));
|
|
22
|
+
export const popupBoxShadowColor = DesignToken.create(styleNameFromTokenName(tokenNames.popupBoxShadowColor)).withDefault((element) => hexToRgbaCssColor(getColorForTheme(element, Black75, Black85, Black85, Black75), 0.3));
|
|
23
|
+
export const popupBorderColor = DesignToken.create(styleNameFromTokenName(tokenNames.popupBorderColor)).withDefault((element) => hexToRgbaCssColor(getColorForTheme(element, Black91, Black15, White, Black91), 0.3));
|
|
24
|
+
// Component Sizing Tokens
|
|
25
|
+
export const controlHeight = DesignToken.create(styleNameFromTokenName(tokenNames.controlHeight)).withDefault('32px');
|
|
26
|
+
export const standardPadding = DesignToken.create(styleNameFromTokenName(tokenNames.standardPadding)).withDefault('16px');
|
|
27
|
+
export const labelHeight = DesignToken.create(styleNameFromTokenName(tokenNames.labelHeight)).withDefault('16px');
|
|
28
|
+
export const borderWidth = DesignToken.create(styleNameFromTokenName(tokenNames.borderWidth)).withDefault('1px');
|
|
29
|
+
export const iconSize = DesignToken.create(styleNameFromTokenName(tokenNames.iconSize)).withDefault('16px');
|
|
30
|
+
export const drawerWidth = DesignToken.create(styleNameFromTokenName(tokenNames.drawerWidth)).withDefault('784px');
|
|
31
|
+
// Font Family Tokens
|
|
32
|
+
export const fontFamily = DesignToken.create(styleNameFromTokenName(tokenNames.fontFamily)).withDefault((element) => getFontForTheme(element));
|
|
33
|
+
export const labelFontFamily = DesignToken.create(styleNameFromTokenName(tokenNames.labelFontFamily)).withDefault((element) => getLabelFontForTheme(element));
|
|
34
|
+
export const groupLabelFontFamily = DesignToken.create(styleNameFromTokenName(tokenNames.groupLabelFontFamily)).withDefault((element) => getGroupLabelFontForTheme(element));
|
|
35
|
+
export const drawerHeaderFontFamily = DesignToken.create(styleNameFromTokenName(tokenNames.drawerHeaderFontFamily)).withDefault(Title2Family);
|
|
36
|
+
// Font Sizing Tokens
|
|
37
|
+
export const labelFontSize = DesignToken.create(styleNameFromTokenName(tokenNames.labelFontSize)).withDefault((element) => getLabelTextSizeForTheme(element));
|
|
38
|
+
export const contentFontSize = DesignToken.create(styleNameFromTokenName(tokenNames.contentFontSize)).withDefault(BodySize);
|
|
39
|
+
export const groupLabelFontSize = DesignToken.create(styleNameFromTokenName(tokenNames.groupLabelFontSize)).withDefault(GroupLabel1Size);
|
|
40
|
+
export const drawerHeaderFontSize = DesignToken.create(styleNameFromTokenName(tokenNames.drawerHeaderFontSize)).withDefault(Title2Size);
|
|
41
|
+
// Font Weight Tokens
|
|
42
|
+
export const groupLabelFontWeight = DesignToken.create(styleNameFromTokenName(tokenNames.groupLabelFontWeight)).withDefault(GroupLabel1Weight);
|
|
43
|
+
export const labelFontWeight = DesignToken.create(styleNameFromTokenName(tokenNames.labelFontWeight)).withDefault(ControlLabel1Weight);
|
|
44
|
+
// Font Color Tokens
|
|
45
|
+
export const labelFontColor = DesignToken.create(styleNameFromTokenName(tokenNames.labelFontColor)).withDefault((element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.6));
|
|
46
|
+
export const groupLabelFontColor = DesignToken.create(styleNameFromTokenName(tokenNames.groupLabelFontColor)).withDefault((element) => getDefaultFontColorForTheme(element));
|
|
47
|
+
export const contentFontColor = DesignToken.create(styleNameFromTokenName(tokenNames.contentFontColor)).withDefault((element) => getColorForTheme(element, Black91, Black15, White, Black88));
|
|
48
|
+
export const buttonContentFontColor = DesignToken.create(styleNameFromTokenName(tokenNames.buttonContentFontColor)).withDefault((element) => getColorForTheme(element, Black91, Black15, White, SlLegacyBlue));
|
|
49
|
+
export const labelFontColorDisabled = DesignToken.create(styleNameFromTokenName(tokenNames.labelFontColorDisabled)).withDefault((element) => hexToRgbaCssColor(getDefaultLineColorForTheme(element), 0.3));
|
|
50
|
+
export const labelTextTransform = DesignToken.create(styleNameFromTokenName(tokenNames.labelTextTransform)).withDefault((element) => getLabelTextTransformForTheme(element));
|
|
51
|
+
export const groupLabelTextTransform = DesignToken.create(styleNameFromTokenName(tokenNames.groupLabelTextTransform)).withDefault((element) => getGroupLabelTextTransformForTheme(element));
|
|
52
|
+
export const contentFontColorDisabled = DesignToken.create(styleNameFromTokenName(tokenNames.contentFontColorDisabled)).withDefault((element) => hexToRgbaCssColor(getColorForTheme(element, Black91, Black15, White, Black88), 0.3));
|
|
53
|
+
// Animation Tokens
|
|
54
|
+
export const smallDelay = DesignToken.create(styleNameFromTokenName(tokenNames.smallDelay)).withDefault(SmallDelay);
|
|
55
|
+
export const mediumDelay = DesignToken.create(styleNameFromTokenName(tokenNames.mediumDelay)).withDefault(MediumDelay);
|
|
56
|
+
export const drawerAnimationDurationMs = DesignToken.create(styleNameFromTokenName(tokenNames.drawerAnimationDurationMs)).withDefault(250);
|
|
57
|
+
// Private helpers functions
|
|
58
|
+
function hexToRgbPartial(hexValue) {
|
|
6
59
|
const { red, green, blue } = hexRgb(hexValue);
|
|
7
60
|
return `${red}, ${green}, ${blue}`;
|
|
8
61
|
}
|
|
9
|
-
function
|
|
62
|
+
function hexToRgbaCssColor(hexValue, alpha) {
|
|
10
63
|
const { red, green, blue } = hexRgb(hexValue);
|
|
11
64
|
return `rgba(${red}, ${green}, ${blue}, ${alpha})`;
|
|
12
65
|
}
|
|
13
|
-
const { create } = DesignToken;
|
|
14
|
-
export const theme = create({
|
|
15
|
-
name: 'theme',
|
|
16
|
-
cssCustomPropertyName: null
|
|
17
|
-
}).withDefault(NimbleTheme.Light);
|
|
18
66
|
function getColorForTheme(element, lightThemeColor, darkThemeColor, colorThemeColor, legacyBlueThemeColor) {
|
|
19
67
|
switch (theme.getValueFor(element)) {
|
|
20
|
-
case
|
|
68
|
+
case Theme.Light:
|
|
21
69
|
return lightThemeColor;
|
|
22
|
-
case
|
|
70
|
+
case Theme.Dark:
|
|
23
71
|
return darkThemeColor;
|
|
24
|
-
case
|
|
72
|
+
case Theme.Color:
|
|
25
73
|
return colorThemeColor;
|
|
26
|
-
case
|
|
74
|
+
case Theme.LegacyBlue:
|
|
27
75
|
return legacyBlueThemeColor;
|
|
28
76
|
default:
|
|
29
77
|
return lightThemeColor;
|
|
30
78
|
}
|
|
31
79
|
}
|
|
80
|
+
function getWarningColorForTheme(element) {
|
|
81
|
+
return getColorForTheme(element, Warning100LightUi, Warning100DarkUi, Warning100DarkUi, Warning100LightUi);
|
|
82
|
+
}
|
|
83
|
+
function getFailColorForTheme(element) {
|
|
84
|
+
return getColorForTheme(element, Fail100LightUi, Fail100DarkUi, Fail100DarkUi, Fail100LightUi);
|
|
85
|
+
}
|
|
86
|
+
function getPassColorForTheme(element) {
|
|
87
|
+
return getColorForTheme(element, Pass100LightUi, Pass100DarkUi, Pass100DarkUi, Pass100LightUi);
|
|
88
|
+
}
|
|
32
89
|
function getDefaultLineColorForTheme(element) {
|
|
33
|
-
|
|
34
|
-
case NimbleTheme.Light:
|
|
35
|
-
return Black91;
|
|
36
|
-
case NimbleTheme.Dark:
|
|
37
|
-
return Black15;
|
|
38
|
-
case NimbleTheme.Color:
|
|
39
|
-
return White;
|
|
40
|
-
case NimbleTheme.LegacyBlue:
|
|
41
|
-
return Black91;
|
|
42
|
-
default:
|
|
43
|
-
return Black91;
|
|
44
|
-
}
|
|
90
|
+
return getColorForTheme(element, Black91, Black15, White, Black91);
|
|
45
91
|
}
|
|
46
92
|
function getDefaultFontColorForTheme(element) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
case NimbleTheme.LegacyBlue:
|
|
55
|
-
return Black75;
|
|
56
|
-
default:
|
|
57
|
-
return Black91;
|
|
58
|
-
}
|
|
93
|
+
return getColorForTheme(element, Black91, Black15, White, Black75);
|
|
94
|
+
}
|
|
95
|
+
function getFillColorSelectedForTheme(element) {
|
|
96
|
+
return getColorForTheme(element, Selection100, Selection100, White, SlLegacyBlue);
|
|
97
|
+
}
|
|
98
|
+
function getFillColorHoverForTheme(element) {
|
|
99
|
+
return getColorForTheme(element, Black91, Black15, White, SlLegacyBlue);
|
|
59
100
|
}
|
|
60
101
|
function getFontForTheme(element) {
|
|
61
102
|
switch (theme.getValueFor(element)) {
|
|
62
|
-
case
|
|
103
|
+
case Theme.LegacyBlue:
|
|
63
104
|
return `${LegacyContentFamily}`;
|
|
64
105
|
default:
|
|
65
106
|
return `${BodyFamily}`;
|
|
@@ -67,7 +108,7 @@ function getFontForTheme(element) {
|
|
|
67
108
|
}
|
|
68
109
|
function getLabelFontForTheme(element) {
|
|
69
110
|
switch (theme.getValueFor(element)) {
|
|
70
|
-
case
|
|
111
|
+
case Theme.LegacyBlue:
|
|
71
112
|
return `${LegacyContentFamily}`;
|
|
72
113
|
default:
|
|
73
114
|
return `${ControlLabel1Family}, ${BodyFamily}`;
|
|
@@ -75,98 +116,34 @@ function getLabelFontForTheme(element) {
|
|
|
75
116
|
}
|
|
76
117
|
function getGroupLabelFontForTheme(element) {
|
|
77
118
|
switch (theme.getValueFor(element)) {
|
|
78
|
-
case
|
|
119
|
+
case Theme.LegacyBlue:
|
|
79
120
|
return `${LegacyContentFamily}`;
|
|
80
121
|
default:
|
|
81
122
|
return `${GroupLabel1Family}, ${BodyFamily}`;
|
|
82
123
|
}
|
|
83
124
|
}
|
|
84
|
-
function
|
|
125
|
+
function getGroupLabelTextTransformForTheme(element) {
|
|
85
126
|
switch (theme.getValueFor(element)) {
|
|
86
|
-
case
|
|
127
|
+
case Theme.LegacyBlue:
|
|
87
128
|
return 'none';
|
|
88
129
|
default:
|
|
89
130
|
return 'uppercase';
|
|
90
131
|
}
|
|
91
132
|
}
|
|
92
|
-
function
|
|
133
|
+
function getLabelTextTransformForTheme(element) {
|
|
93
134
|
switch (theme.getValueFor(element)) {
|
|
94
|
-
case
|
|
135
|
+
case Theme.LegacyBlue:
|
|
95
136
|
return 'none';
|
|
96
137
|
default:
|
|
97
138
|
return 'none';
|
|
98
139
|
}
|
|
99
140
|
}
|
|
100
|
-
function
|
|
141
|
+
function getLabelTextSizeForTheme(element) {
|
|
101
142
|
switch (theme.getValueFor(element)) {
|
|
102
|
-
case
|
|
143
|
+
case Theme.LegacyBlue:
|
|
103
144
|
return '13px';
|
|
104
145
|
default:
|
|
105
146
|
return ControlLabel1Size;
|
|
106
147
|
}
|
|
107
148
|
}
|
|
108
|
-
function getPasswordRevealFilter(element) {
|
|
109
|
-
switch (theme.getValueFor(element)) {
|
|
110
|
-
case NimbleTheme.Color:
|
|
111
|
-
case NimbleTheme.Dark:
|
|
112
|
-
return 'invert(100%)';
|
|
113
|
-
default:
|
|
114
|
-
return 'invert(0%)';
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
const fillColorSelectedTheme = (element) => getColorForTheme(element, Selection100, Selection100, White, SlLegacyBlue);
|
|
118
|
-
const fillColorHoverTheme = (element) => getColorForTheme(element, Black91, Black15, White, SlLegacyBlue);
|
|
119
|
-
// Color Tokens
|
|
120
|
-
export const actionColorRgb = create('action-color-rgb').withDefault((element) => rgbString(getColorForTheme(element, Black91, Black15, White, SlLegacyBlue)));
|
|
121
|
-
export const applicationBackgroundColor = create('application-background-color').withDefault((element) => getColorForTheme(element, White, Black85, Enterprise, White));
|
|
122
|
-
export const fillColorSelected = create('fill-color-selected').withDefault((element) => hexToRgba(fillColorSelectedTheme(element), 0.3));
|
|
123
|
-
export const fillColorSelectedRgb = create('fill-color-selected-rgb').withDefault((element) => rgbString(fillColorSelectedTheme(element)));
|
|
124
|
-
export const fillColorSelectedHover = create('fill-color-selected-hover').withDefault((element) => hexToRgba(fillColorSelectedTheme(element), 0.15));
|
|
125
|
-
export const fillColorHover = create('fill-color-hover').withDefault((element) => hexToRgba(fillColorHoverTheme(element), 0.1));
|
|
126
|
-
export const borderColor = create('border-color').withDefault((element) => getDefaultLineColorForTheme(element));
|
|
127
|
-
export const borderColorRgb = create('border-color-rgb').withDefault((element) => rgbString(getDefaultLineColorForTheme(element)));
|
|
128
|
-
export const failColorTheme = (element) => getColorForTheme(element, Fail100LightUi, Fail100DarkUi, Fail100DarkUi, Fail100LightUi);
|
|
129
|
-
export const failColor = create('fail-color').withDefault((element) => failColorTheme(element));
|
|
130
|
-
export const warningColorTheme = (element) => getColorForTheme(element, Warning100LightUi, Warning100DarkUi, Warning100DarkUi, Warning100LightUi);
|
|
131
|
-
export const warningColor = create('warning-color').withDefault((element) => warningColorTheme(element));
|
|
132
|
-
export const passColorTheme = (element) => getColorForTheme(element, Pass100LightUi, Pass100DarkUi, Pass100DarkUi, Pass100LightUi);
|
|
133
|
-
export const passColor = create('pass-color').withDefault((element) => passColorTheme(element));
|
|
134
|
-
export const borderColorHover = create('border-color-hover').withDefault((element) => getColorForTheme(element, Selection100, Selection100, White, hexToRgba(SlLegacyBlue, 0.9)));
|
|
135
|
-
export const popupBoxShadowColor = create('popup-box-shadow-color').withDefault((element) => hexToRgba(getColorForTheme(element, Black75, Black85, Black85, Black75), 0.3));
|
|
136
|
-
export const popupBorderColor = create('popup-border-color').withDefault((element) => hexToRgba(getColorForTheme(element, Black91, Black15, White, Black91), 0.3));
|
|
137
|
-
// Component Sizing Tokens
|
|
138
|
-
export const controlHeight = create('control-height').withDefault('32px');
|
|
139
|
-
export const standardPadding = create('standard-padding').withDefault('16px');
|
|
140
|
-
export const labelHeight = create('label-height').withDefault('16px');
|
|
141
|
-
export const borderWidth = create('border-width').withDefault('1px');
|
|
142
|
-
export const iconSize = create('icon-size').withDefault('16px');
|
|
143
|
-
export const drawerWidth = create('drawer-width').withDefault('784px');
|
|
144
|
-
// Font Family Tokens
|
|
145
|
-
export const fontFamily = create('font-family').withDefault((element) => getFontForTheme(element));
|
|
146
|
-
export const labelFontFamily = create('label-font-family').withDefault((element) => getLabelFontForTheme(element));
|
|
147
|
-
export const groupLabelFontFamily = create('group-label-font-family').withDefault((element) => getGroupLabelFontForTheme(element));
|
|
148
|
-
export const drawerHeaderFontFamily = create('drawer-header-font-family').withDefault(Title2Family);
|
|
149
|
-
// Font Sizing Tokens
|
|
150
|
-
export const labelFontSize = create('label-font-size').withDefault((element) => getLabelTextSize(element));
|
|
151
|
-
export const contentFontSize = create('content-font-size').withDefault(BodySize);
|
|
152
|
-
export const groupLabelFontSize = create('group-label-font-size').withDefault(GroupLabel1Size);
|
|
153
|
-
export const drawerHeaderFontSize = create('drawer-header-font-size').withDefault(Title2Size);
|
|
154
|
-
// Font Weight Tokens
|
|
155
|
-
export const groupLabelFontWeight = create('group-label-font-weight').withDefault(GroupLabel1Weight);
|
|
156
|
-
export const labelFontWeight = create('label-font-weight').withDefault(ControlLabel1Weight);
|
|
157
|
-
// Font Color Tokens
|
|
158
|
-
export const labelFontColor = create('label-font-color').withDefault((element) => hexToRgba(getDefaultFontColorForTheme(element), 0.6));
|
|
159
|
-
export const groupLabelFontColor = create('group-label-font-color').withDefault((element) => getDefaultFontColorForTheme(element));
|
|
160
|
-
export const contentFontColor = create('content-font-color').withDefault((element) => getColorForTheme(element, Black91, Black15, White, Black88));
|
|
161
|
-
export const buttonContentFontColor = create('button-content-font-color').withDefault((element) => getColorForTheme(element, Black91, Black15, White, SlLegacyBlue));
|
|
162
|
-
export const labelFontColorDisabled = create('label-font-color-disabled').withDefault((element) => hexToRgba(getDefaultLineColorForTheme(element), 0.3));
|
|
163
|
-
export const labelTextTransform = create('label-text-transform').withDefault((element) => getLabelTextTransform(element));
|
|
164
|
-
export const groupLabelTextTransform = create('group-label-text-transform').withDefault((element) => getGroupLabelTextTransform(element));
|
|
165
|
-
export const contentFontColorDisabled = create('content-font-color-disabled').withDefault((element) => hexToRgba(getColorForTheme(element, Black91, Black15, White, Black88), 0.3));
|
|
166
|
-
// Animation Tokens
|
|
167
|
-
export const smallDelay = create('small-delay').withDefault(SmallDelay);
|
|
168
|
-
export const mediumDelay = create('medium-delay').withDefault(MediumDelay);
|
|
169
|
-
export const drawerAnimationDurationMs = create('drawer-animation-duration-ms').withDefault(250);
|
|
170
|
-
// Filter Tokens
|
|
171
|
-
export const passwordRevealFilter = create('password-reveal-filter').withDefault((element) => getPasswordRevealFilter(element));
|
|
172
149
|
//# sourceMappingURL=design-tokens.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design-tokens.js","sourceRoot":"","sources":["../../../src/theme-provider/design-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,MAAM,MAAM,SAAS,CAAC;AAC7B,OAAO,EACH,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,KAAK,EACL,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,UAAU,EACV,WAAW,EACX,aAAa,EACb,UAAU,EACV,QAAQ,EACR,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACtB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,SAAS,SAAS,CAAC,QAAgB;IAC/B,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,GA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AS,aAAa,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAChF,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAS,cAAc,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;AACnF,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAC3C,8BAA8B,CACjC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AAEnB,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CACtC,wBAAwB,CAC3B,CAAC,WAAW,CAAC,CAAC,OAAoB,EAAE,EAAE,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"design-tokens.js","sourceRoot":"","sources":["../../../src/theme-provider/design-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,MAAM,MAAM,SAAS,CAAC;AAC7B,OAAO,EACH,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,KAAK,EACL,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,UAAU,EACV,WAAW,EACX,aAAa,EACb,UAAU,EACV,QAAQ,EACR,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACtB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE1B,eAAe;AACf,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC,MAAM,CACnD,sBAAsB,CAAC,UAAU,C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B;YACI,OAAO,MAAM,CAAC;KACrB;AACL,CAAC;AAED,SAAS,wBAAwB,CAAC,OAAoB;IAClD,QAAQ,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE;QAChC,KAAK,KAAK,CAAC,UAAU;YACjB,OAAO,MAAM,CAAC;QAClB;YACI,OAAO,iBAAiB,CAAC;KAChC;AACL,CAAC"}
|
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { DesignToken, FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import { Direction } from '@microsoft/fast-web-utilities';
|
|
3
|
+
import { Theme } from './types';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
6
|
-
'nimble-theme-provider':
|
|
6
|
+
'nimble-theme-provider': ThemeProvider;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
+
export declare const direction: DesignToken<Direction>;
|
|
10
|
+
export declare const theme: DesignToken<Theme>;
|
|
9
11
|
/**
|
|
10
|
-
* The
|
|
12
|
+
* The ThemeProvider implementation. Add this component to the page and set its `theme` attribute to control
|
|
11
13
|
* the values of design tokens that provide colors and fonts as CSS custom properties to any descendant components.
|
|
12
14
|
* @internal
|
|
13
15
|
*/
|
|
14
|
-
declare class
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
export declare class ThemeProvider extends FoundationElement {
|
|
17
|
+
direction: Direction;
|
|
18
|
+
theme: Theme;
|
|
19
|
+
directionChanged(_prev: Direction | undefined, next: Direction | undefined): void;
|
|
20
|
+
themeChanged(_prev: Theme | undefined, next: Theme | undefined): void;
|
|
21
|
+
connectedCallback(): void;
|
|
17
22
|
}
|