@fluentui/web-components 2.1.0 → 2.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.
Files changed (37) hide show
  1. package/CHANGELOG.json +69 -1
  2. package/CHANGELOG.md +38 -2
  3. package/dist/dts/anchor/anchor.stories.d.ts +1 -1
  4. package/dist/dts/badge/badge.stories.d.ts +1 -1
  5. package/dist/dts/button/button.stories.d.ts +1 -1
  6. package/dist/dts/component-definitions.d.ts +2 -1
  7. package/dist/dts/custom-elements.d.ts +14 -12
  8. package/dist/dts/index.d.ts +1 -0
  9. package/dist/dts/listbox/index.d.ts +3 -6
  10. package/dist/dts/listbox/listbox.stories.d.ts +1 -1
  11. package/dist/dts/menu/menu.stories.d.ts +1 -1
  12. package/dist/dts/search/index.d.ts +38 -0
  13. package/dist/dts/search/search.stories.d.ts +75 -0
  14. package/dist/dts/search/search.styles.d.ts +4 -0
  15. package/dist/dts/search/search.template.d.ts +6 -0
  16. package/dist/dts/text-area/text-area.stories.d.ts +1 -1
  17. package/dist/dts/text-field/text-field.stories.d.ts +1 -1
  18. package/dist/dts/tooltip/tooltip.stories.d.ts +1 -1
  19. package/dist/esm/accordion/accordion-item/accordion-item.styles.js +6 -5
  20. package/dist/esm/component-definitions.js +2 -0
  21. package/dist/esm/custom-elements.js +3 -1
  22. package/dist/esm/flipper/flipper.styles.js +1 -0
  23. package/dist/esm/index.js +1 -0
  24. package/dist/esm/listbox/index.js +3 -6
  25. package/dist/esm/search/index.js +52 -0
  26. package/dist/esm/search/search.stories.js +83 -0
  27. package/dist/esm/search/search.styles.js +108 -0
  28. package/dist/esm/search/search.template.js +82 -0
  29. package/dist/esm/search/search.vscode.definition.json +145 -0
  30. package/dist/esm/tabs/tabs.stories.js +56 -2
  31. package/dist/esm/tabs/tabs.styles.js +1 -0
  32. package/dist/fluent-web-components.api.json +280 -15
  33. package/dist/web-components.d.ts +51 -2
  34. package/dist/web-components.js +711 -245
  35. package/dist/web-components.min.js +142 -132
  36. package/docs/api-report.md +34 -9
  37. package/package.json +2 -3
@@ -1345,7 +1345,7 @@
1345
1345
  },
1346
1346
  {
1347
1347
  "kind": "Content",
1348
- "text": ", typeof import(\"./anchor\")."
1348
+ "text": ", typeof import(\"./anchor/index\")."
1349
1349
  },
1350
1350
  {
1351
1351
  "kind": "Reference",
@@ -1435,7 +1435,7 @@
1435
1435
  },
1436
1436
  {
1437
1437
  "kind": "Content",
1438
- "text": ", typeof import(\"./badge\")."
1438
+ "text": ", typeof import(\"./badge/index\")."
1439
1439
  },
1440
1440
  {
1441
1441
  "kind": "Reference",
@@ -1579,7 +1579,7 @@
1579
1579
  },
1580
1580
  {
1581
1581
  "kind": "Content",
1582
- "text": ", typeof import(\"./button\")."
1582
+ "text": ", typeof import(\"./button/index\")."
1583
1583
  },
1584
1584
  {
1585
1585
  "kind": "Reference",
@@ -1678,7 +1678,7 @@
1678
1678
  },
1679
1679
  {
1680
1680
  "kind": "Content",
1681
- "text": ", typeof import(\"./card\")."
1681
+ "text": ", typeof import(\"./card/index\")."
1682
1682
  },
1683
1683
  {
1684
1684
  "kind": "Reference",
@@ -1984,7 +1984,7 @@
1984
1984
  },
1985
1985
  {
1986
1986
  "kind": "Content",
1987
- "text": ";\n }, typeof import(\"./design-system-provider\")."
1987
+ "text": ";\n }, typeof import(\"./design-system-provider/index\")."
1988
1988
  },
