Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting FluentHorizontalScroll #17470

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Exporting FluentHorizontalScroll",
"packageName": "@fluentui/web-components",
"email": "[email protected]",
"dependentChangeType": "patch"
}
10 changes: 10 additions & 0 deletions packages/web-components/docs/api-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { Direction } from '@microsoft/fast-web-utilities';
import { Divider } from '@microsoft/fast-foundation';
import { ElementStyles } from '@microsoft/fast-element';
import { Flipper } from '@microsoft/fast-foundation';
import { HorizontalScroll } from '@microsoft/fast-foundation';
import { Listbox } from '@microsoft/fast-foundation';
import { ListboxOption } from '@microsoft/fast-foundation';
import { Menu } from '@microsoft/fast-foundation';
Expand Down Expand Up @@ -668,6 +669,12 @@ export class FluentDivider extends Divider {
export class FluentFlipper extends Flipper {
}

// @public
export class FluentHorizontalScroll extends HorizontalScroll {
// (undocumented)
connectedCallback(): void;
}

// @public
export class FluentListbox extends Listbox {
}
Expand Down Expand Up @@ -766,6 +773,9 @@ export class FluentTreeView extends TreeView {
// @public
export const heightNumber = "(var(--base-height-multiplier) + var(--density)) * var(--design-unit)";

// @public
export const HorizontalScrollStyles: import("@microsoft/fast-element").ElementStyles;

// Warning: (ae-internal-missing-underscore) The name "HypertextStyles" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal (undocumented)
Expand Down
15 changes: 15 additions & 0 deletions packages/web-components/src/horizontal-scroll/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ import { customElement } from '@microsoft/fast-element';
import { HorizontalScroll, HorizontalScrollTemplate as template } from '@microsoft/fast-foundation';
import { ActionsStyles, HorizontalScrollStyles as styles } from './horizontal-scroll.styles';

/**
* The Fluent Horizontal Scroll Element. Implements {@link @microsoft/fast-foundation#HorizontalScrol},
* {@link @microsoft/fast-foundation#HorizontalScrollTemplate}
*
*
* @public
* @remarks
* HTML Element: \<fluent-horizontal-scroll\>
*/
@customElement({
name: 'fluent-horizontal-scroll',
template,
Expand All @@ -22,3 +31,9 @@ export class FluentHorizontalScroll extends HorizontalScroll {
}
}
}

/**
* Styles for Horizontal Scroll
* @public
*/
export const HorizontalScrollStyles = styles;
1 change: 1 addition & 0 deletions packages/web-components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export * from './design-system-provider/';
export * from './dialog/';
export * from './divider/';
export * from './flipper/';
export * from './horizontal-scroll/';
export * from './listbox';
export * from './listbox-option';
export * from './menu/';
Expand Down