Skip to content

Commit 416d7dd

Browse files
authored
chore(web-components): add missing export for textarea (#32450)
1 parent 185bb89 commit 416d7dd

File tree

6 files changed

+90
-23
lines changed

6 files changed

+90
-23
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "chore: add missing export for textarea",
4+
"packageName": "@fluentui/web-components",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

packages/web-components/docs/api-report.md

+70-2
Original file line numberDiff line numberDiff line change
@@ -2277,7 +2277,6 @@ export const DividerAppearance: {
22772277
readonly strong: "strong";
22782278
readonly brand: "brand";
22792279
readonly subtle: "subtle";
2280-
readonly default: "default";
22812280
};
22822281

22832282
// @public
@@ -2544,7 +2543,6 @@ export const ImageFit: {
25442543
readonly center: "center";
25452544
readonly contain: "contain";
25462545
readonly cover: "cover";
2547-
readonly default: "default";
25482546
};
25492547

25502548
// @public
@@ -2667,6 +2665,11 @@ export type LinkAppearance = ValuesOf<typeof LinkAppearance>;
26672665
// @public (undocumented)
26682666
export const LinkDefinition: FASTElementDefinition<typeof Link>;
26692667

2668+
// Warning: (ae-missing-release-tag) "styles" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2669+
//
2670+
// @public (undocumented)
2671+
export const LinkStyles: ElementStyles;
2672+
26702673
// @public
26712674
export const LinkTarget: {
26722675
readonly _self: "_self";
@@ -2892,6 +2895,66 @@ export const MenuStyles: ElementStyles;
28922895
// @public (undocumented)
28932896
export const MenuTemplate: ElementViewTemplate<Menu>;
28942897

2898+
// @public
2899+
export class MessageBar extends FASTElement {
2900+
constructor();
2901+
dismissMessageBar: () => void;
2902+
// @internal
2903+
elementInternals: ElementInternals;
2904+
intent?: MessageBarIntent;
2905+
intentChanged(prev: MessageBarIntent | undefined, next: MessageBarIntent | undefined): void;
2906+
layout?: MessageBarLayout;
2907+
layoutChanged(prev: MessageBarLayout | undefined, next: MessageBarLayout | undefined): void;
2908+
shape?: MessageBarShape;
2909+
shapeChanged(prev: MessageBarShape | undefined, next: MessageBarShape | undefined): void;
2910+
}
2911+
2912+
// @public
2913+
export const MessageBarDefinition: FASTElementDefinition<typeof MessageBar>;
2914+
2915+
// Warning: (ae-missing-release-tag) "MessageBarIntent" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2916+
//
2917+
// @public
2918+
export const MessageBarIntent: {
2919+
readonly success: "success";
2920+
readonly warning: "warning";
2921+
readonly error: "error";
2922+
readonly info: "info";
2923+
};
2924+
2925+
// @public (undocumented)
2926+
export type MessageBarIntent = ValuesOf<typeof MessageBarIntent>;
2927+
2928+
// Warning: (ae-missing-release-tag) "MessageBarLayout" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2929+
//
2930+
// @public
2931+
export const MessageBarLayout: {
2932+
readonly multiline: "multiline";
2933+
readonly singleline: "singleline";
2934+
};
2935+
2936+
// @public (undocumented)
2937+
export type MessageBarLayout = ValuesOf<typeof MessageBarLayout>;
2938+
2939+
// Warning: (ae-missing-release-tag) "MessageBarShape" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2940+
//
2941+
// @public
2942+
export const MessageBarShape: {
2943+
readonly rounded: "rounded";
2944+
readonly square: "square";
2945+
};
2946+
2947+
// @public (undocumented)
2948+
export type MessageBarShape = ValuesOf<typeof MessageBarShape>;
2949+
2950+
// @public
2951+
export const MessageBarStyles: ElementStyles;
2952+
2953+
// Warning: (ae-missing-release-tag) "template" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
2954+
//
2955+
// @public
2956+
export const MessageBarTemplate: ElementViewTemplate<MessageBar>;
2957+
28952958
// @public
28962959
class ProgressBar_2 extends BaseProgressBar {
28972960
shape?: ProgressBarShape;
@@ -3739,6 +3802,11 @@ export const TextAreaAppearance: {
37393802
// @public (undocumented)
37403803
export type TextAreaAppearance = ValuesOf<typeof TextAreaAppearance>;
37413804

3805+
// Warning: (ae-missing-release-tag) "TextAreaAppearancesForDisplayShadow" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
3806+
//
3807+
// @public (undocumented)
3808+
export const TextAreaAppearancesForDisplayShadow: Partial<TextAreaAppearance[]>;
3809+
37423810
// Warning: (ae-missing-release-tag) "TextAreaAutocomplete" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
37433811
//
37443812
// @public

packages/web-components/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ export {
254254
BaseTextArea,
255255
TextArea,
256256
TextAreaAppearance,
257+
TextAreaAppearancesForDisplayShadow,
257258
TextAreaAutocomplete,
258259
TextAreaDefinition,
259260
TextAreaResize,

packages/web-components/src/textarea/index.ts

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ export {
44
TextAreaAppearance,
55
TextAreaAppearancesForDisplayShadow,
66
TextAreaAutocomplete,
7-
TextAreaResizableResize,
8-
TextAreaHorizontallyResizableResize,
9-
TextAreaVerticallyResizableResize,
107
TextAreaResize,
118
TextAreaSize,
129
} from './textarea.options.js';

packages/web-components/src/textarea/textarea.options.ts

+5-16
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ export const TextAreaAppearance = {
2626

2727
export type TextAreaAppearance = ValuesOf<typeof TextAreaAppearance>;
2828

29+
/**
30+
* Allowed values for `appearance` when `display-shadow` is set to true.
31+
*
32+
* @public
33+
*/
2934
export const TextAreaAppearancesForDisplayShadow: Partial<TextAreaAppearance[]> = [
3035
TextAreaAppearance.filledLighter,
3136
TextAreaAppearance.filledDarker,
@@ -54,19 +59,3 @@ export const TextAreaResize = {
5459
} as const;
5560

5661
export type TextAreaResize = ValuesOf<typeof TextAreaResize>;
57-
58-
export const TextAreaResizableResize: Partial<TextAreaResize[]> = [
59-
TextAreaResize.both,
60-
TextAreaResize.horizontal,
61-
TextAreaResize.vertical,
62-
];
63-
64-
export const TextAreaVerticallyResizableResize: Partial<TextAreaResize[]> = [
65-
TextAreaResize.both,
66-
TextAreaResize.vertical,
67-
];
68-
69-
export const TextAreaHorizontallyResizableResize: Partial<TextAreaResize[]> = [
70-
TextAreaResize.both,
71-
TextAreaResize.horizontal,
72-
];

packages/web-components/src/textarea/textarea.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
TextAreaAppearance,
66
TextAreaAppearancesForDisplayShadow,
77
TextAreaAutocomplete,
8-
TextAreaResizableResize,
98
TextAreaResize,
109
TextAreaSize,
1110
} from './textarea.options.js';
@@ -275,7 +274,13 @@ export class BaseTextArea extends FASTElement {
275274
toggleState(this.elementInternals, `resize-${next}`, true);
276275
}
277276

278-
toggleState(this.elementInternals, `resize`, TextAreaResizableResize.includes(this.resize));
277+
toggleState(
278+
this.elementInternals,
279+
`resize`,
280+
([TextAreaResize.both, TextAreaResize.horizontal, TextAreaResize.vertical] as Partial<TextAreaResize[]>).includes(
281+
this.resize,
282+
),
283+
);
279284
}
280285

281286
/**

0 commit comments

Comments
 (0)