@fluentui/web-components 3.0.0-alpha.5 → 3.0.0-alpha.6
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/switch/define.d.ts +1 -0
- package/dist/dts/switch/index.d.ts +5 -0
- package/dist/dts/switch/switch.d.ts +13 -0
- package/dist/dts/switch/switch.definition.d.ts +9 -0
- package/dist/dts/switch/switch.options.d.ts +15 -0
- package/dist/dts/switch/switch.styles.d.ts +1 -0
- package/dist/dts/switch/switch.template.d.ts +3 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/switch/define.js +4 -0
- package/dist/esm/switch/define.js.map +1 -0
- package/dist/esm/switch/index.js +6 -0
- package/dist/esm/switch/index.js.map +1 -0
- package/dist/esm/switch/switch.definition.js +17 -0
- package/dist/esm/switch/switch.definition.js.map +1 -0
- package/dist/esm/switch/switch.js +9 -0
- package/dist/esm/switch/switch.js.map +1 -0
- package/dist/esm/switch/switch.options.js +10 -0
- package/dist/esm/switch/switch.options.js.map +1 -0
- package/dist/esm/switch/switch.styles.js +114 -0
- package/dist/esm/switch/switch.styles.js.map +1 -0
- package/dist/esm/switch/switch.template.js +5 -0
- package/dist/esm/switch/switch.template.js.map +1 -0
- package/dist/fluent-web-components.api.json +228 -0
- package/dist/web-components.d.ts +42 -0
- package/dist/web-components.js +620 -29
- package/dist/web-components.min.js +118 -115
- package/docs/api-report.md +25 -0
- package/package.json +5 -1
package/docs/api-report.md
CHANGED
|
@@ -13,6 +13,7 @@ import { FASTElement } from '@microsoft/fast-element';
|
|
|
13
13
|
import { FASTElementDefinition } from '@microsoft/fast-element';
|
|
14
14
|
import { FASTProgress } from '@microsoft/fast-foundation';
|
|
15
15
|
import { FASTProgressRing } from '@microsoft/fast-foundation';
|
|
16
|
+
import { FASTSwitch } from '@microsoft/fast-foundation';
|
|
16
17
|
import { StartEnd } from '@microsoft/fast-foundation';
|
|
17
18
|
import { StartEndOptions } from '@microsoft/fast-foundation';
|
|
18
19
|
import { StaticallyComposableHTML } from '@microsoft/fast-foundation';
|
|
@@ -1161,6 +1162,9 @@ export const curveEasyEaseMax: CSSDesignToken<string>;
|
|
|
1161
1162
|
// @public (undocumented)
|
|
1162
1163
|
export const curveLinear: CSSDesignToken<string>;
|
|
1163
1164
|
|
|
1165
|
+
// @public
|
|
1166
|
+
export const definition: FASTElementDefinition<typeof Switch>;
|
|
1167
|
+
|
|
1164
1168
|
// @public (undocumented)
|
|
1165
1169
|
export const durationFast: CSSDesignToken<string>;
|
|
1166
1170
|
|
|
@@ -1463,6 +1467,27 @@ export const strokeWidthThickest: CSSDesignToken<string>;
|
|
|
1463
1467
|
// @public (undocumented)
|
|
1464
1468
|
export const strokeWidthThin: CSSDesignToken<string>;
|
|
1465
1469
|
|
|
1470
|
+
// @public (undocumented)
|
|
1471
|
+
export class Switch extends FASTSwitch {
|
|
1472
|
+
labelPosition: SwitchLabelPosition | undefined;
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
// @public
|
|
1476
|
+
export const SwitchLabelPosition: {
|
|
1477
|
+
readonly above: "above";
|
|
1478
|
+
readonly after: "after";
|
|
1479
|
+
readonly before: "before";
|
|
1480
|
+
};
|
|
1481
|
+
|
|
1482
|
+
// @public
|
|
1483
|
+
export type SwitchLabelPosition = ValuesOf<typeof SwitchLabelPosition>;
|
|
1484
|
+
|
|
1485
|
+
// @public (undocumented)
|
|
1486
|
+
export const switchStyles: ElementStyles;
|
|
1487
|
+
|
|
1488
|
+
// @public (undocumented)
|
|
1489
|
+
export const switchTemplate: ElementViewTemplate<Switch>;
|
|
1490
|
+
|
|
1466
1491
|
// @public
|
|
1467
1492
|
class Text_2 extends FASTElement {
|
|
1468
1493
|
align: TextAlign;
|
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": "3.0.0-alpha.
|
|
5
|
+
"version": "3.0.0-alpha.6",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Microsoft",
|
|
8
8
|
"url": "https://discord.gg/FcSNfg4"
|
|
@@ -48,6 +48,10 @@
|
|
|
48
48
|
"types": "./dist/esm/progress-bar/define.d.ts",
|
|
49
49
|
"default": "./dist/esm/progress-bar/define.js"
|
|
50
50
|
},
|
|
51
|
+
"./switch": {
|
|
52
|
+
"types": "./dist/esm/switch/define.d.ts",
|
|
53
|
+
"default": "./dist/esm/switch/define.js"
|
|
54
|
+
},
|
|
51
55
|
"./spinner": {
|
|
52
56
|
"types": "./dist/esm/spinner/define.d.ts",
|
|
53
57
|
"default": "./dist/esm/spinner/define.js"
|