@fluentui/web-components 3.0.0-alpha.21 → 3.0.0-alpha.23

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.
Files changed (35) hide show
  1. package/CHANGELOG.json +31 -1
  2. package/CHANGELOG.md +20 -2
  3. package/dist/dts/index.d.ts +1 -0
  4. package/dist/dts/menu-item/menu-item.d.ts +2 -1
  5. package/dist/dts/text-input/define.d.ts +1 -0
  6. package/dist/dts/text-input/index.d.ts +6 -0
  7. package/dist/dts/text-input/text-input.d.ts +26 -0
  8. package/dist/dts/text-input/text-input.definition.d.ts +10 -0
  9. package/dist/dts/text-input/text-input.options.d.ts +30 -0
  10. package/dist/dts/text-input/text-input.styles.d.ts +4 -0
  11. package/dist/dts/text-input/text-input.template.d.ts +6 -0
  12. package/dist/esm/index.js +1 -0
  13. package/dist/esm/index.js.map +1 -1
  14. package/dist/esm/menu-item/menu-item.js +2 -1
  15. package/dist/esm/menu-item/menu-item.js.map +1 -1
  16. package/dist/esm/text-input/define.js +4 -0
  17. package/dist/esm/text-input/define.js.map +1 -0
  18. package/dist/esm/text-input/index.js +7 -0
  19. package/dist/esm/text-input/index.js.map +1 -0
  20. package/dist/esm/text-input/text-input.definition.js +18 -0
  21. package/dist/esm/text-input/text-input.definition.js.map +1 -0
  22. package/dist/esm/text-input/text-input.js +16 -0
  23. package/dist/esm/text-input/text-input.js.map +1 -0
  24. package/dist/esm/text-input/text-input.options.js +20 -0
  25. package/dist/esm/text-input/text-input.options.js.map +1 -0
  26. package/dist/esm/text-input/text-input.styles.js +200 -0
  27. package/dist/esm/text-input/text-input.styles.js.map +1 -0
  28. package/dist/esm/text-input/text-input.template.js +6 -0
  29. package/dist/esm/text-input/text-input.template.js.map +1 -0
  30. package/dist/fluent-web-components.api.json +279 -0
  31. package/dist/web-components.d.ts +85 -0
  32. package/dist/web-components.js +396 -121
  33. package/dist/web-components.min.js +169 -166
  34. package/docs/api-report.md +45 -0
  35. package/package.json +5 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,37 @@
2
2
  "name": "@fluentui/web-components",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 15 May 2023 04:19:50 GMT",
