@ni/nimble-components 1.0.0-beta.122 → 1.0.0-beta.126
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 +45 -0
- package/dist/esm/button/index.d.ts +11 -2
- package/dist/esm/button/index.js +20 -12
- package/dist/esm/button/index.js.map +1 -1
- package/dist/esm/button/styles.js +15 -10
- package/dist/esm/button/styles.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/styles.js +4 -4
- package/dist/esm/drawer/styles.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/template.js +1 -1
- package/dist/esm/nimble-components/src/button/behaviors.d.ts +12 -0
- package/dist/esm/nimble-components/src/button/index.d.ts +33 -0
- package/dist/esm/nimble-components/src/button/styles.d.ts +1 -0
- package/dist/esm/nimble-components/src/button/types.d.ts +12 -0
- package/dist/esm/nimble-components/src/checkbox/index.d.ts +12 -0
- package/dist/esm/nimble-components/src/checkbox/styles.d.ts +1 -0
- package/dist/esm/nimble-components/src/drawer/animations.d.ts +14 -0
- package/dist/esm/nimble-components/src/drawer/index.d.ts +43 -0
- package/dist/esm/nimble-components/src/drawer/styles.d.ts +1 -0
- package/dist/esm/nimble-components/src/drawer/types.d.ts +12 -0
- package/dist/esm/nimble-components/src/icon-base/index.d.ts +12 -0
- package/dist/esm/nimble-components/src/icon-base/styles.d.ts +1 -0
- package/dist/esm/nimble-components/src/icon-base/template.d.ts +2 -0
- package/dist/esm/nimble-components/src/icon-base/types.d.ts +11 -0
- package/dist/esm/nimble-components/src/icons/access-control.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/admin.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/administration.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/all-icons.d.ts +15 -0
- package/dist/esm/nimble-components/src/icons/check.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/custom-applications.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/delete.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/fail.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/login.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/logout.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/managed-systems.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/measurement-data-analysis.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/settings.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/succeeded.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/test-insights.d.ts +12 -0
- package/dist/esm/nimble-components/src/icons/utilities.d.ts +12 -0
- package/dist/esm/nimble-components/src/listbox-option/index.d.ts +15 -0
- package/dist/esm/nimble-components/src/listbox-option/styles.d.ts +1 -0
- package/dist/esm/nimble-components/src/menu/index.d.ts +12 -0
- package/dist/esm/nimble-components/src/menu/styles.d.ts +1 -0
- package/dist/esm/nimble-components/src/menu-item/index.d.ts +12 -0
- package/dist/esm/nimble-components/src/menu-item/styles.d.ts +1 -0
- package/dist/esm/nimble-components/src/number-field/index.d.ts +12 -0
- package/dist/esm/nimble-components/src/number-field/styles.d.ts +1 -0
- package/dist/esm/nimble-components/src/select/index.d.ts +16 -0
- package/dist/esm/nimble-components/src/select/styles.d.ts +1 -0
- package/dist/esm/nimble-components/src/tab/index.d.ts +12 -0
- package/dist/esm/nimble-components/src/tab/styles.d.ts +1 -0
- package/dist/esm/nimble-components/src/tab-panel/index.d.ts +12 -0
- package/dist/esm/nimble-components/src/tab-panel/styles.d.ts +1 -0
- package/dist/esm/nimble-components/src/tabs/index.d.ts +12 -0
- package/dist/esm/nimble-components/src/tabs/styles.d.ts +1 -0
- package/dist/esm/nimble-components/src/tabs-toolbar/index.d.ts +12 -0
- package/dist/esm/nimble-components/src/tabs-toolbar/styles.d.ts +1 -0
- package/dist/esm/nimble-components/src/tabs-toolbar/template.d.ts +1 -0
- package/dist/esm/nimble-components/src/testing/async-helpers.d.ts +10 -0
- package/dist/esm/nimble-components/src/text-field/index.d.ts +12 -0
- package/dist/esm/nimble-components/src/text-field/styles.d.ts +1 -0
- package/dist/esm/nimble-components/src/text-field/types.d.ts +3 -0
- 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 +43 -0
- package/dist/esm/nimble-components/src/theme-provider/index.d.ts +23 -0
- package/dist/esm/nimble-components/src/theme-provider/styles.d.ts +1 -0
- package/dist/esm/nimble-components/src/theme-provider/template.d.ts +2 -0
- package/dist/esm/nimble-components/src/theme-provider/types.d.ts +7 -0
- package/dist/esm/nimble-components/src/tree-item/index.d.ts +34 -0
- package/dist/esm/nimble-components/src/tree-item/styles.d.ts +3 -0
- package/dist/esm/nimble-components/src/tree-view/index.d.ts +22 -0
- package/dist/esm/nimble-components/src/tree-view/styles.d.ts +1 -0
- package/dist/esm/nimble-components/src/tree-view/types.d.ts +7 -0
- package/dist/esm/nimble-components/src/utilities/style/direction.d.ts +34 -0
- package/dist/esm/nimble-components/src/utilities/style/focus.d.ts +11 -0
- package/dist/esm/nimble-components/src/utilities/style/prefers-reduced-motion.d.ts +8 -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 +3 -3
- package/dist/esm/text-field/styles.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 +46 -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 +52 -0
- package/dist/esm/theme-provider/design-token-names.js.map +1 -0
- package/dist/esm/theme-provider/design-tokens.d.ts +4 -9
- package/dist/esm/theme-provider/design-tokens.js +78 -90
- package/dist/esm/theme-provider/design-tokens.js.map +1 -1
- package/dist/esm/theme-provider/index.d.ts +10 -3
- package/dist/esm/theme-provider/index.js +37 -3
- package/dist/esm/theme-provider/index.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/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/fonts.scss +3 -0
- package/dist/tokens-internal.scss +261 -0
- package/dist/tokens.scss +135 -0
- package/package.json +10 -6
|
@@ -1,6 +1,6 @@
|
|
|
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, passwordRevealFilter, smallDelay } from '../theme-provider/design-tokens';
|
|
4
4
|
export const styles = css `
|
|
5
5
|
${display('inline-block')}
|
|
6
6
|
|
|
@@ -24,7 +24,7 @@ export const styles = css `
|
|
|
24
24
|
flex-direction: row;
|
|
25
25
|
border-radius: 0px;
|
|
26
26
|
font-family: ${fontFamily};
|
|
27
|
-
border-bottom: ${borderWidth} solid rgba(${
|
|
27
|
+
border-bottom: ${borderWidth} solid rgba(${borderColorRgbPartial}, 0.3);
|
|
28
28
|
padding-bottom: 1px;
|
|
29
29
|
transition: border-bottom ${smallDelay}, padding-bottom ${smallDelay};
|
|
30
30
|
align-items: flex-end;
|
|
@@ -86,7 +86,7 @@ export const styles = css `
|
|
|
86
86
|
|
|
87
87
|
.control::selection {
|
|
88
88
|
color: ${labelFontColor};
|
|
89
|
-
background: rgba(${
|
|
89
|
+
background: rgba(${fillColorSelectedRgbPartial}, 0.3);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.control::placeholder {
|
|
@@ -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,cAAc,EACd,eAAe,EACf,aAAa,EACb,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACb,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,cAAc,CAAC;;;uBAGN,UAAU;qBACZ,eAAe;;;iBAGnB,gBAAgB;uBACV,WAAW,MAAM,aAAa;;;;iBAIpC,wBAAwB;;;;;;;;;uBASlB,UAAU;yBACR,WAAW,eAAe,qBAAqB;;oCAEpC,UAAU,oBAAoB,UAAU;;;;;;;;;;;mCAWzC,gBAAgB;;;;;yBAK1B,WAAW,UAAU,SAAS;;;;mCAIpB,SAAS;;;;;;yBAMnB,WAAW,UAAU,wBAAwB;;;;;;;;;;;;;;;;;;;;;;kBAsBpD,oBAAoB;;;;;;;;;;;iBAWrB,cAAc;2BACJ,2BAA2B;;;;iBAIrC,cAAc;;;;;;;;;;;;iBAYd,wBAAwB;;;;;iBAKxB,cAAc;uBACR,eAAe;qBACjB,aAAa;uBACX,eAAe;uBACf,WAAW;0BACR,kBAAkB;;;;;;;;;;;;;;;kBAe1B,QAAQ;iBACT,QAAQ;;;;gBAIT,SAAS;;;;gBAIT,wBAAwB;;CAEvC,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
passwordRevealFilter: ''
|
|
45
|
+
};
|
|
46
|
+
//# 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,GAAmC;IACpD,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;IAC7B,oBAAoB,EAAE,EAAE;CAC3B,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
|
+
[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,52 @@
|
|
|
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
|
+
passwordRevealFilter: 'password-reveal-filter'
|
|
45
|
+
};
|
|
46
|
+
const prefix = 'ni-nimble';
|
|
47
|
+
export const styleNameFromTokenName = (tokenName) => `${prefix}-${tokenName}`;
|
|
48
|
+
export const cssPropertyFromTokenName = (tokenName) => `--${prefix}-${tokenName}`;
|
|
49
|
+
export const scssPropertyFromTokenName = (tokenName) => `$${prefix}-${tokenName}`;
|
|
50
|
+
export const scssInternalPropertyFromTokenName = (tokenName) => `$${prefix}-internal-${tokenName}`;
|
|
51
|
+
export const scssInternalPropertySetterMarkdown = (tokenName, property) => `\`#{$${prefix}-internal-${tokenName}}: ${property};\``;
|
|
52
|
+
//# 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,GAAmC;IACtD,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;IACzD,oBAAoB,EAAE,wBAAwB;CACjD,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>;
|
|
@@ -2,19 +2,69 @@ 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
4
|
import { NimbleTheme } from './types';
|
|
5
|
-
|
|
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
|
+
// Filter Tokens
|
|
58
|
+
export const passwordRevealFilter = DesignToken.create(styleNameFromTokenName(tokenNames.passwordRevealFilter)).withDefault((element) => getPasswordRevealFilterForTheme(element));
|
|
59
|
+
// Private helpers functions
|
|
60
|
+
function hexToRgbPartial(hexValue) {
|
|
6
61
|
const { red, green, blue } = hexRgb(hexValue);
|
|
7
62
|
return `${red}, ${green}, ${blue}`;
|
|
8
63
|
}
|
|
9
|
-
function
|
|
64
|
+
function hexToRgbaCssColor(hexValue, alpha) {
|
|
10
65
|
const { red, green, blue } = hexRgb(hexValue);
|
|
11
66
|
return `rgba(${red}, ${green}, ${blue}, ${alpha})`;
|
|
12
67
|
}
|
|
13
|
-
const { create } = DesignToken;
|
|
14
|
-
export const theme = create({
|
|
15
|
-
name: 'theme',
|
|
16
|
-
cssCustomPropertyName: null
|
|
17
|
-
}).withDefault(NimbleTheme.Light);
|
|
18
68
|
function getColorForTheme(element, lightThemeColor, darkThemeColor, colorThemeColor, legacyBlueThemeColor) {
|
|
19
69
|
switch (theme.getValueFor(element)) {
|
|
20
70
|
case NimbleTheme.Light:
|
|
@@ -29,33 +79,26 @@ function getColorForTheme(element, lightThemeColor, darkThemeColor, colorThemeCo
|
|
|
29
79
|
return lightThemeColor;
|
|
30
80
|
}
|
|
31
81
|
}
|
|
82
|
+
function getWarningColorForTheme(element) {
|
|
83
|
+
return getColorForTheme(element, Warning100LightUi, Warning100DarkUi, Warning100DarkUi, Warning100LightUi);
|
|
84
|
+
}
|
|
85
|
+
function getFailColorForTheme(element) {
|
|
86
|
+
return getColorForTheme(element, Fail100LightUi, Fail100DarkUi, Fail100DarkUi, Fail100LightUi);
|
|
87
|
+
}
|
|
88
|
+
function getPassColorForTheme(element) {
|
|
89
|
+
return getColorForTheme(element, Pass100LightUi, Pass100DarkUi, Pass100DarkUi, Pass100LightUi);
|
|
90
|
+
}
|
|
32
91
|
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
|
-
}
|
|
92
|
+
return getColorForTheme(element, Black91, Black15, White, Black91);
|
|
45
93
|
}
|
|
46
94
|
function getDefaultFontColorForTheme(element) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
case NimbleTheme.LegacyBlue:
|
|
55
|
-
return Black75;
|
|
56
|
-
default:
|
|
57
|
-
return Black91;
|
|
58
|
-
}
|
|
95
|
+
return getColorForTheme(element, Black91, Black15, White, Black75);
|
|
96
|
+
}
|
|
97
|
+
function getFillColorSelectedForTheme(element) {
|
|
98
|
+
return getColorForTheme(element, Selection100, Selection100, White, SlLegacyBlue);
|
|
99
|
+
}
|
|
100
|
+
function getFillColorHoverForTheme(element) {
|
|
101
|
+
return getColorForTheme(element, Black91, Black15, White, SlLegacyBlue);
|
|
59
102
|
}
|
|
60
103
|
function getFontForTheme(element) {
|
|
61
104
|
switch (theme.getValueFor(element)) {
|
|
@@ -81,7 +124,7 @@ function getGroupLabelFontForTheme(element) {
|
|
|
81
124
|
return `${GroupLabel1Family}, ${BodyFamily}`;
|
|
82
125
|
}
|
|
83
126
|
}
|
|
84
|
-
function
|
|
127
|
+
function getGroupLabelTextTransformForTheme(element) {
|
|
85
128
|
switch (theme.getValueFor(element)) {
|
|
86
129
|
case NimbleTheme.LegacyBlue:
|
|
87
130
|
return 'none';
|
|
@@ -89,7 +132,7 @@ function getGroupLabelTextTransform(element) {
|
|
|
89
132
|
return 'uppercase';
|
|
90
133
|
}
|
|
91
134
|
}
|
|
92
|
-
function
|
|
135
|
+
function getLabelTextTransformForTheme(element) {
|
|
93
136
|
switch (theme.getValueFor(element)) {
|
|
94
137
|
case NimbleTheme.LegacyBlue:
|
|
95
138
|
return 'none';
|
|
@@ -97,7 +140,7 @@ function getLabelTextTransform(element) {
|
|
|
97
140
|
return 'none';
|
|
98
141
|
}
|
|
99
142
|
}
|
|
100
|
-
function
|
|
143
|
+
function getLabelTextSizeForTheme(element) {
|
|
101
144
|
switch (theme.getValueFor(element)) {
|
|
102
145
|
case NimbleTheme.LegacyBlue:
|
|
103
146
|
return '13px';
|
|
@@ -105,7 +148,7 @@ function getLabelTextSize(element) {
|
|
|
105
148
|
return ControlLabel1Size;
|
|
106
149
|
}
|
|
107
150
|
}
|
|
108
|
-
function
|
|
151
|
+
function getPasswordRevealFilterForTheme(element) {
|
|
109
152
|
switch (theme.getValueFor(element)) {
|
|
110
153
|
case NimbleTheme.Color:
|
|
111
154
|
case NimbleTheme.Dark:
|
|
@@ -114,59 +157,4 @@ function getPasswordRevealFilter(element) {
|
|
|
114
157
|
return 'invert(0%)';
|
|
115
158
|
}
|
|
116
159
|
}
|
|
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
160
|
//# 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,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YAAY,CAAC;KAC3B;AACL,CAAC"}
|
|
@@ -1,16 +1,23 @@
|
|
|
1
|
-
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
-
import
|
|
1
|
+
import { DesignToken, FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import { Direction } from '@microsoft/fast-web-utilities';
|
|
3
|
+
import { NimbleTheme } from './types';
|
|
3
4
|
export type { NimbleThemeProvider };
|
|
4
5
|
declare global {
|
|
5
6
|
interface HTMLElementTagNameMap {
|
|
6
7
|
'nimble-theme-provider': NimbleThemeProvider;
|
|
7
8
|
}
|
|
8
9
|
}
|
|
10
|
+
export declare const direction: DesignToken<Direction>;
|
|
11
|
+
export declare const theme: DesignToken<NimbleTheme>;
|
|
9
12
|
/**
|
|
10
|
-
* The NimbleThemeProvider implementation
|
|
13
|
+
* The NimbleThemeProvider implementation. Add this component to the page and set its `theme` attribute to control
|
|
14
|
+
* the values of design tokens that provide colors and fonts as CSS custom properties to any descendant components.
|
|
11
15
|
* @internal
|
|
12
16
|
*/
|
|
13
17
|
declare class NimbleThemeProvider extends FoundationElement {
|
|
18
|
+
direction: Direction;
|
|
14
19
|
theme: NimbleTheme;
|
|
20
|
+
directionChanged(_prev: Direction | undefined, next: Direction | undefined): void;
|
|
15
21
|
themeChanged(_prev: NimbleTheme | undefined, next: NimbleTheme | undefined): void;
|
|
22
|
+
connectedCallback(): void;
|
|
16
23
|
}
|
|
@@ -1,14 +1,34 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { DesignSystem, FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import { DesignSystem, DesignToken, FoundationElement } from '@microsoft/fast-foundation';
|
|
3
3
|
import { attr } from '@microsoft/fast-element';
|
|
4
|
+
import { Direction } from '@microsoft/fast-web-utilities';
|
|
4
5
|
import { template } from './template';
|
|
5
6
|
import { styles } from './styles';
|
|
6
|
-
import {
|
|
7
|
+
import { NimbleTheme } from './types';
|
|
8
|
+
// Not represented as a CSS Custom Property, instead available
|
|
9
|
+
// as an attribute of theme provider.
|
|
10
|
+
export const direction = DesignToken.create({
|
|
11
|
+
name: 'direction',
|
|
12
|
+
cssCustomPropertyName: null
|
|
13
|
+
}).withDefault(Direction.ltr);
|
|
14
|
+
export const theme = DesignToken.create({
|
|
15
|
+
name: 'theme',
|
|
16
|
+
cssCustomPropertyName: null
|
|
17
|
+
}).withDefault(NimbleTheme.Light);
|
|
7
18
|
/**
|
|
8
|
-
* The NimbleThemeProvider implementation
|
|
19
|
+
* The NimbleThemeProvider implementation. Add this component to the page and set its `theme` attribute to control
|
|
20
|
+
* the values of design tokens that provide colors and fonts as CSS custom properties to any descendant components.
|
|
9
21
|
* @internal
|
|
10
22
|
*/
|
|
11
23
|
class NimbleThemeProvider extends FoundationElement {
|
|
24
|
+
directionChanged(_prev, next) {
|
|
25
|
+
if (next !== undefined && next !== null) {
|
|
26
|
+
direction.setValueFor(this, next);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
direction.deleteValueFor(this);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
12
32
|
themeChanged(_prev, next) {
|
|
13
33
|
if (next !== undefined && next !== null) {
|
|
14
34
|
theme.setValueFor(this, next);
|
|
@@ -17,7 +37,21 @@ class NimbleThemeProvider extends FoundationElement {
|
|
|
17
37
|
theme.deleteValueFor(this);
|
|
18
38
|
}
|
|
19
39
|
}
|
|
40
|
+
connectedCallback() {
|
|
41
|
+
super.connectedCallback();
|
|
42
|
+
if (!this.direction) {
|
|
43
|
+
this.direction = Direction.ltr;
|
|
44
|
+
}
|
|
45
|
+
if (!this.theme) {
|
|
46
|
+
this.theme = NimbleTheme.Light;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
20
49
|
}
|
|
50
|
+
__decorate([
|
|
51
|
+
attr({
|
|
52
|
+
attribute: 'direction'
|
|
53
|
+
})
|
|
54
|
+
], NimbleThemeProvider.prototype, "direction", void 0);
|
|
21
55
|
__decorate([
|
|
22
56
|
attr({
|
|
23
57
|
attribute: 'theme'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/theme-provider/index.ts"],"names":[],"mappings":";AAAA,OAAO,EACH,YAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/theme-provider/index.ts"],"names":[],"mappings":";AAAA,OAAO,EACH,YAAY,EACZ,WAAW,EACX,iBAAiB,EACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAUtC,8DAA8D;AAC9D,qCAAqC;AACrC,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC,MAAM,CAAY;IACnD,IAAI,EAAE,WAAW;IACjB,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;AAE9B,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAc;IACjD,IAAI,EAAE,OAAO;IACb,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAElC;;;;GAIG;AACH,MAAM,mBAAoB,SAAQ,iBAAiB;IAWxC,gBAAgB,CACnB,KAA4B,EAC5B,IAA2B;QAE3B,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,EAAE;YACrC,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;SACrC;aAAM;YACH,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;SAClC;IACL,CAAC;IAEM,YAAY,CACf,KAA8B,EAC9B,IAA6B;QAE7B,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,EAAE;YACrC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;SACjC;aAAM;YACH,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;SAC9B;IACL,CAAC;IAEM,iBAAiB;QACpB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAE1B,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACjB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC;SAClC;QAED,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACb,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;SAClC;IACL,CAAC;CACJ;AAxCG;IAHC,IAAI,CAAC;QACF,SAAS,EAAE,WAAW;KACzB,CAAC;sDAC2B;AAK7B;IAHC,IAAI,CAAC;QACF,SAAS,EAAE,OAAO;KACrB,CAAC;kDACyB;AAqC/B,MAAM,0BAA0B,GAAG,mBAAmB,CAAC,OAAO,CAAC;IAC3D,QAAQ,EAAE,gBAAgB;IAC1B,MAAM;IACN,QAAQ;CACX,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE;KACrB,UAAU,CAAC,QAAQ,CAAC;KACpB,QAAQ,CAAC,0BAA0B,EAAE,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { DirectionalStyleSheetBehavior } from '@microsoft/fast-components';
|
|
2
1
|
import { css } from '@microsoft/fast-element';
|
|
3
2
|
import { display, TreeItem } from '@microsoft/fast-foundation';
|
|
4
3
|
import { focusVisible } from '../utilities/style/focus';
|
|
5
4
|
import { contentFontColor, fontFamily, borderColorHover, fillColorSelected, contentFontSize, fillColorHover, fillColorSelectedHover, borderWidth, iconSize } from '../theme-provider/design-tokens';
|
|
6
5
|
import { groupSelectedAttribute } from '../tree-view/types';
|
|
6
|
+
import { DirectionalStyleSheetBehavior } from '../utilities/style/direction';
|
|
7
7
|
export const styles = (context) => css `
|
|
8
8
|
${display('block')}
|
|
9
9
|
|
|
@@ -14,7 +14,7 @@ export const styles = (context) => css `
|
|
|
14
14
|
color: ${contentFontColor};
|
|
15
15
|
cursor: pointer;
|
|
16
16
|
font-family: ${fontFamily};
|
|
17
|
-
--tree-item-nested-width: 0;
|
|
17
|
+
--ni-private-tree-item-nested-width: 0;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
${ /* this controls the side border */''}
|
|
@@ -57,7 +57,7 @@ export const styles = (context) => css `
|
|
|
57
57
|
.positioning-region::before {
|
|
58
58
|
content: '';
|
|
59
59
|
display: block;
|
|
60
|
-
width: var(--tree-item-nested-width);
|
|
60
|
+
width: var(--ni-private-tree-item-nested-width);
|
|
61
61
|
flex-shrink: 0;
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -131,8 +131,10 @@ export const styles = (context) => css `
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
::slotted(${context.tagFor(TreeItem)}) {
|
|
134
|
-
--tree-item-nested-width: 1em;
|
|
135
|
-
--expand-collapse-button-nested-width: calc(
|
|
134
|
+
--ni-private-tree-item-nested-width: 1em;
|
|
135
|
+
--ni-private-expand-collapse-button-nested-width: calc(
|
|
136
|
+
${iconSize} * -1
|
|
137
|
+
);
|
|
136
138
|
}
|
|
137
139
|
|
|
138
140
|
${
|
|
@@ -163,7 +165,7 @@ export const styles = (context) => css `
|
|
|
163
165
|
${ /* ltr styles */''}
|
|
164
166
|
:host(.nested) .expand-collapse-button {
|
|
165
167
|
left: var(
|
|
166
|
-
--expand-collapse-button-nested-width,
|
|
168
|
+
--ni-private-expand-collapse-button-nested-width,
|
|
167
169
|
calc(${iconSize} * -1)
|
|
168
170
|
);
|
|
169
171
|
}
|
|
@@ -179,7 +181,7 @@ export const styles = (context) => css `
|
|
|
179
181
|
${ /* rtl styles */''}
|
|
180
182
|
:host(.nested) .expand-collapse-button {
|
|
181
183
|
right: var(
|
|
182
|
-
--expand-collapse-button-nested-width,
|
|
184
|
+
--ni-private-expand-collapse-button-nested-width,
|
|
183
185
|
calc(${iconSize} * -1)
|
|
184
186
|
);
|
|
185
187
|
}
|