@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
|
@@ -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 { statusHeader16X16 } from '@ni/nimble-tokens/dist-icons-esm/nimble-icons-inline';
|
|
2
|
+
import { Icon, registerIcon } from '../icon-base';
|
|
3
|
+
/**
|
|
4
|
+
* The icon component for the 'status' icon
|
|
5
|
+
*/
|
|
6
|
+
export class StatusIcon extends Icon {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(statusHeader16X16);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
registerIcon('status-icon', StatusIcon);
|
|
12
|
+
//# sourceMappingURL=status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../src/icons/status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AACzF,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAQlD;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,IAAI;IAChC;QACI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAC7B,CAAC;CACJ;AAED,YAAY,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -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 { statusTerminated16X16 } from '@ni/nimble-tokens/dist-icons-esm/nimble-icons-inline';
|
|
2
|
+
import { Icon, registerIcon } from '../icon-base';
|
|
3
|
+
/**
|
|
4
|
+
* The icon component for the 'terminated' icon
|
|
5
|
+
*/
|
|
6
|
+
export class TerminatedIcon extends Icon {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(statusTerminated16X16);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
registerIcon('terminated-icon', TerminatedIcon);
|
|
12
|
+
//# sourceMappingURL=terminated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminated.js","sourceRoot":"","sources":["../../../src/icons/terminated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAC7F,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAQlD;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,IAAI;IACpC;QACI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACjC,CAAC;CACJ;AAED,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,CAAC"}
|
|
@@ -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 { statusTimedOut16X16 } from '@ni/nimble-tokens/dist-icons-esm/nimble-icons-inline';
|
|
2
|
+
import { Icon, registerIcon } from '../icon-base';
|
|
3
|
+
/**
|
|
4
|
+
* The icon component for the 'timed-out' icon
|
|
5
|
+
*/
|
|
6
|
+
export class TimedOutIcon extends Icon {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(statusTimedOut16X16);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
registerIcon('timed-out-icon', TimedOutIcon);
|
|
12
|
+
//# sourceMappingURL=timed-out.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timed-out.js","sourceRoot":"","sources":["../../../src/icons/timed-out.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAQlD;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,IAAI;IAClC;QACI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAC/B,CAAC;CACJ;AAED,YAAY,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC"}
|
|
@@ -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,12 @@
|
|
|
1
|
+
import { statusWaiting16X16 } from '@ni/nimble-tokens/dist-icons-esm/nimble-icons-inline';
|
|
2
|
+
import { Icon, registerIcon } from '../icon-base';
|
|
3
|
+
/**
|
|
4
|
+
* The icon component for the 'waiting' icon
|
|
5
|
+
*/
|
|
6
|
+
export class WaitingIcon extends Icon {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(statusWaiting16X16);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
registerIcon('waiting-icon', WaitingIcon);
|
|
12
|
+
//# sourceMappingURL=waiting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waiting.js","sourceRoot":"","sources":["../../../src/icons/waiting.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAC1F,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAQlD;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,IAAI;IACjC;QACI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IAC9B,CAAC;CACJ;AAED,YAAY,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC"}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
import type { Button } from '@microsoft/fast-foundation';
|
|
6
|
-
export declare type ButtonAppearanceAttribute = 'outline' | 'ghost' | 'block';
|
|
7
6
|
export declare enum ButtonAppearance {
|
|
8
7
|
Outline = "outline",
|
|
9
8
|
Ghost = "ghost",
|
|
10
9
|
Block = "block"
|
|
11
10
|
}
|
|
11
|
+
export declare type ButtonAppearanceAttribute = `${ButtonAppearance}`;
|
|
12
12
|
export declare type ButtonType = Button['type'];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare type DrawerLocationAttribute = 'left' | 'right';
|
|
2
1
|
export declare enum DrawerLocation {
|
|
3
2
|
Left = "left",
|
|
4
3
|
Right = "right"
|
|
5
4
|
}
|
|
6
|
-
export declare type
|
|
5
|
+
export declare type DrawerLocationAttribute = `${DrawerLocation}`;
|
|
7
6
|
export declare enum DrawerState {
|
|
8
7
|
Opening = "opening",
|
|
9
8
|
Opened = "opened",
|
|
10
9
|
Closing = "closing",
|
|
11
10
|
Closed = "closed"
|
|
12
11
|
}
|
|
12
|
+
export declare type DrawerStateAttribute = `${DrawerState}`;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Predefined icon status states
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
|
-
export declare type IconStatusAttribute = 'fail' | 'warning' | 'pass' | 'regular';
|
|
6
5
|
export declare enum IconStatus {
|
|
7
6
|
Fail = "fail",
|
|
8
7
|
Warning = "warning",
|
|
9
8
|
Pass = "pass",
|
|
10
9
|
Regular = "regular"
|
|
11
10
|
}
|
|
11
|
+
export declare type IconStatusAttribute = `${IconStatus}`;
|
|
@@ -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
|
+
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 {};
|
|
@@ -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,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
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const template: import("@microsoft/fast-element").ViewTemplate<
|
|
1
|
+
import type { ThemeProvider } from '.';
|
|
2
|
+
export declare const template: import("@microsoft/fast-element").ViewTemplate<ThemeProvider, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
export declare enum NimbleTheme {
|
|
1
|
+
export declare enum Theme {
|
|
3
2
|
Light = "light",
|
|
4
3
|
Dark = "dark",
|
|
5
4
|
Color = "color",
|
|
6
5
|
LegacyBlue = "legacy-blue"
|
|
7
6
|
}
|
|
7
|
+
export declare type ThemeAttribute = `${Theme}`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const pinnedSelectedAttribute = "pinned-selected";
|
|
2
2
|
export declare const groupSelectedAttribute = "group-selected";
|
|
3
|
-
export declare type TreeViewSelectionModeAttribute = 'all' | 'leaves-only';
|
|
4
3
|
export declare enum TreeViewSelectionMode {
|
|
5
4
|
All = "all",
|
|
6
5
|
LeavesOnly = "leaves-only"
|
|
7
6
|
}
|
|
7
|
+
export declare type TreeViewSelectionModeAttribute = `${TreeViewSelectionMode}`;
|
|
@@ -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,8 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Singleton utility to watch the prefers-reduced-motion media value
|
|
3
3
|
*/
|
|
4
|
-
export declare
|
|
5
|
-
static instance: PrefersReducedMotionWatcher;
|
|
6
|
-
readonly mediaQuery: MediaQueryList;
|
|
7
|
-
private constructor();
|
|
8
|
-
}
|
|
4
|
+
export declare const prefersReducedMotionMediaQuery: MediaQueryList;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Behavior, ElementStyles, FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import type { Theme } from '../../theme-provider/types';
|
|
3
|
+
export declare type LightStyle = ElementStyles | null;
|
|
4
|
+
export declare type DarkStyleOrAlias = ElementStyles | null | Theme.Light;
|
|
5
|
+
export declare type ColorStyleOrAlias = ElementStyles | null | Theme.Light | Theme.Dark;
|
|
6
|
+
export declare type LegacyBlueStyleOrAlias = ElementStyles | null | Theme.Light | Theme.Dark | Theme.Color;
|
|
7
|
+
/**
|
|
8
|
+
* Behavior to conditionally apply theme-based stylesheets.
|
|
9
|
+
*/
|
|
10
|
+
declare class ThemeStyleSheetBehavior implements Behavior {
|
|
11
|
+
private readonly themeStyles;
|
|
12
|
+
private readonly cache;
|
|
13
|
+
constructor(lightStyle: LightStyle, darkStyleOrAlias: DarkStyleOrAlias, colorStyleOrAlias: ColorStyleOrAlias, legacyBlueStyleOrAlias: LegacyBlueStyleOrAlias);
|
|
14
|
+
private static resolveTheme;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
bind(source: FASTElement & HTMLElement): void;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
unbind(source: FASTElement & HTMLElement): void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Behavior to conditionally apply theme-based stylesheets. To determine which to apply,
|
|
26
|
+
* the behavior will use the nearest ThemeProvider's 'theme' design system value.
|
|
27
|
+
* To re-use the same style for multiple themes you can specify the name of an already
|
|
28
|
+
* defined theme to alias them together.
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* css`
|
|
34
|
+
* // ...
|
|
35
|
+
* `.withBehaviors(new ThemeStyleSheetBehavior(
|
|
36
|
+
* css`:host { ... Theme.Light style... }`),
|
|
37
|
+
* css`:host { ... Theme.Dark style... }`),
|
|
38
|
+
* null, // No style needed for Theme.Color style
|
|
39
|
+
* Theme.Light, // For the Theme.LegacyBlue style, re-use the previously set Theme.Light style
|
|
40
|
+
* )
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare const themeBehavior: (lightStyle: LightStyle, darkStyleOrAlias: DarkStyleOrAlias, colorStyleOrAlias: ColorStyleOrAlias, legacyBlueStyleOrAlias: LegacyBlueStyleOrAlias) => ThemeStyleSheetBehavior;
|
|
44
|
+
export {};
|
|
@@ -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"}
|