5
+ "date": "Thu, 08 Jun 2023 04:17:55 GMT",
6
+ "tag": "@fluentui/web-components_v3.0.0-alpha.23",
7
+ "version": "3.0.0-alpha.23",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "brianbrady@microsoft.com",
12
+ "package": "@fluentui/web-components",
13
+ "commit": "ac7f17ec809a50b1b709e5fd66e8566b4181f08e",
14
+ "comment": "feat(text-input): add TextInput as a new web component"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Wed, 24 May 2023 04:19:34 GMT",
21
+ "tag": "@fluentui/web-components_v3.0.0-alpha.22",
22
+ "version": "3.0.0-alpha.22",
23
+ "comments": {
24
+ "prerelease": [
25
+ {
26
+ "author": "harankin@microsoft.com",
27
+ "package": "@fluentui/web-components",
28
+ "commit": "60b51196b1939782da61b7ff578c17fa510ef864",
29
+ "comment": "feat(menu-item): export MenuItemRole constants"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Mon, 15 May 2023 04:19:56 GMT",
6
36
  "tag": "@fluentui/web-components_v3.0.0-alpha.21",
7
37
  "version": "3.0.0-alpha.21",
8
38
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,30 @@
1
1
  # Change Log - @fluentui/web-components
2
2
 
3
- This log was last generated on Mon, 15 May 2023 04:19:50 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 08 Jun 2023 04:17:55 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [3.0.0-alpha.23](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-alpha.23)
8
+
9
+ Thu, 08 Jun 2023 04:17:55 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-alpha.22..@fluentui/web-components_v3.0.0-alpha.23)
11
+
12
+ ### Changes
13
+
14
+ - feat(text-input): add TextInput as a new web component ([PR #27348](https://github.com/microsoft/fluentui/pull/27348) by brianbrady@microsoft.com)
15
+
16
+ ## [3.0.0-alpha.22](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-alpha.22)
17
+
18
+ Wed, 24 May 2023 04:19:34 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-alpha.21..@fluentui/web-components_v3.0.0-alpha.22)
20
+
21
+ ### Changes
22
+
23
+ - feat(menu-item): export MenuItemRole constants ([PR #27941](https://github.com/microsoft/fluentui/pull/27941) by harankin@microsoft.com)
24
+
7
25
  ## [3.0.0-alpha.21](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-alpha.21)
8
26
 
9
- Mon, 15 May 2023 04:19:50 GMT
27
+ Mon, 15 May 2023 04:19:56 GMT
10
28
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-alpha.20..@fluentui/web-components_v3.0.0-alpha.21)
11
29
 
12
30
  ### Changes
@@ -22,5 +22,6 @@ export * from './tabs/index.js';
22
22
  export * from './tab/index.js';
23
23
  export * from './tab-panel/index.js';
24
24
  export * from './text/index.js';
25
+ export * from './text-input/index.js';
25
26
  export * from './toggle-button/index.js';
26
27
  export * from './theme/index.js';
@@ -1,5 +1,6 @@
1
- import { FASTMenuItem } from '@microsoft/fast-foundation';
1
+ import { FASTMenuItem, MenuItemRole } from '@microsoft/fast-foundation';
2
2
  export declare type MenuItemColumnCount = 0 | 1 | 2;
3
+ export { MenuItemRole };
3
4
  /**
4
5
  * The base class used for constructing a fluent-menu-item custom element
5
6
  * @public
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export * from './text-input.js';
2
+ export * from './text-input.options.js';
3
+ export { template as TextInputTemplate } from './text-input.template.js';
4
+ export { styles as TextInputStyles } from './text-input.styles.js';
5
+ export { definition as TextInputDefinition } from './text-input.definition.js';
6
+ export { TextFieldType as TextInputType } from '@microsoft/fast-foundation';
@@ -0,0 +1,26 @@
1
+ import { FASTTextField } from '@microsoft/fast-foundation';
2
+ import { TextInputAppearance, TextInputControlSize } from './text-input.options.js';
3
+ /**
4
+ * The base class used for constructing a fluent-text-input custom element
5
+ * @public
6
+ */
7
+ export declare class TextInput extends FASTTextField {
8
+ /**
9
+ * Defines TextInput control size
10
+ *
11
+ * @public
12
+ * @default 'medium'
13
+ * @remarks
14
+ * HTML Attribute: control-size
15
+ */
16
+ controlSize?: TextInputControlSize;
17
+ /**
18
+ * Defines TextInput appearance.
19
+ *
20
+ * @public
21
+ * @default 'outline'
22
+ * @remarks
23
+ * HTML Attribute: appearance
24
+ */
25
+ appearance?: TextInputAppearance;
26
+ }
@@ -0,0 +1,10 @@
1
+ import { TextInput } from './text-input.js';
2
+ /**
3
+ * The Fluent TextInput Element.
4
+ *
5
+ *
6
+ * @public
7
+ * @remarks
8
+ * HTML Element: \<fluent-text-input\>
9
+ */
10
+ export declare const definition: import("@microsoft/fast-element").FASTElementDefinition<typeof TextInput>;
@@ -0,0 +1,30 @@
1
+ import { ValuesOf } from '@microsoft/fast-foundation';
2
+ /**
3
+ * TextInput size constants
4
+ * @public
5
+ */
6
+ export declare const TextInputControlSize: {
7
+ readonly small: "small";
8
+ readonly medium: "medium";
9
+ readonly large: "large";
10
+ };
11
+ /**
12
+ * Applies size styling to TextInput
13
+ * @public
14
+ */
15
+ export declare type TextInputControlSize = ValuesOf<typeof TextInputControlSize>;
16
+ /**
17
+ * TextInput appearance constants
18
+ * @public
19
+ */
20
+ export declare const TextInputAppearance: {
21
+ readonly outline: "outline";
22
+ readonly underline: "underline";
23
+ readonly filledLighter: "filled-lighter";
24
+ readonly filledDarker: "filled-darker";
25
+ };
26
+ /**
27
+ * Applies appearance styling to TextInput
28
+ * @public
29
+ */
30
+ export declare type TextInputAppearance = ValuesOf<typeof TextInputAppearance>;
@@ -0,0 +1,4 @@
1
+ /** TextInput styles
2
+ * @public
3
+ */
4
+ export declare const styles: import("@microsoft/fast-element").ElementStyles;
@@ -0,0 +1,6 @@
1
+ import { ElementViewTemplate } from '@microsoft/fast-element';
2
+ import type { TextInput } from './text-input.js';
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const template: ElementViewTemplate<TextInput>;
package/dist/esm/index.js CHANGED
@@ -22,6 +22,7 @@ export * from './tabs/index.js';
22
22
  export * from './tab/index.js';
23
23
  export * from './tab-panel/index.js';
24
24
  export * from './text/index.js';
25
+ export * from './text-input/index.js';
25
26
  export * from './toggle-button/index.js';
26
27
  export * from './theme/index.js';
27
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AAEzC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AAEzC,cAAc,kBAAkB,CAAC"}
@@ -1,4 +1,5 @@
1
- import { FASTMenuItem } from '@microsoft/fast-foundation';
1
+ import { FASTMenuItem, MenuItemRole } from '@microsoft/fast-foundation';
2
+ export { MenuItemRole };
2
3
  /**
3
4
  * The base class used for constructing a fluent-menu-item custom element
4
5
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"menu-item.js","sourceRoot":"","sources":["../../../src/menu-item/menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI1D;;;GAGG;AACH,MAAM,OAAO,QAAS,SAAQ,YAAY;CAAG"}
1
+ {"version":3,"file":"menu-item.js","sourceRoot":"","sources":["../../../src/menu-item/menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAIxE,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB;;;GAGG;AACH,MAAM,OAAO,QAAS,SAAQ,YAAY;CAAG"}
@@ -0,0 +1,4 @@
1
+ import { FluentDesignSystem } from '../fluent-design-system.js';
2
+ import { definition } from './text-input.definition.js';
3
+ definition.define(FluentDesignSystem.registry);
4
+ //# sourceMappingURL=define.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define.js","sourceRoot":"","sources":["../../../src/text-input/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './text-input.js';
2
+ export * from './text-input.options.js';
3
+ export { template as TextInputTemplate } from './text-input.template.js';
4
+ export { styles as TextInputStyles } from './text-input.styles.js';
5
+ export { definition as TextInputDefinition } from './text-input.definition.js';
6
+ export { TextFieldType as TextInputType } from '@microsoft/fast-foundation';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/text-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,aAAa,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { FluentDesignSystem } from '../fluent-design-system.js';
2
+ import { TextInput } from './text-input.js';
3
+ import { styles } from './text-input.styles.js';
4
+ import { template } from './text-input.template.js';
5
+ /**
6
+ * The Fluent TextInput Element.
7
+ *
8
+ *
9
+ * @public
10
+ * @remarks
11
+ * HTML Element: \<fluent-text-input\>
12
+ */
13
+ export const definition = TextInput.compose({
14
+ name: `${FluentDesignSystem.prefix}-text-input`,
15
+ template,
16
+ styles,
17
+ });
18
+ //# sourceMappingURL=text-input.definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-input.definition.js","sourceRoot":"","sources":["../../../src/text-input/text-input.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,CAAC;IAC1C,IAAI,EAAE,GAAG,kBAAkB,CAAC,MAAM,aAAa;IAC/C,QAAQ;IACR,MAAM;CACP,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { __decorate } from "tslib";
2
+ import { attr } from '@microsoft/fast-element';
3
+ import { FASTTextField } from '@microsoft/fast-foundation';
4
+ /**
5
+ * The base class used for constructing a fluent-text-input custom element
6
+ * @public
7
+ */
8
+ export class TextInput extends FASTTextField {
9
+ }
10
+ __decorate([
11
+ attr({ attribute: 'control-size' })
12
+ ], TextInput.prototype, "controlSize", void 0);
13
+ __decorate([
14
+ attr
15
+ ], TextInput.prototype, "appearance", void 0);
16
+ //# sourceMappingURL=text-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-input.js","sourceRoot":"","sources":["../../../src/text-input/text-input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D;;;GAGG;AACH,MAAM,OAAO,SAAU,SAAQ,aAAa;CAsB3C;AAZC;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;8CACM;AAW1C;IADC,IAAI;6CACmC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * TextInput size constants
3
+ * @public
4
+ */
5
+ export const TextInputControlSize = {
6
+ small: 'small',
7
+ medium: 'medium',
8
+ large: 'large',
9
+ };
10
+ /**
11
+ * TextInput appearance constants
12
+ * @public
13
+ */
14
+ export const TextInputAppearance = {
15
+ outline: 'outline',
16
+ underline: 'underline',
17
+ filledLighter: 'filled-lighter',
18
+ filledDarker: 'filled-darker',
19
+ };
20
+ //# sourceMappingURL=text-input.options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-input.options.js","sourceRoot":"","sources":["../../../src/text-input/text-input.options.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACN,CAAC;AAQX;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,aAAa,EAAE,gBAAgB;IAC/B,YAAY,EAAE,eAAe;CACrB,CAAC"}
@@ -0,0 +1,200 @@
1
+ import { css } from '@microsoft/fast-element';
2
+ import { display } from '@microsoft/fast-foundation';
3
+ import { borderRadiusMedium, colorCompoundBrandStroke, colorCompoundBrandStrokePressed, colorNeutralBackground1, colorNeutralBackground3, colorNeutralBackgroundInverted, colorNeutralForeground1, colorNeutralForeground3, colorNeutralForeground4, colorNeutralForegroundDisabled, colorNeutralForegroundInverted, colorNeutralStroke1, colorNeutralStroke1Hover, colorNeutralStroke1Pressed, colorNeutralStrokeAccessible, colorNeutralStrokeAccessibleHover, colorNeutralStrokeAccessiblePressed, colorNeutralStrokeDisabled, colorTransparentBackground, colorTransparentStroke, colorTransparentStrokeInteractive, curveAccelerateMid, curveDecelerateMid, durationNormal, durationUltraFast, fontFamilyBase, fontSizeBase200, fontSizeBase300, fontSizeBase400, fontSizeBase500, fontSizeBase600, fontWeightRegular, lineHeightBase200, lineHeightBase300, lineHeightBase400, shadow2, spacingHorizontalM, spacingHorizontalMNudge, spacingHorizontalS, spacingHorizontalSNudge, spacingHorizontalXS, spacingHorizontalXXS, spacingVerticalXS, strokeWidthThin, } from '../theme/design-tokens.js';
4
+ /** TextInput styles
5
+ * @public
6
+ */
7
+ export const styles = css `
8
+ ${display('block')}
9
+
10
+ :host {
11
+ font-family: ${fontFamilyBase};
12
+ font-size: ${fontSizeBase300};
13
+ font-weight: ${fontWeightRegular};
14
+ line-height: ${lineHeightBase300};
15
+ max-width: 400px;
16
+ }
17
+ .label {
18
+ display: flex;
19
+ color: ${colorNeutralForeground1};
20
+ padding-bottom: ${spacingVerticalXS};
21
+ flex-shrink: 0;
22
+ padding-inline-end: ${spacingHorizontalXS};
23
+ }
24
+ .label__hidden {
25
+ display: none;
26
+ }
27
+ .root {
28
+ position: relative;
29
+ box-sizing: border-box;
30
+ height: 32px;
31
+ display: inline-flex;
32
+ align-items: center;
33
+ flex-direction: row;
34
+ width: 100%;
35
+ padding: 0 ${spacingHorizontalMNudge};
36
+ border: ${strokeWidthThin} solid ${colorNeutralStroke1};
37
+ border-bottom-color: ${colorNeutralStrokeAccessible};
38
+ border-radius: ${borderRadiusMedium};
39
+ gap: ${spacingHorizontalXXS};
40
+ }
41
+ .root::after {
42
+ box-sizing: border-box;
43
+ content: '';
44
+ position: absolute;
45
+ left: -1px;
46
+ bottom: 0px;
47
+ right: -1px;
48
+ height: max(2px, ${borderRadiusMedium});
49
+ border-radius: 0 0 ${borderRadiusMedium} ${borderRadiusMedium};
50
+ border-bottom: 2px solid ${colorCompoundBrandStroke};
51
+ clip-path: inset(calc(100% - 2px) 1px 0px);
52
+ transform: scaleX(0);
53
+ transition-property: transform;
54
+ transition-duration: ${durationUltraFast};
55
+ transition-delay: ${curveAccelerateMid};
56
+ }
57
+ .control {
58
+ width: 100%;
59
+ height: 100%;
60
+ box-sizing: border-box;
61
+ color: ${colorNeutralForeground1};
62
+ border-radius: ${borderRadiusMedium};
63
+ background: ${colorTransparentBackground};
64
+ font-family: ${fontFamilyBase};
65
+ font-weight: ${fontWeightRegular};
66
+ font-size: ${fontSizeBase300};
67
+ border: none;
68
+ background: transparent;
69
+ vertical-align: center;
70
+ }
71
+ .control:focus-visible {
72
+ outline: 0;
73
+ border: 0;
74
+ }
75
+ .control::placeholder {
76
+ color: ${colorNeutralForeground4};
77
+ }
78
+ :host ::slotted([slot='start']),
79
+ :host ::slotted([slot='end']) {
80
+ display: flex;
81
+ align-items: center;
82
+ justify-content: center;
83
+ color: ${colorNeutralForeground3};
84
+ font-size: ${fontSizeBase500};
85
+ }
86
+ :host ::slotted([slot='start']) {
87
+ padding-right: ${spacingHorizontalXXS};
88
+ }
89
+ :host ::slotted([slot='end']) {
90
+ padding-left: ${spacingHorizontalXXS};
91
+ gap: ${spacingHorizontalXS};
92
+ }
93
+ :host(:hover) .root {
94
+ border-color: ${colorNeutralStroke1Hover};
95
+ border-bottom-color: ${colorNeutralStrokeAccessibleHover};
96
+ }
97
+ :host(:active) .root {
98
+ border-color: ${colorNeutralStroke1Pressed};
99
+ }
100
+ :host(:focus-within) .root {
101
+ outline: transparent solid 2px;
102
+ border-bottom: 0;
103
+ }
104
+ :host(:focus-within) .root::after {
105
+ transform: scaleX(1);
106
+ transition-property: transform;
107
+ transition-duration: ${durationNormal};
108
+ transition-delay: ${curveDecelerateMid};
109
+ }
110
+ :host(:focus-within:active) .root:after {
111
+ border-bottom-color: ${colorCompoundBrandStrokePressed};
112
+ }
113
+ :host([appearance='outline']:focus-within) .root {
114
+ border: ${strokeWidthThin} solid ${colorNeutralStroke1};
115
+ }
116
+ :host(:focus-within) .control {
117
+ color: ${colorNeutralForeground1};
118
+ }
119
+ :host([disabled]) .root {
120
+ background: ${colorTransparentBackground};
121
+ border: ${strokeWidthThin} solid ${colorNeutralStrokeDisabled};
122
+ }
123
+ :host([disabled]) .control::placeholder,
124
+ :host([disabled]) ::slotted([slot='start']),
125
+ :host([disabled]) ::slotted([slot='end']) {
126
+ color: ${colorNeutralForegroundDisabled};
127
+ }
128
+ ::selection {
129
+ color: ${colorNeutralForegroundInverted};
130
+ background-color: ${colorNeutralBackgroundInverted};
131
+ }
132
+ :host([control-size='small']) .control {
133
+ font-size: ${fontSizeBase200};
134
+ font-weight: ${fontWeightRegular};
135
+ line-height: ${lineHeightBase200};
136
+ }
137
+ :host([control-size='small']) .root {
138
+ height: 24px;
139
+ gap: ${spacingHorizontalXXS};
140
+ padding: 0 ${spacingHorizontalSNudge};
141
+ }
142
+ :host([control-size='small']) ::slotted([slot='start']),
143
+ :host([control-size='small']) ::slotted([slot='end']) {
144
+ font-size: ${fontSizeBase400};
145
+ }
146
+ :host([control-size='large']) .control {
147
+ font-size: ${fontSizeBase400};
148
+ font-weight: ${fontWeightRegular};
149
+ line-height: ${lineHeightBase400};
150
+ }
151
+ :host([control-size='large']) .root {
152
+ height: 40px;
153
+ gap: ${spacingHorizontalS};
154
+ padding: 0 ${spacingHorizontalM};
155
+ }
156
+ :host([control-size='large']) ::slotted([slot='start']),
157
+ :host([control-size='large']) ::slotted([slot='end']) {
158
+ font-size: ${fontSizeBase600};
159
+ }
160
+ :host([appearance='underline']) .root {
161
+ background: ${colorTransparentBackground};
162
+ border: 0;
163
+ border-radius: 0;
164
+ border-bottom: ${strokeWidthThin} solid ${colorNeutralStrokeAccessible};
165
+ }
166
+ :host([appearance='underline']:hover) .root {
167
+ border-bottom-color: ${colorNeutralStrokeAccessibleHover};
168
+ }
169
+ :host([appearance='underline']:active) .root {
170
+ border-bottom-color: ${colorNeutralStrokeAccessiblePressed};
171
+ }
172
+ :host([appearance='underline']:focus-within) .root {
173
+ border: 0;
174
+ border-bottom-color: ${colorNeutralStrokeAccessiblePressed};
175
+ }
176
+ :host([appearance='underline'][disabled]) .root {
177
+ border-bottom-color: ${colorNeutralStrokeDisabled};
178
+ }
179
+ :host([appearance='filled-lighter']) .root,
180
+ :host([appearance='filled-darker']) .root {
181
+ border: ${strokeWidthThin} solid ${colorTransparentStroke};
182
+ box-shadow: ${shadow2};
183
+ }
184
+ :host([appearance='filled-lighter']) .root {
185
+ background: ${colorNeutralBackground1};
186
+ }
187
+ :host([appearance='filled-darker']) .root {
188
+ background: ${colorNeutralBackground3};
189
+ }
190
+ :host([appearance='filled-lighter']:hover) .root,
191
+ :host([appearance='filled-darker']:hover) .root {
192
+ border-color: ${colorTransparentStrokeInteractive};
193
+ }
194
+ :host([appearance='filled-lighter']:active) .root,
195
+ :host([appearance='filled-darker']:active) .root {
196
+ border-color: ${colorTransparentStrokeInteractive};
197
+ background: ${colorNeutralBackground3};
198
+ }
199
+ `;
200
+ //# sourceMappingURL=text-input.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-input.styles.js","sourceRoot":"","sources":["../../../src/text-input/text-input.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,+BAA+B,EAC/B,uBAAuB,EACvB,uBAAuB,EACvB,8BAA8B,EAC9B,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,8BAA8B,EAC9B,8BAA8B,EAC9B,mBAAmB,EACnB,wBAAwB,EACxB,0BAA0B,EAC1B,4BAA4B,EAC5B,iCAAiC,EACjC,mCAAmC,EACnC,0BAA0B,EAC1B,0BAA0B,EAC1B,sBAAsB,EACtB,iCAAiC,EACjC,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,EACP,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,GAChB,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,OAAO,CAAC;;;mBAGD,cAAc;iBAChB,eAAe;mBACb,iBAAiB;mBACjB,iBAAiB;;;;;aAKvB,uBAAuB;sBACd,iBAAiB;;0BAEb,mBAAmB;;;;;;;;;;;;;iBAa5B,uBAAuB;cAC1B,eAAe,UAAU,mBAAmB;2BAC/B,4BAA4B;qBAClC,kBAAkB;WAC5B,oBAAoB;;;;;;;;;uBASR,kBAAkB;yBAChB,kBAAkB,IAAI,kBAAkB;+BAClC,wBAAwB;;;;2BAI5B,iBAAiB;wBACpB,kBAAkB;;;;;;aAM7B,uBAAuB;qBACf,kBAAkB;kBACrB,0BAA0B;mBACzB,cAAc;mBACd,iBAAiB;iBACnB,eAAe;;;;;;;;;;aAUnB,uBAAuB;;;;;;;aAOvB,uBAAuB;iBACnB,eAAe;;;qBAGX,oBAAoB;;;oBAGrB,oBAAoB;WAC7B,mBAAmB;;;oBAGV,wBAAwB;2BACjB,iCAAiC;;;oBAGxC,0BAA0B;;;;;;;;;2BASnB,cAAc;wBACjB,kBAAkB;;;2BAGf,+BAA+B;;;cAG5C,eAAe,UAAU,mBAAmB;;;aAG7C,uBAAuB;;;kBAGlB,0BAA0B;cAC9B,eAAe,UAAU,0BAA0B;;;;;aAKpD,8BAA8B;;;aAG9B,8BAA8B;wBACnB,8BAA8B;;;iBAGrC,eAAe;mBACb,iBAAiB;mBACjB,iBAAiB;;;;WAIzB,oBAAoB;iBACd,uBAAuB;;;;iBAIvB,eAAe;;;iBAGf,eAAe;mBACb,iBAAiB;mBACjB,iBAAiB;;;;WAIzB,kBAAkB;iBACZ,kBAAkB;;;;iBAIlB,eAAe;;;kBAGd,0BAA0B;;;qBAGvB,eAAe,UAAU,4BAA4B;;;2BAG/C,iCAAiC;;;2BAGjC,mCAAmC;;;;2BAInC,mCAAmC;;;2BAGnC,0BAA0B;;;;cAIvC,eAAe,UAAU,sBAAsB;kBAC3C,OAAO;;;kBAGP,uBAAuB;;;kBAGvB,uBAAuB;;;;oBAIrB,iCAAiC;;;;oBAIjC,iCAAiC;kBACnC,uBAAuB;;CAExC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { textFieldTemplate } from '@microsoft/fast-foundation';
2
+ /**
3
+ * @internal
4
+ */
5
+ export const template = textFieldTemplate();
6
+ //# sourceMappingURL=text-input.template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-input.template.js","sourceRoot":"","sources":["../../../src/text-input/text-input.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAmC,iBAAiB,EAAE,CAAC"}