1989
1989
  {
1990
1990
  "kind": "Reference",
@@ -2227,12 +2227,12 @@
2227
2227
  },
2228
2228
  {
2229
2229
  "kind": "Content",
2230
- "text": ", typeof import(\"@microsoft/fast-foundation\")."
2230
+ "text": ", typeof import(\"./listbox/index\")."
2231
2231
  },
2232
2232
  {
2233
2233
  "kind": "Reference",
2234
2234
  "text": "Listbox",
2235
- "canonicalReference": "@microsoft/fast-foundation!Listbox:class"
2235
+ "canonicalReference": "@fluentui/web-components!Listbox:class"
2236
2236
  },
2237
2237
  {
2238
2238
  "kind": "Content",
@@ -2317,7 +2317,7 @@
2317
2317
  },
2318
2318
  {
2319
2319
  "kind": "Content",
2320
- "text": ", typeof import(\"./menu\")."
2320
+ "text": ", typeof import(\"./menu/index\")."
2321
2321
  },
2322
2322
  {
2323
2323
  "kind": "Reference",
@@ -2641,7 +2641,61 @@
2641
2641
  },
2642
2642
  {
2643
2643
  "kind": "Content",
2644
- "text": ">;\n fluentSelect: (overrideDefinition?: import(\"@microsoft/fast-foundation\")."
2644
+ "text": ">;\n fluentSearch: (overrideDefinition?: import(\"@microsoft/fast-foundation\")."
2645
+ },
2646
+ {
2647
+ "kind": "Reference",
2648
+ "text": "OverrideFoundationElementDefinition",
2649
+ "canonicalReference": "@microsoft/fast-foundation!OverrideFoundationElementDefinition:type"
2650
+ },
2651
+ {
2652
+ "kind": "Content",
2653
+ "text": "<import(\"@microsoft/fast-foundation\")."
2654
+ },
2655
+ {
2656
+ "kind": "Reference",
2657
+ "text": "SearchOptions",
2658
+ "canonicalReference": "@microsoft/fast-foundation!SearchOptions:type"
2659
+ },
2660
+ {
2661
+ "kind": "Content",
2662
+ "text": "> | undefined) => import(\"@microsoft/fast-foundation\")."
2663
+ },
2664
+ {
2665
+ "kind": "Reference",
2666
+ "text": "FoundationElementRegistry",
2667
+ "canonicalReference": "@microsoft/fast-foundation!FoundationElementRegistry:class"
2668
+ },
2669
+ {
2670
+ "kind": "Content",
2671
+ "text": "<import(\"@microsoft/fast-foundation\")."
2672
+ },
2673
+ {
2674
+ "kind": "Reference",
2675
+ "text": "SearchOptions",
2676
+ "canonicalReference": "@microsoft/fast-foundation!SearchOptions:type"
2677
+ },
2678
+ {
2679
+ "kind": "Content",
2680
+ "text": ", import(\"@microsoft/fast-element\")."
2681
+ },
2682
+ {
2683
+ "kind": "Reference",
2684
+ "text": "Constructable",
2685
+ "canonicalReference": "@microsoft/fast-element!Constructable:type"
2686
+ },
2687
+ {
2688
+ "kind": "Content",
2689
+ "text": "<import(\"@microsoft/fast-foundation\")."
2690
+ },
2691
+ {
2692
+ "kind": "Reference",
2693
+ "text": "FoundationElement",
2694
+ "canonicalReference": "@microsoft/fast-foundation!FoundationElement:class"
2695
+ },
2696
+ {
2697
+ "kind": "Content",
2698
+ "text": ">>;\n fluentSelect: (overrideDefinition?: import(\"@microsoft/fast-foundation\")."
2645
2699
  },
2646
2700
  {
2647
2701
  "kind": "Reference",
@@ -3064,7 +3118,7 @@
3064
3118
  },
3065
3119
  {
3066
3120
  "kind": "Content",
3067
- "text": ", typeof import(\"./text-area\")."
3121
+ "text": ", typeof import(\"./text-area/index\")."
3068
3122
  },
