@fluentui/web-components 3.0.0-alpha.22 → 3.0.0-alpha.24

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 (32) hide show
  1. package/CHANGELOG.json +31 -1
  2. package/CHANGELOG.md +20 -2
  3. package/dist/dts/index.d.ts +2 -0
  4. package/dist/dts/text-input/define.d.ts +1 -0
  5. package/dist/dts/text-input/index.d.ts +6 -0
  6. package/dist/dts/text-input/text-input.d.ts +26 -0
  7. package/dist/dts/text-input/text-input.definition.d.ts +10 -0
  8. package/dist/dts/text-input/text-input.options.d.ts +30 -0
  9. package/dist/dts/text-input/text-input.styles.d.ts +4 -0
  10. package/dist/dts/text-input/text-input.template.d.ts +6 -0
  11. package/dist/esm/index.js +2 -0
  12. package/dist/esm/index.js.map +1 -1
  13. package/dist/esm/text-input/define.js +4 -0
  14. package/dist/esm/text-input/define.js.map +1 -0
  15. package/dist/esm/text-input/index.js +7 -0
  16. package/dist/esm/text-input/index.js.map +1 -0
  17. package/dist/esm/text-input/text-input.definition.js +18 -0
  18. package/dist/esm/text-input/text-input.definition.js.map +1 -0
  19. package/dist/esm/text-input/text-input.js +16 -0
  20. package/dist/esm/text-input/text-input.js.map +1 -0
  21. package/dist/esm/text-input/text-input.options.js +20 -0
  22. package/dist/esm/text-input/text-input.options.js.map +1 -0
  23. package/dist/esm/text-input/text-input.styles.js +200 -0
  24. package/dist/esm/text-input/text-input.styles.js.map +1 -0
  25. package/dist/esm/text-input/text-input.template.js +6 -0
  26. package/dist/esm/text-input/text-input.template.js.map +1 -0
  27. package/dist/fluent-web-components.api.json +315 -0
  28. package/dist/web-components.d.ts +88 -0
  29. package/dist/web-components.js +396 -121
  30. package/dist/web-components.min.js +169 -166
  31. package/docs/api-report.md +49 -0
  32. package/package.json +5 -1
@@ -14287,6 +14287,42 @@
14287
14287
  "endIndex": 4
14288
14288
  }
14289
14289
  },
14290
+ {
14291
+ "kind": "Variable",
14292
+ "canonicalReference": "@fluentui/web-components!FluentDesignSystem:var",
14293
+ "docComment": "",
14294
+ "excerptTokens": [
14295
+ {
14296
+ "kind": "Content",
14297
+ "text": "FluentDesignSystem: "
14298
+ },
14299
+ {
14300
+ "kind": "Reference",
14301
+ "text": "Readonly",
14302
+ "canonicalReference": "!Readonly:type"
14303
+ },
14304
+ {
14305
+ "kind": "Content",
14306
+ "text": "<{\n prefix: \"fluent\";\n shadowRootMode: \"open\";\n registry: "
14307
+ },
14308
+ {
14309
+ "kind": "Reference",
14310
+ "text": "CustomElementRegistry",
14311
+ "canonicalReference": "!CustomElementRegistry:interface"
14312
+ },
14313
+ {
14314
+ "kind": "Content",
14315
+ "text": ";\n}>"
14316
+ }
14317
+ ],
14318
+ "isReadonly": true,
14319
+ "releaseTag": "Public",
14320
+ "name": "FluentDesignSystem",
14321
+ "variableTypeTokenRange": {
14322
+ "startIndex": 1,
14323
+ "endIndex": 5
14324
+ }
14325
+ },
14290
14326
  {
14291
14327
  "kind": "Variable",
14292
14328
  "canonicalReference": "@fluentui/web-components!fontFamilyBase:var",
@@ -20441,6 +20477,285 @@
20441
20477
  "endIndex": 2
20442
20478
  }
20443
20479
  },
