@ni/nimble-components 1.1.2 → 1.2.0
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/dist/esm/nimble-components/src/text-field/index.d.ts +10 -0
- package/dist/esm/nimble-components/src/text-field/types.d.ts +19 -1
- package/dist/esm/nimble-components/src/utilities/style/appearance.d.ts +1 -2
- package/dist/esm/text-field/index.d.ts +10 -0
- package/dist/esm/text-field/index.js +12 -0
- package/dist/esm/text-field/index.js.map +1 -1
- package/dist/esm/text-field/styles.js +75 -22
- package/dist/esm/text-field/styles.js.map +1 -1
- package/dist/esm/text-field/types.d.ts +19 -1
- package/dist/esm/text-field/types.js +12 -0
- package/dist/esm/text-field/types.js.map +1 -1
- package/dist/esm/utilities/style/appearance.d.ts +1 -2
- package/dist/esm/utilities/style/appearance.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TextField as FoundationTextField } from '@microsoft/fast-foundation';
|
|
2
|
+
import { TextFieldAppearance } from './types';
|
|
2
3
|
export type { TextField };
|
|
3
4
|
declare global {
|
|
4
5
|
interface HTMLElementTagNameMap {
|
|
@@ -9,4 +10,13 @@ declare global {
|
|
|
9
10
|
* A nimble-styed HTML text input
|
|
10
11
|
*/
|
|
11
12
|
declare class TextField extends FoundationTextField {
|
|
13
|
+
/**
|
|
14
|
+
* The appearance the text field should have.
|
|
15
|
+
*
|
|
16
|
+
* @public
|
|
17
|
+
* @remarks
|
|
18
|
+
* HTML Attribute: appearance
|
|
19
|
+
*/
|
|
20
|
+
appearance: TextFieldAppearance;
|
|
21
|
+
connectedCallback(): void;
|
|
12
22
|
}
|
|
@@ -1,3 +1,21 @@
|
|
|
1
1
|
import { TextFieldType } from '@microsoft/fast-foundation';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Values for the 'type' attribute of the text field.
|
|
4
|
+
*/
|
|
3
5
|
export declare type TextFieldTypeAttribute = `${TextFieldType}`;
|
|
6
|
+
/**
|
|
7
|
+
* Values for the 'type' property of the text field.
|
|
8
|
+
*/
|
|
9
|
+
export { TextFieldType };
|
|
10
|
+
/**
|
|
11
|
+
* Values for the 'appearance' attribute of the text field.
|
|
12
|
+
*/
|
|
13
|
+
export declare type TextFieldAppearanceAttribute = `${TextFieldAppearance}`;
|
|
14
|
+
/**
|
|
15
|
+
* Values for the 'appearance' property of the text field
|
|
16
|
+
*/
|
|
17
|
+
export declare enum TextFieldAppearance {
|
|
18
|
+
Underline = "underline",
|
|
19
|
+
Outline = "outline",
|
|
20
|
+
Block = "block"
|
|
21
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Behavior, ElementStyles } from '@microsoft/fast-element';
|
|
2
|
-
import type { ButtonAppearance } from '../../patterns/button/types';
|
|
3
2
|
/**
|
|
4
3
|
* Behavior that will conditionally apply a stylesheet based on the element's
|
|
5
4
|
* appearance property
|
|
@@ -9,4 +8,4 @@ import type { ButtonAppearance } from '../../patterns/button/types';
|
|
|
9
8
|
*
|
|
10
9
|
* @public
|
|
11
10
|
*/
|
|
12
|
-
export declare function appearanceBehavior(value:
|
|
11
|
+
export declare function appearanceBehavior<AppearanceType>(value: AppearanceType, styles: ElementStyles): Behavior;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TextField as FoundationTextField } from '@microsoft/fast-foundation';
|
|
2
|
+
import { TextFieldAppearance } from './types';
|
|
2
3
|
export type { TextField };
|
|
3
4
|
declare global {
|
|
4
5
|
interface HTMLElementTagNameMap {
|
|
@@ -9,4 +10,13 @@ declare global {
|
|
|
9
10
|
* A nimble-styed HTML text input
|
|
10
11
|
*/
|
|
11
12
|
declare class TextField extends FoundationTextField {
|
|
13
|
+
/**
|
|
14
|
+
* The appearance the text field should have.
|
|
15
|
+
*
|
|
16
|
+
* @public
|
|
17
|
+
* @remarks
|
|
18
|
+
* HTML Attribute: appearance
|
|
19
|
+
*/
|
|
20
|
+
appearance: TextFieldAppearance;
|
|
21
|
+
connectedCallback(): void;
|
|
12
22
|
}
|
|
@@ -1,11 +1,23 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { attr } from '@microsoft/fast-element';
|
|
1
3
|
import { DesignSystem, TextField as FoundationTextField, textFieldTemplate as template } from '@microsoft/fast-foundation';
|
|
2
4
|
import { statusAlarmActive16X16 } from '@ni/nimble-tokens/dist-icons-esm/nimble-icons-inline';
|
|
3
5
|
import { styles } from './styles';
|
|
6
|
+
import { TextFieldAppearance } from './types';
|
|
4
7
|
/**
|
|
5
8
|
* A nimble-styed HTML text input
|
|
6
9
|
*/
|
|
7
10
|
class TextField extends FoundationTextField {
|
|
11
|
+
connectedCallback() {
|
|
12
|
+
super.connectedCallback();
|
|
13
|
+
if (!this.appearance) {
|
|
14
|
+
this.appearance = TextFieldAppearance.Underline;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
8
17
|
}
|
|
18
|
+
__decorate([
|
|
19
|
+
attr
|
|
20
|
+
], TextField.prototype, "appearance", void 0);
|
|
9
21
|
const nimbleTextField = TextField.compose({
|
|
10
22
|
baseName: 'text-field',
|
|
11
23
|
baseClass: FoundationTextField,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/text-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,SAAS,IAAI,mBAAmB,EAEhC,iBAAiB,IAAI,QAAQ,EAChC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,sDAAsD,CAAC;AAC9F,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/text-field/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EACH,YAAY,EACZ,SAAS,IAAI,mBAAmB,EAEhC,iBAAiB,IAAI,QAAQ,EAChC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,sDAAsD,CAAC;AAC9F,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAU9C;;GAEG;AACH,MAAM,SAAU,SAAQ,mBAAmB;IAWhC,iBAAiB;QACpB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YAClB,IAAI,CAAC,UAAU,GAAG,mBAAmB,CAAC,SAAS,CAAC;SACnD;IACL,CAAC;CACJ;AARG;IADC,IAAI;6CACmC;AAU5C,MAAM,eAAe,GAAG,SAAS,CAAC,OAAO,CAAmB;IACxD,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,mBAAmB;IAC9B,0GAA0G;IAC1G,QAAQ;IACR,MAAM;IACN,aAAa,EAAE;QACX,cAAc,EAAE,IAAI;KACvB;IACD,GAAG,EAAE,sBAAsB,CAAC,IAAI;CACnC,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,eAAe,EAAE,CAAC,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { display } from '@microsoft/fast-foundation';
|
|
3
|
-
import { borderColorRgbPartial, borderColorHover, borderWidth, contentFontColor, contentFontColorDisabled, contentFontSize, controlHeight, failColor, fillColorSelectedRgbPartial, fontFamily, iconSize, labelFontColor, labelFontFamily, labelFontSize, labelFontWeight, labelHeight, labelTextTransform, smallDelay } from '../theme-provider/design-tokens';
|
|
3
|
+
import { borderColorRgbPartial, borderColorHover, borderWidth, contentFontColor, contentFontColorDisabled, contentFontSize, controlHeight, failColor, fillColorSelectedRgbPartial, fontFamily, iconSize, labelFontColor, labelFontColorDisabled, labelFontFamily, labelFontSize, labelFontWeight, labelHeight, labelTextTransform, smallDelay, standardPadding } from '../theme-provider/design-tokens';
|
|
4
|
+
import { appearanceBehavior } from '../utilities/style/appearance';
|
|
5
|
+
import { TextFieldAppearance } from './types';
|
|
4
6
|
import { Theme } from '../theme-provider/types';
|
|
5
7
|
import { themeBehavior } from '../utilities/style/theme';
|
|
6
8
|
export const styles = css `
|
|
@@ -26,41 +28,49 @@ export const styles = css `
|
|
|
26
28
|
flex-direction: row;
|
|
27
29
|
border-radius: 0px;
|
|
28
30
|
font-family: ${fontFamily};
|
|
29
|
-
border-bottom: ${borderWidth} solid rgba(${borderColorRgbPartial}, 0.3);
|
|
30
|
-
padding-bottom: 1px;
|
|
31
31
|
transition: border-bottom ${smallDelay}, padding-bottom ${smallDelay};
|
|
32
32
|
align-items: flex-end;
|
|
33
|
+
--ni-private-hover-bottom-border-width: 2px;
|
|
34
|
+
border: 0px solid rgba(${borderColorRgbPartial}, 0.3);
|
|
35
|
+
border-bottom-width: var(--ni-private-bottom-border-width);
|
|
36
|
+
padding-bottom: calc(
|
|
37
|
+
var(--ni-private-hover-bottom-border-width) -
|
|
38
|
+
var(--ni-private-bottom-border-width)
|
|
39
|
+
);
|
|
33
40
|
}
|
|
34
41
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
42
|
+
:host .root:hover {
|
|
43
|
+
--ni-private-bottom-border-width: var(
|
|
44
|
+
--ni-private-hover-bottom-border-width
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host([disabled]) .root:hover {
|
|
49
|
+
--ni-private-bottom-border-width: 1px;
|
|
39
50
|
}
|
|
40
51
|
|
|
52
|
+
.root:focus-within,
|
|
41
53
|
.root:hover {
|
|
42
|
-
border-bottom:
|
|
43
|
-
padding-bottom: 0px;
|
|
54
|
+
border-bottom-color: ${borderColorHover};
|
|
44
55
|
}
|
|
45
56
|
|
|
46
57
|
:host(.invalid) .root {
|
|
47
|
-
border-bottom: ${
|
|
58
|
+
border-bottom-color: ${failColor};
|
|
48
59
|
}
|
|
49
60
|
|
|
50
|
-
:host(
|
|
51
|
-
border-
|
|
52
|
-
padding-bottom: 0px;
|
|
61
|
+
:host([disabled]) .root {
|
|
62
|
+
border-color: rgba(${borderColorRgbPartial}, 0.1);
|
|
53
63
|
}
|
|
54
64
|
|
|
55
|
-
:host([
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
padding-bottom: 1px;
|
|
65
|
+
:host([readonly]) .root {
|
|
66
|
+
border: none;
|
|
67
|
+
padding: ${borderWidth};
|
|
59
68
|
}
|
|
60
69
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
70
|
+
@media (prefers-reduced-motion) {
|
|
71
|
+
.root {
|
|
72
|
+
transition-duration: 0s;
|
|
73
|
+
}
|
|
64
74
|
}
|
|
65
75
|
|
|
66
76
|
.control {
|
|
@@ -68,10 +78,17 @@ export const styles = css `
|
|
|
68
78
|
font: inherit;
|
|
69
79
|
background: transparent;
|
|
70
80
|
color: inherit;
|
|
71
|
-
|
|
81
|
+
padding-top: 0px;
|
|
82
|
+
padding-bottom: 0px;
|
|
83
|
+
height: calc(
|
|
84
|
+
${controlHeight} - ${borderWidth} -
|
|
85
|
+
var(--ni-private-hover-bottom-border-width)
|
|
86
|
+
);
|
|
72
87
|
width: 100%;
|
|
73
88
|
margin-top: auto;
|
|
74
89
|
margin-bottom: auto;
|
|
90
|
+
padding-left: calc(${standardPadding} / 2);
|
|
91
|
+
padding-right: calc(${standardPadding} / 2);
|
|
75
92
|
border: none;
|
|
76
93
|
}
|
|
77
94
|
|
|
@@ -113,6 +130,10 @@ export const styles = css `
|
|
|
113
130
|
text-transform: ${labelTextTransform};
|
|
114
131
|
}
|
|
115
132
|
|
|
133
|
+
:host([disabled]) .label {
|
|
134
|
+
color: ${labelFontColorDisabled};
|
|
135
|
+
}
|
|
136
|
+
|
|
116
137
|
:host [part='end'] {
|
|
117
138
|
display: none;
|
|
118
139
|
}
|
|
@@ -136,7 +157,39 @@ export const styles = css `
|
|
|
136
157
|
:host([disabled]) [part='end'] path {
|
|
137
158
|
fill: ${contentFontColorDisabled};
|
|
138
159
|
}
|
|
139
|
-
`.withBehaviors(
|
|
160
|
+
`.withBehaviors(appearanceBehavior(TextFieldAppearance.Underline, css `
|
|
161
|
+
.root {
|
|
162
|
+
--ni-private-bottom-border-width: 1px;
|
|
163
|
+
padding-top: ${borderWidth};
|
|
164
|
+
padding-left: ${borderWidth};
|
|
165
|
+
padding-right: ${borderWidth};
|
|
166
|
+
}
|
|
167
|
+
`), appearanceBehavior(TextFieldAppearance.Block, css `
|
|
168
|
+
.root {
|
|
169
|
+
background-color: rgba(${borderColorRgbPartial}, 0.05);
|
|
170
|
+
--ni-private-bottom-border-width: 0px;
|
|
171
|
+
padding-top: ${borderWidth};
|
|
172
|
+
padding-left: ${borderWidth};
|
|
173
|
+
padding-right: ${borderWidth};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.root:focus-within,
|
|
177
|
+
:host(.invalid) .root,
|
|
178
|
+
:host([disabled]) .root {
|
|
179
|
+
--ni-private-bottom-border-width: 1px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
:host([disabled]) .root,
|
|
183
|
+
:host([readonly]) .root {
|
|
184
|
+
background-color: transparent;
|
|
185
|
+
}
|
|
186
|
+
`), appearanceBehavior(TextFieldAppearance.Outline, css `
|
|
187
|
+
.root {
|
|
188
|
+
--ni-private-bottom-border-width: 1px;
|
|
189
|
+
border-width: ${borderWidth};
|
|
190
|
+
border-bottom-width: var(--ni-private-bottom-border-width);
|
|
191
|
+
}
|
|
192
|
+
`), themeBehavior(css `
|
|
140
193
|
${'' /* Light theme */}
|
|
141
194
|
.control::-ms-reveal {
|
|
142
195
|
filter: invert(0%);
|
|
@@ -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,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,UAAU,
|
|
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,sBAAsB,EACtB,eAAe,EACf,aAAa,EACb,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,UAAU,EACV,eAAe,EAClB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,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;oCACG,UAAU,oBAAoB,UAAU;;;iCAG3C,qBAAqB;;;;;;;;;;;;;;;;;;;;+BAoBvB,gBAAgB;;;;+BAIhB,SAAS;;;;6BAIX,qBAAqB;;;;;mBAK/B,WAAW;;;;;;;;;;;;;;;;;cAiBhB,aAAa,MAAM,WAAW;;;;;;6BAMf,eAAe;8BACd,eAAe;;;;;;;;;;;;iBAY5B,cAAc;2BACJ,2BAA2B;;;;iBAIrC,cAAc;;;;;;;;;;;;iBAYd,wBAAwB;;;;;iBAKxB,cAAc;uBACR,eAAe;qBACjB,aAAa;uBACX,eAAe;uBACf,WAAW;0BACR,kBAAkB;;;;iBAI3B,sBAAsB;;;;;;;;;;;;;;;kBAerB,QAAQ;iBACT,QAAQ;;;;gBAIT,SAAS;;;;gBAIT,wBAAwB;;CAEvC,CAAC,aAAa,CACP,kBAAkB,CACd,mBAAmB,CAAC,SAAS,EAC7B,GAAG,CAAA;;;+BAGgB,WAAW;gCACV,WAAW;iCACV,WAAW;;SAEnC,CACA,EACD,kBAAkB,CACd,mBAAmB,CAAC,KAAK,EACzB,GAAG,CAAA;;yCAE0B,qBAAqB;;+BAE/B,WAAW;gCACV,WAAW;iCACV,WAAW;;;;;;;;;;;;;SAanC,CACA,EACD,kBAAkB,CACd,mBAAmB,CAAC,OAAO,EAC3B,GAAG,CAAA;;;gCAGiB,WAAW;;;SAGlC,CACA,EACD,aAAa,CACT,GAAG,CAAA;cACD,EAAE,CAAC,iBAAiB;;;;SAIzB,EACG,GAAG,CAAA;cACD,EAAE,CAAC,gBAAgB;;;;SAIxB;AACG,cAAc;AACd,KAAK,CAAC,IAAI;AACV,mBAAmB;AACnB,KAAK,CAAC,KAAK,CACd,CACJ,CAAC"}
|
|
@@ -1,3 +1,21 @@
|
|
|
1
1
|
import { TextFieldType } from '@microsoft/fast-foundation';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Values for the 'type' attribute of the text field.
|
|
4
|
+
*/
|
|
3
5
|
export declare type TextFieldTypeAttribute = `${TextFieldType}`;
|
|
6
|
+
/**
|
|
7
|
+
* Values for the 'type' property of the text field.
|
|
8
|
+
*/
|
|
9
|
+
export { TextFieldType };
|
|
10
|
+
/**
|
|
11
|
+
* Values for the 'appearance' attribute of the text field.
|
|
12
|
+
*/
|
|
13
|
+
export declare type TextFieldAppearanceAttribute = `${TextFieldAppearance}`;
|
|
14
|
+
/**
|
|
15
|
+
* Values for the 'appearance' property of the text field
|
|
16
|
+
*/
|
|
17
|
+
export declare enum TextFieldAppearance {
|
|
18
|
+
Underline = "underline",
|
|
19
|
+
Outline = "outline",
|
|
20
|
+
Block = "block"
|
|
21
|
+
}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
import { TextFieldType } from '@microsoft/fast-foundation';
|
|
2
|
+
/**
|
|
3
|
+
* Values for the 'type' property of the text field.
|
|
4
|
+
*/
|
|
2
5
|
export { TextFieldType };
|
|
6
|
+
/**
|
|
7
|
+
* Values for the 'appearance' property of the text field
|
|
8
|
+
*/
|
|
9
|
+
export var TextFieldAppearance;
|
|
10
|
+
(function (TextFieldAppearance) {
|
|
11
|
+
TextFieldAppearance["Underline"] = "underline";
|
|
12
|
+
TextFieldAppearance["Outline"] = "outline";
|
|
13
|
+
TextFieldAppearance["Block"] = "block";
|
|
14
|
+
})(TextFieldAppearance || (TextFieldAppearance = {}));
|
|
3
15
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/text-field/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/text-field/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAO3D;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,CAAC;AAOzB;;GAEG;AACH,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC3B,8CAAuB,CAAA;IACvB,0CAAmB,CAAA;IACnB,sCAAe,CAAA;AACnB,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Behavior, ElementStyles } from '@microsoft/fast-element';
|
|
2
|
-
import type { ButtonAppearance } from '../../patterns/button/types';
|
|
3
2
|
/**
|
|
4
3
|
* Behavior that will conditionally apply a stylesheet based on the element's
|
|
5
4
|
* appearance property
|
|
@@ -9,4 +8,4 @@ import type { ButtonAppearance } from '../../patterns/button/types';
|
|
|
9
8
|
*
|
|
10
9
|
* @public
|
|
11
10
|
*/
|
|
12
|
-
export declare function appearanceBehavior(value:
|
|
11
|
+
export declare function appearanceBehavior<AppearanceType>(value: AppearanceType, styles: ElementStyles): Behavior;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appearance.js","sourceRoot":"","sources":["../../../../src/utilities/style/appearance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"appearance.js","sourceRoot":"","sources":["../../../../src/utilities/style/appearance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAGxE;;;;;;;;GAQG;AACH,MAAM,UAAU,kBAAkB,CAC9B,KAAqB,EACrB,MAAqB;IAErB,OAAO,IAAI,0BAA0B,CAAC,YAAY,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AACvE,CAAC"}
|
package/package.json
CHANGED