@fluentui/web-components 3.0.0-alpha.22 → 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.
- package/CHANGELOG.json +16 -1
- package/CHANGELOG.md +11 -2
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/text-input/define.d.ts +1 -0
- package/dist/dts/text-input/index.d.ts +6 -0
- package/dist/dts/text-input/text-input.d.ts +26 -0
- package/dist/dts/text-input/text-input.definition.d.ts +10 -0
- package/dist/dts/text-input/text-input.options.d.ts +30 -0
- package/dist/dts/text-input/text-input.styles.d.ts +4 -0
- package/dist/dts/text-input/text-input.template.d.ts +6 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/text-input/define.js +4 -0
- package/dist/esm/text-input/define.js.map +1 -0
- package/dist/esm/text-input/index.js +7 -0
- package/dist/esm/text-input/index.js.map +1 -0
- package/dist/esm/text-input/text-input.definition.js +18 -0
- package/dist/esm/text-input/text-input.definition.js.map +1 -0
- package/dist/esm/text-input/text-input.js +16 -0
- package/dist/esm/text-input/text-input.js.map +1 -0
- package/dist/esm/text-input/text-input.options.js +20 -0
- package/dist/esm/text-input/text-input.options.js.map +1 -0
- package/dist/esm/text-input/text-input.styles.js +200 -0
- package/dist/esm/text-input/text-input.styles.js.map +1 -0
- package/dist/esm/text-input/text-input.template.js +6 -0
- package/dist/esm/text-input/text-input.template.js.map +1 -0
- package/dist/fluent-web-components.api.json +279 -0
- package/dist/web-components.d.ts +82 -0
- package/dist/web-components.js +396 -121
- package/dist/web-components.min.js +169 -166
- package/docs/api-report.md +42 -0
- package/package.json +5 -1
|
@@ -20441,6 +20441,285 @@
|
|
|
20441
20441
|
"endIndex": 2
|
|
20442
20442
|
}
|
|
20443
20443
|
},
|
|
20444
|
+
{
|
|
20445
|
+
"kind": "Class",
|
|
20446
|
+
"canonicalReference": "@fluentui/web-components!TextInput:class",
|
|
20447
|
+
"docComment": "/**\n * The base class used for constructing a fluent-text-input custom element\n *\n * @public\n */\n",
|
|
20448
|
+
"excerptTokens": [
|
|
20449
|
+
{
|
|
20450
|
+
"kind": "Content",
|
|
20451
|
+
"text": "export declare class TextInput extends "
|
|
20452
|
+
},
|
|
20453
|
+
{
|
|
20454
|
+
"kind": "Reference",
|
|
20455
|
+
"text": "FASTTextField",
|
|
20456
|
+
"canonicalReference": "@microsoft/fast-foundation!FASTTextField:class"
|
|
20457
|
+
},
|
|
20458
|
+
{
|
|
20459
|
+
"kind": "Content",
|
|
20460
|
+
"text": " "
|
|
20461
|
+
}
|
|
20462
|
+
],
|
|
20463
|
+
"releaseTag": "Public",
|
|
20464
|
+
"name": "TextInput",
|
|
20465
|
+
"preserveMemberOrder": false,
|
|
20466
|
+
"members": [
|
|
20467
|
+
{
|
|
20468
|
+
"kind": "Property",
|
|
20469
|
+
"canonicalReference": "@fluentui/web-components!TextInput#appearance:member",
|
|
20470
|
+
"docComment": "/**\n * Defines TextInput appearance.\n *\n * @default 'outline'\n *\n * @remarks\n *\n * HTML Attribute: appearance\n *\n * @public\n */\n",
|
|
20471
|
+
"excerptTokens": [
|
|
20472
|
+
{
|
|
20473
|
+
"kind": "Content",
|
|
20474
|
+
"text": "appearance?: "
|
|
20475
|
+
},
|
|
20476
|
+
{
|
|
20477
|
+
"kind": "Reference",
|
|
20478
|
+
"text": "TextInputAppearance",
|
|
20479
|
+
"canonicalReference": "@fluentui/web-components!TextInputAppearance:type"
|
|
20480
|
+
},
|
|
20481
|
+
{
|
|
20482
|
+
"kind": "Content",
|
|
20483
|
+
"text": ";"
|
|
20484
|
+
}
|
|
20485
|
+
],
|
|
20486
|
+
"isReadonly": false,
|
|
20487
|
+
"isOptional": true,
|
|
20488
|
+
"releaseTag": "Public",
|
|
20489
|
+
"name": "appearance",
|
|
20490
|
+
"propertyTypeTokenRange": {
|
|
20491
|
+
"startIndex": 1,
|
|
20492
|
+
"endIndex": 2
|
|
20493
|
+
},
|
|
20494
|
+
"isStatic": false,
|
|
20495
|
+
"isProtected": false
|
|
20496
|
+
},
|
|
20497
|
+
{
|
|
20498
|
+
"kind": "Property",
|
|
20499
|
+
"canonicalReference": "@fluentui/web-components!TextInput#controlSize:member",
|
|
20500
|
+
"docComment": "/**\n * Defines TextInput control size\n *\n * @default 'medium'\n *\n * @remarks\n *\n * HTML Attribute: control-size\n *\n * @public\n */\n",
|
|
20501
|
+
"excerptTokens": [
|
|
20502
|
+
{
|
|
20503
|
+
"kind": "Content",
|
|
20504
|
+
"text": "controlSize?: "
|
|
20505
|
+
},
|
|
20506
|
+
{
|
|
20507
|
+
"kind": "Reference",
|
|
20508
|
+
"text": "TextInputControlSize",
|
|
20509
|
+
"canonicalReference": "@fluentui/web-components!TextInputControlSize:type"
|
|
20510
|
+
},
|
|
20511
|
+
{
|
|
20512
|
+
"kind": "Content",
|
|
20513
|
+
"text": ";"
|
|
20514
|
+
}
|
|
20515
|
+
],
|
|
20516
|
+
"isReadonly": false,
|
|
20517
|
+
"isOptional": true,
|
|
20518
|
+
"releaseTag": "Public",
|
|
20519
|
+
"name": "controlSize",
|
|
20520
|
+
"propertyTypeTokenRange": {
|
|
20521
|
+
"startIndex": 1,
|
|
20522
|
+
"endIndex": 2
|
|
20523
|
+
},
|
|
20524
|
+
"isStatic": false,
|
|
20525
|
+
"isProtected": false
|
|
20526
|
+
}
|
|
20527
|
+
],
|
|
20528
|
+
"extendsTokenRange": {
|
|
20529
|
+
"startIndex": 1,
|
|
20530
|
+
"endIndex": 2
|
|
20531
|
+
},
|
|
20532
|
+
"implementsTokenRanges": []
|
|
20533
|
+
},
|
|
20534
|
+
{
|
|
20535
|
+
"kind": "TypeAlias",
|
|
20536
|
+
"canonicalReference": "@fluentui/web-components!TextInputAppearance:type",
|
|
20537
|
+
"docComment": "/**\n * Applies appearance styling to TextInput\n *\n * @public\n */\n",
|
|
20538
|
+
"excerptTokens": [
|
|
20539
|
+
{
|
|
20540
|
+
"kind": "Content",
|
|
20541
|
+
"text": "export declare type TextInputAppearance = "
|
|
20542
|
+
},
|
|
20543
|
+
{
|
|
20544
|
+
"kind": "Reference",
|
|
20545
|
+
"text": "ValuesOf",
|
|
20546
|
+
"canonicalReference": "@microsoft/fast-foundation!ValuesOf:type"
|
|
20547
|
+
},
|
|
20548
|
+
{
|
|
20549
|
+
"kind": "Content",
|
|
20550
|
+
"text": "<typeof "
|
|
20551
|
+
},
|
|
20552
|
+
{
|
|
20553
|
+
"kind": "Reference",
|
|
20554
|
+
"text": "TextInputAppearance",
|
|
20555
|
+
"canonicalReference": "@fluentui/web-components!TextInputAppearance:var"
|
|
20556
|
+
},
|
|
20557
|
+
{
|
|
20558
|
+
"kind": "Content",
|
|
20559
|
+
"text": ">"
|
|
20560
|
+
},
|
|
20561
|
+
{
|
|
20562
|
+
"kind": "Content",
|
|
20563
|
+
"text": ";"
|
|
20564
|
+
}
|
|
20565
|
+
],
|
|
20566
|
+
"releaseTag": "Public",
|
|
20567
|
+
"name": "TextInputAppearance",
|
|
20568
|
+
"typeTokenRange": {
|
|
20569
|
+
"startIndex": 1,
|
|
20570
|
+
"endIndex": 5
|
|
20571
|
+
}
|
|
20572
|
+
},
|
|
20573
|
+
{
|
|
20574
|
+
"kind": "Variable",
|
|
20575
|
+
"canonicalReference": "@fluentui/web-components!TextInputAppearance:var",
|
|
20576
|
+
"docComment": "/**\n * TextInput appearance constants\n *\n * @public\n */\n",
|
|
20577
|
+
"excerptTokens": [
|
|
20578
|
+
{
|
|
20579
|
+
"kind": "Content",
|
|
20580
|
+
"text": "TextInputAppearance: "
|
|
20581
|
+
},
|
|
20582
|
+
{
|
|
20583
|
+
"kind": "Content",
|
|
20584
|
+
"text": "{\n readonly outline: \"outline\";\n readonly underline: \"underline\";\n readonly filledLighter: \"filled-lighter\";\n readonly filledDarker: \"filled-darker\";\n}"
|
|
20585
|
+
}
|
|
20586
|
+
],
|
|
20587
|
+
"isReadonly": true,
|
|
20588
|
+
"releaseTag": "Public",
|
|
20589
|
+
"name": "TextInputAppearance",
|
|
20590
|
+
"variableTypeTokenRange": {
|
|
20591
|
+
"startIndex": 1,
|
|
20592
|
+
"endIndex": 2
|
|
20593
|
+
}
|
|
20594
|
+
},
|
|
20595
|
+
{
|
|
20596
|
+
"kind": "TypeAlias",
|
|
20597
|
+
"canonicalReference": "@fluentui/web-components!TextInputControlSize:type",
|
|
20598
|
+
"docComment": "/**\n * Applies size styling to TextInput\n *\n * @public\n */\n",
|
|
20599
|
+
"excerptTokens": [
|
|
20600
|
+
{
|
|
20601
|
+
"kind": "Content",
|
|
20602
|
+
"text": "export declare type TextInputControlSize = "
|
|
20603
|
+
},
|
|
20604
|
+
{
|
|
20605
|
+
"kind": "Reference",
|
|
20606
|
+
"text": "ValuesOf",
|
|
20607
|
+
"canonicalReference": "@microsoft/fast-foundation!ValuesOf:type"
|
|
20608
|
+
},
|
|
20609
|
+
{
|
|
20610
|
+
"kind": "Content",
|
|
20611
|
+
"text": "<typeof "
|
|
20612
|
+
},
|
|
20613
|
+
{
|
|
20614
|
+
"kind": "Reference",
|
|
20615
|
+
"text": "TextInputControlSize",
|
|
20616
|
+
"canonicalReference": "@fluentui/web-components!TextInputControlSize:var"
|
|
20617
|
+
},
|
|
20618
|
+
{
|
|
20619
|
+
"kind": "Content",
|
|
20620
|
+
"text": ">"
|
|
20621
|
+
},
|
|
20622
|
+
{
|
|
20623
|
+
"kind": "Content",
|
|
20624
|
+
"text": ";"
|
|
20625
|
+
}
|
|
20626
|
+
],
|
|
20627
|
+
"releaseTag": "Public",
|
|
20628
|
+
"name": "TextInputControlSize",
|
|
20629
|
+
"typeTokenRange": {
|
|
20630
|
+
"startIndex": 1,
|
|
20631
|
+
"endIndex": 5
|
|
20632
|
+
}
|
|
20633
|
+
},
|
|
20634
|
+
{
|
|
20635
|
+
"kind": "Variable",
|
|
20636
|
+
"canonicalReference": "@fluentui/web-components!TextInputControlSize:var",
|
|
20637
|
+
"docComment": "/**\n * TextInput size constants\n *\n * @public\n */\n",
|
|
20638
|
+
"excerptTokens": [
|
|
20639
|
+
{
|
|
20640
|
+
"kind": "Content",
|
|
20641
|
+
"text": "TextInputControlSize: "
|
|
20642
|
+
},
|
|
20643
|
+
{
|
|
20644
|
+
"kind": "Content",
|
|
20645
|
+
"text": "{\n readonly small: \"small\";\n readonly medium: \"medium\";\n readonly large: \"large\";\n}"
|
|
20646
|
+
}
|
|
20647
|
+
],
|
|
20648
|
+
"isReadonly": true,
|
|
20649
|
+
"releaseTag": "Public",
|
|
20650
|
+
"name": "TextInputControlSize",
|
|
20651
|
+
"variableTypeTokenRange": {
|
|
20652
|
+
"startIndex": 1,
|
|
20653
|
+
"endIndex": 2
|
|
20654
|
+
}
|
|
20655
|
+
},
|
|
20656
|
+
{
|
|
20657
|
+
"kind": "Variable",
|
|
20658
|
+
"canonicalReference": "@fluentui/web-components!TextInputDefinition:var",
|
|
20659
|
+
"docComment": "/**\n * The Fluent TextInput Element.\n *\n * @remarks\n *\n * HTML Element: \\<fluent-text-input\\>\n *\n * @public\n */\n",
|
|
20660
|
+
"excerptTokens": [
|
|
20661
|
+
{
|
|
20662
|
+
"kind": "Content",
|
|
20663
|
+
"text": "definition: "
|
|
20664
|
+
},
|
|
20665
|
+
{
|
|
20666
|
+
"kind": "Content",
|
|
20667
|
+
"text": "import(\"@microsoft/fast-element\")."
|
|
20668
|
+
},
|
|
20669
|
+
{
|
|
20670
|
+
"kind": "Reference",
|
|
20671
|
+
"text": "FASTElementDefinition",
|
|
20672
|
+
"canonicalReference": "@microsoft/fast-element!FASTElementDefinition:class"
|
|
20673
|
+
},
|
|
20674
|
+
{
|
|
20675
|
+
"kind": "Content",
|
|
20676
|
+
"text": "<typeof "
|
|
20677
|
+
},
|
|
20678
|
+
{
|
|
20679
|
+
"kind": "Reference",
|
|
20680
|
+
"text": "TextInput",
|
|
20681
|
+
"canonicalReference": "@fluentui/web-components!TextInput:class"
|
|
20682
|
+
},
|
|
20683
|
+
{
|
|
20684
|
+
"kind": "Content",
|
|
20685
|
+
"text": ">"
|
|
20686
|
+
}
|
|
20687
|
+
],
|
|
20688
|
+
"isReadonly": true,
|
|
20689
|
+
"releaseTag": "Public",
|
|
20690
|
+
"name": "TextInputDefinition",
|
|
20691
|
+
"variableTypeTokenRange": {
|
|
20692
|
+
"startIndex": 1,
|
|
20693
|
+
"endIndex": 6
|
|
20694
|
+
}
|
|
20695
|
+
},
|
|
20696
|
+
{
|
|
20697
|
+
"kind": "Variable",
|
|
20698
|
+
"canonicalReference": "@fluentui/web-components!TextInputStyles:var",
|
|
20699
|
+
"docComment": "/**\n * TextInput styles\n *\n * @public\n */\n",
|
|
20700
|
+
"excerptTokens": [
|
|
20701
|
+
{
|
|
20702
|
+
"kind": "Content",
|
|
20703
|
+
"text": "styles: "
|
|
20704
|
+
},
|
|
20705
|
+
{
|
|
20706
|
+
"kind": "Content",
|
|
20707
|
+
"text": "import(\"@microsoft/fast-element\")."
|
|
20708
|
+
},
|
|
20709
|
+
{
|
|
20710
|
+
"kind": "Reference",
|
|
20711
|
+
"text": "ElementStyles",
|
|
20712
|
+
"canonicalReference": "@microsoft/fast-element!ElementStyles:class"
|
|
20713
|
+
}
|
|
20714
|
+
],
|
|
20715
|
+
"isReadonly": true,
|
|
20716
|
+
"releaseTag": "Public",
|
|
20717
|
+
"name": "TextInputStyles",
|
|
20718
|
+
"variableTypeTokenRange": {
|
|
20719
|
+
"startIndex": 1,
|
|
20720
|
+
"endIndex": 3
|
|
20721
|
+
}
|
|
20722
|
+
},
|
|
20444
20723
|
{
|
|
20445
20724
|
"kind": "TypeAlias",
|
|
20446
20725
|
"canonicalReference": "@fluentui/web-components!TextSize:type",
|
package/dist/web-components.d.ts
CHANGED
|
@@ -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
|
|
|
@@ -2839,6 +2841,86 @@ export declare const TextFont: {
|
|
|
2839
2841
|
*/
|
|
2840
2842
|
export declare type TextFont = ValuesOf<typeof TextFont>;
|
|
2841
2843
|
|
|
2844
|
+
/**
|
|
2845
|
+
* The base class used for constructing a fluent-text-input custom element
|
|
2846
|
+
* @public
|
|
2847
|
+
*/
|
|
2848
|
+
export declare class TextInput extends FASTTextField {
|
|
2849
|
+
/**
|
|
2850
|
+
* Defines TextInput control size
|
|
2851
|
+
*
|
|
2852
|
+
* @public
|
|
2853
|
+
* @default 'medium'
|
|
2854
|
+
* @remarks
|
|
2855
|
+
* HTML Attribute: control-size
|
|
2856
|
+
*/
|
|
2857
|
+
controlSize?: TextInputControlSize;
|
|
2858
|
+
/**
|
|
2859
|
+
* Defines TextInput appearance.
|
|
2860
|
+
*
|
|
2861
|
+
* @public
|
|
2862
|
+
* @default 'outline'
|
|
2863
|
+
* @remarks
|
|
2864
|
+
* HTML Attribute: appearance
|
|
2865
|
+
*/
|
|
2866
|
+
appearance?: TextInputAppearance;
|
|
2867
|
+
}
|
|
2868
|
+
|
|
2869
|
+
/**
|
|
2870
|
+
* TextInput appearance constants
|
|
2871
|
+
* @public
|
|
2872
|
+
*/
|
|
2873
|
+
export declare const TextInputAppearance: {
|
|
2874
|
+
readonly outline: "outline";
|
|
2875
|
+
readonly underline: "underline";
|
|
2876
|
+
readonly filledLighter: "filled-lighter";
|
|
2877
|
+
readonly filledDarker: "filled-darker";
|
|
2878
|
+
};
|
|
2879
|
+
|
|
2880
|
+
/**
|
|
2881
|
+
* Applies appearance styling to TextInput
|
|
2882
|
+
* @public
|
|
2883
|
+
*/
|
|
2884
|
+
export declare type TextInputAppearance = ValuesOf<typeof TextInputAppearance>;
|
|
2885
|
+
|
|
2886
|
+
/**
|
|
2887
|
+
* TextInput size constants
|
|
2888
|
+
* @public
|
|
2889
|
+
*/
|
|
2890
|
+
export declare const TextInputControlSize: {
|
|
2891
|
+
readonly small: "small";
|
|
2892
|
+
readonly medium: "medium";
|
|
2893
|
+
readonly large: "large";
|
|
2894
|
+
};
|
|
2895
|
+
|
|
2896
|
+
/**
|
|
2897
|
+
* Applies size styling to TextInput
|
|
2898
|
+
* @public
|
|
2899
|
+
*/
|
|
2900
|
+
export declare type TextInputControlSize = ValuesOf<typeof TextInputControlSize>;
|
|
2901
|
+
|
|
2902
|
+
/**
|
|
2903
|
+
* The Fluent TextInput Element.
|
|
2904
|
+
*
|
|
2905
|
+
*
|
|
2906
|
+
* @public
|
|
2907
|
+
* @remarks
|
|
2908
|
+
* HTML Element: \<fluent-text-input\>
|
|
2909
|
+
*/
|
|
2910
|
+
export declare const TextInputDefinition: FASTElementDefinition<typeof TextInput>;
|
|
2911
|
+
|
|
2912
|
+
/** TextInput styles
|
|
2913
|
+
* @public
|
|
2914
|
+
*/
|
|
2915
|
+
export declare const TextInputStyles: ElementStyles;
|
|
2916
|
+
|
|
2917
|
+
/**
|
|
2918
|
+
* @internal
|
|
2919
|
+
*/
|
|
2920
|
+
export declare const TextInputTemplate: ElementViewTemplate<TextInput>;
|
|
2921
|
+
|
|
2922
|
+
export { TextInputType }
|
|
2923
|
+
|
|
2842
2924
|
/**
|
|
2843
2925
|
* TextSize constants
|
|
2844
2926
|
* @public
|