20480
+ {
20481
+ "kind": "Class",
20482
+ "canonicalReference": "@fluentui/web-components!TextInput:class",
20483
+ "docComment": "/**\n * The base class used for constructing a fluent-text-input custom element\n *\n * @public\n */\n",
20484
+ "excerptTokens": [
20485
+ {
20486
+ "kind": "Content",
20487
+ "text": "export declare class TextInput extends "
20488
+ },
20489
+ {
20490
+ "kind": "Reference",
20491
+ "text": "FASTTextField",
20492
+ "canonicalReference": "@microsoft/fast-foundation!FASTTextField:class"
20493
+ },
20494
+ {
20495
+ "kind": "Content",
20496
+ "text": " "
20497
+ }
20498
+ ],
20499
+ "releaseTag": "Public",
20500
+ "name": "TextInput",
20501
+ "preserveMemberOrder": false,
20502
+ "members": [
20503
+ {
20504
+ "kind": "Property",
20505
+ "canonicalReference": "@fluentui/web-components!TextInput#appearance:member",
20506
+ "docComment": "/**\n * Defines TextInput appearance.\n *\n * @default 'outline'\n *\n * @remarks\n *\n * HTML Attribute: appearance\n *\n * @public\n */\n",
20507
+ "excerptTokens": [
20508
+ {
20509
+ "kind": "Content",
20510
+ "text": "appearance?: "
20511
+ },
20512
+ {
20513
+ "kind": "Reference",
20514
+ "text": "TextInputAppearance",
20515
+ "canonicalReference": "@fluentui/web-components!TextInputAppearance:type"
20516
+ },
20517
+ {
20518
+ "kind": "Content",
20519
+ "text": ";"
20520
+ }
20521
+ ],
20522
+ "isReadonly": false,
20523
+ "isOptional": true,
20524
+ "releaseTag": "Public",
20525
+ "name": "appearance",
20526
+ "propertyTypeTokenRange": {
20527
+ "startIndex": 1,
20528
+ "endIndex": 2
20529
+ },
20530
+ "isStatic": false,
20531
+ "isProtected": false
20532
+ },
20533
+ {
20534
+ "kind": "Property",
20535
+ "canonicalReference": "@fluentui/web-components!TextInput#controlSize:member",
20536
+ "docComment": "/**\n * Defines TextInput control size\n *\n * @default 'medium'\n *\n * @remarks\n *\n * HTML Attribute: control-size\n *\n * @public\n */\n",
20537
+ "excerptTokens": [
20538
+ {
20539
+ "kind": "Content",
20540
+ "text": "controlSize?: "
20541
+ },
20542
+ {
20543
+ "kind": "Reference",
20544
+ "text": "TextInputControlSize",
20545
+ "canonicalReference": "@fluentui/web-components!TextInputControlSize:type"
20546
+ },
20547
+ {
20548
+ "kind": "Content",
20549
+ "text": ";"
20550
+ }
20551
+ ],
20552
+ "isReadonly": false,
20553
+ "isOptional": true,
20554
+ "releaseTag": "Public",
20555
+ "name": "controlSize",
20556
+ "propertyTypeTokenRange": {
20557
+ "startIndex": 1,
20558
+ "endIndex": 2
20559
+ },
20560
+ "isStatic": false,
20561
+ "isProtected": false
20562
+ }
20563
+ ],
20564
+ "extendsTokenRange": {
20565
+ "startIndex": 1,
20566
+ "endIndex": 2
20567
+ },
20568
+ "implementsTokenRanges": []
20569
+ },
20570
+ {
20571
+ "kind": "TypeAlias",
20572
+ "canonicalReference": "@fluentui/web-components!TextInputAppearance:type",
20573
+ "docComment": "/**\n * Applies appearance styling to TextInput\n *\n * @public\n */\n",
20574
+ "excerptTokens": [
20575
+ {
20576
+ "kind": "Content",
20577
+ "text": "export declare type TextInputAppearance = "
20578
+ },
20579
+ {
20580
+ "kind": "Reference",
20581
+ "text": "ValuesOf",
20582
+ "canonicalReference": "@microsoft/fast-foundation!ValuesOf:type"
20583
+ },
20584
+ {
20585
+ "kind": "Content",
20586
+ "text": "<typeof "
20587
+ },
20588
+ {
20589
+ "kind": "Reference",
20590
+ "text": "TextInputAppearance",
20591
+ "canonicalReference": "@fluentui/web-components!TextInputAppearance:var"
20592
+ },
20593
+ {
20594
+ "kind": "Content",
20595
+ "text": ">"
20596
+ },
20597
+ {
20598
+ "kind": "Content",
20599
+ "text": ";"
20600
+ }
20601
+ ],
20602
+ "releaseTag": "Public",
20603
+ "name": "TextInputAppearance",
20604
+ "typeTokenRange": {
20605
+ "startIndex": 1,
20606
+ "endIndex": 5
20607
+ }
20608
+ },
20609
+ {
20610
+ "kind": "Variable",
20611
+ "canonicalReference": "@fluentui/web-components!TextInputAppearance:var",
20612
+ "docComment": "/**\n * TextInput appearance constants\n *\n * @public\n */\n",
20613
+ "excerptTokens": [
20614
+ {
20615
+ "kind": "Content",
20616
+ "text": "TextInputAppearance: "
20617
+ },
20618
+ {
20619
+ "kind": "Content",
20620
+ "text": "{\n readonly outline: \"outline\";\n readonly underline: \"underline\";\n readonly filledLighter: \"filled-lighter\";\n readonly filledDarker: \"filled-darker\";\n}"
20621
+ }
20622
+ ],
20623
+ "isReadonly": true,
20624
+ "releaseTag": "Public",
20625
+ "name": "TextInputAppearance",
20626
+ "variableTypeTokenRange": {
20627
+ "startIndex": 1,
20628
+ "endIndex": 2
20629
+ }
20630
+ },
20631
+ {
20632
+ "kind": "TypeAlias",
20633
+ "canonicalReference": "@fluentui/web-components!TextInputControlSize:type",
20634
+ "docComment": "/**\n * Applies size styling to TextInput\n *\n * @public\n */\n",
20635
+ "excerptTokens": [
20636
+ {
20637
+ "kind": "Content",
20638
+ "text": "export declare type TextInputControlSize = "
20639
+ },
20640
+ {
20641
+ "kind": "Reference",
20642
+ "text": "ValuesOf",
20643
+ "canonicalReference": "@microsoft/fast-foundation!ValuesOf:type"
20644
+ },
20645
+ {
20646
+ "kind": "Content",
20647
+ "text": "<typeof "
20648
+ },
20649
+ {
20650
+ "kind": "Reference",
20651
+ "text": "TextInputControlSize",
20652
+ "canonicalReference": "@fluentui/web-components!TextInputControlSize:var"
20653
+ },
20654
+ {
20655
+ "kind": "Content",
20656
+ "text": ">"
20657
+ },
20658
+ {
20659
+ "kind": "Content",
20660
+ "text": ";"
20661
+ }
20662
+ ],
20663
+ "releaseTag": "Public",
20664
+ "name": "TextInputControlSize",
20665
+ "typeTokenRange": {
20666
+ "startIndex": 1,
20667
+ "endIndex": 5
20668
+ }
20669
+ },
20670
+ {
20671
+ "kind": "Variable",
20672
+ "canonicalReference": "@fluentui/web-components!TextInputControlSize:var",
20673
+ "docComment": "/**\n * TextInput size constants\n *\n * @public\n */\n",
20674
+ "excerptTokens": [
20675
+ {
20676
+ "kind": "Content",
20677
+ "text": "TextInputControlSize: "
20678
+ },
20679
+ {
20680
+ "kind": "Content",
20681
+ "text": "{\n readonly small: \"small\";\n readonly medium: \"medium\";\n readonly large: \"large\";\n}"
20682
+ }
20683
+ ],
20684
+ "isReadonly": true,
20685
+ "releaseTag": "Public",
20686
+ "name": "TextInputControlSize",
20687
+ "variableTypeTokenRange": {
20688
+ "startIndex": 1,
20689
+ "endIndex": 2
20690
+ }
20691
+ },
20692
+ {
20693
+ "kind": "Variable",
20694
+ "canonicalReference": "@fluentui/web-components!TextInputDefinition:var",
20695
+ "docComment": "/**\n * The Fluent TextInput Element.\n *\n * @remarks\n *\n * HTML Element: \\<fluent-text-input\\>\n *\n * @public\n */\n",
20696
+ "excerptTokens": [
20697
+ {
20698
+ "kind": "Content",
20699
+ "text": "definition: "
20700
+ },
20701
+ {
20702
+ "kind": "Content",
20703
+ "text": "import(\"@microsoft/fast-element\")."
20704
+ },
20705
+ {
20706
+ "kind": "Reference",
20707
+ "text": "FASTElementDefinition",
20708
+ "canonicalReference": "@microsoft/fast-element!FASTElementDefinition:class"
20709
+ },
20710
+ {
20711
+ "kind": "Content",
20712
+ "text": "<typeof "
20713
+ },
20714
+ {
20715
+ "kind": "Reference",
20716
+ "text": "TextInput",
20717
+ "canonicalReference": "@fluentui/web-components!TextInput:class"
20718
+ },
20719
+ {
20720
+ "kind": "Content",
20721
+ "text": ">"
20722
+ }
20723
+ ],
20724
+ "isReadonly": true,
20725
+ "releaseTag": "Public",
20726
+ "name": "TextInputDefinition",
20727
+ "variableTypeTokenRange": {
20728
+ "startIndex": 1,
20729
+ "endIndex": 6
20730
+ }
20731
+ },
20732
+ {
20733
+ "kind": "Variable",
20734
+ "canonicalReference": "@fluentui/web-components!TextInputStyles:var",
20735
+ "docComment": "/**\n * TextInput styles\n *\n * @public\n */\n",
20736
+ "excerptTokens": [
20737
+ {
20738
+ "kind": "Content",
20739
+ "text": "styles: "
20740
+ },
20741
+ {
20742
+ "kind": "Content",
20743
+ "text": "import(\"@microsoft/fast-element\")."
20744
+ },
20745
+ {
20746
+ "kind": "Reference",
20747
+ "text": "ElementStyles",
20748
+ "canonicalReference": "@microsoft/fast-element!ElementStyles:class"
20749
+ }
20750
+ ],
20751
+ "isReadonly": true,
20752
+ "releaseTag": "Public",
20753
+ "name": "TextInputStyles",
20754
+ "variableTypeTokenRange": {
20755
+ "startIndex": 1,
20756
+ "endIndex": 3
20757
+ }
20758
+ },
20444
20759
  {
20445
20760
  "kind": "TypeAlias",
20446
20761
  "canonicalReference": "@fluentui/web-components!TextSize:type",
@@ -23,6 +23,7 @@ import { FASTSwitch } from '@microsoft/fast-foundation';
23
23
  import { FASTTab } from '@microsoft/fast-foundation';
24
24
  import { FASTTabPanel } from '@microsoft/fast-foundation';
25
25
  import { FASTTabs } from '@microsoft/fast-foundation';
26
+ import { FASTTextField } from '@microsoft/fast-foundation';
26
27
  import { MenuItemRole } from '@microsoft/fast-foundation';
27
28
  import { RadioGroupOrientation } from '@microsoft/fast-foundation';
28
29
  import { SliderOrientation } from '@microsoft/fast-foundation';
@@ -30,6 +31,7 @@ import { StartEnd } from '@microsoft/fast-foundation';
30
31
  import { StartEndOptions } from '@microsoft/fast-foundation';
31
32
  import { StaticallyComposableHTML } from '@microsoft/fast-foundation';
32
33
  import { TabsOrientation } from '@microsoft/fast-foundation';
34
+ import { TextFieldType as TextInputType } from '@microsoft/fast-foundation';
33
35
  import type { Theme } from '@fluentui/tokens';
34
36
  import { ValuesOf } from '@microsoft/fast-foundation';
35
37
 
@@ -1794,6 +1796,12 @@ export declare const durationUltraFast: CSSDesignToken<string>;
1794
1796
 
1795
1797
  export declare const durationUltraSlow: CSSDesignToken<string>;
1796
1798
 
1799
+ export declare const FluentDesignSystem: Readonly<{
1800
+ prefix: "fluent";
1801
+ shadowRootMode: "open";
1802
+ registry: CustomElementRegistry;
1803
+ }>;
1804
+
1797
1805
  export declare const fontFamilyBase: CSSDesignToken<string>;
1798
1806
 
1799
1807
  export declare const fontFamilyMonospace: CSSDesignToken<string>;
@@ -2839,6 +2847,86 @@ export declare const TextFont: {
2839
2847
  */
2840
2848
  export declare type TextFont = ValuesOf<typeof TextFont>;
2841
2849
 
2850
+ /**
2851
+ * The base class used for constructing a fluent-text-input custom element
2852
+ * @public
2853
+ */
2854
+ export declare class TextInput extends FASTTextField {
2855
+ /**
2856
+ * Defines TextInput control size
2857
+ *
2858
+ * @public
2859
+ * @default 'medium'
2860
+ * @remarks
2861
+ * HTML Attribute: control-size
2862
+ */
2863
+ controlSize?: TextInputControlSize;
2864
+ /**
2865
+ * Defines TextInput appearance.
2866
+ *
2867
+ * @public
2868
+ * @default 'outline'
2869
+ * @remarks
2870
+ * HTML Attribute: appearance
2871
+ */
2872
+ appearance?: TextInputAppearance;
2873
+ }
2874
+
2875
+ /**
2876
+ * TextInput appearance constants
2877
+ * @public
2878
+ */
2879
+ export declare const TextInputAppearance: {
2880
+ readonly outline: "outline";
2881
+ readonly underline: "underline";
2882
+ readonly filledLighter: "filled-lighter";
2883
+ readonly filledDarker: "filled-darker";
2884
+ };
2885
+
2886
+ /**
2887
+ * Applies appearance styling to TextInput
2888
+ * @public
2889
+ */
2890
+ export declare type TextInputAppearance = ValuesOf<typeof TextInputAppearance>;
2891
+
2892
+ /**
2893
+ * TextInput size constants
2894
+ * @public
2895
+ */
2896
+ export declare const TextInputControlSize: {
2897
+ readonly small: "small";
2898
+ readonly medium: "medium";
2899
+ readonly large: "large";
2900
+ };
2901
+
2902
+ /**
2903
+ * Applies size styling to TextInput
2904
+ * @public
2905
+ */
2906
+ export declare type TextInputControlSize = ValuesOf<typeof TextInputControlSize>;
2907
+
2908
+ /**
2909
+ * The Fluent TextInput Element.
2910
+ *
2911
+ *
2912
+ * @public
2913
+ * @remarks
2914
+ * HTML Element: \<fluent-text-input\>
2915
+ */
2916
+ export declare const TextInputDefinition: FASTElementDefinition<typeof TextInput>;
2917
+
2918
+ /** TextInput styles
2919
+ * @public
2920
+ */
2921
+ export declare const TextInputStyles: ElementStyles;
2922
+
2923
+ /**
2924
+ * @internal
2925
+ */
2926
+ export declare const TextInputTemplate: ElementViewTemplate<TextInput>;
2927
+
2928
+ export { TextInputType }
2929
+
2842
2930
  /**
2843
2931
  * TextSize constants
2844
2932
  * @public