@fluentui/web-components 2.5.5 → 2.5.7
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 +46 -1
- package/CHANGELOG.md +20 -2
- package/dist/dts/combobox/combobox.stories.d.ts +5 -0
- package/dist/dts/custom-elements.d.ts +3 -35
- package/dist/dts/number-field/index.d.ts +1 -1
- package/dist/dts/number-field/number-field.styles.d.ts +1 -2
- package/dist/dts/search/index.d.ts +1 -1
- package/dist/dts/search/search.styles.d.ts +2 -3
- package/dist/dts/select/index.d.ts +1 -1
- package/dist/dts/select/select.styles.d.ts +11 -3
- package/dist/dts/styles/focus.d.ts +13 -0
- package/dist/dts/styles/index.d.ts +1 -0
- package/dist/dts/styles/patterns/button.styles.d.ts +12 -6
- package/dist/dts/styles/patterns/input.styles.d.ts +13 -5
- package/dist/dts/text-area/index.d.ts +2 -18
- package/dist/dts/text-area/text-area.stories.d.ts +1 -17
- package/dist/dts/text-area/text-area.styles.d.ts +1 -2
- package/dist/dts/text-field/index.d.ts +2 -18
- package/dist/dts/text-field/text-field.stories.d.ts +1 -17
- package/dist/dts/text-field/text-field.styles.d.ts +1 -2
- package/dist/esm/accordion/accordion-item/accordion-item.styles.js +8 -10
- package/dist/esm/anchor/anchor.styles.js +3 -10
- package/dist/esm/breadcrumb-item/breadcrumb-item.styles.js +6 -10
- package/dist/esm/button/button.styles.js +14 -39
- package/dist/esm/checkbox/checkbox.styles.js +4 -8
- package/dist/esm/combobox/combobox.stories.js +7 -2
- package/dist/esm/combobox/combobox.styles.js +22 -23
- package/dist/esm/data-grid/data-grid-cell.styles.js +6 -9
- package/dist/esm/flipper/flipper.styles.js +5 -6
- package/dist/esm/listbox/listbox.styles.js +3 -4
- package/dist/esm/listbox-option/listbox-option.styles.js +9 -6
- package/dist/esm/menu/menu.styles.js +1 -1
- package/dist/esm/menu-item/menu-item.styles.js +5 -9
- package/dist/esm/number-field/number-field.styles.js +5 -16
- package/dist/esm/progress/progress/progress.styles.js +0 -1
- package/dist/esm/progress/progress-ring/progress-ring.styles.js +0 -1
- package/dist/esm/radio/radio.styles.js +4 -9
- package/dist/esm/search/search.styles.js +8 -11
- package/dist/esm/select/select.stories.js +2 -2
- package/dist/esm/select/select.styles.js +37 -110
- package/dist/esm/styles/focus.js +21 -0
- package/dist/esm/styles/index.js +1 -0
- package/dist/esm/styles/patterns/button.styles.js +194 -161
- package/dist/esm/styles/patterns/input.styles.js +113 -102
- package/dist/esm/switch/switch.styles.js +5 -17
- package/dist/esm/tabs/tab/tab.styles.js +4 -6
- package/dist/esm/text-area/text-area.stories.js +2 -2
- package/dist/esm/text-area/text-area.styles.js +5 -11
- package/dist/esm/text-field/text-field.styles.js +5 -11
- package/dist/esm/toolbar/toolbar.styles.js +4 -3
- package/dist/esm/tree-item/tree-item.styles.js +4 -14
- package/dist/esm/tree-view/tree-view.styles.js +0 -4
- package/dist/fluent-web-components.api.json +179 -397
- package/dist/web-components.d.ts +54 -90
- package/dist/web-components.js +158 -132
- package/dist/web-components.min.js +137 -156
- package/docs/api-report.md +44 -99
- package/karma.conf.js +3 -8
- package/package.json +27 -40
package/docs/api-report.md
CHANGED
|
@@ -41,7 +41,6 @@ import { FlipperOptions } from '@microsoft/fast-foundation';
|
|
|
41
41
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
42
42
|
import { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
43
43
|
import { FoundationElementRegistry } from '@microsoft/fast-foundation';
|
|
44
|
-
import { FoundationElementTemplate } from '@microsoft/fast-foundation';
|
|
45
44
|
import { HorizontalScroll as HorizontalScroll_2 } from '@microsoft/fast-foundation';
|
|
46
45
|
import { HorizontalScrollOptions } from '@microsoft/fast-foundation';
|
|
47
46
|
import { Listbox as Listbox_2 } from '@microsoft/fast-foundation';
|
|
@@ -72,7 +71,6 @@ import { TabPanel } from '@microsoft/fast-foundation';
|
|
|
72
71
|
import { Tabs } from '@microsoft/fast-foundation';
|
|
73
72
|
import { TextArea as TextArea_2 } from '@microsoft/fast-foundation';
|
|
74
73
|
import { TextField as TextField_2 } from '@microsoft/fast-foundation';
|
|
75
|
-
import { TextFieldOptions } from '@microsoft/fast-foundation';
|
|
76
74
|
import { Toolbar as Toolbar_2 } from '@microsoft/fast-foundation';
|
|
77
75
|
import { Tooltip as Tooltip_2 } from '@microsoft/fast-foundation';
|
|
78
76
|
import { TreeItem } from '@microsoft/fast-foundation';
|
|
@@ -86,7 +84,7 @@ export const accentBaseColor: CSSDesignToken<Swatch>;
|
|
|
86
84
|
// Warning: (ae-internal-missing-underscore) The name "AccentButtonStyles" should be prefixed with an underscore because the declaration is marked as @internal
|
|
87
85
|
//
|
|
88
86
|
// @internal (undocumented)
|
|
89
|
-
export const AccentButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector
|
|
87
|
+
export const AccentButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector: string, nonInteractivitySelector?: string) => ElementStyles;
|
|
90
88
|
|
|
91
89
|
// @public (undocumented)
|
|
92
90
|
export const accentFillActive: CSSDesignToken<Swatch>;
|
|
@@ -224,40 +222,8 @@ export const allComponents: {
|
|
|
224
222
|
fluentTabs: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, typeof Tabs>;
|
|
225
223
|
fluentTab: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, Tab>;
|
|
226
224
|
fluentTabPanel: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, TabPanel>;
|
|
227
|
-
fluentTextArea: (overrideDefinition?: OverrideFoundationElementDefinition<
|
|
228
|
-
|
|
229
|
-
baseClass: typeof TextArea_2;
|
|
230
|
-
template: FoundationElementTemplate<ViewTemplate<TextArea_2, any>, FoundationElementDefinition>;
|
|
231
|
-
styles: (context: any, definition: any) => ElementStyles;
|
|
232
|
-
shadowOptions: {
|
|
233
|
-
delegatesFocus: true;
|
|
234
|
-
};
|
|
235
|
-
}> | undefined) => FoundationElementRegistry< {
|
|
236
|
-
baseName: string;
|
|
237
|
-
baseClass: typeof TextArea_2;
|
|
238
|
-
template: FoundationElementTemplate<ViewTemplate<TextArea_2, any>, FoundationElementDefinition>;
|
|
239
|
-
styles: (context: any, definition: any) => ElementStyles;
|
|
240
|
-
shadowOptions: {
|
|
241
|
-
delegatesFocus: true;
|
|
242
|
-
};
|
|
243
|
-
}, TextArea>;
|
|
244
|
-
fluentTextField: (overrideDefinition?: OverrideFoundationElementDefinition< {
|
|
245
|
-
baseName: string;
|
|
246
|
-
baseClass: typeof TextField_2;
|
|
247
|
-
template: FoundationElementTemplate<ViewTemplate<TextField_2, any>, TextFieldOptions>;
|
|
248
|
-
styles: (context: any, definition: any) => ElementStyles;
|
|
249
|
-
shadowOptions: {
|
|
250
|
-
delegatesFocus: true;
|
|
251
|
-
};
|
|
252
|
-
}> | undefined) => FoundationElementRegistry< {
|
|
253
|
-
baseName: string;
|
|
254
|
-
baseClass: typeof TextField_2;
|
|
255
|
-
template: FoundationElementTemplate<ViewTemplate<TextField_2, any>, TextFieldOptions>;
|
|
256
|
-
styles: (context: any, definition: any) => ElementStyles;
|
|
257
|
-
shadowOptions: {
|
|
258
|
-
delegatesFocus: true;
|
|
259
|
-
};
|
|
260
|
-
}, TextField>;
|
|
225
|
+
fluentTextArea: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, TextArea>;
|
|
226
|
+
fluentTextField: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, TextField>;
|
|
261
227
|
fluentToolbar: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, Toolbar>;
|
|
262
228
|
fluentTooltip: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, Tooltip>;
|
|
263
229
|
fluentTreeView: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, typeof TreeView>;
|
|
@@ -310,8 +276,8 @@ export const badgeStyles: (context: ElementDefinitionContext, definition: Founda
|
|
|
310
276
|
|
|
311
277
|
// Warning: (ae-internal-missing-underscore) The name "baseButtonStyles" should be prefixed with an underscore because the declaration is marked as @internal
|
|
312
278
|
//
|
|
313
|
-
// @internal
|
|
314
|
-
export const baseButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector
|
|
279
|
+
// @internal
|
|
280
|
+
export const baseButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector: string, nonInteractivitySelector?: string) => ElementStyles;
|
|
315
281
|
|
|
316
282
|
// @public (undocumented)
|
|
317
283
|
export const baseHeightMultiplier: CSSDesignToken<number>;
|
|
@@ -319,6 +285,11 @@ export const baseHeightMultiplier: CSSDesignToken<number>;
|
|
|
319
285
|
// @public (undocumented)
|
|
320
286
|
export const baseHorizontalSpacingMultiplier: CSSDesignToken<number>;
|
|
321
287
|
|
|
288
|
+
// Warning: (ae-internal-missing-underscore) The name "baseInputStyles" should be prefixed with an underscore because the declaration is marked as @internal
|
|
289
|
+
//
|
|
290
|
+
// @internal
|
|
291
|
+
export const baseInputStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, logicalControlSelector: string) => ElementStyles;
|
|
292
|
+
|
|
322
293
|
// @public (undocumented)
|
|
323
294
|
export const baseLayerLuminance: CSSDesignToken<number>;
|
|
324
295
|
|
|
@@ -716,44 +687,12 @@ export const fluentTabs: (overrideDefinition?: OverrideFoundationElementDefiniti
|
|
|
716
687
|
// Warning: (ae-incompatible-release-tags) The symbol "fluentTextArea" is marked as @public, but its signature references "TextArea" which is marked as @internal
|
|
717
688
|
//
|
|
718
689
|
// @public
|
|
719
|
-
export const fluentTextArea: (overrideDefinition?: OverrideFoundationElementDefinition<
|
|
720
|
-
baseName: string;
|
|
721
|
-
baseClass: typeof TextArea_2;
|
|
722
|
-
template: FoundationElementTemplate<ViewTemplate<TextArea_2, any>, FoundationElementDefinition>;
|
|
723
|
-
styles: (context: any, definition: any) => ElementStyles;
|
|
724
|
-
shadowOptions: {
|
|
725
|
-
delegatesFocus: true;
|
|
726
|
-
};
|
|
727
|
-
}> | undefined) => FoundationElementRegistry< {
|
|
728
|
-
baseName: string;
|
|
729
|
-
baseClass: typeof TextArea_2;
|
|
730
|
-
template: FoundationElementTemplate<ViewTemplate<TextArea_2, any>, FoundationElementDefinition>;
|
|
731
|
-
styles: (context: any, definition: any) => ElementStyles;
|
|
732
|
-
shadowOptions: {
|
|
733
|
-
delegatesFocus: true;
|
|
734
|
-
};
|
|
735
|
-
}, typeof TextArea>;
|
|
690
|
+
export const fluentTextArea: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, typeof TextArea>;
|
|
736
691
|
|
|
737
692
|
// Warning: (ae-incompatible-release-tags) The symbol "fluentTextField" is marked as @public, but its signature references "TextField" which is marked as @internal
|
|
738
693
|
//
|
|
739
694
|
// @public
|
|
740
|
-
export const fluentTextField: (overrideDefinition?: OverrideFoundationElementDefinition<
|
|
741
|
-
baseName: string;
|
|
742
|
-
baseClass: typeof TextField_2;
|
|
743
|
-
template: FoundationElementTemplate<ViewTemplate<TextField_2, any>, TextFieldOptions>;
|
|
744
|
-
styles: (context: any, definition: any) => ElementStyles;
|
|
745
|
-
shadowOptions: {
|
|
746
|
-
delegatesFocus: true;
|
|
747
|
-
};
|
|
748
|
-
}> | undefined) => FoundationElementRegistry< {
|
|
749
|
-
baseName: string;
|
|
750
|
-
baseClass: typeof TextField_2;
|
|
751
|
-
template: FoundationElementTemplate<ViewTemplate<TextField_2, any>, TextFieldOptions>;
|
|
752
|
-
styles: (context: any, definition: any) => ElementStyles;
|
|
753
|
-
shadowOptions: {
|
|
754
|
-
delegatesFocus: true;
|
|
755
|
-
};
|
|
756
|
-
}, typeof TextField>;
|
|
695
|
+
export const fluentTextField: (overrideDefinition?: OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => FoundationElementRegistry<FoundationElementDefinition, typeof TextField>;
|
|
757
696
|
|
|
758
697
|
// Warning: (ae-incompatible-release-tags) The symbol "fluentToolbar" is marked as @public, but its signature references "Toolbar" which is marked as @internal
|
|
759
698
|
//
|
|
@@ -789,6 +728,12 @@ export const focusStrokeOuterRecipe: DesignToken<ColorRecipe>;
|
|
|
789
728
|
// @public (undocumented)
|
|
790
729
|
export const focusStrokeWidth: CSSDesignToken<number>;
|
|
791
730
|
|
|
731
|
+
// @public
|
|
732
|
+
export const focusTreatmentBase: CSSDirective;
|
|
733
|
+
|
|
734
|
+
// @public
|
|
735
|
+
export const focusTreatmentTight: CSSDirective;
|
|
736
|
+
|
|
792
737
|
// @public (undocumented)
|
|
793
738
|
export const fontWeight: CSSDesignToken<number>;
|
|
794
739
|
|
|
@@ -839,32 +784,27 @@ export const horizontalScrollStyles: (context: ElementDefinitionContext, definit
|
|
|
839
784
|
// Warning: (ae-internal-missing-underscore) The name "HypertextStyles" should be prefixed with an underscore because the declaration is marked as @internal
|
|
840
785
|
//
|
|
841
786
|
// @internal (undocumented)
|
|
842
|
-
export const HypertextStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector
|
|
843
|
-
|
|
844
|
-
// Warning: (ae-internal-missing-underscore) The name "inputFilledForcedColorStyles" should be prefixed with an underscore because the declaration is marked as @internal
|
|
845
|
-
//
|
|
846
|
-
// @internal (undocumented)
|
|
847
|
-
export const inputFilledForcedColorStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, rootSelector: string) => ElementStyles;
|
|
787
|
+
export const HypertextStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector: string, nonInteractivitySelector?: string) => ElementStyles;
|
|
848
788
|
|
|
849
789
|
// Warning: (ae-internal-missing-underscore) The name "inputFilledStyles" should be prefixed with an underscore because the declaration is marked as @internal
|
|
850
790
|
//
|
|
851
|
-
// @internal
|
|
852
|
-
export const inputFilledStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition,
|
|
791
|
+
// @internal
|
|
792
|
+
export const inputFilledStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, logicalControlSelector: string, interactivitySelector?: string) => ElementStyles;
|
|
853
793
|
|
|
854
794
|
// Warning: (ae-internal-missing-underscore) The name "inputForcedColorStyles" should be prefixed with an underscore because the declaration is marked as @internal
|
|
855
795
|
//
|
|
856
796
|
// @internal (undocumented)
|
|
857
|
-
export const inputForcedColorStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition,
|
|
797
|
+
export const inputForcedColorStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, logicalControlSelector: string, interactivitySelector?: string) => ElementStyles;
|
|
858
798
|
|
|
859
|
-
// Warning: (ae-internal-missing-underscore) The name "
|
|
799
|
+
// Warning: (ae-internal-missing-underscore) The name "inputOutlineStyles" should be prefixed with an underscore because the declaration is marked as @internal
|
|
860
800
|
//
|
|
861
|
-
// @internal
|
|
862
|
-
export const
|
|
801
|
+
// @internal
|
|
802
|
+
export const inputOutlineStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, logicalControlSelector: string, interactivitySelector?: string) => ElementStyles;
|
|
863
803
|
|
|
864
|
-
// Warning: (ae-internal-missing-underscore) The name "
|
|
804
|
+
// Warning: (ae-internal-missing-underscore) The name "inputStateStyles" should be prefixed with an underscore because the declaration is marked as @internal
|
|
865
805
|
//
|
|
866
|
-
// @internal
|
|
867
|
-
export const
|
|
806
|
+
// @internal
|
|
807
|
+
export const inputStateStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, logicalControlSelector: string) => ElementStyles;
|
|
868
808
|
|
|
869
809
|
// @public (undocumented)
|
|
870
810
|
export interface InteractiveColorRecipe {
|
|
@@ -891,7 +831,7 @@ export const layerCornerRadius: CSSDesignToken<number>;
|
|
|
891
831
|
// Warning: (ae-internal-missing-underscore) The name "LightweightButtonStyles" should be prefixed with an underscore because the declaration is marked as @internal
|
|
892
832
|
//
|
|
893
833
|
// @internal (undocumented)
|
|
894
|
-
export const LightweightButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector
|
|
834
|
+
export const LightweightButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector: string, nonInteractivitySelector?: string) => ElementStyles;
|
|
895
835
|
|
|
896
836
|
// @public (undocumented)
|
|
897
837
|
export class Listbox extends Listbox_2 {
|
|
@@ -917,6 +857,11 @@ export const menuStyles: (context: ElementDefinitionContext, definition: Foundat
|
|
|
917
857
|
// @public (undocumented)
|
|
918
858
|
export const neutralBaseColor: CSSDesignToken<Swatch>;
|
|
919
859
|
|
|
860
|
+
// Warning: (ae-internal-missing-underscore) The name "NeutralButtonStyles" should be prefixed with an underscore because the declaration is marked as @internal
|
|
861
|
+
//
|
|
862
|
+
// @internal (undocumented)
|
|
863
|
+
export const NeutralButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector: string, nonInteractivitySelector?: string) => ElementStyles;
|
|
864
|
+
|
|
920
865
|
// @public @deprecated (undocumented)
|
|
921
866
|
export const neutralContrastFillActive: CSSDesignToken<Swatch>;
|
|
922
867
|
|
|
@@ -1423,7 +1368,7 @@ export class NumberField extends NumberField_2 {
|
|
|
1423
1368
|
export type NumberFieldAppearance = 'filled' | 'outline';
|
|
1424
1369
|
|
|
1425
1370
|
// @public
|
|
1426
|
-
export const numberFieldStyles: (context:
|
|
1371
|
+
export const numberFieldStyles: (context: ElementDefinitionContext, definition: NumberFieldOptions) => ElementStyles;
|
|
1427
1372
|
|
|
1428
1373
|
// @public
|
|
1429
1374
|
export const OptionStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementStyles;
|
|
@@ -1431,7 +1376,7 @@ export const OptionStyles: (context: ElementDefinitionContext, definition: Found
|
|
|
1431
1376
|
// Warning: (ae-internal-missing-underscore) The name "OutlineButtonStyles" should be prefixed with an underscore because the declaration is marked as @internal
|
|
1432
1377
|
//
|
|
1433
1378
|
// @internal (undocumented)
|
|
1434
|
-
export const OutlineButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector
|
|
1379
|
+
export const OutlineButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector: string, nonInteractivitySelector?: string) => ElementStyles;
|
|
1435
1380
|
|
|
1436
1381
|
// @public @deprecated (undocumented)
|
|
1437
1382
|
export const outlineWidth: CSSDesignToken<number>;
|
|
@@ -1502,7 +1447,7 @@ export class Search extends Search_2 {
|
|
|
1502
1447
|
export type SearchAppearance = 'filled' | 'outline';
|
|
1503
1448
|
|
|
1504
1449
|
// @public
|
|
1505
|
-
export const searchStyles: (context:
|
|
1450
|
+
export const searchStyles: (context: ElementDefinitionContext, definition: SearchOptions) => ElementStyles;
|
|
1506
1451
|
|
|
1507
1452
|
// @public (undocumented)
|
|
1508
1453
|
export const searchTemplate: (context: ElementDefinitionContext, definition: SearchOptions) => ViewTemplate<Search_2>;
|
|
@@ -1523,7 +1468,7 @@ export class Select extends Select_2 {
|
|
|
1523
1468
|
export type SelectAppearance = 'filled' | 'outline' | 'stealth';
|
|
1524
1469
|
|
|
1525
1470
|
// @public
|
|
1526
|
-
export const selectStyles: (context:
|
|
1471
|
+
export const selectStyles: (context: ElementDefinitionContext, definition: SelectOptions) => ElementStyles;
|
|
1527
1472
|
|
|
1528
1473
|
export { Skeleton }
|
|
1529
1474
|
|
|
@@ -1551,7 +1496,7 @@ export enum StandardLuminance {
|
|
|
1551
1496
|
// Warning: (ae-internal-missing-underscore) The name "StealthButtonStyles" should be prefixed with an underscore because the declaration is marked as @internal
|
|
1552
1497
|
//
|
|
1553
1498
|
// @internal (undocumented)
|
|
1554
|
-
export const StealthButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector
|
|
1499
|
+
export const StealthButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition, interactivitySelector: string, nonInteractivitySelector?: string) => ElementStyles;
|
|
1555
1500
|
|
|
1556
1501
|
// @public (undocumented)
|
|
1557
1502
|
export const strokeWidth: CSSDesignToken<number>;
|
|
@@ -1620,7 +1565,7 @@ export class TextArea extends TextArea_2 {
|
|
|
1620
1565
|
export type TextAreaAppearance = 'filled' | 'outline';
|
|
1621
1566
|
|
|
1622
1567
|
// @public
|
|
1623
|
-
export const textAreaStyles: (context:
|
|
1568
|
+
export const textAreaStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementStyles;
|
|
1624
1569
|
|
|
1625
1570
|
// Warning: (ae-internal-missing-underscore) The name "TextField" should be prefixed with an underscore because the declaration is marked as @internal
|
|
1626
1571
|
//
|
|
@@ -1638,7 +1583,7 @@ export class TextField extends TextField_2 {
|
|
|
1638
1583
|
export type TextFieldAppearance = 'filled' | 'outline';
|
|
1639
1584
|
|
|
1640
1585
|
// @public
|
|
1641
|
-
export const textFieldStyles: (context:
|
|
1586
|
+
export const textFieldStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementStyles;
|
|
1642
1587
|
|
|
1643
1588
|
// Warning: (ae-internal-missing-underscore) The name "Toolbar" should be prefixed with an underscore because the declaration is marked as @internal
|
|
1644
1589
|
//
|
|
@@ -1780,9 +1725,9 @@ export const typeRampPlus6LineHeight: CSSDesignToken<string>;
|
|
|
1780
1725
|
// dist/dts/custom-elements.d.ts:54:5 - (ae-incompatible-release-tags) The symbol "fluentBadge" is marked as @public, but its signature references "Badge" which is marked as @internal
|
|
1781
1726
|
// dist/dts/custom-elements.d.ts:57:5 - (ae-incompatible-release-tags) The symbol "fluentButton" is marked as @public, but its signature references "Button" which is marked as @internal
|
|
1782
1727
|
// dist/dts/custom-elements.d.ts:96:5 - (ae-incompatible-release-tags) The symbol "fluentTextArea" is marked as @public, but its signature references "TextArea" which is marked as @internal
|
|
1783
|
-
// dist/dts/custom-elements.d.ts:
|
|
1784
|
-
// dist/dts/custom-elements.d.ts:
|
|
1785
|
-
// dist/dts/custom-elements.d.ts:
|
|
1728
|
+
// dist/dts/custom-elements.d.ts:97:5 - (ae-incompatible-release-tags) The symbol "fluentTextField" is marked as @public, but its signature references "TextField" which is marked as @internal
|
|
1729
|
+
// dist/dts/custom-elements.d.ts:98:5 - (ae-incompatible-release-tags) The symbol "fluentToolbar" is marked as @public, but its signature references "Toolbar" which is marked as @internal
|
|
1730
|
+
// dist/dts/custom-elements.d.ts:99:5 - (ae-incompatible-release-tags) The symbol "fluentTooltip" is marked as @public, but its signature references "Tooltip" which is marked as @internal
|
|
1786
1731
|
|
|
1787
1732
|
// (No @packageDocumentation comment for this package)
|
|
1788
1733
|
|
package/karma.conf.js
CHANGED
|
@@ -33,7 +33,7 @@ module.exports = function (config) {
|
|
|
33
33
|
basePath,
|
|
34
34
|
browserDisconnectTimeout: 10000,
|
|
35
35
|
processKillTimeout: 10000,
|
|
36
|
-
frameworks: ['source-map-support', 'mocha'],
|
|
36
|
+
frameworks: ['source-map-support', 'mocha', 'webpack'],
|
|
37
37
|
plugins: [
|
|
38
38
|
require('karma-mocha'),
|
|
39
39
|
require('karma-mocha-reporter'),
|
|
@@ -65,19 +65,16 @@ module.exports = function (config) {
|
|
|
65
65
|
hints: false,
|
|
66
66
|
},
|
|
67
67
|
optimization: {
|
|
68
|
-
namedModules: false,
|
|
69
|
-
namedChunks: false,
|
|
70
68
|
nodeEnv: false,
|
|
71
69
|
usedExports: true,
|
|
72
70
|
flagIncludedChunks: false,
|
|
73
|
-
occurrenceOrder: false,
|
|
74
71
|
sideEffects: true,
|
|
75
72
|
concatenateModules: true,
|
|
76
73
|
splitChunks: {
|
|
77
74
|
name: false,
|
|
78
75
|
},
|
|
79
76
|
runtimeChunk: false,
|
|
80
|
-
|
|
77
|
+
emitOnErrors: true,
|
|
81
78
|
checkWasmTypes: false,
|
|
82
79
|
minimize: false,
|
|
83
80
|
},
|
|
@@ -89,12 +86,10 @@ module.exports = function (config) {
|
|
|
89
86
|
},
|
|
90
87
|
{
|
|
91
88
|
test: /\.js$/,
|
|
89
|
+
enforce: 'pre',
|
|
92
90
|
use: [
|
|
93
91
|
{
|
|
94
92
|
loader: 'source-map-loader',
|
|
95
|
-
options: {
|
|
96
|
-
enforce: 'pre',
|
|
97
|
-
},
|
|
98
93
|
},
|
|
99
94
|
],
|
|
100
95
|
},
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@fluentui/web-components",
|
|
3
3
|
"description": "A library of Fluent Web Components",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "2.5.
|
|
5
|
+
"version": "2.5.7",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Microsoft",
|
|
8
8
|
"url": "https://discord.gg/FcSNfg4"
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"clean": "node ./build/clean.js dist",
|
|
23
23
|
"doc": "api-extractor run --local",
|
|
24
24
|
"doc:ci": "api-extractor run --local",
|
|
25
|
-
"build": "tsc -p ./tsconfig.json && rollup -c &&
|
|
25
|
+
"build": "tsc -p ./tsconfig.json && rollup -c && yarn doc",
|
|
26
26
|
"dev": "tsc -p ./tsconfig.json -w",
|
|
27
|
-
"tdd": "
|
|
27
|
+
"tdd": "yarn dev & yarn test-chrome:watch",
|
|
28
28
|
"prepare": "yarn clean && yarn build",
|
|
29
29
|
"lint": "eslint . --ext .ts",
|
|
30
30
|
"lint:fix": "eslint . --ext .ts --fix",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"code-style": "
|
|
31
|
+
"format": "prettier -w 'src/**/(*.ts|*.html)' --ignore-path ../../.prettierignore",
|
|
32
|
+
"format:check": "yarn format -c",
|
|
33
|
+
"code-style": "yarn format:check && yarn lint",
|
|
34
34
|
"start": "yarn start-storybook -p 6006 --docs",
|
|
35
|
-
"start-storybook": "node node_modules/@storybook/html/bin/index
|
|
36
|
-
"build-storybook": "node node_modules/@storybook/html/bin/build
|
|
35
|
+
"start-storybook": "node node_modules/@storybook/html/bin/index",
|
|
36
|
+
"build-storybook": "node node_modules/@storybook/html/bin/build -o ./dist/storybook --docs",
|
|
37
37
|
"test": "yarn doc:ci && yarn test-chrome:verbose",
|
|
38
38
|
"test-node": "mocha --reporter min --exit dist/esm/__test__/setup-node.js './dist/esm/**/*.spec.js'",
|
|
39
39
|
"test-node:verbose": "mocha --reporter spec --exit dist/esm/__test__/setup-node.js './dist/esm/**/*.spec.js'",
|
|
@@ -48,41 +48,28 @@
|
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@storybook/html": "6.5.5",
|
|
51
|
-
"@types/chai": "
|
|
52
|
-
"@types/chai-spies": "
|
|
53
|
-
"@types/karma": "
|
|
54
|
-
"@types/mocha": "
|
|
55
|
-
"chai": "
|
|
51
|
+
"@types/chai": "4.3.3",
|
|
52
|
+
"@types/chai-spies": "1.0.3",
|
|
53
|
+
"@types/karma": "6.3.3",
|
|
54
|
+
"@types/mocha": "7.0.2",
|
|
55
|
+
"chai": "4.3.6",
|
|
56
56
|
"chai-spies": "1.0.0",
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"istanbul": "^0.4.5",
|
|
62
|
-
"istanbul-instrumenter-loader": "^3.0.1",
|
|
57
|
+
"esm": "3.2.25",
|
|
58
|
+
"ignore-loader": "0.1.2",
|
|
59
|
+
"istanbul": "0.4.5",
|
|
60
|
+
"istanbul-instrumenter-loader": "3.0.1",
|
|
63
61
|
"jsdom-global": "3.0.2",
|
|
64
|
-
"karma": "
|
|
65
|
-
"karma-chrome-launcher": "
|
|
66
|
-
"karma-coverage": "
|
|
67
|
-
"karma-coverage-istanbul-reporter": "
|
|
62
|
+
"karma": "6.4.0",
|
|
63
|
+
"karma-chrome-launcher": "3.1.1",
|
|
64
|
+
"karma-coverage": "2.2.0",
|
|
65
|
+
"karma-coverage-istanbul-reporter": "3.0.3",
|
|
68
66
|
"karma-firefox-launcher": "^1.3.0",
|
|
69
|
-
"karma-mocha": "
|
|
70
|
-
"karma-mocha-reporter": "
|
|
71
|
-
"karma-source-map-support": "
|
|
72
|
-
"karma-sourcemap-loader": "
|
|
73
|
-
"karma-webpack": "
|
|
74
|
-
"mocha": "
|
|
75
|
-
"rollup": "^2.41.0",
|
|
76
|
-
"rollup-plugin-commonjs": "^10.1.0",
|
|
77
|
-
"rollup-plugin-filesize": "^8.0.2",
|
|
78
|
-
"rollup-plugin-node-resolve": "^5.2.0",
|
|
79
|
-
"rollup-plugin-terser": "^5.3.0",
|
|
80
|
-
"rollup-plugin-transform-tagged-template": "^0.0.3",
|
|
81
|
-
"rollup-plugin-typescript2": "^0.27.0",
|
|
82
|
-
"source-map": "^0.7.3",
|
|
83
|
-
"source-map-loader": "^0.2.4",
|
|
84
|
-
"ts-loader": "^7.0.2",
|
|
85
|
-
"webpack": "^4.43.0"
|
|
67
|
+
"karma-mocha": "2.0.1",
|
|
68
|
+
"karma-mocha-reporter": "2.2.5",
|
|
69
|
+
"karma-source-map-support": "1.4.0",
|
|
70
|
+
"karma-sourcemap-loader": "0.3.8",
|
|
71
|
+
"karma-webpack": "5.0.0",
|
|
72
|
+
"mocha": "7.2.0"
|
|
86
73
|
},
|
|
87
74
|
"dependencies": {
|
|
88
75
|
"@microsoft/fast-colors": "^5.3.0",
|