@fluentui/web-components 1.5.6 → 1.6.3
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 +114 -2
- package/CHANGELOG.md +44 -3
- package/dist/dts/design-tokens.d.ts +176 -176
- package/dist/dts/number-field/number-field.stories.d.ts +1 -0
- package/dist/dts/progress/progress/index.d.ts +7 -6
- package/dist/dts/progress/progress/progress.stories.d.ts +2 -0
- package/dist/dts/progress/progress-ring/index.d.ts +7 -6
- package/dist/dts/progress/progress-ring/progress-ring.stories.d.ts +2 -0
- package/dist/dts/styles/elevation.d.ts +3 -0
- package/dist/dts/text-area/text-area.stories.d.ts +1 -0
- package/dist/dts/text-field/text-field.stories.d.ts +1 -1
- package/dist/dts/utilities/math.d.ts +4 -0
- package/dist/esm/anchor/anchor.stories.js +4 -3
- package/dist/esm/anchored-region/anchored-region.stories.js +3 -3
- package/dist/esm/badge/badge.stories.js +2 -2
- package/dist/esm/breadcrumb-item/breadcrumb-item.styles.js +5 -5
- package/dist/esm/card/card.stories.js +1 -1
- package/dist/esm/checkbox/checkbox.stories.js +2 -2
- package/dist/esm/combobox/combobox.stories.js +5 -0
- package/dist/esm/data-grid/data-grid.stories.js +3 -3
- package/dist/esm/design-tokens.js +218 -211
- package/dist/esm/number-field/number-field.stories.js +2 -1
- package/dist/esm/progress/progress/index.js +7 -6
- package/dist/esm/progress/progress/progress.stories.js +32 -4
- package/dist/esm/progress/progress-ring/index.js +7 -6
- package/dist/esm/progress/progress-ring/progress-ring.stories.js +35 -5
- package/dist/esm/radio-group/radio-group.stories.js +5 -3
- package/dist/esm/slider/slider.stories.js +8 -3
- package/dist/esm/styles/elevation.js +3 -0
- package/dist/esm/switch/switch.stories.js +10 -2
- package/dist/esm/tabs/tabs.stories.js +2 -2
- package/dist/esm/text-area/text-area.stories.js +3 -2
- package/dist/esm/text-field/text-field.stories.js +3 -3
- package/dist/esm/tree-view/tree-view.stories.js +30 -8
- package/dist/esm/utilities/math.js +4 -0
- package/dist/fluent-web-components.api.json +67 -11
- package/dist/web-components.d.ts +27 -13
- package/dist/web-components.js +3908 -4800
- package/dist/web-components.min.js +127 -127
- package/docs/api-report.md +21 -16
- package/package.json +7 -7
- package/public/switches.ts +1 -1
package/docs/api-report.md
CHANGED
|
@@ -210,7 +210,7 @@ export const allComponents: {
|
|
|
210
210
|
|
|
211
211
|
// Warning: (ae-internal-missing-underscore) The name "ambientShadow" should be prefixed with an underscore because the declaration is marked as @internal
|
|
212
212
|
//
|
|
213
|
-
// @internal
|
|
213
|
+
// @internal @deprecated
|
|
214
214
|
export const ambientShadow = "0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(.11 * (2 - var(--background-luminance, 1))))";
|
|
215
215
|
|
|
216
216
|
// Warning: (ae-internal-missing-underscore) The name "Anchor" should be prefixed with an underscore because the declaration is marked as @internal
|
|
@@ -265,9 +265,6 @@ export const baseHorizontalSpacingMultiplier: CSSDesignToken<number>;
|
|
|
265
265
|
// @public (undocumented)
|
|
266
266
|
export const baseLayerLuminance: CSSDesignToken<number>;
|
|
267
267
|
|
|
268
|
-
export { BaseProgress as Progress }
|
|
269
|
-
export { BaseProgress as ProgressRing }
|
|
270
|
-
|
|
271
268
|
// @public (undocumented)
|
|
272
269
|
export const bodyFont: CSSDesignToken<string>;
|
|
273
270
|
|
|
@@ -442,7 +439,7 @@ export const direction: CSSDesignToken<Direction>;
|
|
|
442
439
|
|
|
443
440
|
// Warning: (ae-internal-missing-underscore) The name "directionalShadow" should be prefixed with an underscore because the declaration is marked as @internal
|
|
444
441
|
//
|
|
445
|
-
// @internal (undocumented)
|
|
442
|
+
// @internal @deprecated (undocumented)
|
|
446
443
|
export const directionalShadow = "0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(.13 * (2 - var(--background-luminance, 1))))";
|
|
447
444
|
|
|
448
445
|
// @public
|
|
@@ -465,7 +462,7 @@ export const dividerStyles: (context: ElementDefinitionContext, definition: Foun
|
|
|
465
462
|
// @public @deprecated (undocumented)
|
|
466
463
|
export const elevatedCornerRadius: CSSDesignToken<number>;
|
|
467
464
|
|
|
468
|
-
// @public
|
|
465
|
+
// @public @deprecated
|
|
469
466
|
export const elevation: string;
|
|
470
467
|
|
|
471
468
|
// @public (undocumented)
|
|
@@ -650,22 +647,22 @@ export const focusStrokeWidth: CSSDesignToken<number>;
|
|
|
650
647
|
// @public (undocumented)
|
|
651
648
|
export const foregroundOnAccentActive: CSSDesignToken<Swatch>;
|
|
652
649
|
|
|
653
|
-
// @public (undocumented)
|
|
650
|
+
// @public @deprecated (undocumented)
|
|
654
651
|
export const foregroundOnAccentActiveLarge: CSSDesignToken<Swatch>;
|
|
655
652
|
|
|
656
653
|
// @public (undocumented)
|
|
657
654
|
export const foregroundOnAccentFocus: CSSDesignToken<Swatch>;
|
|
658
655
|
|
|
659
|
-
// @public (undocumented)
|
|
656
|
+
// @public @deprecated (undocumented)
|
|
660
657
|
export const foregroundOnAccentFocusLarge: CSSDesignToken<Swatch>;
|
|
661
658
|
|
|
662
659
|
// @public (undocumented)
|
|
663
660
|
export const foregroundOnAccentHover: CSSDesignToken<Swatch>;
|
|
664
661
|
|
|
665
|
-
// @public (undocumented)
|
|
662
|
+
// @public @deprecated (undocumented)
|
|
666
663
|
export const foregroundOnAccentHoverLarge: CSSDesignToken<Swatch>;
|
|
667
664
|
|
|
668
|
-
// @public (undocumented)
|
|
665
|
+
// @public @deprecated (undocumented)
|
|
669
666
|
export const foregroundOnAccentLargeRecipe: DesignToken<ColorRecipe>;
|
|
670
667
|
|
|
671
668
|
// @public (undocumented)
|
|
@@ -674,7 +671,7 @@ export const foregroundOnAccentRecipe: DesignToken<ColorRecipe>;
|
|
|
674
671
|
// @public (undocumented)
|
|
675
672
|
export const foregroundOnAccentRest: CSSDesignToken<Swatch>;
|
|
676
673
|
|
|
677
|
-
// @public (undocumented)
|
|
674
|
+
// @public @deprecated (undocumented)
|
|
678
675
|
export const foregroundOnAccentRestLarge: CSSDesignToken<Swatch>;
|
|
679
676
|
|
|
680
677
|
// @public
|
|
@@ -816,28 +813,28 @@ export const neutralFillInputRest: CSSDesignToken<Swatch>;
|
|
|
816
813
|
// @public (undocumented)
|
|
817
814
|
export const neutralFillInputRestDelta: CSSDesignToken<number>;
|
|
818
815
|
|
|
819
|
-
// @public (undocumented)
|
|
816
|
+
// @public @deprecated (undocumented)
|
|
820
817
|
export const neutralFillInverseActive: CSSDesignToken<Swatch>;
|
|
821
818
|
|
|
822
819
|
// @public (undocumented)
|
|
823
820
|
export const neutralFillInverseActiveDelta: CSSDesignToken<number>;
|
|
824
821
|
|
|
825
|
-
// @public (undocumented)
|
|
822
|
+
// @public @deprecated (undocumented)
|
|
826
823
|
export const neutralFillInverseFocus: CSSDesignToken<Swatch>;
|
|
827
824
|
|
|
828
825
|
// @public (undocumented)
|
|
829
826
|
export const neutralFillInverseFocusDelta: CSSDesignToken<number>;
|
|
830
827
|
|
|
831
|
-
// @public (undocumented)
|
|
828
|
+
// @public @deprecated (undocumented)
|
|
832
829
|
export const neutralFillInverseHover: CSSDesignToken<Swatch>;
|
|
833
830
|
|
|
834
831
|
// @public (undocumented)
|
|
835
832
|
export const neutralFillInverseHoverDelta: CSSDesignToken<number>;
|
|
836
833
|
|
|
837
|
-
// @public (undocumented)
|
|
834
|
+
// @public @deprecated (undocumented)
|
|
838
835
|
export const neutralFillInverseRecipe: DesignToken<InteractiveColorRecipe>;
|
|
839
836
|
|
|
840
|
-
// @public (undocumented)
|
|
837
|
+
// @public @deprecated (undocumented)
|
|
841
838
|
export const neutralFillInverseRest: CSSDesignToken<Swatch>;
|
|
842
839
|
|
|
843
840
|
// @public (undocumented)
|
|
@@ -1127,6 +1124,14 @@ export const PaletteRGB: Readonly<{
|
|
|
1127
1124
|
create(source: SwatchRGB): PaletteRGB;
|
|
1128
1125
|
}>;
|
|
1129
1126
|
|
|
1127
|
+
// @public
|
|
1128
|
+
export class Progress extends BaseProgress {
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
// @public
|
|
1132
|
+
export class ProgressRing extends BaseProgress {
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1130
1135
|
// @public
|
|
1131
1136
|
export const progressRingStyles: (context: ElementDefinitionContext, definition: ProgressRingOptions) => ElementStyles;
|
|
1132
1137
|
|
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": "1.
|
|
5
|
+
"version": "1.6.3",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Microsoft",
|
|
8
8
|
"url": "https://discord.gg/FcSNfg4"
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"prettier:diff": "prettier --config ../../prettier.config.js 'src/**/(*.ts|*.html)' --ignore-path ../../.prettierignore --list-different",
|
|
36
36
|
"code-style": "npm run prettier && npm run lint",
|
|
37
37
|
"start": "yarn start-storybook -p 6006 -s ./public --docs",
|
|
38
|
-
"start-storybook": "node
|
|
39
|
-
"build-storybook": "node
|
|
38
|
+
"start-storybook": "node node_modules/@storybook/html/bin/index.js",
|
|
39
|
+
"build-storybook": "node node_modules/@storybook/html/bin/build.js -o ./dist/storybook --docs -s ./public",
|
|
40
40
|
"test": "yarn doc:ci && yarn test-chrome:verbose",
|
|
41
41
|
"test-node": "mocha --reporter min --exit dist/esm/__test__/setup-node.js './dist/esm/**/*.spec.js'",
|
|
42
42
|
"test-node:verbose": "mocha --reporter spec --exit dist/esm/__test__/setup-node.js './dist/esm/**/*.spec.js'",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"test-firefox:verbose": "karma start karma.conf.js --browsers=FirefoxHeadless --single-run --coverage --reporter=mocha"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
+
"@storybook/html": "6.3.6",
|
|
53
54
|
"@types/chai": "^4.2.11",
|
|
54
55
|
"@types/chai-spies": "^1.0.1",
|
|
55
56
|
"@types/karma": "^5.0.0",
|
|
@@ -74,7 +75,6 @@
|
|
|
74
75
|
"karma-source-map-support": "^1.4.0",
|
|
75
76
|
"karma-sourcemap-loader": "^0.3.7",
|
|
76
77
|
"karma-webpack": "^4.0.2",
|
|
77
|
-
"lodash-es": "^4.17.20",
|
|
78
78
|
"mocha": "^7.1.2",
|
|
79
79
|
"rollup": "^2.41.0",
|
|
80
80
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
@@ -91,9 +91,9 @@
|
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
93
|
"@microsoft/fast-colors": "^5.1.0",
|
|
94
|
-
"@microsoft/fast-element": "^1.
|
|
95
|
-
"@microsoft/fast-foundation": "^2.
|
|
96
|
-
"
|
|
94
|
+
"@microsoft/fast-element": "^1.6.0",
|
|
95
|
+
"@microsoft/fast-foundation": "^2.23.0",
|
|
96
|
+
"@microsoft/fast-web-utilities": "^5.0.0",
|
|
97
97
|
"tslib": "^1.13.0"
|
|
98
98
|
}
|
|
99
99
|
}
|
package/public/switches.ts
CHANGED
|
@@ -16,7 +16,7 @@ export function toggleBgMode() {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export function toggleLtr() {
|
|
19
|
-
const ltrChecked = document.getElementById('
|
|
19
|
+
const ltrChecked = document.getElementById('direction-switch')!.classList.contains('checked');
|
|
20
20
|
if (ltrChecked) {
|
|
21
21
|
document.querySelector<HTMLElement>('.docs-story')!.setAttribute('style', 'direction:ltr;');
|
|
22
22
|
} else {
|