@ni/nimble-components 1.0.0-beta.100 → 1.0.0-beta.101
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 +20 -20
- package/dist/esm/button/behaviors.d.ts +12 -12
- package/dist/esm/button/behaviors.js +13 -13
- package/dist/esm/button/index.d.ts +17 -17
- package/dist/esm/button/index.js +37 -37
- package/dist/esm/button/styles.d.ts +1 -1
- package/dist/esm/button/styles.js +178 -178
- package/dist/esm/button/types.d.ts +9 -9
- package/dist/esm/button/types.js +10 -10
- package/dist/esm/checkbox/index.d.ts +2 -2
- package/dist/esm/checkbox/index.js +11 -11
- package/dist/esm/checkbox/styles.d.ts +1 -1
- package/dist/esm/checkbox/styles.js +91 -91
- package/dist/esm/drawer/animations.d.ts +14 -14
- package/dist/esm/drawer/animations.js +51 -51
- package/dist/esm/drawer/index.d.ts +39 -39
- package/dist/esm/drawer/index.js +189 -189
- package/dist/esm/drawer/styles.d.ts +1 -1
- package/dist/esm/drawer/styles.js +114 -114
- package/dist/esm/drawer/types.d.ts +10 -10
- package/dist/esm/drawer/types.js +12 -12
- package/dist/esm/icon-base/index.d.ts +12 -12
- package/dist/esm/icon-base/index.js +21 -21
- package/dist/esm/icon-base/styles.d.ts +1 -1
- package/dist/esm/icon-base/styles.js +37 -37
- package/dist/esm/icon-base/template.d.ts +2 -2
- package/dist/esm/icon-base/template.js +6 -6
- package/dist/esm/icons/access-control.d.ts +7 -7
- package/dist/esm/icons/access-control.js +11 -11
- package/dist/esm/icons/admin.d.ts +7 -7
- package/dist/esm/icons/admin.js +11 -11
- package/dist/esm/icons/administration.d.ts +7 -7
- package/dist/esm/icons/administration.js +11 -11
- package/dist/esm/icons/all-icons.d.ts +13 -13
- package/dist/esm/icons/all-icons.js +13 -13
- package/dist/esm/icons/check.d.ts +7 -7
- package/dist/esm/icons/check.js +11 -11
- package/dist/esm/icons/custom-applications.d.ts +7 -7
- package/dist/esm/icons/custom-applications.js +11 -11
- package/dist/esm/icons/delete.d.ts +7 -7
- package/dist/esm/icons/delete.js +11 -11
- package/dist/esm/icons/login.d.ts +7 -7
- package/dist/esm/icons/login.js +11 -11
- package/dist/esm/icons/logout.d.ts +7 -7
- package/dist/esm/icons/logout.js +11 -11
- package/dist/esm/icons/managed-systems.d.ts +7 -7
- package/dist/esm/icons/managed-systems.js +11 -11
- package/dist/esm/icons/measurement-data-analysis.d.ts +7 -7
- package/dist/esm/icons/measurement-data-analysis.js +11 -11
- package/dist/esm/icons/settings.d.ts +7 -7
- package/dist/esm/icons/settings.js +11 -11
- package/dist/esm/icons/test-insights.d.ts +7 -7
- package/dist/esm/icons/test-insights.js +11 -11
- package/dist/esm/icons/utilities.d.ts +7 -7
- package/dist/esm/icons/utilities.js +11 -11
- package/dist/esm/listbox-option/index.d.ts +10 -10
- package/dist/esm/listbox-option/index.js +28 -28
- package/dist/esm/listbox-option/styles.d.ts +1 -1
- package/dist/esm/listbox-option/styles.js +59 -59
- package/dist/esm/menu/index.d.ts +5 -5
- package/dist/esm/menu/index.js +21 -21
- package/dist/esm/menu/styles.d.ts +1 -1
- package/dist/esm/menu/styles.js +39 -39
- package/dist/esm/menu-item/index.d.ts +15 -15
- package/dist/esm/menu-item/index.js +21 -21
- package/dist/esm/menu-item/styles.d.ts +1 -1
- package/dist/esm/menu-item/styles.js +63 -63
- package/dist/esm/number-field/index.d.ts +6 -6
- package/dist/esm/number-field/index.js +22 -22
- package/dist/esm/number-field/styles.d.ts +1 -1
- package/dist/esm/number-field/styles.js +117 -117
- package/dist/esm/select/index.d.ts +12 -12
- package/dist/esm/select/index.js +45 -45
- package/dist/esm/select/styles.d.ts +1 -1
- package/dist/esm/select/styles.js +140 -140
- package/dist/esm/tab/index.d.ts +2 -2
- package/dist/esm/tab/index.js +8 -8
- package/dist/esm/tab/styles.d.ts +1 -1
- package/dist/esm/tab/styles.js +52 -52
- package/dist/esm/tab-panel/index.d.ts +2 -2
- package/dist/esm/tab-panel/index.js +8 -8
- package/dist/esm/tab-panel/styles.d.ts +1 -1
- package/dist/esm/tab-panel/styles.js +14 -14
- package/dist/esm/tabs/index.d.ts +2 -2
- package/dist/esm/tabs/index.js +8 -8
- package/dist/esm/tabs/styles.d.ts +1 -1
- package/dist/esm/tabs/styles.js +42 -42
- package/dist/esm/tabs-toolbar/index.d.ts +6 -6
- package/dist/esm/tabs-toolbar/index.js +14 -14
- package/dist/esm/tabs-toolbar/styles.d.ts +1 -1
- package/dist/esm/tabs-toolbar/styles.js +22 -22
- package/dist/esm/tabs-toolbar/template.d.ts +1 -1
- package/dist/esm/tabs-toolbar/template.js +7 -7
- package/dist/esm/testing/dom-next-update.d.ts +4 -4
- package/dist/esm/testing/dom-next-update.js +5 -5
- package/dist/esm/text-field/index.d.ts +6 -6
- package/dist/esm/text-field/index.js +13 -13
- package/dist/esm/text-field/styles.d.ts +1 -1
- package/dist/esm/text-field/styles.js +141 -141
- package/dist/esm/theme-provider/design-tokens.d.ts +48 -48
- package/dist/esm/theme-provider/design-tokens.js +163 -163
- package/dist/esm/theme-provider/index.d.ts +10 -10
- package/dist/esm/theme-provider/index.js +42 -42
- package/dist/esm/theme-provider/template.d.ts +2 -2
- package/dist/esm/theme-provider/template.js +2 -2
- package/dist/esm/theme-provider/themes.d.ts +6 -6
- package/dist/esm/theme-provider/themes.js +7 -7
- package/dist/esm/tree-item/index.d.ts +28 -28
- package/dist/esm/tree-item/index.js +115 -115
- package/dist/esm/tree-item/styles.d.ts +3 -3
- package/dist/esm/tree-item/styles.js +194 -194
- package/dist/esm/tree-view/index.d.ts +16 -16
- package/dist/esm/tree-view/index.js +33 -33
- package/dist/esm/tree-view/styles.d.ts +1 -1
- package/dist/esm/tree-view/styles.js +16 -16
- package/dist/esm/tree-view/types.d.ts +6 -6
- package/dist/esm/tree-view/types.js +7 -7
- package/dist/esm/utilities/style/focus.d.ts +11 -11
- package/dist/esm/utilities/style/focus.js +13 -13
- package/package.json +94 -94
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { css } from '@microsoft/fast-element';
|
|
2
|
-
import { display } from '@microsoft/fast-foundation';
|
|
3
|
-
import { borderColorRgb, borderWidth, contentFontColor, contentFontSize, controlHeight, fontFamily, standardPadding } from '../theme-provider/design-tokens';
|
|
4
|
-
export const styles = css `
|
|
5
|
-
${display('flex')}
|
|
6
|
-
|
|
7
|
-
:host {
|
|
8
|
-
align-items: center;
|
|
9
|
-
height: ${controlHeight};
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
font-family: ${fontFamily};
|
|
12
|
-
font-size: ${contentFontSize};
|
|
13
|
-
color: ${contentFontColor};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.separator {
|
|
17
|
-
display: inline-block;
|
|
18
|
-
height: 24px;
|
|
19
|
-
border-left: calc(${borderWidth} * 2) solid rgba(${borderColorRgb}, 0.3);
|
|
20
|
-
margin: calc(${standardPadding} / 4) calc(${standardPadding} / 2);
|
|
21
|
-
}
|
|
22
|
-
`;
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
|
+
import { display } from '@microsoft/fast-foundation';
|
|
3
|
+
import { borderColorRgb, borderWidth, contentFontColor, contentFontSize, controlHeight, fontFamily, standardPadding } from '../theme-provider/design-tokens';
|
|
4
|
+
export const styles = css `
|
|
5
|
+
${display('flex')}
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
align-items: center;
|
|
9
|
+
height: ${controlHeight};
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
font-family: ${fontFamily};
|
|
12
|
+
font-size: ${contentFontSize};
|
|
13
|
+
color: ${contentFontColor};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.separator {
|
|
17
|
+
display: inline-block;
|
|
18
|
+
height: 24px;
|
|
19
|
+
border-left: calc(${borderWidth} * 2) solid rgba(${borderColorRgb}, 0.3);
|
|
20
|
+
margin: calc(${standardPadding} / 4) calc(${standardPadding} / 2);
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
23
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const template: import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
1
|
+
export declare const template: import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { html } from '@microsoft/fast-element';
|
|
2
|
-
export const template = html `
|
|
3
|
-
<template slot="end">
|
|
4
|
-
<div class="separator"></div>
|
|
5
|
-
<slot></slot>
|
|
6
|
-
</template>
|
|
7
|
-
`;
|
|
1
|
+
import { html } from '@microsoft/fast-element';
|
|
2
|
+
export const template = html `
|
|
3
|
+
<template slot="end">
|
|
4
|
+
<div class="separator"></div>
|
|
5
|
+
<slot></slot>
|
|
6
|
+
</template>
|
|
7
|
+
`;
|
|
8
8
|
//# sourceMappingURL=template.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Allows test code to wait for the render update cycle of the components.
|
|
3
|
-
*/
|
|
4
|
-
export declare const domNextUpdate: () => Promise<void>;
|
|
1
|
+
/**
|
|
2
|
+
* Allows test code to wait for the render update cycle of the components.
|
|
3
|
+
*/
|
|
4
|
+
export declare const domNextUpdate: () => Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DOM } from '@microsoft/fast-element';
|
|
2
|
-
/**
|
|
3
|
-
* Allows test code to wait for the render update cycle of the components.
|
|
4
|
-
*/
|
|
5
|
-
export const domNextUpdate = async () => DOM.nextUpdate();
|
|
1
|
+
import { DOM } from '@microsoft/fast-element';
|
|
2
|
+
/**
|
|
3
|
+
* Allows test code to wait for the render update cycle of the components.
|
|
4
|
+
*/
|
|
5
|
+
export const domNextUpdate = async () => DOM.nextUpdate();
|
|
6
6
|
//# sourceMappingURL=dom-next-update.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TextField as FoundationTextField } from '@microsoft/fast-foundation';
|
|
2
|
-
/**
|
|
3
|
-
* A nimble-styed HTML text input
|
|
4
|
-
*/
|
|
5
|
-
declare type TextField = FoundationTextField;
|
|
6
|
-
export type { TextField };
|
|
1
|
+
import { TextField as FoundationTextField } from '@microsoft/fast-foundation';
|
|
2
|
+
/**
|
|
3
|
+
* A nimble-styed HTML text input
|
|
4
|
+
*/
|
|
5
|
+
declare type TextField = FoundationTextField;
|
|
6
|
+
export type { TextField };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { DesignSystem, TextField as FoundationTextField, textFieldTemplate as template } from '@microsoft/fast-foundation';
|
|
2
|
-
import { statusAlarmActive16X16 } from '@ni/nimble-tokens/dist-icons-esm/nimble-icons-inline';
|
|
3
|
-
import { styles } from './styles';
|
|
4
|
-
const nimbleTextField = FoundationTextField.compose({
|
|
5
|
-
baseName: 'text-field',
|
|
6
|
-
template,
|
|
7
|
-
styles,
|
|
8
|
-
shadowOptions: {
|
|
9
|
-
delegatesFocus: true
|
|
10
|
-
},
|
|
11
|
-
end: statusAlarmActive16X16.data
|
|
12
|
-
});
|
|
13
|
-
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTextField());
|
|
1
|
+
import { DesignSystem, TextField as FoundationTextField, textFieldTemplate as template } from '@microsoft/fast-foundation';
|
|
2
|
+
import { statusAlarmActive16X16 } from '@ni/nimble-tokens/dist-icons-esm/nimble-icons-inline';
|
|
3
|
+
import { styles } from './styles';
|
|
4
|
+
const nimbleTextField = FoundationTextField.compose({
|
|
5
|
+
baseName: 'text-field',
|
|
6
|
+
template,
|
|
7
|
+
styles,
|
|
8
|
+
shadowOptions: {
|
|
9
|
+
delegatesFocus: true
|
|
10
|
+
},
|
|
11
|
+
end: statusAlarmActive16X16.data
|
|
12
|
+
});
|
|
13
|
+
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTextField());
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
|
1
|
+
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
import { css } from '@microsoft/fast-element';
|
|
2
|
-
import { display } from '@microsoft/fast-foundation';
|
|
3
|
-
import { borderColorRgb, borderColorHover, borderWidth, contentFontColor, contentFontColorDisabled, contentFontSize, controlHeight, failColor, fillColorSelectedRgb, fontFamily, iconSize, labelFontColor, labelFontFamily, labelFontSize, labelFontWeight, labelHeight, labelTextTransform, passwordRevealFilter, smallDelay } from '../theme-provider/design-tokens';
|
|
4
|
-
export const styles = css `
|
|
5
|
-
${display('inline-block')}
|
|
6
|
-
|
|
7
|
-
:host {
|
|
8
|
-
font-family: ${fontFamily};
|
|
9
|
-
font-size: ${contentFontSize};
|
|
10
|
-
outline: none;
|
|
11
|
-
user-select: none;
|
|
12
|
-
color: ${contentFontColor};
|
|
13
|
-
height: calc(${labelHeight} + ${controlHeight});
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:host([disabled]) {
|
|
17
|
-
color: ${contentFontColorDisabled};
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.root {
|
|
21
|
-
box-sizing: border-box;
|
|
22
|
-
position: relative;
|
|
23
|
-
display: flex;
|
|
24
|
-
flex-direction: row;
|
|
25
|
-
border-radius: 0px;
|
|
26
|
-
font-family: ${fontFamily};
|
|
27
|
-
border-bottom: ${borderWidth} solid rgba(${borderColorRgb}, 0.3);
|
|
28
|
-
padding-bottom: 1px;
|
|
29
|
-
transition: border-bottom ${smallDelay}, padding-bottom ${smallDelay};
|
|
30
|
-
align-items: flex-end;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@media (prefers-reduced-motion) {
|
|
34
|
-
.root {
|
|
35
|
-
transition-duration: 0s;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.root:hover {
|
|
40
|
-
border-bottom: 2px solid ${borderColorHover};
|
|
41
|
-
padding-bottom: 0px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
:host(.invalid) .root {
|
|
45
|
-
border-bottom: ${borderWidth} solid ${failColor};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
:host(.invalid) .root:hover {
|
|
49
|
-
border-bottom: 2px solid ${failColor};
|
|
50
|
-
padding-bottom: 0px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
:host([disabled]) .root,
|
|
54
|
-
:host([disabled]) .root:hover {
|
|
55
|
-
border-bottom: ${borderWidth} solid ${contentFontColorDisabled};
|
|
56
|
-
padding-bottom: 1px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
:host([readonly]) .root,
|
|
60
|
-
:host([readonly]) .root:hover {
|
|
61
|
-
border: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.control {
|
|
65
|
-
-webkit-appearance: none;
|
|
66
|
-
font: inherit;
|
|
67
|
-
background: transparent;
|
|
68
|
-
color: inherit;
|
|
69
|
-
height: 28px;
|
|
70
|
-
width: 100%;
|
|
71
|
-
margin-top: auto;
|
|
72
|
-
margin-bottom: auto;
|
|
73
|
-
border: none;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.control::-ms-reveal {
|
|
77
|
-
filter: ${passwordRevealFilter};
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.control:hover,
|
|
81
|
-
.control:focus,
|
|
82
|
-
.control:disabled,
|
|
83
|
-
.control:active {
|
|
84
|
-
outline: none;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.control::selection {
|
|
88
|
-
color: ${labelFontColor};
|
|
89
|
-
background: rgba(${fillColorSelectedRgb}, 0.3);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.control::placeholder {
|
|
93
|
-
color: ${labelFontColor};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.control:not([readonly]):focus-within::placeholder {
|
|
97
|
-
opacity: 1;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.control[readonly] {
|
|
101
|
-
cursor: default;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.control[disabled]::placeholder {
|
|
105
|
-
color: ${contentFontColorDisabled};
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.label {
|
|
109
|
-
display: flex;
|
|
110
|
-
color: ${labelFontColor};
|
|
111
|
-
font-family: ${labelFontFamily};
|
|
112
|
-
font-size: ${labelFontSize};
|
|
113
|
-
font-weight: ${labelFontWeight};
|
|
114
|
-
line-height: ${labelHeight};
|
|
115
|
-
text-transform: ${labelTextTransform};
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
:host [part='end'] {
|
|
119
|
-
display: none;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
:host(.invalid) [part='end'] {
|
|
123
|
-
align-self: center;
|
|
124
|
-
display: inline-flex;
|
|
125
|
-
padding-left: 8px;
|
|
126
|
-
padding-right: 8px;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
:host(.invalid) [part='end'] svg {
|
|
130
|
-
height: ${iconSize};
|
|
131
|
-
width: ${iconSize};
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
:host(.invalid) [part='end'] path {
|
|
135
|
-
fill: ${failColor};
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
:host([disabled]) [part='end'] path {
|
|
139
|
-
fill: ${contentFontColorDisabled};
|
|
140
|
-
}
|
|
141
|
-
`;
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
|
+
import { display } from '@microsoft/fast-foundation';
|
|
3
|
+
import { borderColorRgb, borderColorHover, borderWidth, contentFontColor, contentFontColorDisabled, contentFontSize, controlHeight, failColor, fillColorSelectedRgb, fontFamily, iconSize, labelFontColor, labelFontFamily, labelFontSize, labelFontWeight, labelHeight, labelTextTransform, passwordRevealFilter, smallDelay } from '../theme-provider/design-tokens';
|
|
4
|
+
export const styles = css `
|
|
5
|
+
${display('inline-block')}
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
font-family: ${fontFamily};
|
|
9
|
+
font-size: ${contentFontSize};
|
|
10
|
+
outline: none;
|
|
11
|
+
user-select: none;
|
|
12
|
+
color: ${contentFontColor};
|
|
13
|
+
height: calc(${labelHeight} + ${controlHeight});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host([disabled]) {
|
|
17
|
+
color: ${contentFontColorDisabled};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.root {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
position: relative;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: row;
|
|
25
|
+
border-radius: 0px;
|
|
26
|
+
font-family: ${fontFamily};
|
|
27
|
+
border-bottom: ${borderWidth} solid rgba(${borderColorRgb}, 0.3);
|
|
28
|
+
padding-bottom: 1px;
|
|
29
|
+
transition: border-bottom ${smallDelay}, padding-bottom ${smallDelay};
|
|
30
|
+
align-items: flex-end;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@media (prefers-reduced-motion) {
|
|
34
|
+
.root {
|
|
35
|
+
transition-duration: 0s;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.root:hover {
|
|
40
|
+
border-bottom: 2px solid ${borderColorHover};
|
|
41
|
+
padding-bottom: 0px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host(.invalid) .root {
|
|
45
|
+
border-bottom: ${borderWidth} solid ${failColor};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host(.invalid) .root:hover {
|
|
49
|
+
border-bottom: 2px solid ${failColor};
|
|
50
|
+
padding-bottom: 0px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:host([disabled]) .root,
|
|
54
|
+
:host([disabled]) .root:hover {
|
|
55
|
+
border-bottom: ${borderWidth} solid ${contentFontColorDisabled};
|
|
56
|
+
padding-bottom: 1px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host([readonly]) .root,
|
|
60
|
+
:host([readonly]) .root:hover {
|
|
61
|
+
border: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.control {
|
|
65
|
+
-webkit-appearance: none;
|
|
66
|
+
font: inherit;
|
|
67
|
+
background: transparent;
|
|
68
|
+
color: inherit;
|
|
69
|
+
height: 28px;
|
|
70
|
+
width: 100%;
|
|
71
|
+
margin-top: auto;
|
|
72
|
+
margin-bottom: auto;
|
|
73
|
+
border: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.control::-ms-reveal {
|
|
77
|
+
filter: ${passwordRevealFilter};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.control:hover,
|
|
81
|
+
.control:focus,
|
|
82
|
+
.control:disabled,
|
|
83
|
+
.control:active {
|
|
84
|
+
outline: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.control::selection {
|
|
88
|
+
color: ${labelFontColor};
|
|
89
|
+
background: rgba(${fillColorSelectedRgb}, 0.3);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.control::placeholder {
|
|
93
|
+
color: ${labelFontColor};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.control:not([readonly]):focus-within::placeholder {
|
|
97
|
+
opacity: 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.control[readonly] {
|
|
101
|
+
cursor: default;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.control[disabled]::placeholder {
|
|
105
|
+
color: ${contentFontColorDisabled};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.label {
|
|
109
|
+
display: flex;
|
|
110
|
+
color: ${labelFontColor};
|
|
111
|
+
font-family: ${labelFontFamily};
|
|
112
|
+
font-size: ${labelFontSize};
|
|
113
|
+
font-weight: ${labelFontWeight};
|
|
114
|
+
line-height: ${labelHeight};
|
|
115
|
+
text-transform: ${labelTextTransform};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:host [part='end'] {
|
|
119
|
+
display: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:host(.invalid) [part='end'] {
|
|
123
|
+
align-self: center;
|
|
124
|
+
display: inline-flex;
|
|
125
|
+
padding-left: 8px;
|
|
126
|
+
padding-right: 8px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:host(.invalid) [part='end'] svg {
|
|
130
|
+
height: ${iconSize};
|
|
131
|
+
width: ${iconSize};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:host(.invalid) [part='end'] path {
|
|
135
|
+
fill: ${failColor};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
:host([disabled]) [part='end'] path {
|
|
139
|
+
fill: ${contentFontColorDisabled};
|
|
140
|
+
}
|
|
141
|
+
`;
|
|
142
142
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { DesignToken } from '@microsoft/fast-foundation';
|
|
2
|
-
import { NimbleTheme } from './themes';
|
|
3
|
-
export declare const theme: DesignToken<NimbleTheme>;
|
|
4
|
-
export declare const actionColorRgb: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
5
|
-
export declare const applicationBackgroundColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
6
|
-
export declare const fillColorSelected: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
7
|
-
export declare const fillColorSelectedRgb: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
8
|
-
export declare const fillColorSelectedHover: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
9
|
-
export declare const fillColorHover: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
10
|
-
export declare const borderColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
11
|
-
export declare const borderColorRgb: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
12
|
-
export declare const failColorTheme: (element: HTMLElement) => string;
|
|
13
|
-
export declare const failColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
14
|
-
export declare const warningColorTheme: (element: HTMLElement) => string;
|
|
15
|
-
export declare const warningColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
16
|
-
export declare const passColorTheme: (element: HTMLElement) => string;
|
|
17
|
-
export declare const passColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
18
|
-
export declare const borderColorHover: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
19
|
-
export declare const popupBoxShadowColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
20
|
-
export declare const popupBorderColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
21
|
-
export declare const controlHeight: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
22
|
-
export declare const standardPadding: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
23
|
-
export declare const labelHeight: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
24
|
-
export declare const borderWidth: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
25
|
-
export declare const iconSize: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
26
|
-
export declare const drawerWidth: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
27
|
-
export declare const fontFamily: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
28
|
-
export declare const labelFontFamily: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
29
|
-
export declare const groupLabelFontFamily: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
30
|
-
export declare const drawerHeaderFontFamily: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
31
|
-
export declare const labelFontSize: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
32
|
-
export declare const contentFontSize: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
33
|
-
export declare const groupLabelFontSize: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
34
|
-
export declare const drawerHeaderFontSize: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
35
|
-
export declare const groupLabelFontWeight: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
36
|
-
export declare const labelFontWeight: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
37
|
-
export declare const labelFontColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
38
|
-
export declare const groupLabelFontColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
39
|
-
export declare const contentFontColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
40
|
-
export declare const buttonContentFontColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
41
|
-
export declare const labelFontColorDisabled: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
42
|
-
export declare const labelTextTransform: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
43
|
-
export declare const groupLabelTextTransform: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
44
|
-
export declare const contentFontColorDisabled: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
45
|
-
export declare const smallDelay: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
46
|
-
export declare const mediumDelay: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
47
|
-
export declare const drawerAnimationDurationMs: import("@microsoft/fast-foundation").CSSDesignToken<number>;
|
|
48
|
-
export declare const passwordRevealFilter: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
1
|
+
import { DesignToken } from '@microsoft/fast-foundation';
|
|
2
|
+
import { NimbleTheme } from './themes';
|
|
3
|
+
export declare const theme: DesignToken<NimbleTheme>;
|
|
4
|
+
export declare const actionColorRgb: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
5
|
+
export declare const applicationBackgroundColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
6
|
+
export declare const fillColorSelected: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
7
|
+
export declare const fillColorSelectedRgb: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
8
|
+
export declare const fillColorSelectedHover: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
9
|
+
export declare const fillColorHover: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
10
|
+
export declare const borderColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
11
|
+
export declare const borderColorRgb: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
12
|
+
export declare const failColorTheme: (element: HTMLElement) => string;
|
|
13
|
+
export declare const failColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
14
|
+
export declare const warningColorTheme: (element: HTMLElement) => string;
|
|
15
|
+
export declare const warningColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
16
|
+
export declare const passColorTheme: (element: HTMLElement) => string;
|
|
17
|
+
export declare const passColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
18
|
+
export declare const borderColorHover: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
19
|
+
export declare const popupBoxShadowColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
20
|
+
export declare const popupBorderColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
21
|
+
export declare const controlHeight: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
22
|
+
export declare const standardPadding: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
23
|
+
export declare const labelHeight: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
24
|
+
export declare const borderWidth: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
25
|
+
export declare const iconSize: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
26
|
+
export declare const drawerWidth: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
27
|
+
export declare const fontFamily: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
28
|
+
export declare const labelFontFamily: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
29
|
+
export declare const groupLabelFontFamily: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
30
|
+
export declare const drawerHeaderFontFamily: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
31
|
+
export declare const labelFontSize: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
32
|
+
export declare const contentFontSize: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
33
|
+
export declare const groupLabelFontSize: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
34
|
+
export declare const drawerHeaderFontSize: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
35
|
+
export declare const groupLabelFontWeight: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
36
|
+
export declare const labelFontWeight: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
37
|
+
export declare const labelFontColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
38
|
+
export declare const groupLabelFontColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
39
|
+
export declare const contentFontColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
40
|
+
export declare const buttonContentFontColor: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
41
|
+
export declare const labelFontColorDisabled: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
42
|
+
export declare const labelTextTransform: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
43
|
+
export declare const groupLabelTextTransform: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
44
|
+
export declare const contentFontColorDisabled: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
45
|
+
export declare const smallDelay: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
46
|
+
export declare const mediumDelay: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
47
|
+
export declare const drawerAnimationDurationMs: import("@microsoft/fast-foundation").CSSDesignToken<number>;
|
|
48
|
+
export declare const passwordRevealFilter: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|