@ni/nimble-components 1.0.0-beta.124 → 1.0.0-beta.128
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/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/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/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/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 -9
- package/dist/esm/nimble-components/src/theme-provider/index.d.ts +8 -2
- package/dist/esm/nimble-components/src/utilities/style/direction.d.ts +34 -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 +8 -2
- package/dist/esm/theme-provider/index.js +35 -2
- 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
|
@@ -3,13 +3,22 @@ export { AdminIcon } from './admin';
|
|
|
3
3
|
export { AdministrationIcon } from './administration';
|
|
4
4
|
export { CheckIcon } from './check';
|
|
5
5
|
export { CustomApplicationsIcon } from './custom-applications';
|
|
6
|
+
export { CustomStatusIcon } from './custom-status';
|
|
6
7
|
export { DeleteIcon } from './delete';
|
|
8
|
+
export { DoneIcon } from './done';
|
|
7
9
|
export { FailIcon } from './fail';
|
|
8
10
|
export { LoginIcon } from './login';
|
|
9
11
|
export { LogoutIcon } from './logout';
|
|
12
|
+
export { LoopingIcon } from './looping';
|
|
10
13
|
export { ManagedSystemsIcon } from './managed-systems';
|
|
11
14
|
export { MeasurementDataAnalysisIcon } from './measurement-data-analysis';
|
|
15
|
+
export { RunningIcon } from './running';
|
|
12
16
|
export { SettingsIcon } from './settings';
|
|
17
|
+
export { SkippedIcon } from './skipped';
|
|
18
|
+
export { StatusIcon } from './status';
|
|
13
19
|
export { SucceededIcon } from './succeeded';
|
|
20
|
+
export { TerminatedIcon } from './terminated';
|
|
14
21
|
export { TestInsightsIcon } from './test-insights';
|
|
22
|
+
export { TimedOutIcon } from './timed-out';
|
|
15
23
|
export { UtilitiesIcon } from './utilities';
|
|
24
|
+
export { WaitingIcon } from './waiting';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Icon } from '../icon-base';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
'nimble-custom-status-icon': CustomStatusIcon;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The icon component for the 'custom-status' icon
|
|
9
|
+
*/
|
|
10
|
+
export declare class CustomStatusIcon extends Icon {
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Icon } from '../icon-base';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
'nimble-looping-icon': LoopingIcon;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The icon component for the 'looping' icon
|
|
9
|
+
*/
|
|
10
|
+
export declare class LoopingIcon extends Icon {
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Icon } from '../icon-base';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
'nimble-running-icon': RunningIcon;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The icon component for the 'running' icon
|
|
9
|
+
*/
|
|
10
|
+
export declare class RunningIcon extends Icon {
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Icon } from '../icon-base';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
'nimble-skipped-icon': SkippedIcon;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The icon component for the 'skipped' icon
|
|
9
|
+
*/
|
|
10
|
+
export declare class SkippedIcon extends Icon {
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Icon } from '../icon-base';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
'nimble-status-icon': StatusIcon;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The icon component for the 'status' icon
|
|
9
|
+
*/
|
|
10
|
+
export declare class StatusIcon extends Icon {
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Icon } from '../icon-base';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
'nimble-terminated-icon': TerminatedIcon;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The icon component for the 'terminated' icon
|
|
9
|
+
*/
|
|
10
|
+
export declare class TerminatedIcon extends Icon {
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Icon } from '../icon-base';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
'nimble-timed-out-icon': TimedOutIcon;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The icon component for the 'timed-out' icon
|
|
9
|
+
*/
|
|
10
|
+
export declare class TimedOutIcon extends Icon {
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Icon } from '../icon-base';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
'nimble-waiting-icon': WaitingIcon;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The icon component for the 'waiting' icon
|
|
9
|
+
*/
|
|
10
|
+
export declare class WaitingIcon extends Icon {
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
@@ -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 {};
|
|
@@ -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>;
|
|
@@ -1,17 +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
13
|
* The NimbleThemeProvider implementation. Add this component to the page and set its `theme` attribute to control
|
|
11
14
|
* the values of design tokens that provide colors and fonts as CSS custom properties to any descendant components.
|
|
12
15
|
* @internal
|
|
13
16
|
*/
|
|
14
17
|
declare class NimbleThemeProvider extends FoundationElement {
|
|
18
|
+
direction: Direction;
|
|
15
19
|
theme: NimbleTheme;
|
|
20
|
+
directionChanged(_prev: Direction | undefined, next: Direction | undefined): void;
|
|
16
21
|
themeChanged(_prev: NimbleTheme | undefined, next: NimbleTheme | undefined): void;
|
|
22
|
+
connectedCallback(): void;
|
|
17
23
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Behavior, ElementStyles, FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
/**
|
|
3
|
+
* Behavior to conditionally apply LTR and RTL stylesheets. To determine which to apply,
|
|
4
|
+
* the behavior will use the nearest DesignSystemProvider's 'direction' design system value.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { css } from "@microsoft/fast-element";
|
|
10
|
+
* import { DirectionalStyleSheetBehavior } from "@microsoft/fast-foundation";
|
|
11
|
+
*
|
|
12
|
+
* css`
|
|
13
|
+
* // ...
|
|
14
|
+
* `.withBehaviors(new DirectionalStyleSheetBehavior(
|
|
15
|
+
* css`:host { content: "ltr"}`),
|
|
16
|
+
* css`:host { content: "rtl"}`),
|
|
17
|
+
* )
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class DirectionalStyleSheetBehavior implements Behavior {
|
|
21
|
+
private ltr;
|
|
22
|
+
private rtl;
|
|
23
|
+
private cache;
|
|
24
|
+
constructor(ltr: ElementStyles | null, rtl: ElementStyles | null);
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
bind(source: FASTElement & HTMLElement): void;
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
unbind(source: FASTElement & HTMLElement): void;
|
|
33
|
+
private attach;
|
|
34
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { display } from '@microsoft/fast-foundation';
|
|
3
|
-
import { borderColor,
|
|
3
|
+
import { borderColor, borderColorRgbPartial, borderColorHover, borderWidth, contentFontColor, contentFontColorDisabled, contentFontSize, controlHeight, fillColorSelectedRgbPartial, fontFamily, iconSize, labelFontColor, labelFontFamily, labelFontSize, labelFontWeight, labelHeight, labelTextTransform, smallDelay } from '../theme-provider/design-tokens';
|
|
4
4
|
export const styles = css `
|
|
5
5
|
${display('inline-block')}
|
|
6
6
|
|
|
@@ -25,7 +25,7 @@ export const styles = css `
|
|
|
25
25
|
flex-direction: row;
|
|
26
26
|
border-radius: 0px;
|
|
27
27
|
font-family: ${fontFamily};
|
|
28
|
-
border-bottom: ${borderWidth} solid rgba(${
|
|
28
|
+
border-bottom: ${borderWidth} solid rgba(${borderColorRgbPartial}, 0.3);
|
|
29
29
|
padding-bottom: 1px;
|
|
30
30
|
transition: border-bottom ${smallDelay}, padding-bottom ${smallDelay};
|
|
31
31
|
}
|
|
@@ -68,7 +68,7 @@ export const styles = css `
|
|
|
68
68
|
|
|
69
69
|
.control::selection {
|
|
70
70
|
color: ${labelFontColor};
|
|
71
|
-
background: rgba(${
|
|
71
|
+
background: rgba(${fillColorSelectedRgbPartial}, 0.3);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.control::placeholder {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/number-field/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/number-field/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,WAAW,EACX,qBAAqB,EACrB,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,aAAa,EACb,2BAA2B,EAC3B,UAAU,EACV,QAAQ,EACR,cAAc,EACd,eAAe,EACf,aAAa,EACb,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,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;;;;;;;;;;uBAUlB,UAAU;yBACR,WAAW,eAAe,qBAAqB;;oCAEpC,UAAU,oBAAoB,UAAU;;;;;;;;;;mCAUzC,gBAAgB;;;;;;yBAM1B,WAAW,UAAU,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;iBAwBrD,cAAc;2BACJ,2BAA2B;;;;iBAIrC,cAAc;;;;;;;;iBAQd,wBAAwB;;;;;iBAKxB,cAAc;uBACR,eAAe;qBACjB,aAAa;uBACX,eAAe;uBACf,WAAW;0BACR,kBAAkB;;;;;;;;;;;;;;;;;;;;kBAoB1B,QAAQ;iBACT,QAAQ;gBACT,WAAW;;CAE1B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { display } from '@microsoft/fast-foundation';
|
|
3
|
-
import {
|
|
3
|
+
import { borderColorRgbPartial, borderWidth, contentFontColor, contentFontSize, controlHeight, fontFamily, standardPadding } from '../theme-provider/design-tokens';
|
|
4
4
|
export const styles = css `
|
|
5
5
|
${display('flex')}
|
|
6
6
|
|
|
@@ -16,7 +16,8 @@ export const styles = css `
|
|
|
16
16
|
.separator {
|
|
17
17
|
display: inline-block;
|
|
18
18
|
height: 24px;
|
|
19
|
-
border-left: calc(${borderWidth} * 2) solid
|
|
19
|
+
border-left: calc(${borderWidth} * 2) solid
|
|
20
|
+
rgba(${borderColorRgbPartial}, 0.3);
|
|
20
21
|
margin: calc(${standardPadding} / 4) calc(${standardPadding} / 2);
|
|
21
22
|
}
|
|
22
23
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/tabs-toolbar/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/tabs-toolbar/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,qBAAqB,EACrB,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,UAAU,EACV,eAAe,EAClB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,MAAM,CAAC;;;;kBAIH,aAAa;;uBAER,UAAU;qBACZ,eAAe;iBACnB,gBAAgB;;;;;;4BAML,WAAW;mBACpB,qBAAqB;uBACjB,eAAe,cAAc,eAAe;;CAElE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { display } from '@microsoft/fast-foundation';
|
|
3
|
-
import {
|
|
3
|
+
import { 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>;
|