Skip to content

Commit

Permalink
Exporting FluentHorizontalScroll (#17470)
Browse files Browse the repository at this point in the history
* Exporting FluentHorizontalScroll

* Change files
  • Loading branch information
robarbms authored Mar 18, 2021
1 parent af62904 commit 02cfbd8
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
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

0 comments on commit 02cfbd8

Please sign in to comment.