3069
3123
  {
3070
3124
  "kind": "Reference",
@@ -3109,7 +3163,7 @@
3109
3163
  },
3110
3164
  {
3111
3165
  "kind": "Content",
3112
- "text": ", typeof import(\"./text-field\")."
3166
+ "text": ", typeof import(\"./text-field/index\")."
3113
3167
  },
3114
3168
  {
3115
3169
  "kind": "Reference",
@@ -3154,7 +3208,7 @@
3154
3208
  },
3155
3209
  {
3156
3210
  "kind": "Content",
3157
- "text": ", typeof import(\"./toolbar\")."
3211
+ "text": ", typeof import(\"./toolbar/index\")."
3158
3212
  },
3159
3213
  {
3160
3214
  "kind": "Reference",
@@ -3199,7 +3253,7 @@
3199
3253
  },
3200
3254
  {
3201
3255
  "kind": "Content",
3202
- "text": ", typeof import(\"./tooltip\")."
3256
+ "text": ", typeof import(\"./tooltip/index\")."
3203
3257
  },
3204
3258
  {
3205
3259
  "kind": "Reference",
@@ -3323,7 +3377,7 @@
3323
3377
  "name": "allComponents",
3324
3378
  "variableTypeTokenRange": {
3325
3379
  "startIndex": 1,
3326
- "endIndex": 470
3380
+ "endIndex": 482
3327
3381
  }
3328
3382
  },
3329
3383
  {
@@ -8515,7 +8569,7 @@
8515
8569
  {
8516
8570
  "kind": "Reference",
8517
8571
  "text": "Listbox",
8518
- "canonicalReference": "@microsoft/fast-foundation!Listbox:class"
8572
+ "canonicalReference": "@fluentui/web-components!Listbox:class"
8519
8573
  },
8520
8574
  {
8521
8575
  "kind": "Content",
@@ -9102,6 +9156,81 @@
9102
9156
  "endIndex": 12
9103
9157
  }
9104
9158
  },
9159
+ {
9160
+ "kind": "Variable",
9161
+ "canonicalReference": "@fluentui/web-components!fluentSearch:var",
9162
+ "docComment": "/**\n * The Fluent Search Custom Element. Implements {@link @microsoft/fast-foundation#Search}, {@link @microsoft/fast-foundation#searchTemplate}\n *\n * @remarks\n *\n * HTML Element: \\<fluent-search\\>\n *\n * {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus | delegatesFocus}\n *\n * @public\n */\n",
9163
+ "excerptTokens": [
9164
+ {
9165
+ "kind": "Content",
9166
+ "text": "fluentSearch: "
9167
+ },
9168
+ {
9169
+ "kind": "Content",
9170
+ "text": "(overrideDefinition?: import(\"@microsoft/fast-foundation\")."
9171
+ },
9172
+ {
9173
+ "kind": "Reference",
9174
+ "text": "OverrideFoundationElementDefinition",
9175
+ "canonicalReference": "@microsoft/fast-foundation!OverrideFoundationElementDefinition:type"
9176
+ },
9177
+ {
9178
+ "kind": "Content",
9179
+ "text": "<"
9180
+ },
9181
+ {
9182
+ "kind": "Reference",
9183
+ "text": "SearchOptions",
9184
+ "canonicalReference": "@microsoft/fast-foundation!SearchOptions:type"
9185
+ },
9186
+ {
9187
+ "kind": "Content",
9188
+ "text": "> | undefined) => import(\"@microsoft/fast-foundation\")."
9189
+ },
9190
+ {
9191
+ "kind": "Reference",
9192
+ "text": "FoundationElementRegistry",
9193
+ "canonicalReference": "@microsoft/fast-foundation!FoundationElementRegistry:class"
9194
+ },
9195
+ {
9196
+ "kind": "Content",
9197
+ "text": "<"
9198
+ },
9199
+ {
9200
+ "kind": "Reference",
9201
+ "text": "SearchOptions",
9202
+ "canonicalReference": "@microsoft/fast-foundation!SearchOptions:type"
9203
+ },
9204
+ {
9205
+ "kind": "Content",
9206
+ "text": ", import(\"@microsoft/fast-element\")."
9207
+ },
9208
+ {
9209
+ "kind": "Reference",
9210
+ "text": "Constructable",
9211
+ "canonicalReference": "@microsoft/fast-element!Constructable:type"
9212
+ },
9213
+ {
9214
+ "kind": "Content",
9215
+ "text": "<import(\"@microsoft/fast-foundation\")."
9216
+ },
9217
+ {
9218
+ "kind": "Reference",
9219
+ "text": "FoundationElement",
9220
+ "canonicalReference": "@microsoft/fast-foundation!FoundationElement:class"
9221
+ },
9222
+ {
9223
+ "kind": "Content",
9224
+ "text": ">>"
9225
+ }
9226
+ ],
9227
+ "releaseTag": "Public",
9228
+ "name": "fluentSearch",
9229
+ "variableTypeTokenRange": {
9230
+ "startIndex": 1,
9231
+ "endIndex": 14
9232
+ }
9233
+ },
9105
9234
  {
9106
9235
  "kind": "Variable",
9107
9236
  "canonicalReference": "@fluentui/web-components!fluentSelect:var",
@@ -10954,6 +11083,34 @@
10954
11083
  "endIndex": 4
10955
11084
  }
