@fluentui/web-components 3.0.0-alpha.16 → 3.0.0-alpha.18
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 +58 -1
- package/CHANGELOG.md +22 -2
- package/dist/dts/anchor-button/anchor-button.d.ts +64 -0
- package/dist/dts/anchor-button/anchor-button.definition.d.ts +10 -0
- package/dist/dts/anchor-button/anchor-button.options.d.ts +46 -0
- package/dist/dts/anchor-button/anchor-button.styles.d.ts +1 -0
- package/dist/dts/anchor-button/anchor-button.template.d.ts +7 -0
- package/dist/dts/anchor-button/define.d.ts +1 -0
- package/dist/dts/anchor-button/index.d.ts +4 -0
- package/dist/dts/compound-button/compound-button.d.ts +7 -0
- package/dist/dts/compound-button/compound-button.definition.d.ts +10 -0
- package/dist/dts/compound-button/compound-button.options.d.ts +50 -0
- package/dist/dts/compound-button/compound-button.styles.d.ts +1 -0
- package/dist/dts/compound-button/compound-button.template.d.ts +13 -0
- package/dist/dts/compound-button/define.d.ts +1 -0
- package/dist/dts/compound-button/index.d.ts +5 -0
- package/dist/dts/index.d.ts +3 -0
- package/dist/dts/toggle-button/define.d.ts +1 -0
- package/dist/dts/toggle-button/index.d.ts +5 -0
- package/dist/dts/toggle-button/toggle-button.d.ts +48 -0
- package/dist/dts/toggle-button/toggle-button.definition.d.ts +10 -0
- package/dist/dts/toggle-button/toggle-button.options.d.ts +46 -0
- package/dist/dts/toggle-button/toggle-button.styles.d.ts +1 -0
- package/dist/dts/toggle-button/toggle-button.template.d.ts +7 -0
- package/dist/esm/anchor-button/anchor-button.definition.js +21 -0
- package/dist/esm/anchor-button/anchor-button.definition.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.js +93 -0
- package/dist/esm/anchor-button/anchor-button.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.options.js +17 -0
- package/dist/esm/anchor-button/anchor-button.options.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.styles.js +11 -0
- package/dist/esm/anchor-button/anchor-button.styles.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.template.js +7 -0
- package/dist/esm/anchor-button/anchor-button.template.js.map +1 -0
- package/dist/esm/anchor-button/define.js +4 -0
- package/dist/esm/anchor-button/define.js.map +1 -0
- package/dist/esm/anchor-button/index.js +5 -0
- package/dist/esm/anchor-button/index.js.map +1 -0
- package/dist/esm/button/button.styles.js +1 -0
- package/dist/esm/button/button.styles.js.map +1 -1
- package/dist/esm/compound-button/compound-button.definition.js +21 -0
- package/dist/esm/compound-button/compound-button.definition.js.map +1 -0
- package/dist/esm/compound-button/compound-button.js +8 -0
- package/dist/esm/compound-button/compound-button.js.map +1 -0
- package/dist/esm/compound-button/compound-button.options.js +17 -0
- package/dist/esm/compound-button/compound-button.options.js.map +1 -0
- package/dist/esm/compound-button/compound-button.styles.js +105 -0
- package/dist/esm/compound-button/compound-button.styles.js.map +1 -0
- package/dist/esm/compound-button/compound-button.template.js +60 -0
- package/dist/esm/compound-button/compound-button.template.js.map +1 -0
- package/dist/esm/compound-button/define.js +4 -0
- package/dist/esm/compound-button/define.js.map +1 -0
- package/dist/esm/compound-button/index.js +6 -0
- package/dist/esm/compound-button/index.js.map +1 -0
- package/dist/esm/image/image.styles.js +4 -1
- package/dist/esm/image/image.styles.js.map +1 -1
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/toggle-button/define.js +4 -0
- package/dist/esm/toggle-button/define.js.map +1 -0
- package/dist/esm/toggle-button/index.js +6 -0
- package/dist/esm/toggle-button/index.js.map +1 -0
- package/dist/esm/toggle-button/toggle-button.definition.js +21 -0
- package/dist/esm/toggle-button/toggle-button.definition.js.map +1 -0
- package/dist/esm/toggle-button/toggle-button.js +99 -0
- package/dist/esm/toggle-button/toggle-button.js.map +1 -0
- package/dist/esm/toggle-button/toggle-button.options.js +17 -0
- package/dist/esm/toggle-button/toggle-button.options.js.map +1 -0
- package/dist/esm/toggle-button/toggle-button.styles.js +83 -0
- package/dist/esm/toggle-button/toggle-button.styles.js.map +1 -0
- package/dist/esm/toggle-button/toggle-button.template.js +7 -0
- package/dist/esm/toggle-button/toggle-button.template.js.map +1 -0
- package/dist/fluent-web-components.api.json +3168 -1471
- package/dist/web-components.d.ts +330 -0
- package/dist/web-components.js +488 -117
- package/dist/web-components.min.js +158 -146
- package/docs/api-report.md +173 -0
- package/package.json +13 -1
package/docs/api-report.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
+
import { AnchorOptions as AnchorButtonOptions } from '@microsoft/fast-foundation';
|
|
7
8
|
import { ButtonOptions } from '@microsoft/fast-foundation';
|
|
8
9
|
import { CSSDesignToken } from '@microsoft/fast-foundation';
|
|
9
10
|
import { DividerOrientation } from '@microsoft/fast-foundation';
|
|
@@ -12,6 +13,7 @@ import { ElementStyles } from '@microsoft/fast-element';
|
|
|
12
13
|
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
13
14
|
import { FASTAccordion } from '@microsoft/fast-foundation';
|
|
14
15
|
import { FASTAccordionItem } from '@microsoft/fast-foundation';
|
|
16
|
+
import { FASTAnchor } from '@microsoft/fast-foundation';
|
|
15
17
|
import { FASTButton } from '@microsoft/fast-foundation';
|
|
16
18
|
import { FASTDivider } from '@microsoft/fast-foundation';
|
|
17
19
|
import { FASTElement } from '@microsoft/fast-element';
|
|
@@ -89,6 +91,64 @@ export const accordionStyles: ElementStyles;
|
|
|
89
91
|
// @public (undocumented)
|
|
90
92
|
export const accordionTemplate: ElementViewTemplate<Accordion>;
|
|
91
93
|
|
|
94
|
+
// @public
|
|
95
|
+
export class AnchorButton extends FASTAnchor {
|
|
96
|
+
appearance?: AnchorButtonAppearance | undefined;
|
|
97
|
+
// (undocumented)
|
|
98
|
+
connectedCallback(): void;
|
|
99
|
+
disabled?: boolean;
|
|
100
|
+
// (undocumented)
|
|
101
|
+
protected disabledChanged(prev: boolean, next: boolean): void;
|
|
102
|
+
disabledFocusable?: boolean;
|
|
103
|
+
// (undocumented)
|
|
104
|
+
protected disabledFocusableChanged(prev: boolean, next: boolean): void;
|
|
105
|
+
// (undocumented)
|
|
106
|
+
disconnectedCallback(): void;
|
|
107
|
+
iconOnly: boolean;
|
|
108
|
+
shape?: AnchorButtonShape | undefined;
|
|
109
|
+
size?: AnchorButtonSize;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// @public
|
|
113
|
+
export const AnchorButtonAppearance: {
|
|
114
|
+
readonly primary: "primary";
|
|
115
|
+
readonly outline: "outline";
|
|
116
|
+
readonly subtle: "subtle";
|
|
117
|
+
readonly secondary: "secondary";
|
|
118
|
+
readonly transparent: "transparent";
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
// @public
|
|
122
|
+
export type AnchorButtonAppearance = ValuesOf<typeof AnchorButtonAppearance>;
|
|
123
|
+
|
|
124
|
+
// @public
|
|
125
|
+
export const AnchorButtonDefinition: FASTElementDefinition<typeof AnchorButton>;
|
|
126
|
+
|
|
127
|
+
export { AnchorButtonOptions }
|
|
128
|
+
|
|
129
|
+
// @public
|
|
130
|
+
export const AnchorButtonShape: {
|
|
131
|
+
readonly circular: "circular";
|
|
132
|
+
readonly rounded: "rounded";
|
|
133
|
+
readonly square: "square";
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
// @public
|
|
137
|
+
export type AnchorButtonShape = ValuesOf<typeof AnchorButtonShape>;
|
|
138
|
+
|
|
139
|
+
// @public
|
|
140
|
+
export const AnchorButtonSize: {
|
|
141
|
+
readonly small: "small";
|
|
142
|
+
readonly medium: "medium";
|
|
143
|
+
readonly large: "large";
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
// @public
|
|
147
|
+
export type AnchorButtonSize = ValuesOf<typeof AnchorButtonSize>;
|
|
148
|
+
|
|
149
|
+
// @public
|
|
150
|
+
export const AnchorButtonTemplate: ElementViewTemplate<AnchorButton>;
|
|
151
|
+
|
|
92
152
|
// @public
|
|
93
153
|
export class Avatar extends FASTElement {
|
|
94
154
|
active?: AvatarActive | undefined;
|
|
@@ -369,7 +429,9 @@ export type ButtonAppearance = ValuesOf<typeof ButtonAppearance>;
|
|
|
369
429
|
export const ButtonDefinition: FASTElementDefinition<typeof Button>;
|
|
370
430
|
|
|
371
431
|
export { ButtonOptions }
|
|
432
|
+
export { ButtonOptions as CompoundButtonOptions }
|
|
372
433
|
export { ButtonOptions as MenuButtonOptions }
|
|
434
|
+
export { ButtonOptions as ToggleButtonOptions }
|
|
373
435
|
|
|
374
436
|
// @public
|
|
375
437
|
export const ButtonShape: {
|
|
@@ -1285,6 +1347,51 @@ export const colorTransparentStrokeDisabled: CSSDesignToken<string>;
|
|
|
1285
1347
|
// @public (undocumented)
|
|
1286
1348
|
export const colorTransparentStrokeInteractive: CSSDesignToken<string>;
|
|
1287
1349
|
|
|
1350
|
+
// @public
|
|
1351
|
+
export class CompoundButton extends Button {
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
// @public
|
|
1355
|
+
export const CompoundButtonAppearance: {
|
|
1356
|
+
readonly primary: "primary";
|
|
1357
|
+
readonly outline: "outline";
|
|
1358
|
+
readonly subtle: "subtle";
|
|
1359
|
+
readonly secondary: "secondary";
|
|
1360
|
+
readonly transparent: "transparent";
|
|
1361
|
+
};
|
|
1362
|
+
|
|
1363
|
+
// @public
|
|
1364
|
+
export type CompoundButtonAppearance = ValuesOf<typeof CompoundButtonAppearance>;
|
|
1365
|
+
|
|
1366
|
+
// @public
|
|
1367
|
+
export const CompoundButtonDefinition: FASTElementDefinition<typeof CompoundButton>;
|
|
1368
|
+
|
|
1369
|
+
// @public
|
|
1370
|
+
export const CompoundButtonShape: {
|
|
1371
|
+
readonly circular: "circular";
|
|
1372
|
+
readonly rounded: "rounded";
|
|
1373
|
+
readonly square: "square";
|
|
1374
|
+
};
|
|
1375
|
+
|
|
1376
|
+
// @public
|
|
1377
|
+
export type CompoundButtonShape = ValuesOf<typeof CompoundButtonShape>;
|
|
1378
|
+
|
|
1379
|
+
// @public
|
|
1380
|
+
export const CompoundButtonSize: {
|
|
1381
|
+
readonly small: "small";
|
|
1382
|
+
readonly medium: "medium";
|
|
1383
|
+
readonly large: "large";
|
|
1384
|
+
};
|
|
1385
|
+
|
|
1386
|
+
// @public
|
|
1387
|
+
export type CompoundButtonSize = ValuesOf<typeof CompoundButtonSize>;
|
|
1388
|
+
|
|
1389
|
+
// @public (undocumented)
|
|
1390
|
+
export const CompoundButtonStyles: ElementStyles;
|
|
1391
|
+
|
|
1392
|
+
// @public
|
|
1393
|
+
export const CompoundButtonTemplate: ElementViewTemplate<CompoundButton>;
|
|
1394
|
+
|
|
1288
1395
|
// Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "CounterBadge" because one of its declarations is marked as @internal
|
|
1289
1396
|
//
|
|
1290
1397
|
// @public
|
|
@@ -2045,6 +2152,72 @@ export const TextWeight: {
|
|
|
2045
2152
|
// @public
|
|
2046
2153
|
export type TextWeight = ValuesOf<typeof TextWeight>;
|
|
2047
2154
|
|
|
2155
|
+
// @public
|
|
2156
|
+
export class ToggleButton extends Button {
|
|
2157
|
+
constructor();
|
|
2158
|
+
checked: boolean;
|
|
2159
|
+
checkedAttribute: boolean;
|
|
2160
|
+
// (undocumented)
|
|
2161
|
+
protected checkedAttributeChanged(): void;
|
|
2162
|
+
// (undocumented)
|
|
2163
|
+
protected checkedChanged(prev: boolean | undefined, next: boolean): void;
|
|
2164
|
+
// (undocumented)
|
|
2165
|
+
connectedCallback(): void;
|
|
2166
|
+
currentChecked: boolean;
|
|
2167
|
+
// (undocumented)
|
|
2168
|
+
currentCheckedChanged(prev: boolean | undefined, next: boolean): void;
|
|
2169
|
+
// (undocumented)
|
|
2170
|
+
defaultChecked: boolean;
|
|
2171
|
+
// (undocumented)
|
|
2172
|
+
protected defaultCheckedChanged(): void;
|
|
2173
|
+
protected dirtyChecked: boolean;
|
|
2174
|
+
// (undocumented)
|
|
2175
|
+
disconnectedCallback(): void;
|
|
2176
|
+
// @internal (undocumented)
|
|
2177
|
+
protected handleToggleButtonClick: (e: MouseEvent) => void;
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2180
|
+
// @public
|
|
2181
|
+
export const ToggleButtonAppearance: {
|
|
2182
|
+
readonly primary: "primary";
|
|
2183
|
+
readonly outline: "outline";
|
|
2184
|
+
readonly subtle: "subtle";
|
|
2185
|
+
readonly secondary: "secondary";
|
|
2186
|
+
readonly transparent: "transparent";
|
|
2187
|
+
};
|
|
2188
|
+
|
|
2189
|
+
// @public
|
|
2190
|
+
export type ToggleButtonAppearance = ValuesOf<typeof ToggleButtonAppearance>;
|
|
2191
|
+
|
|
2192
|
+
// @public
|
|
2193
|
+
export const ToggleButtonDefinition: FASTElementDefinition<typeof ToggleButton>;
|
|
2194
|
+
|
|
2195
|
+
// @public
|
|
2196
|
+
export const ToggleButtonShape: {
|
|
2197
|
+
readonly circular: "circular";
|
|
2198
|
+
readonly rounded: "rounded";
|
|
2199
|
+
readonly square: "square";
|
|
2200
|
+
};
|
|
2201
|
+
|
|
2202
|
+
// @public
|
|
2203
|
+
export type ToggleButtonShape = ValuesOf<typeof ToggleButtonShape>;
|
|
2204
|
+
|
|
2205
|
+
// @public
|
|
2206
|
+
export const ToggleButtonSize: {
|
|
2207
|
+
readonly small: "small";
|
|
2208
|
+
readonly medium: "medium";
|
|
2209
|
+
readonly large: "large";
|
|
2210
|
+
};
|
|
2211
|
+
|
|
2212
|
+
// @public
|
|
2213
|
+
export type ToggleButtonSize = ValuesOf<typeof ToggleButtonSize>;
|
|
2214
|
+
|
|
2215
|
+
// @public (undocumented)
|
|
2216
|
+
export const ToggleButtonStyles: ElementStyles;
|
|
2217
|
+
|
|
2218
|
+
// @public
|
|
2219
|
+
export const ToggleButtonTemplate: ElementViewTemplate<ToggleButton>;
|
|
2220
|
+
|
|
2048
2221
|
// (No @packageDocumentation comment for this package)
|
|
2049
2222
|
|
|
2050
2223
|
```
|
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.18",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Microsoft",
|
|
8
8
|
"url": "https://discord.gg/FcSNfg4"
|
|
@@ -32,6 +32,10 @@
|
|
|
32
32
|
"types": "./dist/esm/accordion-item/define.d.ts",
|
|
33
33
|
"default": "./dist/esm/accordion-item/define.js"
|
|
34
34
|
},
|
|
35
|
+
"./anchor-button": {
|
|
36
|
+
"types": "./dist/esm/anchor-button/define.d.ts",
|
|
37
|
+
"default": "./dist/esm/anchor-button/define.js"
|
|
38
|
+
},
|
|
35
39
|
"./avatar": {
|
|
36
40
|
"types": "./dist/esm/avatar/define.d.ts",
|
|
37
41
|
"default": "./dist/esm/avatar/define.js"
|
|
@@ -44,6 +48,10 @@
|
|
|
44
48
|
"types": "./dist/esm/button/define.d.ts",
|
|
45
49
|
"default": "./dist/esm/button/define.js"
|
|
46
50
|
},
|
|
51
|
+
"./compound-button": {
|
|
52
|
+
"types": "./dist/esm/compound-button/define.d.ts",
|
|
53
|
+
"default": "./dist/esm/compound-button/define.js"
|
|
54
|
+
},
|
|
47
55
|
"./counter-badge": {
|
|
48
56
|
"types": "./dist/esm/counter-badge/define.d.ts",
|
|
49
57
|
"default": "./dist/esm/counter-badge/define.js"
|
|
@@ -95,6 +103,10 @@
|
|
|
95
103
|
"./text": {
|
|
96
104
|
"types": "./dist/esm/text/define.d.ts",
|
|
97
105
|
"default": "./dist/esm/text/define.js"
|
|
106
|
+
},
|
|
107
|
+
"./toggle-button": {
|
|
108
|
+
"types": "./dist/esm/toggle-button/define.d.ts",
|
|
109
|
+
"default": "./dist/esm/toggle-button/define.js"
|
|
98
110
|
}
|
|
99
111
|
},
|
|
100
112
|
"scripts": {
|