10956
11085
  },
11086
+ {
11087
+ "kind": "Class",
11088
+ "canonicalReference": "@fluentui/web-components!Listbox:class",
11089
+ "docComment": "",
11090
+ "excerptTokens": [
11091
+ {
11092
+ "kind": "Content",
11093
+ "text": "export declare class Listbox extends "
11094
+ },
11095
+ {
11096
+ "kind": "Reference",
11097
+ "text": "FoundationListboxElement",
11098
+ "canonicalReference": "@microsoft/fast-foundation!Listbox:class"
11099
+ },
11100
+ {
11101
+ "kind": "Content",
11102
+ "text": " "
11103
+ }
11104
+ ],
11105
+ "releaseTag": "Public",
11106
+ "name": "Listbox",
11107
+ "members": [],
11108
+ "extendsTokenRange": {
11109
+ "startIndex": 1,
11110
+ "endIndex": 3
11111
+ },
11112
+ "implementsTokenRanges": []
11113
+ },
10957
11114
  {
10958
11115
  "kind": "Variable",
10959
11116
  "canonicalReference": "@fluentui/web-components!listboxStyles:var",
@@ -17615,6 +17772,114 @@
17615
17772
  ],
17616
17773
  "extendsTokenRanges": []
17617
17774
  },
17775
+ {
17776
+ "kind": "TypeAlias",
17777
+ "canonicalReference": "@fluentui/web-components!SearchAppearance:type",
17778
+ "docComment": "/**\n * Search appearances\n *\n * @public\n */\n",
17779
+ "excerptTokens": [
17780
+ {
17781
+ "kind": "Content",
17782
+ "text": "export declare type SearchAppearance = "
17783
+ },
17784
+ {
17785
+ "kind": "Content",
17786
+ "text": "'filled' | 'outline'"
17787
+ },
17788
+ {
17789
+ "kind": "Content",
17790
+ "text": ";"
17791
+ }
17792
+ ],
17793
+ "releaseTag": "Public",
17794
+ "name": "SearchAppearance",
17795
+ "typeTokenRange": {
17796
+ "startIndex": 1,
17797
+ "endIndex": 2
17798
+ }
17799
+ },
17800
+ {
17801
+ "kind": "Variable",
17802
+ "canonicalReference": "@fluentui/web-components!searchStyles:var",
17803
+ "docComment": "/**\n * Styles for Search\n *\n * @public\n */\n",
17804
+ "excerptTokens": [
17805
+ {
17806
+ "kind": "Content",
17807
+ "text": "searchStyles: "
17808
+ },
17809
+ {
17810
+ "kind": "Content",
17811
+ "text": "(context: any, definition: any) => import(\"@microsoft/fast-element\")."
17812
+ },
17813
+ {
17814
+ "kind": "Reference",
17815
+ "text": "ElementStyles",
17816
+ "canonicalReference": "@microsoft/fast-element!ElementStyles:class"
17817
+ }
17818
+ ],
17819
+ "releaseTag": "Public",
17820
+ "name": "searchStyles",
17821
+ "variableTypeTokenRange": {
17822
+ "startIndex": 1,
17823
+ "endIndex": 3
17824
+ }
17825
+ },
17826
+ {
17827
+ "kind": "Variable",
17828
+ "canonicalReference": "@fluentui/web-components!searchTemplate:var",
17829
+ "docComment": "/**\n * @public\n */\n",
17830
+ "excerptTokens": [
17831
+ {
17832
+ "kind": "Content",
17833
+ "text": "searchTemplate: "
17834
+ },
17835
+ {
17836
+ "kind": "Content",
17837
+ "text": "(context: "
17838
+ },
17839
+ {
17840
+ "kind": "Reference",
17841
+ "text": "ElementDefinitionContext",
17842
+ "canonicalReference": "@microsoft/fast-foundation!ElementDefinitionContext:interface"
17843
+ },
17844
+ {
17845
+ "kind": "Content",
17846
+ "text": ", definition: "
17847
+ },
17848
+ {
17849
+ "kind": "Reference",
17850
+ "text": "SearchOptions",
17851
+ "canonicalReference": "@microsoft/fast-foundation!SearchOptions:type"
17852
+ },
17853
+ {
17854
+ "kind": "Content",
17855
+ "text": ") => "
17856
+ },
17857
+ {
17858
+ "kind": "Reference",
17859
+ "text": "ViewTemplate",
17860
+ "canonicalReference": "@microsoft/fast-element!ViewTemplate:class"
17861
+ },
17862
+ {
17863
+ "kind": "Content",
17864
+ "text": "<"
17865
+ },
17866
+ {
17867
+ "kind": "Reference",
17868
+ "text": "Search",
17869
+ "canonicalReference": "@microsoft/fast-foundation!Search:class"
17870
+ },
17871
+ {
17872
+ "kind": "Content",
17873
+ "text": ">"
17874
+ }
17875
+ ],
17876
+ "releaseTag": "Public",
17877
+ "name": "searchTemplate",
17878
+ "variableTypeTokenRange": {
17879
+ "startIndex": 1,
17880
+ "endIndex": 10
17881
+ }
17882
+ },
17618
17883
  {
17619
17884
  "kind": "TypeAlias",
17620
17885
  "canonicalReference": "@fluentui/web-components!SelectAppearance:type",
@@ -37,7 +37,7 @@ import { FoundationElementDefinition } from '@microsoft/fast-foundation';
37
37
  import { FoundationElementRegistry } from '@microsoft/fast-foundation';
38
38
  import { HorizontalScroll as HorizontalScroll_2 } from '@microsoft/fast-foundation';
39
39
  import { HorizontalScrollOptions } from '@microsoft/fast-foundation';
40
- import { Listbox } from '@microsoft/fast-foundation';
40
+ import { Listbox as Listbox_2 } from '@microsoft/fast-foundation';
41
41
  import { ListboxOption } from '@microsoft/fast-foundation';
42
42
  import { Menu as Menu_2 } from '@microsoft/fast-foundation';
43
43
  import { MenuItem } from '@microsoft/fast-foundation';
@@ -50,6 +50,8 @@ import { ProgressRingOptions } from '@microsoft/fast-foundation';
50
50
  import { Radio } from '@microsoft/fast-foundation';
51
51
  import { RadioGroup } from '@microsoft/fast-foundation';
52
52
  import { RadioOptions } from '@microsoft/fast-foundation';
53
+ import { Search as Search_2 } from '@microsoft/fast-foundation';
54
+ import { SearchOptions } from '@microsoft/fast-foundation';
53
55
  import { Select as Select_2 } from '@microsoft/fast-foundation';
54
56
  import { SelectOptions } from '@microsoft/fast-foundation';
55
57
  import { Skeleton } from '@microsoft/fast-foundation';
@@ -214,6 +216,7 @@ export declare const allComponents: {
214
216
  fluentProgressRing: (overrideDefinition?: OverrideFoundationElementDefinition<ProgressRingOptions> | undefined) => FoundationElementRegistry<ProgressRingOptions, Constructable<FoundationElement>>;
215
217
  fluentRadio: (overrideDefinition?: OverrideFoundationElementDefinition<RadioOptions> | undefined) => FoundationElementRegistry<RadioOptions, Constructable<FoundationElement>>;
216
218
  fluentRadioGroup: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, RadioGroup>;
219
+ fluentSearch: (overrideDefinition?: OverrideFoundationElementDefinition<SearchOptions> | undefined) => FoundationElementRegistry<SearchOptions, Constructable<FoundationElement>>;
217
220
  fluentSelect: (overrideDefinition?: OverrideFoundationElementDefinition<SelectOptions> | undefined) => FoundationElementRegistry<SelectOptions, Constructable<FoundationElement>>;
218
221
  fluentSkeleton: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, Skeleton>;
219
222
  fluentSlider: (overrideDefinition?: OverrideFoundationElementDefinition<SliderOptions> | undefined) => FoundationElementRegistry<SliderOptions, Constructable<FoundationElement>>;
@@ -1543,6 +1546,19 @@ export declare const fluentRadio: (overrideDefinition?: OverrideFoundationElemen
1543
1546
  */
1544
1547
  export declare const fluentRadioGroup: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, typeof RadioGroup>;
1545
1548
 
1549
+ /**
1550
+ * The Fluent Search Custom Element. Implements {@link @microsoft/fast-foundation#Search},
1551
+ * {@link @microsoft/fast-foundation#searchTemplate}
1552
+ *
1553
+ *
1554
+ * @public
1555
+ * @remarks
1556
+ * HTML Element: \<fluent-search\>
1557
+ *
1558
+ * {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus | delegatesFocus}
1559
+ */
1560
+ export declare const fluentSearch: (overrideDefinition?: OverrideFoundationElementDefinition<SearchOptions> | undefined) => FoundationElementRegistry<SearchOptions, Constructable<FoundationElement>>;
1561
+
1546
1562
  /**
1547
1563
  * The Fluent select Custom Element. Implements, {@link @microsoft/fast-foundation#Select}
1548
1564
  * {@link @microsoft/fast-foundation#selectTemplate}
@@ -1854,7 +1870,8 @@ export declare const layerCornerRadius: CSSDesignToken<number>;
1854
1870
  */
1855
1871
  export declare const LightweightButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector?: string, nonInteractivitySelector?: string) => ElementStyles;
1856
1872
 
1857
- export { Listbox }
1873
+ export declare class Listbox extends Listbox_2 {
1874
+ }
1858
1875
 
1859
1876
  /**
1860
1877
  * Styles for Listbox
@@ -2550,6 +2567,38 @@ declare interface RelativeLuminance {
2550
2567
  readonly relativeLuminance: number;
2551
2568
  }
2552
2569
 
2570
+ /**
2571
+ * The Fluent search class
2572
+ * @internal
2573
+ */
2574
+ export declare class Search extends Search_2 {
2575
+ /**
2576
+ * The appearance of the element.
2577
+ *
2578
+ * @public
2579
+ * @remarks
2580
+ * HTML Attribute: appearance
2581
+ */
2582
+ appearance: SearchAppearance;
2583
+ }
2584
+
2585
+ /**
2586
+ * Search appearances
2587
+ * @public
2588
+ */
2589
+ export declare type SearchAppearance = 'filled' | 'outline';
2590
+
2591
+ /**
2592
+ * Styles for Search
2593
+ * @public
2594
+ */
2595
+ export declare const searchStyles: (context: any, definition: any) => ElementStyles;
2596
+
2597
+ /**
2598
+ * @public
2599
+ */
2600
+ export declare const searchTemplate: (context: ElementDefinitionContext, definition: SearchOptions) => ViewTemplate<Search_2>;
2601
+
2553
2602
  /**
2554
2603
  * The Fluent select class
2555
2604
  * @internal