├── .csscomb.json ├── .gitignore ├── .htmllintrc ├── .jshintrc ├── .npmignore ├── .pullapprove.yml ├── .sass-lint.yml ├── .travis.yml ├── LICENSE ├── README.md ├── Third Party Notices.txt ├── backup.html ├── bower.json ├── ghdocs ├── BUILDING.md ├── BUNDLING.md ├── COMPONENTSLIST.md ├── CONTRIBUTING.md ├── PACKAGES.md ├── RESOURCES.md ├── ROADMAP.md ├── component_images │ ├── Breadcrumb-default.png │ ├── Button-compound.png │ ├── Button-default.png │ ├── Button-hero.png │ ├── Button-primary.png │ ├── Callout-action.png │ ├── Callout-close.png │ ├── Callout-default.png │ ├── Callout-oobe.png │ ├── Callout-peek.png │ ├── CheckBox-default.png │ ├── ChoiceFieldGroup-default.png │ ├── CommandBar-default.png │ ├── CommandBar-dropdowns.png │ ├── CommandBar-navbar.png │ ├── CommandButton-action.png │ ├── CommandButton-default.png │ ├── CommandButton-disabled.png │ ├── CommandButton-dropdown.png │ ├── CommandButton-inline.png │ ├── CommandButton-nolabel.png │ ├── CommandButton-nolabelsplit.png │ ├── CommandButton-pivot.png │ ├── CommandButton-split.png │ ├── CommandButton-textonly.png │ ├── ContextualMenu-default.png │ ├── ContextualMenu-dividers.png │ ├── ContextualMenu-multiselect.png │ ├── ContextualMenu-submenu.png │ ├── DatePicker-default.png │ ├── Dialog-blocking.png │ ├── Dialog-close.png │ ├── Dialog-default.png │ ├── Dialog-largeheader.png │ ├── Dialog-multiline.png │ ├── Dropdown-default.png │ ├── Dropdown-disabled.png │ ├── FacePile-default.png │ ├── Label-default.png │ ├── Label-disabled.png │ ├── Label-required.png │ ├── Link-default.png │ ├── List-default.png │ ├── ListItem-default.png │ ├── ListItem-document.png │ ├── ListItem-image.png │ ├── MessageBanner-default.png │ ├── MessageBar-blocked.png │ ├── MessageBar-default.png │ ├── MessageBar-error.png │ ├── MessageBar-severewarning.png │ ├── MessageBar-success.png │ ├── MessageBar-warning.png │ ├── OrgChart-default.png │ ├── Overlay-dark.png │ ├── Overlay-default.png │ ├── Panel.png │ ├── PeoplePicker-compact.png │ ├── PeoplePicker-default.png │ ├── PeoplePicker-facepile.png │ ├── Persona-circle.png │ ├── Persona-facepile.png │ ├── Persona-initials.png │ ├── Persona-presence.png │ ├── Persona-token.png │ ├── PersonaCard-default.png │ ├── Pivot-default.png │ ├── Pivot-large.png │ ├── Pivot-largetabs.png │ ├── Pivot-tabs.png │ ├── ProgressIndicator-default.png │ ├── SearchBox-collapsed.png │ ├── SearchBox-commandbar.png │ ├── SearchBox-default.png │ ├── Spinner-default.png │ ├── Spinner-defaultwithlabel.png │ ├── Spinner-large.png │ ├── Spinner-largewithlabel.png │ ├── Table-default.png │ ├── Table-fixed.png │ ├── Table-selectable.png │ ├── TextField-default.png │ ├── TextField-disabled.png │ ├── TextField-multiline.png │ ├── TextField-placeholdertext.png │ ├── TextField-underlined.png │ ├── Toggle-default.png │ ├── Toggle-disabled.png │ └── Toggle-left.png └── components │ ├── Breadcrumb.md │ ├── Button.md │ ├── Callout.md │ ├── CheckBox.md │ ├── ChoiceFieldGroup.md │ ├── CommandBar.md │ ├── CommandButton.md │ ├── ContextualMenu.md │ ├── DatePicker.md │ ├── Dialog.md │ ├── Dropdown.md │ ├── FacePile.md │ ├── Label.md │ ├── Link.md │ ├── List.md │ ├── ListItem.md │ ├── MessageBanner.md │ ├── MessageBar.md │ ├── OrgChart.md │ ├── Overlay.md │ ├── Panel.md │ ├── PeoplePicker.md │ ├── Persona.md │ ├── PersonaCard.md │ ├── Pivot.md │ ├── ProgressIndicator.md │ ├── SearchBox.md │ ├── Spinner.md │ ├── Table.md │ ├── TextField.md │ └── Toggle.md ├── gulp ├── BuildMessages.js ├── Bundling.js ├── ComponentJS.js ├── ConfigureEnvironment.js ├── Documentation.js ├── FabricComponents.js ├── Linting.js ├── SamplesBuild.js ├── Server.js └── modules │ ├── Banners.js │ ├── BuildConfig.js │ ├── ComponentHelper.js │ ├── Config.js │ ├── ConsoleHelper.js │ ├── ErrorHandling.js │ ├── Plugins.js │ ├── Server.js │ ├── Utilities.js │ └── renderPartial.js ├── gulpfile.js ├── lib ├── PickaDate.js ├── jquery.js └── scrollTo.js ├── package.json ├── src ├── components │ ├── Breadcrumb │ │ ├── Breadcrumb.hbs │ │ ├── Breadcrumb.json │ │ ├── Breadcrumb.scss │ │ └── Breadcrumb.ts │ ├── Button │ │ ├── Button.hbs │ │ ├── Button.json │ │ ├── Button.scss │ │ ├── Button.ts │ │ └── IButton.ts │ ├── Callout │ │ ├── Callout.hbs │ │ ├── Callout.json │ │ ├── Callout.scss │ │ └── Callout.ts │ ├── CheckBox │ │ ├── CheckBox.hbs │ │ ├── CheckBox.json │ │ ├── CheckBox.scss │ │ └── CheckBox.ts │ ├── ChoiceFieldGroup │ │ ├── ChoiceFieldGroup.hbs │ │ ├── ChoiceFieldGroup.json │ │ ├── ChoiceFieldGroup.scss │ │ └── ChoiceFieldGroup.ts │ ├── CommandBar │ │ ├── CommandBar.hbs │ │ ├── CommandBar.json │ │ ├── CommandBar.scss │ │ └── CommandBar.ts │ ├── CommandButton │ │ ├── CommandButton.hbs │ │ ├── CommandButton.json │ │ ├── CommandButton.scss │ │ └── CommandButton.ts │ ├── ContextualHost │ │ ├── ContextualHost.hbs │ │ ├── ContextualHost.json │ │ ├── ContextualHost.scss │ │ └── ContextualHost.ts │ ├── ContextualMenu │ │ ├── ContextualMenu.hbs │ │ ├── ContextualMenu.json │ │ ├── ContextualMenu.scss │ │ ├── ContextualMenu.ts │ │ └── IContextualMenu.ts │ ├── DatePicker │ │ ├── DatePicker.hbs │ │ ├── DatePicker.json │ │ ├── DatePicker.scss │ │ └── Jquery.DatePicker.ts │ ├── DetailsList │ │ ├── DetailsList.hbs │ │ ├── DetailsList.json │ │ ├── DetailsList.scss │ │ └── jquery.DetailsList.js │ ├── Dialog │ │ ├── Dialog.hbs │ │ ├── Dialog.json │ │ ├── Dialog.scss │ │ └── Dialog.ts │ ├── DialogHost │ │ ├── DialogHost.hbs │ │ ├── DialogHost.json │ │ ├── DialogHost.scss │ │ └── DialogHost.ts │ ├── Dropdown │ │ ├── Dropdown.hbs │ │ ├── Dropdown.json │ │ ├── Dropdown.scss │ │ └── Dropdown.ts │ ├── FacePile │ │ ├── FacePile.hbs │ │ ├── FacePile.json │ │ ├── FacePile.scss │ │ └── FacePile.ts │ ├── Label │ │ ├── Label.hbs │ │ ├── Label.json │ │ └── Label.scss │ ├── Link │ │ ├── Link.hbs │ │ ├── Link.json │ │ └── Link.scss │ ├── List │ │ ├── List.hbs │ │ ├── List.json │ │ ├── List.scss │ │ └── List.ts │ ├── ListItem │ │ ├── ListItem.hbs │ │ ├── ListItem.json │ │ ├── ListItem.scss │ │ └── ListItem.ts │ ├── MessageBanner │ │ ├── MessageBanner.hbs │ │ ├── MessageBanner.json │ │ ├── MessageBanner.scss │ │ └── MessageBanner.ts │ ├── MessageBar │ │ ├── MessageBar.hbs │ │ ├── MessageBar.json │ │ └── MessageBar.scss │ ├── OrgChart │ │ ├── OrgChart.hbs │ │ ├── OrgChart.json │ │ └── OrgChart.scss │ ├── Overlay │ │ ├── Overlay.hbs │ │ ├── Overlay.json │ │ ├── Overlay.scss │ │ └── Overlay.ts │ ├── Panel │ │ ├── Panel.hbs │ │ ├── Panel.json │ │ ├── Panel.scss │ │ └── Panel.ts │ ├── PanelHost │ │ ├── PanelHost.hbs │ │ ├── PanelHost.json │ │ ├── PanelHost.scss │ │ └── PanelHost.ts │ ├── PeoplePicker │ │ ├── PeoplePicker.hbs │ │ ├── PeoplePicker.json │ │ ├── PeoplePicker.scss │ │ └── PeoplePicker.ts │ ├── Persona │ │ ├── Persona.hbs │ │ ├── Persona.json │ │ ├── Persona.scss │ │ └── Persona.ts │ ├── PersonaCard │ │ ├── PersonaCard.hbs │ │ ├── PersonaCard.json │ │ ├── PersonaCard.scss │ │ └── PersonaCard.ts │ ├── Pivot │ │ ├── Pivot.hbs │ │ ├── Pivot.json │ │ ├── Pivot.scss │ │ └── Pivot.ts │ ├── ProgressIndicator │ │ ├── ProgressIndicator.hbs │ │ ├── ProgressIndicator.json │ │ ├── ProgressIndicator.scss │ │ └── ProgressIndicator.ts │ ├── RadioButton │ │ ├── RadioButton.hbs │ │ ├── RadioButton.json │ │ ├── RadioButton.scss │ │ └── RadioButton.ts │ ├── SearchBox │ │ ├── SearchBox.hbs │ │ ├── SearchBox.json │ │ ├── SearchBox.scss │ │ └── SearchBox.ts │ ├── Spinner │ │ ├── Spinner.hbs │ │ ├── Spinner.json │ │ ├── Spinner.scss │ │ └── Spinner.ts │ ├── Table │ │ ├── Table.hbs │ │ ├── Table.json │ │ ├── Table.scss │ │ └── Table.ts │ ├── TextField │ │ ├── TextField.hbs │ │ ├── TextField.json │ │ ├── TextField.scss │ │ └── TextField.ts │ └── Toggle │ │ ├── Toggle.hbs │ │ ├── Toggle.json │ │ ├── Toggle.scss │ │ └── Toggle.ts ├── documentation │ ├── images │ │ ├── favicon.ico │ │ ├── home-background.svg │ │ ├── logo-js-white.svg │ │ ├── logo-microsoft.png │ │ └── logo-office-dev.svg │ ├── pages │ │ ├── Components │ │ │ ├── Breadcrumb │ │ │ │ ├── Breadcrumb.js │ │ │ │ └── examples │ │ │ │ │ ├── BreadcrumbExample.hbs │ │ │ │ │ ├── BreadcrumbExampleJS.hbs │ │ │ │ │ └── BreadcrumbExampleModel.js │ │ │ ├── Button │ │ │ │ ├── Button.js │ │ │ │ └── examples │ │ │ │ │ ├── ButtonExample.hbs │ │ │ │ │ ├── ButtonExampleCompoundModel.js │ │ │ │ │ ├── ButtonExampleHeroModel.js │ │ │ │ │ ├── ButtonExampleJS.hbs │ │ │ │ │ ├── ButtonExampleModel.js │ │ │ │ │ ├── ButtonExamplePrimaryModel.js │ │ │ │ │ └── ButtonExampleSmallButtonModel.js │ │ │ ├── Callout │ │ │ │ ├── Callout.js │ │ │ │ └── examples │ │ │ │ │ ├── CalloutExample.hbs │ │ │ │ │ ├── CalloutExampleActionModel.js │ │ │ │ │ ├── CalloutExampleCloseModel.js │ │ │ │ │ ├── CalloutExampleJS.hbs │ │ │ │ │ ├── CalloutExampleModel.js │ │ │ │ │ ├── CalloutExampleOOBEModel.js │ │ │ │ │ └── CalloutExamplePeekModel.js │ │ │ ├── CheckBox │ │ │ │ ├── CheckBox.js │ │ │ │ └── examples │ │ │ │ │ ├── CheckBoxBasicModel.js │ │ │ │ │ ├── CheckBoxDisabledModel.js │ │ │ │ │ ├── CheckBoxElem.hbs │ │ │ │ │ ├── CheckBoxJS.hbs │ │ │ │ │ ├── CheckBoxModels.js │ │ │ │ │ └── CheckBoxSelectedModel.js │ │ │ ├── ChoiceFieldGroup │ │ │ │ ├── ChoiceFieldGroup.js │ │ │ │ └── examples │ │ │ │ │ ├── ChoiceFieldGroupElem.hbs │ │ │ │ │ ├── ChoiceFieldGroupJS.hbs │ │ │ │ │ └── ChoiceFieldGroupModel.js │ │ │ ├── CommandBar │ │ │ │ ├── CommandBar.js │ │ │ │ └── examples │ │ │ │ │ ├── CommandBarDropdownExampleModel.js │ │ │ │ │ ├── CommandBarExample.hbs │ │ │ │ │ ├── CommandBarExampleJS.hbs │ │ │ │ │ ├── CommandBarExampleModel.js │ │ │ │ │ ├── CommandBarExampleNavBar.hbs │ │ │ │ │ └── CommandBarNavbarExampleModel.js │ │ │ ├── CommandButton │ │ │ │ ├── CommandButton.js │ │ │ │ └── examples │ │ │ │ │ ├── CommandButtonActionExampleModel.js │ │ │ │ │ ├── CommandButtonDisabledExampleModel.js │ │ │ │ │ ├── CommandButtonDropdownExampleModel.js │ │ │ │ │ ├── CommandButtonExample.hbs │ │ │ │ │ ├── CommandButtonExampleJS.hbs │ │ │ │ │ ├── CommandButtonExampleModel.js │ │ │ │ │ ├── CommandButtonInlineExampleModel.js │ │ │ │ │ ├── CommandButtonNoLabelExampleModel.js │ │ │ │ │ ├── CommandButtonNoLabelSplitExampleModel.js │ │ │ │ │ ├── CommandButtonPivotExampleModel.js │ │ │ │ │ ├── CommandButtonSplitExampleModel.js │ │ │ │ │ └── CommandButtonTextOnlyExampleModel.js │ │ │ ├── ComponentPageTmpl.hbs │ │ │ ├── ContextualMenu │ │ │ │ ├── ContextualMenu.js │ │ │ │ └── examples │ │ │ │ │ ├── ContextualMenuDividersExampleModel.js │ │ │ │ │ ├── ContextualMenuExample.hbs │ │ │ │ │ ├── ContextualMenuExampleJS.hbs │ │ │ │ │ ├── ContextualMenuExampleModel.js │ │ │ │ │ ├── ContextualMenuMultiselectExampleModel.js │ │ │ │ │ └── ContextualMenuSubmenuExampleModel.js │ │ │ ├── DatePicker │ │ │ │ ├── DatePicker.js │ │ │ │ └── examples │ │ │ │ │ ├── DatePickerExample.hbs │ │ │ │ │ └── DatePickerExampleJS.hbs │ │ │ ├── Dialog │ │ │ │ ├── Dialog.js │ │ │ │ └── examples │ │ │ │ │ ├── DialogBlockingExample.hbs │ │ │ │ │ ├── DialogBlockingExampleJS.hbs │ │ │ │ │ ├── DialogBlockingExampleModel.js │ │ │ │ │ ├── DialogCloseExample.hbs │ │ │ │ │ ├── DialogCloseExampleJS.hbs │ │ │ │ │ ├── DialogCloseExampleModel.js │ │ │ │ │ ├── DialogDefaultExample.hbs │ │ │ │ │ ├── DialogDocAllElementsJS.hbs │ │ │ │ │ ├── DialogExampleDefaultJS.hbs │ │ │ │ │ ├── DialogExampleModel.js │ │ │ │ │ ├── DialogLgHeaderExample.hbs │ │ │ │ │ ├── DialogLgHeaderExampleJS.hbs │ │ │ │ │ ├── DialogLgHeaderExampleModel.js │ │ │ │ │ ├── DialogMultilineExample.hbs │ │ │ │ │ ├── DialogMultilineExampleJS.hbs │ │ │ │ │ └── DialogMultilineExampleModel.js │ │ │ ├── Dropdown │ │ │ │ ├── Dropdown.js │ │ │ │ └── examples │ │ │ │ │ ├── DropdownDisabledExampleModel.js │ │ │ │ │ ├── DropdownExample.hbs │ │ │ │ │ ├── DropdownExampleJS.hbs │ │ │ │ │ └── DropdownExampleModel.js │ │ │ ├── FacePile │ │ │ │ ├── FacePile.js │ │ │ │ └── examples │ │ │ │ │ ├── FacePileElem.hbs │ │ │ │ │ ├── FacePileJS.hbs │ │ │ │ │ └── FacePileModels.js │ │ │ ├── Label │ │ │ │ ├── Label.js │ │ │ │ └── examples │ │ │ │ │ ├── LabelExample.hbs │ │ │ │ │ ├── LabelExampleDisabled.hbs │ │ │ │ │ ├── LabelExampleDisabledModel.js │ │ │ │ │ ├── LabelExampleModel.js │ │ │ │ │ ├── LabelExampleRequired.hbs │ │ │ │ │ └── LabelExampleRequiredModel.js │ │ │ ├── Link │ │ │ │ ├── Link.js │ │ │ │ └── examples │ │ │ │ │ ├── LinkExample.hbs │ │ │ │ │ └── LinkModels.js │ │ │ ├── List │ │ │ │ ├── List.js │ │ │ │ └── examples │ │ │ │ │ ├── ListElem.hbs │ │ │ │ │ ├── ListJS.hbs │ │ │ │ │ └── ListModels.js │ │ │ ├── ListItem │ │ │ │ ├── ListItem.js │ │ │ │ └── examples │ │ │ │ │ ├── ListItemDefaultExampleModel.js │ │ │ │ │ ├── ListItemDocumentExampleModel.js │ │ │ │ │ ├── ListItemElem.hbs │ │ │ │ │ ├── ListItemImageExampleModel.js │ │ │ │ │ ├── ListItemJS.hbs │ │ │ │ │ ├── ListItemSelectableExampleModel.js │ │ │ │ │ ├── ListItemSelectedExampleModel.js │ │ │ │ │ ├── ListItemUnreadExampleModel.js │ │ │ │ │ └── ListItemUnseenExampleModel.js │ │ │ ├── MessageBanner │ │ │ │ ├── MessageBanner.js │ │ │ │ └── examples │ │ │ │ │ ├── MessageBannerExampleElem.hbs │ │ │ │ │ ├── MessageBannerExampleJS.hbs │ │ │ │ │ └── MessageBannerExampleModel.js │ │ │ ├── MessageBar │ │ │ │ ├── MessageBar.js │ │ │ │ └── examples │ │ │ │ │ ├── MessageBarBlockedModel.js │ │ │ │ │ ├── MessageBarDefaultModel.js │ │ │ │ │ ├── MessageBarErrorModel.js │ │ │ │ │ ├── MessageBarExample.hbs │ │ │ │ │ ├── MessageBarSevereWarningModel.js │ │ │ │ │ ├── MessageBarSuccessModel.js │ │ │ │ │ └── MessageBarWarningModel.js │ │ │ ├── OrgChart │ │ │ │ ├── OrgChart.js │ │ │ │ └── examples │ │ │ │ │ ├── OrgChartElem.hbs │ │ │ │ │ └── OrgChartExampleModel.js │ │ │ ├── Overlay │ │ │ │ ├── Overlay.js │ │ │ │ └── examples │ │ │ │ │ ├── OverlayDarkExample.hbs │ │ │ │ │ ├── OverlayDarkExampleModel.js │ │ │ │ │ ├── OverlayDefaultExampleModel.js │ │ │ │ │ ├── OverlayExample.hbs │ │ │ │ │ └── OverlayExampleJS.hbs │ │ │ ├── Panel │ │ │ │ ├── Panel.js │ │ │ │ └── examples │ │ │ │ │ ├── PanelDefaultExampleModel.js │ │ │ │ │ ├── PanelDocExampleJS.hbs │ │ │ │ │ ├── PanelExample.hbs │ │ │ │ │ ├── PanelExampleProps.js │ │ │ │ │ ├── PanelExtraExtraLargeExampleModel.js │ │ │ │ │ ├── PanelExtraLargeExampleModel.js │ │ │ │ │ ├── PanelLargeExampleModel.js │ │ │ │ │ ├── PanelLargeFixedExampleModel.js │ │ │ │ │ ├── PanelLeftExampleModel.js │ │ │ │ │ └── PanelMediumExampleModel.js │ │ │ ├── PeoplePicker │ │ │ │ ├── PeoplePicker.Searching.png │ │ │ │ ├── PeoplePicker.js │ │ │ │ └── examples │ │ │ │ │ ├── PeoplePickerCompactExampleModel.js │ │ │ │ │ ├── PeoplePickerExample.hbs │ │ │ │ │ ├── PeoplePickerExampleJS.hbs │ │ │ │ │ ├── PeoplePickerExampleModel.js │ │ │ │ │ ├── PeoplePickerFacePileExampleModel.js │ │ │ │ │ └── PeoplePickerMembersExampleModel.js │ │ │ ├── Persona │ │ │ │ ├── Persona.js │ │ │ │ └── examples │ │ │ │ │ ├── PersonaDefaultExampleModel.js │ │ │ │ │ ├── PersonaExample.hbs │ │ │ │ │ ├── PersonaExampleJS.hbs │ │ │ │ │ ├── PersonaExtraLargeExampleModel.js │ │ │ │ │ ├── PersonaExtraSmallExampleModel.js │ │ │ │ │ ├── PersonaFacePileExampleModel.js │ │ │ │ │ ├── PersonaInitialsExampleModel.js │ │ │ │ │ ├── PersonaLargeExampleModel.js │ │ │ │ │ ├── PersonaPresenceAvailableExampleModel.js │ │ │ │ │ ├── PersonaPresenceAwayExampleModel.js │ │ │ │ │ ├── PersonaPresenceBlockedExampleModel.js │ │ │ │ │ ├── PersonaPresenceBusyExampleModel.js │ │ │ │ │ ├── PersonaPresenceDNDExampleModel.js │ │ │ │ │ ├── PersonaPresenceOfflineExampleModel.js │ │ │ │ │ ├── PersonaSmallExampleModel.js │ │ │ │ │ ├── PersonaTinyExampleModel.js │ │ │ │ │ └── PersonaTokenExampleModel.js │ │ │ ├── PersonaCard │ │ │ │ ├── PersonaCard.js │ │ │ │ └── examples │ │ │ │ │ ├── PersonaCardExample.hbs │ │ │ │ │ ├── PersonaCardExampleJS.hbs │ │ │ │ │ └── PersonaCardExampleModel.js │ │ │ ├── Pivot │ │ │ │ ├── Pivot.js │ │ │ │ └── examples │ │ │ │ │ ├── PivotDefaultExampleModel.js │ │ │ │ │ ├── PivotExample.hbs │ │ │ │ │ ├── PivotExampleJS.hbs │ │ │ │ │ ├── PivotLargeExampleModel.js │ │ │ │ │ ├── PivotLargeTabsExampleModel.js │ │ │ │ │ └── PivotTabsExampleModel.js │ │ │ ├── ProgressIndicator │ │ │ │ ├── ProgressIndicator.js │ │ │ │ └── examples │ │ │ │ │ ├── ProgressIndicatorExample.hbs │ │ │ │ │ ├── ProgressIndicatorExampleJS.hbs │ │ │ │ │ └── ProgressIndicatorExampleModel.js │ │ │ ├── SearchBox │ │ │ │ ├── SearchBox.js │ │ │ │ └── examples │ │ │ │ │ ├── SearchBoxCollapsedExampleModel.js │ │ │ │ │ ├── SearchBoxCommandbarExampleModel.js │ │ │ │ │ ├── SearchBoxExample.hbs │ │ │ │ │ ├── SearchBoxExampleJS.hbs │ │ │ │ │ └── SearchBoxExampleModel.js │ │ │ ├── Spinner │ │ │ │ ├── Spinner.js │ │ │ │ └── examples │ │ │ │ │ ├── SpinnerExample.hbs │ │ │ │ │ ├── SpinnerExampleJS.hbs │ │ │ │ │ ├── SpinnerExampleModel.js │ │ │ │ │ ├── SpinnerLargeExampleModel.js │ │ │ │ │ ├── SpinnerLargeWithLabelExampleModel.js │ │ │ │ │ └── SpinnerWithLabelExampleModel.js │ │ │ ├── Table │ │ │ │ ├── Table.js │ │ │ │ └── examples │ │ │ │ │ ├── TableExample.hbs │ │ │ │ │ ├── TableExampleJS.hbs │ │ │ │ │ ├── TableExampleModel.js │ │ │ │ │ ├── TableFixedExampleModel.js │ │ │ │ │ └── TableSelectableExampleModel.js │ │ │ ├── TextField │ │ │ │ ├── TextField.js │ │ │ │ └── examples │ │ │ │ │ ├── TextFieldDisabledExampleModel.js │ │ │ │ │ ├── TextFieldExample.hbs │ │ │ │ │ ├── TextFieldExampleJS.hbs │ │ │ │ │ ├── TextFieldExampleModel.js │ │ │ │ │ ├── TextFieldMultilineExampleModel.js │ │ │ │ │ ├── TextFieldPlaceholderExampleModel.js │ │ │ │ │ └── TextFieldUnderlinedExampleModel.js │ │ │ └── Toggle │ │ │ │ ├── Toggle.js │ │ │ │ └── examples │ │ │ │ ├── ToggleBasicModel.js │ │ │ │ ├── ToggleDisabledModel.js │ │ │ │ ├── ToggleElem.hbs │ │ │ │ ├── ToggleJS.hbs │ │ │ │ └── ToggleTextLeftModel.js │ │ ├── GetStarted │ │ │ └── GetStarted.hbs │ │ └── HomePage │ │ │ └── HomePage.hbs │ ├── sass │ │ ├── AppContainer.scss │ │ ├── CodeBlock.scss │ │ ├── ComponentPage.scss │ │ ├── ExampleCard.scss │ │ ├── Footer.scss │ │ ├── GetStarted.scss │ │ ├── HLJS.scss │ │ ├── Header.scss │ │ ├── HomePage.scss │ │ ├── ODNavigation.scss │ │ ├── ODNavigationLink.scss │ │ ├── ODSearchbox.scss │ │ ├── PageHeader.scss │ │ ├── SideBar.scss │ │ ├── style.scss │ │ └── styles │ │ │ ├── _mixins.scss │ │ │ ├── _reset.css │ │ │ ├── _typography.scss │ │ │ └── _variables.scss │ └── templates │ │ ├── bundle-template.scss │ │ ├── codeBlock.hbs │ │ ├── component-manifest-template.scss │ │ └── samples-index.hbs ├── samples │ ├── Form │ │ ├── index.html │ │ └── sass │ │ │ └── Form.scss │ ├── Languages │ │ └── index.html │ └── VideoPortal │ │ ├── channel.html │ │ ├── channels.html │ │ ├── index.html │ │ ├── player.html │ │ └── sass │ │ ├── Base.scss │ │ ├── ChannelPage.scss │ │ ├── ChannelsPage.scss │ │ ├── HomePage.scss │ │ ├── NavBar.scss │ │ ├── PlayerPage.scss │ │ ├── SpotLight.scss │ │ ├── Utilities.scss │ │ ├── VideoListItem.scss │ │ └── VideoPortal.scss ├── sass │ └── Fabric.Components.scss └── utilities │ ├── Animate.ts │ ├── Ease.ts │ ├── Polyfills.ts │ └── ResponsiveVariables.js ├── tslint.json └── typings ├── jquery.d.ts ├── node └── node.d.ts └── pickadate.d.ts /.csscomb.json: -------------------------------------------------------------------------------- 1 | { 2 | "remove-empty-rulesets": true, 3 | "always-semicolon": true, 4 | "color-case": "lower", 5 | "block-indent": " ", 6 | "color-shorthand": false, 7 | "element-case": "lower", 8 | "eof-newline": true, 9 | "leading-zero": true, 10 | "quotes": "single", 11 | "space-before-colon": "", 12 | "space-after-colon": " ", 13 | "space-before-combinator": " ", 14 | "space-after-combinator": " ", 15 | "space-between-declarations": "\n", 16 | "space-before-opening-brace": " ", 17 | "space-after-opening-brace": "\n", 18 | "space-after-selector-delimiter": "\n", 19 | "space-before-selector-delimiter": "", 20 | "space-before-closing-brace": "\n", 21 | "strip-spaces": true, 22 | "tab-size": true, 23 | "unitless-zero": false, 24 | "vendor-prefix-align": true 25 | } 26 | 27 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # ========================= 2 | # Project Files 3 | # ========================= 4 | 5 | # Dependencies 6 | bower_components 7 | node_modules 8 | npm-debug.log 9 | 10 | # Fabric files 11 | *.sublime-workspace 12 | docs.css 13 | dist 14 | 15 | # Docs files 16 | docs/app 17 | docs/app-min 18 | docs/temp 19 | docs/components/js/jquery.all-components.min.js 20 | docs/components/js/fabric.components-picker.min.js 21 | 22 | # Auto Generated Files 23 | docs/data 24 | docs/app/data 25 | 26 | # ========================= 27 | # Operating System Files 28 | # ========================= 29 | 30 | # OSX 31 | # ========================= 32 | 33 | .DS_Store 34 | .AppleDouble 35 | .LSOverride 36 | 37 | # Icon must ends with two \r. 38 | Icon 39 | 40 | # Files that might appear on external disk 41 | .Spotlight-V100 42 | .Trashes 43 | 44 | 45 | # Windows 46 | # ========================= 47 | 48 | # Windows image file caches 49 | Thumbs.db 50 | ehthumbs.db 51 | 52 | # Windows Installer files 53 | *.cab 54 | *.msi 55 | *.msm 56 | *.msp 57 | .vscode/ 58 | -------------------------------------------------------------------------------- /.htmllintrc: -------------------------------------------------------------------------------- 1 | { 2 | "doctype-first": "none", 3 | "line-end-style": "none", 4 | "spec-char-escape": true, 5 | "id-no-dup": true, 6 | "class-style": "none", 7 | "attr-name-style": "none" 8 | } -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "curly": true, 3 | "boss": true, 4 | "jquery": true, 5 | "eqeqeq": true, 6 | "strict": false, 7 | "newcap": false, 8 | "undef": true, 9 | "unused": true, 10 | "browser": true 11 | } -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | bower_components 4 | *.sublime* 5 | typings 6 | ghdocs 7 | server 8 | gulp 9 | 10 | .travis.yml 11 | .sass-lint.yml 12 | .htmllintrc 13 | .jshintrc 14 | .csscomb.json -------------------------------------------------------------------------------- /.pullapprove.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | groups: 3 | code-review: 4 | approve_by_comment: 5 | approve_regex: ^Approved 6 | enabled: true 7 | reject_regex: ^Rejected 8 | required: 1 9 | reset_on_push: 10 | enabled: false 11 | users: 12 | - atneik 13 | - battletoilet 14 | - dzearing 15 | - Jahnp 16 | - micahgodbolt 17 | - mikewheaton 18 | - philworthington 19 | - wdo3650 20 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "4.1" 4 | notifications: 5 | email: false 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Office UI Fabric 2 | 3 | Copyright (c) Microsoft Corporation 4 | 5 | All rights reserved. 6 | 7 | MIT License 8 | 9 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 14 | 15 | Note: Usage of the fonts referenced on Office UI Fabric files is subject to the terms listed at http://aka.ms/fabric-font-license 16 | -------------------------------------------------------------------------------- /backup.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/backup.html -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "office-ui-fabric-js", 3 | "author": "Office UI Fabric Team", 4 | "version": "1.4.0", 5 | "description": "The JavaScript front-end framework for building experiences for Office 365.", 6 | "license": "MIT", 7 | "repository": { 8 | "type": "git", 9 | "url": "https://github.com/OfficeDev/Office-UI-Fabric-JS" 10 | }, 11 | "main": "dist/css/fabric.components.css", 12 | "private": false, 13 | "ignore": [ 14 | "node_modules", 15 | "bower_components", 16 | "*.sublime*", 17 | "typings", 18 | "ghdocs", 19 | "server", 20 | "gulp", 21 | ".travis.yml", 22 | ".sass-lint.yml", 23 | ".pullapprove.yml", 24 | ".htmllintrc", 25 | ".jshintrc", 26 | ".csscomb.json" 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /ghdocs/PACKAGES.md: -------------------------------------------------------------------------------- 1 | # Package managers 2 | 3 | Fabric JS is also available from a variety of package managers, including [Bower](https://bower.io/), [npm](https://www.npmjs.com/), and the [NuGet Package Manager](https://www.nuget.org/). You can quickly add Fabric JS as a package and stay up to date with the latest version. 4 | 5 | For information on accessing the previous versions of Fabric that included the components via package managers, check out the [2.6.1 get started docs](https://github.com/OfficeDev/office-ui-fabric-core/blob/master/ghdocs/261GETSTARTED.md). 6 | 7 | ### Install with Bower 8 | To install Fabric using Bower, run the following command: 9 | ``` 10 | $ bower install office-ui-fabric-js 11 | ``` 12 | 13 | ### Install with NPM 14 | To install [Fabric Core's NPM package](https://www.npmjs.com/package/office-ui-fabric-js), run the following command: 15 | ``` 16 | $ npm install office-ui-fabric-js 17 | ``` 18 | 19 | ### Install with NuGet Package Manager 20 | To install [Fabric Core's NuGet package](https://www.nuget.org/packages/OfficeUIFabricJS/), run the following command in the [package manager console](http://docs.nuget.org/consume/package-manager-console): 21 | ``` 22 | PM> Install-Package OfficeUIFabricJS 23 | ``` 24 | -------------------------------------------------------------------------------- /ghdocs/RESOURCES.md: -------------------------------------------------------------------------------- 1 | # Resources 2 | 3 | ## Samples using Fabric 4 | 5 | [Office 365 API - Groups Explorer](https://github.com/OfficeDev/PnP/tree/master/Samples/MicrosoftGraph.Office365.GroupsExplorer) 6 | -------------------------------------------------------------------------------- /ghdocs/ROADMAP.md: -------------------------------------------------------------------------------- 1 | # Fabric Roadmap 2 | 3 | Our roadmap used to be contained in a single markdown file, but has since been transferred to a nifty Trello board where you can view requests, add comments, or even vote so we know what folks need. 4 | 5 | To view the Trello board (that includes old requests that used to be in this file) please see the [Office UI Fabric JS Requests board](https://trello.com/b/wq7oIK87/office-ui-fabric-js-requests). If you'd like to make a new request, please file an issue in [the Fabric JS's issue tracker](https://github.com/OfficeDev/office-ui-fabric-js/issues) so we can add it to the Trello board. 6 | -------------------------------------------------------------------------------- /ghdocs/component_images/Breadcrumb-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Breadcrumb-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/Button-compound.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Button-compound.png -------------------------------------------------------------------------------- /ghdocs/component_images/Button-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Button-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/Button-hero.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Button-hero.png -------------------------------------------------------------------------------- /ghdocs/component_images/Button-primary.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Button-primary.png -------------------------------------------------------------------------------- /ghdocs/component_images/Callout-action.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Callout-action.png -------------------------------------------------------------------------------- /ghdocs/component_images/Callout-close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Callout-close.png -------------------------------------------------------------------------------- /ghdocs/component_images/Callout-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Callout-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/Callout-oobe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Callout-oobe.png -------------------------------------------------------------------------------- /ghdocs/component_images/Callout-peek.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Callout-peek.png -------------------------------------------------------------------------------- /ghdocs/component_images/CheckBox-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/CheckBox-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/ChoiceFieldGroup-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/ChoiceFieldGroup-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/CommandBar-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/CommandBar-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/CommandBar-dropdowns.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/CommandBar-dropdowns.png -------------------------------------------------------------------------------- /ghdocs/component_images/CommandBar-navbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/CommandBar-navbar.png -------------------------------------------------------------------------------- /ghdocs/component_images/CommandButton-action.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/CommandButton-action.png -------------------------------------------------------------------------------- /ghdocs/component_images/CommandButton-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/CommandButton-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/CommandButton-disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/CommandButton-disabled.png -------------------------------------------------------------------------------- /ghdocs/component_images/CommandButton-dropdown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/CommandButton-dropdown.png -------------------------------------------------------------------------------- /ghdocs/component_images/CommandButton-inline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/CommandButton-inline.png -------------------------------------------------------------------------------- /ghdocs/component_images/CommandButton-nolabel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/CommandButton-nolabel.png -------------------------------------------------------------------------------- /ghdocs/component_images/CommandButton-nolabelsplit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/CommandButton-nolabelsplit.png -------------------------------------------------------------------------------- /ghdocs/component_images/CommandButton-pivot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/CommandButton-pivot.png -------------------------------------------------------------------------------- /ghdocs/component_images/CommandButton-split.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/CommandButton-split.png -------------------------------------------------------------------------------- /ghdocs/component_images/CommandButton-textonly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/CommandButton-textonly.png -------------------------------------------------------------------------------- /ghdocs/component_images/ContextualMenu-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/ContextualMenu-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/ContextualMenu-dividers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/ContextualMenu-dividers.png -------------------------------------------------------------------------------- /ghdocs/component_images/ContextualMenu-multiselect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/ContextualMenu-multiselect.png -------------------------------------------------------------------------------- /ghdocs/component_images/ContextualMenu-submenu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/ContextualMenu-submenu.png -------------------------------------------------------------------------------- /ghdocs/component_images/DatePicker-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/DatePicker-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/Dialog-blocking.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Dialog-blocking.png -------------------------------------------------------------------------------- /ghdocs/component_images/Dialog-close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Dialog-close.png -------------------------------------------------------------------------------- /ghdocs/component_images/Dialog-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Dialog-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/Dialog-largeheader.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Dialog-largeheader.png -------------------------------------------------------------------------------- /ghdocs/component_images/Dialog-multiline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Dialog-multiline.png -------------------------------------------------------------------------------- /ghdocs/component_images/Dropdown-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Dropdown-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/Dropdown-disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Dropdown-disabled.png -------------------------------------------------------------------------------- /ghdocs/component_images/FacePile-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/FacePile-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/Label-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Label-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/Label-disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Label-disabled.png -------------------------------------------------------------------------------- /ghdocs/component_images/Label-required.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Label-required.png -------------------------------------------------------------------------------- /ghdocs/component_images/Link-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Link-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/List-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/List-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/ListItem-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/ListItem-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/ListItem-document.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/ListItem-document.png -------------------------------------------------------------------------------- /ghdocs/component_images/ListItem-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/ListItem-image.png -------------------------------------------------------------------------------- /ghdocs/component_images/MessageBanner-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/MessageBanner-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/MessageBar-blocked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/MessageBar-blocked.png -------------------------------------------------------------------------------- /ghdocs/component_images/MessageBar-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/MessageBar-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/MessageBar-error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/MessageBar-error.png -------------------------------------------------------------------------------- /ghdocs/component_images/MessageBar-severewarning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/MessageBar-severewarning.png -------------------------------------------------------------------------------- /ghdocs/component_images/MessageBar-success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/MessageBar-success.png -------------------------------------------------------------------------------- /ghdocs/component_images/MessageBar-warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/MessageBar-warning.png -------------------------------------------------------------------------------- /ghdocs/component_images/OrgChart-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/OrgChart-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/Overlay-dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Overlay-dark.png -------------------------------------------------------------------------------- /ghdocs/component_images/Overlay-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Overlay-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/Panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Panel.png -------------------------------------------------------------------------------- /ghdocs/component_images/PeoplePicker-compact.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/PeoplePicker-compact.png -------------------------------------------------------------------------------- /ghdocs/component_images/PeoplePicker-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/PeoplePicker-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/PeoplePicker-facepile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/PeoplePicker-facepile.png -------------------------------------------------------------------------------- /ghdocs/component_images/Persona-circle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Persona-circle.png -------------------------------------------------------------------------------- /ghdocs/component_images/Persona-facepile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Persona-facepile.png -------------------------------------------------------------------------------- /ghdocs/component_images/Persona-initials.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Persona-initials.png -------------------------------------------------------------------------------- /ghdocs/component_images/Persona-presence.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Persona-presence.png -------------------------------------------------------------------------------- /ghdocs/component_images/Persona-token.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Persona-token.png -------------------------------------------------------------------------------- /ghdocs/component_images/PersonaCard-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/PersonaCard-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/Pivot-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Pivot-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/Pivot-large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Pivot-large.png -------------------------------------------------------------------------------- /ghdocs/component_images/Pivot-largetabs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Pivot-largetabs.png -------------------------------------------------------------------------------- /ghdocs/component_images/Pivot-tabs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Pivot-tabs.png -------------------------------------------------------------------------------- /ghdocs/component_images/ProgressIndicator-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/ProgressIndicator-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/SearchBox-collapsed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/SearchBox-collapsed.png -------------------------------------------------------------------------------- /ghdocs/component_images/SearchBox-commandbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/SearchBox-commandbar.png -------------------------------------------------------------------------------- /ghdocs/component_images/SearchBox-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/SearchBox-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/Spinner-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Spinner-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/Spinner-defaultwithlabel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Spinner-defaultwithlabel.png -------------------------------------------------------------------------------- /ghdocs/component_images/Spinner-large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Spinner-large.png -------------------------------------------------------------------------------- /ghdocs/component_images/Spinner-largewithlabel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Spinner-largewithlabel.png -------------------------------------------------------------------------------- /ghdocs/component_images/Table-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Table-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/Table-fixed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Table-fixed.png -------------------------------------------------------------------------------- /ghdocs/component_images/Table-selectable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Table-selectable.png -------------------------------------------------------------------------------- /ghdocs/component_images/TextField-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/TextField-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/TextField-disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/TextField-disabled.png -------------------------------------------------------------------------------- /ghdocs/component_images/TextField-multiline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/TextField-multiline.png -------------------------------------------------------------------------------- /ghdocs/component_images/TextField-placeholdertext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/TextField-placeholdertext.png -------------------------------------------------------------------------------- /ghdocs/component_images/TextField-underlined.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/TextField-underlined.png -------------------------------------------------------------------------------- /ghdocs/component_images/Toggle-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Toggle-default.png -------------------------------------------------------------------------------- /ghdocs/component_images/Toggle-disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Toggle-disabled.png -------------------------------------------------------------------------------- /ghdocs/component_images/Toggle-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/ghdocs/component_images/Toggle-left.png -------------------------------------------------------------------------------- /ghdocs/components/Link.md: -------------------------------------------------------------------------------- 1 | # Link 2 | Used to create a hyperlink to another location. 3 | 4 | ## Variants 5 | 6 | ### Default 7 | 8 | 9 | ![Link example](https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/master/ghdocs/component_images/Link-default.png) 10 | 11 | 12 | ## States 13 | This component has only the default state. 14 | 15 | ## Using this component 16 | 1. Confirm that you have references to Fabric's CSS on your page: 17 | 18 | ``` 19 | 20 | 21 | 22 | 23 | ``` 24 | 25 | 2. Copy the HTML from one of the samples above into your page. For example: 26 | 27 | ``` 28 |
29 | Example Link 30 |
31 | ``` 32 | 33 | 3. Replace the sample text with the text of your link. 34 | 35 | ## Dependencies 36 | This component has no dependencies on other components. 37 | 38 | ## Accessibility 39 | Use the `title` attribute to provide additional text describing the link, if the link text itself is not descriptive enough. 40 | 41 | ## Notes 42 | The Link inherits the font family, size, and weight of its parent element. This is why we have placed it within `.ms-font-m` wrapper in the sample above. 43 | -------------------------------------------------------------------------------- /gulp/BuildMessages.js: -------------------------------------------------------------------------------- 1 | var gulp = require('gulp'); 2 | var BuildConfig = require('./modules/BuildConfig'); 3 | var ConsoleHelper = require('./modules/ConsoleHelper'); 4 | var Config = require('./modules/Config'); 5 | 6 | // 7 | // Fabric Messages 8 | // ---------------------------------------------------------------------------- 9 | 10 | // var allFinishedtasks = watchTasks.concat(['Errors-checkAllErrors']); 11 | gulp.task('BuildMessages-finished', BuildConfig.buildTasks, function () { 12 | return console.log(ConsoleHelper.generateSuccess('All Fabric built successfully, you may now celebrate and dance!', true)); 13 | }); 14 | 15 | gulp.task('BuildMessages-server', BuildConfig.buildTasks, function () { 16 | return console.log(ConsoleHelper.generateSuccess('Fabric built successfully! ' + "\r\n" + 'Fabric samples located at ' + Config.projectURL + ':' + Config.port, false)); 17 | }); 18 | 19 | gulp.task('BuildMessages-updated', BuildConfig.buildTasks, function () { 20 | return console.log(ConsoleHelper.generateSuccess('UPDATE COMPLETE: All Fabric parts updated successfully! Yay!', false)); 21 | }); 22 | -------------------------------------------------------------------------------- /gulp/ConfigureEnvironment.js: -------------------------------------------------------------------------------- 1 | var gulp = require('gulp'); 2 | var Config = require('./modules/Config'); 3 | var BuildConfig = require('./modules/BuildConfig'); 4 | var Plugins = require('./modules/Plugins'); 5 | var ErrorHandling = require('./modules/ErrorHandling'); 6 | 7 | gulp.task('ConfigureEnvironment-setDebugMode', function() { 8 | Config.debugMode = true; 9 | return; 10 | }); 11 | -------------------------------------------------------------------------------- /gulp/Server.js: -------------------------------------------------------------------------------- 1 | var gulp = require('gulp'); 2 | var BuildConfig = require('./modules/BuildConfig'); 3 | var Server = require('./modules/Server'); 4 | var running = false; 5 | 6 | gulp.task('Server', function(cb) { 7 | return Server.start(); 8 | }); 9 | -------------------------------------------------------------------------------- /gulp/modules/BuildConfig.js: -------------------------------------------------------------------------------- 1 | /** Class for working adding banners to files */ 2 | var Config = require('./Config'); 3 | var Plugins = require('./Plugins'); 4 | var ErrorHandling = require('./ErrorHandling'); 5 | 6 | var BuildConfig = function() { 7 | this.srcPath = Config.paths.srcSass; 8 | this.processorPlugin = Plugins.sass; 9 | this.fileExtension = Config.sassExtension; 10 | this.template = 'component-manifest-template.scss'; 11 | this.compileErrorHandler = ErrorHandling.SASSCompileErrors; 12 | this.processorName = "sass"; 13 | this.nukeTasks = []; 14 | this.buildTasks = []; 15 | }; 16 | 17 | module.exports = new BuildConfig(); -------------------------------------------------------------------------------- /gulp/modules/ConsoleHelper.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs'); 2 | var path = require('path'); 3 | var colors = require('colors/safe'); 4 | /** 5 | * Class to help format messages for the console 6 | */ 7 | var ConsoleHelper = function() { 8 | /** 9 | * Generate a success message for the console 10 | * @param {string} message Success message to be printed to the console 11 | * @param {boolean} showTip Whether or not to show a "tip" message to the user 12 | */ 13 | this.generateSuccess = function(message, showTip) { 14 | var spacing = "\r\n"; 15 | var tipsMessage = ""; 16 | var spaceDashes = colors.rainbow("---------------------------------------------------"); 17 | if (showTip === true) { 18 | tipsMessage = colors.gray("TIP: To test changes to Fabric source, check under /samples for demo HTML files of each Component.") + spacing; 19 | } 20 | var consoleText = colors.green("Fabric Message: ") + colors.cyan(message); 21 | var completeMessage = spaceDashes + spacing + spacing + consoleText + spacing + tipsMessage + spacing + spaceDashes; 22 | return completeMessage; 23 | }; 24 | }; 25 | 26 | module.exports = new ConsoleHelper(); -------------------------------------------------------------------------------- /gulp/modules/renderPartial.js: -------------------------------------------------------------------------------- 1 | module.exports = function(partial, props) { 2 | var hbs = Plugins.handlebars.Handlebars; 3 | var fileContents = Plugins.fs.readFileSync(Config.paths.componentsPath + '/' + partial + '/' + partial +'.html', "utf8"); 4 | var template = hbs.compile(fileContents); 5 | var thisProps = {props: props}; 6 | return new hbs.SafeString(template(thisProps)); 7 | } -------------------------------------------------------------------------------- /lib/scrollTo.js: -------------------------------------------------------------------------------- 1 | function scrollIt(e,t,o){function n(){document.documentElement.scrollTop+=1;const e=0!==document.documentElement.scrollTop?document.documentElement:document.body;return document.documentElement.scrollTop-=1,e}function c(){const e=Date.now(),o=Math.min(1,(e-d)/t),n=o*(2-o);m.scrollTop=n*(s-l)+l,m.scrollTop!==s&&requestAnimationFrame(c)}const m=n(),l=m.scrollTop,d=Date.now(),u=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight),i=window.innerHeight||document.documentElement.clientHeight||document.getElementsByTagName("body")[0].clientHeight,s=i>u-e?u-i:e;c()} -------------------------------------------------------------------------------- /src/components/Breadcrumb/Breadcrumb.hbs: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |
6 |
    7 |
    8 | 9 |
    10 | 18 |
    -------------------------------------------------------------------------------- /src/components/Breadcrumb/Breadcrumb.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Breadcrumb", 3 | "dependencies": [ 4 | "ContextualMenu" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /src/components/Button/Button.hbs: -------------------------------------------------------------------------------- 1 | 2 | <{{props.tag}} class="ms-Button 3 | {{~#if props.customClasses}} {{props.customClasses}}{{/if}} 4 | {{~#if props.modifier}} ms-Button--{{props.modifier}}{{/if}} 5 | {{~#if props.label}}{{else}} ms-Button--noLabel{{/if}}"> 6 | {{#if props.icon}} 7 | 8 | {{/if}} 9 | {{props.label}} 10 | {{#if props.description}} 11 | {{props.description}} 12 | {{/if}} 13 | {{#if props.dropdownIcon}} 14 | 15 | {{/if}} 16 | -------------------------------------------------------------------------------- /src/components/Button/Button.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Button", 3 | "props": { 4 | "label": "Create Account", 5 | "tag": "button" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/components/Button/Button.ts: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | /** 4 | * Button 5 | * 6 | * Mostly just a click handler 7 | * 8 | */ 9 | namespace fabric { 10 | "use strict"; 11 | 12 | export class Button { 13 | 14 | private _container: Element; 15 | private _clickHandler: EventListener; 16 | 17 | constructor(container: Element, clickHandler?: EventListener) { 18 | this._container = container; 19 | 20 | if (clickHandler) { 21 | this._clickHandler = clickHandler; 22 | this._setClick(); 23 | } 24 | } 25 | 26 | public disposeEvents() { 27 | this._container.removeEventListener("click", this._clickHandler, false); 28 | } 29 | 30 | private _setClick() { 31 | this._container.addEventListener("click", this._clickHandler, false); 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/components/Button/IButton.ts: -------------------------------------------------------------------------------- 1 | interface IButton { 2 | container?: Element; 3 | label?: string; 4 | icon?: string; 5 | modifier?: string; 6 | tag?: string; 7 | } 8 | -------------------------------------------------------------------------------- /src/components/Callout/Callout.hbs: -------------------------------------------------------------------------------- 1 |
    2 |
    3 | {{#if props.closeIcon}} 4 | 7 | {{/if}} 8 |
    9 |

    {{{props.title}}}

    10 |
    11 |
    12 |
    13 |

    {{props.subText}}

    14 |
    15 |
    16 | {{#each props.actions}} 17 | {{renderPartial component props}} 18 | {{/each}} 19 |
    20 |
    21 |
    22 |
    -------------------------------------------------------------------------------- /src/components/Callout/Callout.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Callout", 3 | "dependencies": [ 4 | "Button", 5 | "Label", 6 | "Link", 7 | "ContextualHost", 8 | "CommandButton" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /src/components/CheckBox/CheckBox.hbs: -------------------------------------------------------------------------------- 1 | 2 |
    3 | 4 | 12 |
    -------------------------------------------------------------------------------- /src/components/CheckBox/CheckBox.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CheckBox", 3 | "dependencies": [ 4 | "Label" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /src/components/ChoiceFieldGroup/ChoiceFieldGroup.hbs: -------------------------------------------------------------------------------- 1 | 2 |
    3 |
    4 | 5 |
    6 | 11 |
    -------------------------------------------------------------------------------- /src/components/ChoiceFieldGroup/ChoiceFieldGroup.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ChoiceFieldGroup", 3 | "dependencies": [ 4 | "Label", 5 | "CheckBox" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /src/components/ChoiceFieldGroup/ChoiceFieldGroup.scss: -------------------------------------------------------------------------------- 1 | //== Component: Choicefield group 2 | // 3 | // Choice field groups contain multiple radio buttons or checkboxes 4 | .ms-ChoiceFieldGroup { 5 | @include ms-baseFont; 6 | margin-bottom: 4px; 7 | 8 | .ms-ChoiceFieldGroup-list { 9 | padding: 0; 10 | margin: 0; 11 | list-style: none; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/components/CommandBar/CommandBar.hbs: -------------------------------------------------------------------------------- 1 | 2 |
    3 | {{#if props.sideCommands}} 4 |
    5 | {{#each props.sideCommands}} 6 | {{renderPartial component props}} 7 | {{/each}} 8 |
    9 | {{/if}} 10 |
    11 | {{#if props.transientComponent}} 12 | {{renderPartial props.transientComponent.component props.transientComponent.props}} 13 | {{/if}} 14 | {{#each props.commands}} 15 | {{renderPartial component props}} 16 | {{/each}} 17 | {{#if props.overflow}} 18 | 19 | {{renderPartial props.overflow.component props.overflow.props}} 20 | 21 | {{/if}} 22 |
    23 |
    -------------------------------------------------------------------------------- /src/components/CommandBar/CommandBar.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CommandBar", 3 | "dependencies": [ 4 | "ContextualMenu", 5 | "Button", 6 | "Label", 7 | "SearchBox", 8 | "CommandButton", 9 | "ContextualHost" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /src/components/CommandButton/CommandButton.hbs: -------------------------------------------------------------------------------- 1 | 2 |
    7 | <{{props.tag}} class="ms-CommandButton-button" {{#if props.disabled}}tabIndex="-1"{{/if}}> 8 | {{#if props.icon}} 9 | 10 | {{/if}}{{props.label}} 11 | {{#if props.dropdownIcon}} 12 | 13 | {{/if}} 14 | 15 | {{#if props.splitIcon}} 16 | <{{props.tag}} class="ms-CommandButton-splitIcon"> 17 | 18 | 19 | {{/if}} 20 | {{#if props.dropdown}} 21 | {{renderPartial props.dropdown.component props.dropdown.props}} 22 | {{/if}} 23 |
    -------------------------------------------------------------------------------- /src/components/CommandButton/CommandButton.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CommandButton", 3 | "dependencies": [ 4 | "ContextualMenu", 5 | "ContextualHost" 6 | ], 7 | "props": { 8 | "label": "Command", 9 | "icon": "circleFill", 10 | "tag": "button", 11 | "iconColor": "themePrimary" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/components/ContextualHost/ContextualHost.hbs: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    7 |
    8 | {{#if @partial-block}} {{> @partial-block }} {{/if}} 9 |
    10 |
    11 |
    -------------------------------------------------------------------------------- /src/components/ContextualHost/ContextualHost.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ContextualHost" 3 | } 4 | -------------------------------------------------------------------------------- /src/components/ContextualMenu/ContextualMenu.hbs: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/components/ContextualMenu/ContextualMenu.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ContextualMenu", 3 | "dependencies": [ 4 | "ContextualHost" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /src/components/ContextualMenu/IContextualMenu.ts: -------------------------------------------------------------------------------- 1 | 2 | export interface IContextualMenuItem { 3 | title: string; 4 | state: string; 5 | } 6 | 7 | export interface IContextualMenu { 8 | items: Array; 9 | state?: string; 10 | } 11 | -------------------------------------------------------------------------------- /src/components/DatePicker/DatePicker.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "DatePicker" 3 | } 4 | -------------------------------------------------------------------------------- /src/components/DetailsList/DetailsList.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "DetailsList", 3 | "notes": "", 4 | "description": "DetailsList is a derivative of List and provides a sortable, filterable, justified table for rendering large sets of items.", 5 | "template": "DetailsList.html", 6 | "class": "ms-DetailsList", 7 | "branches": [ 8 | { 9 | "name": "Default", 10 | "default": true 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /src/components/DetailsList/jquery.DetailsList.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | /** 4 | * List Item Plugin 5 | * 6 | * Adds basic demonstration functionality to .ms-DetailsList components. 7 | * 8 | * @param {jQuery Object} One or more .ms-DetailsList components 9 | * @return {jQuery Object} The same components (allows for chaining) 10 | */ 11 | // (function ($) { 12 | // $.fn.DetailsList = function () { 13 | 14 | // /** Go through each panel we've been given. */ 15 | // return this.each(function () { 16 | 17 | // var $DetailsList = $(this); 18 | 19 | // /** Detect clicks on selectable list items. */ 20 | // $DetailsList.on('click', '.js-toggleSelection', function() { 21 | // $(this).parents('.ms-DetailsList').toggleClass('is-selected'); 22 | // }); 23 | 24 | // }); 25 | 26 | // }; 27 | // })(jQuery); 28 | -------------------------------------------------------------------------------- /src/components/Dialog/Dialog.hbs: -------------------------------------------------------------------------------- 1 | 2 |
    4 | {{#if props.closeIcon}} 5 | 8 | {{/if}} 9 |
    {{props.title}}
    10 |
    11 | {{#if props.subText}} 12 |

    {{props.subText}}

    13 | {{/if}} 14 | {{#if props.components}} 15 | {{#each props.components}} 16 | {{renderPartial component props}} 17 | {{/each}} 18 | {{/if}} 19 |
    20 | {{#if props.actions}} 21 |
    22 | {{#each props.actions}} 23 | {{renderPartial component props}} 24 | {{/each}} 25 |
    26 | {{/if}} 27 |
    -------------------------------------------------------------------------------- /src/components/Dialog/Dialog.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Dialog", 3 | "dependencies": [ 4 | "Button", 5 | "CheckBox", 6 | "Overlay", 7 | "ContextualHost" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /src/components/DialogHost/DialogHost.hbs: -------------------------------------------------------------------------------- 1 |
    3 |
    4 | {{#if @partial-block}} {{> @partial-block }} {{/if}} 5 |
    6 |
    -------------------------------------------------------------------------------- /src/components/DialogHost/DialogHost.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "DialogHost" 3 | } 4 | -------------------------------------------------------------------------------- /src/components/DialogHost/DialogHost.scss: -------------------------------------------------------------------------------- 1 | .ms-DialogHost { 2 | @include ms-baseFont; 3 | @include drop-shadow; 4 | background-color: $ms-color-white; 5 | box-sizing: border-box; 6 | line-height: 1.35; 7 | width: 288px; 8 | position: relative; 9 | text-align: left; 10 | outline: 1px solid transparent; 11 | } 12 | -------------------------------------------------------------------------------- /src/components/DialogHost/DialogHost.ts: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | // "use strict"; 3 | 4 | namespace fabric { 5 | 6 | /** 7 | * DialogHost class 8 | */ 9 | export class DialogHost { 10 | // @TODO: Implement this. 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/components/Dropdown/Dropdown.hbs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
    7 | 8 | 9 | 14 |
    -------------------------------------------------------------------------------- /src/components/Dropdown/Dropdown.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Dropdown", 3 | "dependencies": [ 4 | "Label" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /src/components/FacePile/FacePile.hbs: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 | 7 | {{#each props.members}} 8 | {{> Persona props=props}} 9 | {{/each}} 10 | 13 |
    -------------------------------------------------------------------------------- /src/components/FacePile/FacePile.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "FacePile", 3 | "dependencies": [ 4 | "Overlay", 5 | "Link", 6 | "Panel", 7 | "PeoplePicker", 8 | "Persona", 9 | "PersonaCard", 10 | "Spinner", 11 | "ContextualHost" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /src/components/Label/Label.hbs: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/components/Label/Label.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Label" 3 | } 4 | -------------------------------------------------------------------------------- /src/components/Label/Label.scss: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Form field label styles 7 | 8 | @mixin ms-Label-is-disabled { 9 | color: $ms-color-neutralTertiary; 10 | } 11 | 12 | @mixin ms-Label-is-required { 13 | &::after { 14 | content: ' *'; 15 | color: $ms-color-error; 16 | } 17 | } 18 | 19 | .ms-Label { 20 | @include ms-baseFont; 21 | @include ms-u-normalize; 22 | color: $ms-color-neutralPrimary; 23 | font-size: $ms-font-size-s; 24 | font-weight: $ms-font-weight-regular; 25 | box-sizing: border-box; 26 | display: block; 27 | padding: 5px 0; 28 | 29 | &.is-required { 30 | @include ms-Label-is-required; 31 | } 32 | 33 | &.is-disabled { 34 | @include ms-Label-is-disabled; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/components/Link/Link.hbs: -------------------------------------------------------------------------------- 1 | 2 | {{props.label}} -------------------------------------------------------------------------------- /src/components/Link/Link.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Link" 3 | } 4 | -------------------------------------------------------------------------------- /src/components/Link/Link.scss: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Link (anchor) styles 7 | 8 | 9 | @mixin ms-Link { 10 | @include ms-baseFont; 11 | font-size: $ms-font-size-m; 12 | font-weight: $ms-font-weight-regular; 13 | color: $ms-color-themePrimary; 14 | text-decoration: none; 15 | cursor: pointer; 16 | outline: none; 17 | 18 | &:hover, 19 | &:focus { 20 | color: $ms-color-themeDarker; 21 | } 22 | 23 | &:active { 24 | color: $ms-color-themePrimary; 25 | } 26 | } 27 | 28 | .ms-Link { 29 | @include ms-Link; 30 | } 31 | -------------------------------------------------------------------------------- /src/components/List/List.hbs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | -------------------------------------------------------------------------------- /src/components/List/List.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "List", 3 | "dependencies": [ 4 | "ListItem" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /src/components/List/List.scss: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // List styles 7 | 8 | .ms-List { 9 | @include ms-baseFont; 10 | @include ms-u-normalize; 11 | color: $ms-color-neutralPrimary; 12 | font-size: $ms-font-size-m; 13 | font-weight: $ms-font-weight-regular; 14 | list-style-type: none; 15 | } 16 | -------------------------------------------------------------------------------- /src/components/List/List.ts: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | /// 3 | "use strict"; 4 | 5 | namespace fabric { 6 | /** 7 | * List Item Plugin 8 | * 9 | * Adds basic demonstration functionality to .ms-List components. 10 | * 11 | */ 12 | export class List { 13 | 14 | private _container: HTMLElement; 15 | private _listItemComponents: ListItem[]; 16 | 17 | /** 18 | * 19 | * @param {HTMLElement} container - the target container for an instance of List 20 | * @constructor 21 | */ 22 | constructor(container: HTMLElement) { 23 | this._container = container; 24 | this._listItemComponents = []; 25 | let choiceFieldElements: NodeListOf = this._container.querySelectorAll(".ms-ListItem"); 26 | for (let i: number = 0; i < choiceFieldElements.length; i++) { 27 | this._listItemComponents[i] = new fabric.ListItem(choiceFieldElements[i]); 28 | } 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/components/ListItem/ListItem.hbs: -------------------------------------------------------------------------------- 1 | 2 | 3 |
  • 6 | {{#if props.image}}
    {{/if}} 7 | {{#if props.primaryText}}{{props.primaryText}}{{/if}} 8 | {{#if props.secondaryText}}{{props.secondaryText}}{{/if}} 9 | {{#if props.tertiaryText}}{{props.tertiaryText}}{{/if}} 10 | {{#if props.metaText}}{{props.metaText}}{{/if}} 11 | {{#if props.listIcon}}
    {{/if}} 12 |
    13 |
    14 | {{#each props.actions}}{{/each}} 15 |
    16 |
    17 |
    18 |
    19 |
    20 |
  • 21 | 22 | -------------------------------------------------------------------------------- /src/components/ListItem/ListItem.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ListItem", 3 | "dependencies": [ 4 | "List" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /src/components/ListItem/ListItem.ts: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | "use strict"; 4 | 5 | namespace fabric { 6 | /** 7 | * List Item Plugin 8 | * 9 | * Adds basic demonstration functionality to .ms-ListItem components. 10 | * 11 | */ 12 | export class ListItem { 13 | 14 | private _container: HTMLElement; 15 | private _toggleElement: HTMLElement; 16 | 17 | /** 18 | * 19 | * @param {HTMLElement} container - the target container for an instance of ListItem 20 | * @constructor 21 | */ 22 | constructor(container: HTMLElement) { 23 | this._container = container; 24 | this._toggleElement = this._container.querySelector(".ms-ListItem-selectionTarget"); 25 | this._addListeners(); 26 | } 27 | 28 | public removeListeners(): void { 29 | this._toggleElement.removeEventListener("click", this._toggleHandler.bind(this)); 30 | } 31 | 32 | private _addListeners(): void { 33 | this._toggleElement.addEventListener("click", this._toggleHandler.bind(this), false); 34 | } 35 | 36 | private _toggleHandler(): void { 37 | this._container.classList.toggle("is-selected"); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/components/MessageBanner/MessageBanner.hbs: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 |
    5 |
    6 |
    7 | {{props.message}} 8 |
    9 |
    10 | 13 |
    14 | {{renderPartial props.button.name props.button.props}} 15 |
    16 |
    17 | 20 |
    21 | -------------------------------------------------------------------------------- /src/components/MessageBanner/MessageBanner.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "MessageBanner", 3 | "dependencies": [ 4 | "Button" 5 | ], 6 | "props": { 7 | "message": "You've reached your total storage on OneDrive. Please upgrade your storage plan if you need more storage.", 8 | "button": { 9 | "name": "Button", 10 | "props": { 11 | "label": "Get More Storage", 12 | "modifier": "primary", 13 | "tag": "button" 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/components/MessageBar/MessageBar.hbs: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    5 |
    6 |
    7 | 9 |
    10 |
    11 | Lorem ipsum dolor sit amet, a elit sem interdum consectetur adipiscing elit.
    12 | Hyperlink string 13 |
    14 |
    15 |
    16 | -------------------------------------------------------------------------------- /src/components/MessageBar/MessageBar.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "MessageBar", 3 | "dependencies": [ 4 | "Link" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /src/components/OrgChart/OrgChart.hbs: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    5 | {{#each props.groups}} 6 |
    7 | {{#if title}}
    {{title}}
    {{/if}} 8 |
      9 | {{#each personas}} 10 |
    • 11 | 14 |
    • 15 | {{/each}} 16 |
    17 |
    18 | {{/each}} 19 |
    -------------------------------------------------------------------------------- /src/components/OrgChart/OrgChart.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "OrgChart", 3 | "dependencies": [ 4 | "Persona" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /src/components/OrgChart/OrgChart.scss: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Org chart styles 7 | 8 | 9 | .ms-OrgChart { 10 | @include ms-baseFont; 11 | @include ms-u-normalize; 12 | color: $ms-color-neutralPrimary; 13 | font-size: $ms-font-size-m; 14 | font-weight: $ms-font-weight-regular; 15 | } 16 | 17 | .ms-OrgChart-groupTitle { 18 | color: $ms-color-neutralSecondary; 19 | line-height: 1; 20 | } 21 | 22 | .ms-OrgChart-list { 23 | padding: 0; 24 | margin: 12px 0 16px; 25 | } 26 | 27 | .ms-OrgChart-listItem { 28 | height: 50px; 29 | width: 100%; 30 | position: relative; 31 | list-style: none; 32 | margin-bottom: 8px; 33 | } 34 | 35 | .ms-OrgChart-listItemBtn { 36 | @include button-reset; 37 | position: relative; 38 | height: 50px; 39 | width: 100%; 40 | background: none; 41 | border: 0; 42 | text-align: left; 43 | margin: 0; 44 | padding: 0; 45 | } 46 | -------------------------------------------------------------------------------- /src/components/Overlay/Overlay.hbs: -------------------------------------------------------------------------------- 1 | 2 |
    -------------------------------------------------------------------------------- /src/components/Overlay/Overlay.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Overlay" 3 | } 4 | -------------------------------------------------------------------------------- /src/components/Overlay/Overlay.scss: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Modal overlay styles 7 | 8 | 9 | .ms-Overlay { 10 | @include ms-baseFont; 11 | background-color: $ms-color-whiteTranslucent40; 12 | position: fixed; 13 | bottom: 0; 14 | left: 0; 15 | right: 0; 16 | top: 0; 17 | z-index: $ms-zIndex-back; 18 | display: none; 19 | } 20 | 21 | .ms-Overlay.is-visible { 22 | display: block; 23 | } 24 | 25 | //== Modifier: Dark overlay 26 | // 27 | .ms-Overlay--dark { 28 | background-color: $ms-color-blackTranslucent40; 29 | } 30 | 31 | .ms-u-overflowHidden { 32 | overflow: hidden; 33 | } 34 | -------------------------------------------------------------------------------- /src/components/Overlay/Overlay.ts: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | namespace fabric { 4 | 5 | export class Overlay { 6 | public overlayElement: HTMLElement; 7 | 8 | constructor(overlayElement?: HTMLElement) { 9 | if (overlayElement) { 10 | this.overlayElement = overlayElement; 11 | } else { 12 | let overlayContainer = document.createElement("div"); 13 | overlayContainer.setAttribute("class", "ms-Overlay"); 14 | this.overlayElement = overlayContainer; 15 | } 16 | this.overlayElement.addEventListener("click", this.hide.bind(this), false); 17 | } 18 | 19 | public remove() { 20 | this.overlayElement.parentElement.removeChild(this.overlayElement); 21 | } 22 | 23 | public show(): void { 24 | this.overlayElement.classList.add("is-visible"); 25 | document.body.classList.add("ms-u-overflowHidden"); 26 | } 27 | 28 | public hide(): void { 29 | this.overlayElement.classList.remove("is-visible"); 30 | document.body.classList.remove("ms-u-overflowHidden"); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/components/Panel/Panel.hbs: -------------------------------------------------------------------------------- 1 | 2 |
    3 | 6 |
    7 |

    {{props.headerText}}

    8 |
    9 | {{props.content}} 10 |
    11 |
    12 |
    -------------------------------------------------------------------------------- /src/components/Panel/Panel.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Panel" 3 | } 4 | -------------------------------------------------------------------------------- /src/components/PanelHost/PanelHost.hbs: -------------------------------------------------------------------------------- 1 |
    2 | {{> Overlay }} 3 |
    -------------------------------------------------------------------------------- /src/components/PanelHost/PanelHost.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "PanelHost", 3 | "dependencies": [ 4 | "Overlay" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /src/components/PanelHost/PanelHost.scss: -------------------------------------------------------------------------------- 1 | // The panel covers the entire screen. 2 | .ms-PanelHost { 3 | @include ms-baseFont; 4 | bottom: 0; 5 | left: 0; 6 | position: fixed; 7 | right: 0; 8 | top: 0; 9 | z-index: $ms-zIndex-front; 10 | } 11 | 12 | .ms-PanelHost .ms-Overlay { 13 | cursor: pointer; 14 | } 15 | -------------------------------------------------------------------------------- /src/components/PeoplePicker/PeoplePicker.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "PeoplePicker", 3 | "dependencies": [ 4 | "Label", 5 | "Persona", 6 | "PersonaCard", 7 | "Spinner", 8 | "TextField", 9 | "ContextualHost", 10 | "OrgChart" 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /src/components/Persona/Persona.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Persona", 3 | "dependencies": [ 4 | "PersonaCard", 5 | "ContextualHost" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /src/components/PersonaCard/PersonaCard.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "PersonaCard" 3 | } 4 | -------------------------------------------------------------------------------- /src/components/Pivot/Pivot.hbs: -------------------------------------------------------------------------------- 1 | 2 |
    3 | 15 | {{#each props.links}} 16 |
    17 | {{content}} 18 |
    19 | {{/each}} 20 |
    -------------------------------------------------------------------------------- /src/components/Pivot/Pivot.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Pivot" 3 | } 4 | -------------------------------------------------------------------------------- /src/components/ProgressIndicator/ProgressIndicator.hbs: -------------------------------------------------------------------------------- 1 | 2 |
    3 |
    {{props.title}}
    4 |
    5 |
    6 |
    7 |
    8 |
    {{props.title}}
    9 |
    -------------------------------------------------------------------------------- /src/components/ProgressIndicator/ProgressIndicator.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ProgressIndicator" 3 | } 4 | -------------------------------------------------------------------------------- /src/components/RadioButton/RadioButton.hbs: -------------------------------------------------------------------------------- 1 | 2 |
  • 3 | 4 | 12 |
  • -------------------------------------------------------------------------------- /src/components/RadioButton/RadioButton.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "RadioButton", 3 | "dependencies": [ 4 | "Label" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /src/components/SearchBox/SearchBox.hbs: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 | 5 | 9 | {{renderPartial props.clearButton.component props.clearButton.props}} 10 | {{#if props.exitButton}}{{renderPartial props.exitButton.component props.exitButton.props}}{{/if~}} 11 | {{#if props.filterButton}}{{renderPartial props.filterButton.component props.filterButton.props}}{{~/if}} 12 |
    -------------------------------------------------------------------------------- /src/components/SearchBox/SearchBox.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SearchBox", 3 | "props": { 4 | "label": "Search", 5 | "defaultValue": "", 6 | "icon": "search", 7 | "clearButton": { 8 | "component": "CommandButton", 9 | "props": { 10 | "icon": "x", 11 | "modifier": "noLabel", 12 | "tag": "button", 13 | "customClasses": "ms-SearchBox-close" 14 | } 15 | }, 16 | "filterButton": { 17 | "component": "CommandButton", 18 | "props": { 19 | "icon": "Filter", 20 | "modifier": "noLabel", 21 | "tag": "button", 22 | "customClasses": "ms-SearchBox-filter" 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/components/Spinner/Spinner.hbs: -------------------------------------------------------------------------------- 1 | 2 |
    4 | {{#if props.label}} 5 |
    6 | {{props.label}} 7 |
    8 | {{/if}} 9 |
    -------------------------------------------------------------------------------- /src/components/Spinner/Spinner.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Spinner" 3 | } 4 | -------------------------------------------------------------------------------- /src/components/Spinner/Spinner.scss: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Spinner styles 7 | 8 | 9 | .ms-Spinner { 10 | @include ms-baseFont; 11 | position: relative; 12 | height: 20px; 13 | 14 | &.ms-Spinner--large { 15 | height: 28px; 16 | 17 | .ms-Spinner-label { 18 | left: 34px; 19 | top: 6px; 20 | } 21 | } 22 | } 23 | 24 | .ms-Spinner-circle { 25 | position: absolute; 26 | border-radius: 100px; 27 | background-color: $ms-color-themePrimary; 28 | opacity: 0; 29 | 30 | @media screen and (-ms-high-contrast: active) { 31 | background-color: $ms-color-white; 32 | } 33 | 34 | @media screen and (-ms-high-contrast: black-on-white) { 35 | background-color: $ms-color-black; 36 | } 37 | } 38 | 39 | .ms-Spinner-label { 40 | @include ms-baseFont; 41 | position: relative; 42 | font-size: $ms-font-size-s; 43 | font-weight: $ms-font-weight-regular; 44 | color: $ms-color-themePrimary; 45 | left: 28px; 46 | top: 2px; 47 | } 48 | -------------------------------------------------------------------------------- /src/components/Table/Table.hbs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | {{#if props.isSelectable}} 8 | 9 | {{/if}} 10 | {{#each props.headers}} 11 | 12 | {{/each}} 13 | 14 | 15 | 16 | {{#each props.rows}} 17 | 18 | {{#if ../props.isSelectable}} 19 | 20 | {{/if}} 21 | {{#each columns}} 22 | 23 | {{/each}} 24 | 25 | {{/each}} 26 | 27 |
    {{value}}
    {{value}}
    28 | -------------------------------------------------------------------------------- /src/components/Table/Table.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Table" 3 | } 4 | -------------------------------------------------------------------------------- /src/components/Table/Table.ts: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | /** 4 | * @namespace fabric 5 | */ 6 | namespace fabric { 7 | "use strict"; 8 | 9 | export class Table { 10 | public container: HTMLElement; 11 | 12 | constructor(container: HTMLElement) { 13 | this.container = container; 14 | 15 | // Is the table selectable? 16 | if (this.container.className.indexOf("ms-Table--selectable") !== -1) { 17 | this._addListeners(); 18 | } 19 | } 20 | 21 | /** 22 | * Add event listeners 23 | */ 24 | private _addListeners(): void { 25 | this.container.addEventListener("click", this._toggleRowSelection.bind(this), false); 26 | } 27 | 28 | /** 29 | * Select or deselect a row 30 | */ 31 | private _toggleRowSelection(event: MouseEvent): void { 32 | let selectedRow = (event.target).parentElement; 33 | if (selectedRow.tagName === "TR") { 34 | let selectedStateClass = "is-selected"; 35 | 36 | // Toggle the selected state class 37 | if (selectedRow.className === selectedStateClass) { 38 | selectedRow.className = ""; 39 | } else { 40 | selectedRow.className = selectedStateClass; 41 | } 42 | } 43 | } 44 | 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/components/TextField/TextField.hbs: -------------------------------------------------------------------------------- 1 | 2 |
    5 | {{#if props.label}}{{/if}} 6 | {{#if props.textfield}}{{/if}}{{#if props.multiline}}{{/if}}{{#if props.description}}{{props.description}}{{/if}} 7 |
    -------------------------------------------------------------------------------- /src/components/TextField/TextField.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "TextField" 3 | } 4 | -------------------------------------------------------------------------------- /src/components/Toggle/Toggle.hbs: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    6 | {{props.description}} 7 | 8 | 12 |
    13 | -------------------------------------------------------------------------------- /src/components/Toggle/Toggle.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Toggle", 3 | "dependencies": [ 4 | "Label" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /src/components/Toggle/Toggle.ts: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | "use strict"; 4 | 5 | namespace fabric { 6 | /** 7 | * Toggle Plugin 8 | * 9 | * Adds basic demonstration functionality to .ms-Toggle components. 10 | * 11 | */ 12 | export class Toggle { 13 | 14 | private _container: HTMLElement; 15 | private _toggleField: HTMLElement; 16 | 17 | /** 18 | * 19 | * @param {HTMLElement} container - the target container for an instance of Toggle 20 | * @constructor 21 | */ 22 | constructor(container: HTMLElement) { 23 | this._container = container; 24 | this._toggleField = this._container.querySelector(".ms-Toggle-field"); 25 | this._addListeners(); 26 | } 27 | 28 | public removeListeners(): void { 29 | this._toggleField.removeEventListener("click", this._toggleHandler.bind(this)); 30 | } 31 | 32 | private _addListeners(): void { 33 | this._toggleField.addEventListener("click", this._toggleHandler.bind(this), false); 34 | this._toggleField.addEventListener("keyup", (e: KeyboardEvent) => (e.keyCode === 32) ? this._toggleHandler() : null, false); 35 | } 36 | 37 | private _toggleHandler(): void { 38 | this._toggleField.classList.toggle("is-selected"); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/documentation/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/src/documentation/images/favicon.ico -------------------------------------------------------------------------------- /src/documentation/images/logo-microsoft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/src/documentation/images/logo-microsoft.png -------------------------------------------------------------------------------- /src/documentation/pages/Components/Breadcrumb/examples/BreadcrumbExample.hbs: -------------------------------------------------------------------------------- 1 | {{> Breadcrumb props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/Breadcrumb/examples/BreadcrumbExampleJS.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Breadcrumb/examples/BreadcrumbExampleModel.js: -------------------------------------------------------------------------------- 1 | var BreadcrumbModel = { 2 | baseClass: "ms-Breadcrumb", 3 | items: [ 4 | { 5 | "name": "Files" 6 | }, 7 | { 8 | "name": "Folder 1" 9 | }, 10 | { 11 | "name": "Folder 2" 12 | }, 13 | { 14 | "name": "Folder 3" 15 | }, 16 | { 17 | "name": "Folder 4" 18 | }, 19 | { 20 | "name": "Folder 5" 21 | }, 22 | { 23 | "name": "Folder 6" 24 | }, 25 | { 26 | "name": "Folder 7" 27 | } 28 | ] 29 | } 30 | 31 | module.exports = BreadcrumbModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Button/examples/ButtonExample.hbs: -------------------------------------------------------------------------------- 1 | {{> Button props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/Button/examples/ButtonExampleCompoundModel.js: -------------------------------------------------------------------------------- 1 | var ButtonExampleCompoundModel = { 2 | "label": "Create Account", 3 | "description": "Description of this action this button takes", 4 | "icon": "plus", 5 | "modifier": "compound", 6 | "tag": "button" 7 | } 8 | 9 | module.exports = ButtonExampleCompoundModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Button/examples/ButtonExampleHeroModel.js: -------------------------------------------------------------------------------- 1 | var ButtonExampleHeroModel = { 2 | "label": "Create Account", 3 | "icon": "Add", 4 | "modifier": "hero", 5 | "tag": "button" 6 | } 7 | 8 | module.exports = ButtonExampleHeroModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Button/examples/ButtonExampleJS.hbs: -------------------------------------------------------------------------------- 1 | 9 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Button/examples/ButtonExampleModel.js: -------------------------------------------------------------------------------- 1 | var ButtonExampleModel = { 2 | "label": "Create Account", 3 | "tag": "button" 4 | } 5 | 6 | module.exports = ButtonExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Button/examples/ButtonExamplePrimaryModel.js: -------------------------------------------------------------------------------- 1 | var ButtonExamplePrimaryModel = { 2 | "label": "Create Account", 3 | "modifier": "primary", 4 | "tag": "button" 5 | } 6 | 7 | module.exports = ButtonExamplePrimaryModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Button/examples/ButtonExampleSmallButtonModel.js: -------------------------------------------------------------------------------- 1 | var ButtonExampleSmallButtonModel = { 2 | "label": "Create", 3 | "modifier": "small", 4 | "tag": "button" 5 | } 6 | 7 | module.exports = ButtonExampleSmallButtonModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Callout/examples/CalloutExample.hbs: -------------------------------------------------------------------------------- 1 |
    2 | {{> Callout props=props}} 3 |
    4 | {{> Button props=props.button}} 5 |
    6 |
    -------------------------------------------------------------------------------- /src/documentation/pages/Components/Callout/examples/CalloutExampleActionModel.js: -------------------------------------------------------------------------------- 1 | var CalloutExampleActionModel = { 2 | "state": "is-hidden", 3 | "title": "All of your favorite people", 4 | "subText": "Message body is optional. If help documentation is available, consider adding a link to learn more at the bottom.", 5 | "modifier": "actionText", 6 | "actions": [ 7 | { 8 | "component": "CommandButton", 9 | "props": { 10 | "label": "Command", 11 | "icon": "CheckMark", 12 | "tag": "button", 13 | "modifier": "inline", 14 | "iconColor": "green" 15 | } 16 | }, 17 | { 18 | "component": "CommandButton", 19 | "props": { 20 | "label": "Command", 21 | "icon": "Clear", 22 | "tag": "button", 23 | "modifier": "inline", 24 | "iconColor": "red" 25 | } 26 | } 27 | ], 28 | "contextualHostProps": { 29 | "arrowPosition": "arrowLeft", 30 | "state": "is-open" 31 | }, 32 | "button": { 33 | "label": "Open Callout Action Text", 34 | "tag": "button" 35 | } 36 | } 37 | 38 | module.exports = CalloutExampleActionModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Callout/examples/CalloutExampleCloseModel.js: -------------------------------------------------------------------------------- 1 | var CalloutExampleCloseModel = { 2 | "state": "is-hidden", 3 | "title": "All of your favorite people", 4 | "subText": "Message body is optional. If help documentation is available, consider adding a link to learn more at the bottom.", 5 | "modifier": "close", 6 | "closeIcon": "Clear", 7 | "arrowPosition": "arrowLeft", 8 | "actions": [ 9 | { 10 | "component": "Link", 11 | "props": { 12 | "title": "Learn More", 13 | "modifier": "hero", 14 | "label": "Learn More", 15 | "tabIndex": 0 16 | } 17 | } 18 | ], 19 | "contextualHostProps": { 20 | "arrowPosition": "arrowLeft", 21 | "state": "is-open" 22 | }, 23 | "button": { 24 | "label": "Open Callout", 25 | "tag": "button" 26 | } 27 | } 28 | 29 | module.exports = CalloutExampleCloseModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Callout/examples/CalloutExampleJS.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Callout/examples/CalloutExampleModel.js: -------------------------------------------------------------------------------- 1 | var CalloutExampleModel = { 2 | "state": "is-hidden", 3 | "title": "All of your favorite people", 4 | "subText": "Message body is optional. If help documentation is available, consider adding a link to learn more at the bottom.", 5 | "actions": [ 6 | { 7 | "component": "Link", 8 | "props": { 9 | "label": "Learn more", 10 | "linkText": "Learn More", 11 | "customClassses": "ms-Callout-link", 12 | "tabIndex": 0, 13 | "hasHref": false 14 | } 15 | } 16 | ], 17 | "button": { 18 | "label": "Open Callout", 19 | "tag": "button" 20 | } 21 | } 22 | 23 | module.exports = CalloutExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Callout/examples/CalloutExampleOOBEModel.js: -------------------------------------------------------------------------------- 1 | var CalloutExampleOOBEModel = { 2 | "state": "is-hidden", 3 | "title": "All of your favorite people", 4 | "subText": "Message body is optional. If help documentation is available, consider adding a link to learn more at the bottom.", 5 | "modifier": "OOBE", 6 | "arrowPosition": "arrowLeft", 7 | "actions": [ 8 | { 9 | "component": "Button", 10 | "props": { 11 | "label": "More", 12 | "tag": "button", 13 | "modifier": "primary" 14 | } 15 | }, 16 | { 17 | "component": "Button", 18 | "props": { 19 | "label": "Got it", 20 | "tag": "button" 21 | } 22 | } 23 | ], 24 | "contextualHostProps": { 25 | "arrowPosition": "arrowLeft", 26 | "state": "is-open" 27 | }, 28 | "button": { 29 | "label": "Open Callout OOBE", 30 | "tag": "button" 31 | } 32 | } 33 | 34 | module.exports = CalloutExampleOOBEModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Callout/examples/CalloutExamplePeekModel.js: -------------------------------------------------------------------------------- 1 | var CalloutExamplePeekModel = { 2 | "state": "is-hidden", 3 | "title": "Uploaded 2 items to Alton's OneDrive", 4 | "titleTokens": ["", ""], 5 | "subText": "", 6 | "modifier": "peek", 7 | "arrowPosition": "arrowLeft", 8 | "actions": [ 9 | { 10 | "component": "Button", 11 | "props": { 12 | "label": "Got it", 13 | "tag": "button" 14 | } 15 | } 16 | ], 17 | "contextualHostProps": { 18 | "arrowPosition": "arrowLeft", 19 | "state": "is-open" 20 | }, 21 | "button": { 22 | "label": "Open Callout Peek", 23 | "tag": "button" 24 | } 25 | } 26 | 27 | 28 | module.exports = CalloutExamplePeekModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/CheckBox/examples/CheckBoxBasicModel.js: -------------------------------------------------------------------------------- 1 | var CheckBoxModel = { 2 | "label": "Checkbox", 3 | "modifier": "", 4 | "name": "checkboxa", 5 | "id": "checkboxa", 6 | "checked": false, 7 | "disabled": false, 8 | "type": "checkbox" 9 | } 10 | 11 | module.exports = CheckBoxModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/CheckBox/examples/CheckBoxDisabledModel.js: -------------------------------------------------------------------------------- 1 | var CheckBoxModel = { 2 | "label": "Checkbox Disabled", 3 | "modifier": "", 4 | "name": "checkboxb", 5 | "id": "checkboxb", 6 | "checked": false, 7 | "disabled": true, 8 | "type": "checkbox" 9 | } 10 | 11 | module.exports = CheckBoxModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/CheckBox/examples/CheckBoxElem.hbs: -------------------------------------------------------------------------------- 1 | {{> CheckBox props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/CheckBox/examples/CheckBoxJS.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/CheckBox/examples/CheckBoxModels.js: -------------------------------------------------------------------------------- 1 | var CheckBoxModels = { 2 | "basic": { 3 | "label": "Checkbox", 4 | "modifier": "", 5 | "name": "checkboxa", 6 | "id": "checkboxa", 7 | "checked": false, 8 | "disabled": false, 9 | "type": "checkbox" 10 | }, 11 | "checkboxDisabled": { 12 | "label": "Checkbox Disabled", 13 | "modifier": "", 14 | "name": "checkboxb", 15 | "id": "checkboxb", 16 | "checked": false, 17 | "disabled": true, 18 | "type": "checkbox" 19 | }, 20 | "checkboxSelected": { 21 | "label": "Checkbox selected", 22 | "modifier": "", 23 | "name": "checkboxc", 24 | "id": "checkboxc", 25 | "checked": true, 26 | "disabled": false, 27 | "type": "checkbox" 28 | } 29 | } 30 | 31 | module.exports = CheckBoxModels; -------------------------------------------------------------------------------- /src/documentation/pages/Components/CheckBox/examples/CheckBoxSelectedModel.js: -------------------------------------------------------------------------------- 1 | var CheckBoxModel = { 2 | "label": "Checkbox selected", 3 | "modifier": "", 4 | "name": "checkboxc", 5 | "id": "checkboxc", 6 | "checked": true, 7 | "disabled": false, 8 | "type": "checkbox" 9 | } 10 | 11 | module.exports = CheckBoxModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/ChoiceFieldGroup/ChoiceFieldGroup.js: -------------------------------------------------------------------------------- 1 | var data = { 2 | componentName: "ChoiceFieldGroup", 3 | overview: "

    Used to indicate a single choice from multiple options.

    ", 4 | availableReact: true, 5 | reactComponent: 'ChoiceGroup', 6 | variants: [ 7 | { 8 | name: "Default ChoiceFieldGroup", 9 | templateFile: "ChoiceFieldGroupElem", 10 | model: "ChoiceFieldGroupModel" 11 | } 12 | ], 13 | methods: [ 14 | { 15 | name: "removeListeners()", 16 | parameters: [ 17 | ], 18 | description: "Remove all event listeners from component" 19 | } 20 | ], 21 | jsFile: "ChoiceFieldGroupJS" 22 | } 23 | 24 | module.exports = data; -------------------------------------------------------------------------------- /src/documentation/pages/Components/ChoiceFieldGroup/examples/ChoiceFieldGroupElem.hbs: -------------------------------------------------------------------------------- 1 | {{> ChoiceFieldGroup props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/ChoiceFieldGroup/examples/ChoiceFieldGroupJS.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/ChoiceFieldGroup/examples/ChoiceFieldGroupModel.js: -------------------------------------------------------------------------------- 1 | var ChoiceFieldGroupModel = { 2 | "title": "Unselected", 3 | "required": true, 4 | "id": "choicefieldgroup", 5 | "groupType": "radiogroup", 6 | "fields": [ 7 | { 8 | "component": "RadioButton", 9 | "props": { 10 | "label": "Option 1", 11 | "modifier": "", 12 | "name": "choicefieldgroup", 13 | "id": "option1", 14 | "checked": false, 15 | "disabled": false, 16 | "type": "radio" 17 | } 18 | }, 19 | { 20 | "component": "RadioButton", 21 | "props": { 22 | "label": "Option 2", 23 | "modifier": "", 24 | "name": "choicefieldgroup", 25 | "id": "option2", 26 | "checked": false, 27 | "disabled": false, 28 | "type": "radio" 29 | } 30 | }, 31 | { 32 | "component": "RadioButton", 33 | "props": { 34 | "label": "Option 3", 35 | "modifier": "", 36 | "name": "choicefieldgroup", 37 | "id": "option3", 38 | "checked": false, 39 | "disabled": true, 40 | "type": "radio" 41 | } 42 | }, 43 | { 44 | "component": "RadioButton", 45 | "props": { 46 | "label": "Option 4", 47 | "modifier": "", 48 | "name": "choicefieldgroup", 49 | "id": "option4", 50 | "checked": false, 51 | "disabled": false, 52 | "type": "radio" 53 | } 54 | } 55 | ] 56 | } 57 | 58 | module.exports = ChoiceFieldGroupModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/CommandBar/examples/CommandBarExample.hbs: -------------------------------------------------------------------------------- 1 | {{> CommandBar props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/CommandBar/examples/CommandBarExampleJS.hbs: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/CommandBar/examples/CommandBarExampleNavBar.hbs: -------------------------------------------------------------------------------- 1 | {{> CommandBar props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/CommandButton/examples/CommandButtonActionExampleModel.js: -------------------------------------------------------------------------------- 1 | var CommandButtonExampleModel = { 2 | "icon": "CircleRing", 3 | "modifier": "actionButton", 4 | "tag": "button", 5 | "iconColor": "themePrimary" 6 | } 7 | 8 | module.exports = CommandButtonExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/CommandButton/examples/CommandButtonDisabledExampleModel.js: -------------------------------------------------------------------------------- 1 | var CommandButtonExampleModel = { 2 | "label": "Command", 3 | "icon": "CircleRing", 4 | "tag": "button", 5 | "iconColor": "themePrimary", 6 | "disabled": true 7 | } 8 | 9 | module.exports = CommandButtonExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/CommandButton/examples/CommandButtonDropdownExampleModel.js: -------------------------------------------------------------------------------- 1 | var CommandButtonExampleModel = { 2 | "label": "New", 3 | "icon": "CircleRing", 4 | "tag": "button", 5 | "dropdownIcon": "ChevronDown", 6 | "iconColor": "themePrimary", 7 | "dropdown": { 8 | "component": "ContextualMenu", 9 | "props": { 10 | "state": "is-opened", 11 | "modifier": "hasIcons", 12 | "items": [ 13 | { 14 | "title": "Folder", 15 | "state": "", 16 | "icon": "Folder" 17 | }, 18 | { 19 | "modifier": "divider", 20 | "title": "" 21 | }, 22 | { 23 | "title": "Plain Text Document", 24 | "icon": "Document" 25 | }, 26 | { 27 | "title": "Smile", 28 | "icon": "Emoji2" 29 | }, 30 | { 31 | "title": "Globe", 32 | "state": "", 33 | "icon": "Globe" 34 | }, 35 | { 36 | "title": "Money", 37 | "icon": "Money" 38 | } 39 | ] 40 | } 41 | } 42 | } 43 | 44 | module.exports = CommandButtonExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/CommandButton/examples/CommandButtonExample.hbs: -------------------------------------------------------------------------------- 1 | {{> CommandButton props=props }} -------------------------------------------------------------------------------- /src/documentation/pages/Components/CommandButton/examples/CommandButtonExampleJS.hbs: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/CommandButton/examples/CommandButtonExampleModel.js: -------------------------------------------------------------------------------- 1 | var CommandButtonExampleModel = { 2 | "label": "Command", 3 | "icon": "CircleRing", 4 | "tag": "button", 5 | "iconColor": "themePrimary" 6 | } 7 | 8 | module.exports = CommandButtonExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/CommandButton/examples/CommandButtonInlineExampleModel.js: -------------------------------------------------------------------------------- 1 | var CommandButtonExampleModel = { 2 | "label": "Command", 3 | "icon": "CircleRing", 4 | "tag": "button", 5 | "modifier": "inline", 6 | "iconColor": "green" 7 | } 8 | 9 | module.exports = CommandButtonExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/CommandButton/examples/CommandButtonNoLabelExampleModel.js: -------------------------------------------------------------------------------- 1 | var CommandButtonExampleModel = { 2 | "icon": "CircleRing", 3 | "modifier": "noLabel", 4 | "tag": "button", 5 | "iconColor": "themePrimary" 6 | } 7 | 8 | module.exports = CommandButtonExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/CommandButton/examples/CommandButtonNoLabelSplitExampleModel.js: -------------------------------------------------------------------------------- 1 | var CommandButtonExampleModel = { 2 | "icon": "CircleRing", 3 | "modifier": "noLabel", 4 | "tag": "button", 5 | "splitIcon": "ChevronDown", 6 | "iconColor": "themePrimary", 7 | "dropdown": { 8 | "component": "ContextualMenu", 9 | "props": { 10 | "state": "", 11 | "items": [ 12 | { 13 | "title": "Reply", 14 | "state": "" 15 | }, 16 | { 17 | "title": "Reply all", 18 | "state": "" 19 | }, 20 | { 21 | "title": "Forward", 22 | "state": "is-selected" 23 | }, 24 | { 25 | "title": "Flag", 26 | "state": "" 27 | }, 28 | { 29 | "title": "Delete", 30 | "state": "is-disabled" 31 | } 32 | ] 33 | } 34 | } 35 | } 36 | 37 | module.exports = CommandButtonExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/CommandButton/examples/CommandButtonPivotExampleModel.js: -------------------------------------------------------------------------------- 1 | var CommandButtonExampleModel = { 2 | "label": "New", 3 | "icon": "CircleRing", 4 | "tag": "button", 5 | "dropdownIcon": "ChevronDown", 6 | "iconColor": "themePrimary", 7 | "state": "is-active", 8 | "modifier": "pivot" 9 | } 10 | 11 | module.exports = CommandButtonExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/CommandButton/examples/CommandButtonSplitExampleModel.js: -------------------------------------------------------------------------------- 1 | var CommandButtonExampleModel = { 2 | "label": "Reply", 3 | "icon": "CircleRing", 4 | "splitIcon": "ChevronDown", 5 | "iconColor": "themePrimary", 6 | "tag": "button", 7 | "dropdown": { 8 | "component": "ContextualMenu", 9 | "props": { 10 | "state": "is-opened", 11 | "items": [ 12 | { 13 | "title": "Reply", 14 | "state": "" 15 | }, 16 | { 17 | "title": "Reply all", 18 | "state": "" 19 | }, 20 | { 21 | "title": "Forward", 22 | "state": "is-selected" 23 | }, 24 | { 25 | "title": "Flag", 26 | "state": "" 27 | }, 28 | { 29 | "title": "Delete", 30 | "state": "is-disabled" 31 | } 32 | ] 33 | } 34 | } 35 | } 36 | 37 | module.exports = CommandButtonExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/CommandButton/examples/CommandButtonTextOnlyExampleModel.js: -------------------------------------------------------------------------------- 1 | var CommandButtonExampleModel = { 2 | "modifier": "TextOnly", 3 | "label": "Command", 4 | "tag": "button" 5 | } 6 | 7 | module.exports = CommandButtonExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/ContextualMenu/examples/ContextualMenuExample.hbs: -------------------------------------------------------------------------------- 1 |
    2 | {{> Button props=props.button}} 3 | {{> ContextualMenu props=props}} 4 |
    -------------------------------------------------------------------------------- /src/documentation/pages/Components/ContextualMenu/examples/ContextualMenuExampleJS.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/ContextualMenu/examples/ContextualMenuExampleModel.js: -------------------------------------------------------------------------------- 1 | var ContexualMenuExampleModel = { 2 | "button": { 3 | "label": "Open Example", 4 | "modifier": "primary", 5 | "tag": "button" 6 | }, 7 | "state": "is-hidden", 8 | "items": [ 9 | { 10 | "title": "Animals", 11 | "state": "" 12 | }, 13 | { 14 | "title": "Books", 15 | "state": "" 16 | }, 17 | { 18 | "title": "Education", 19 | "state": "is-selected" 20 | }, 21 | { 22 | "title": "Music", 23 | "state": "" 24 | }, 25 | { 26 | "title": "Sports", 27 | "state": "is-disabled" 28 | } 29 | ], 30 | "contextualHostProps": { 31 | "state": "is-open" 32 | } 33 | } 34 | 35 | module.exports = ContexualMenuExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/ContextualMenu/examples/ContextualMenuMultiselectExampleModel.js: -------------------------------------------------------------------------------- 1 | var ContexualMenuExampleModel = { 2 | "button": { 3 | "label": "Open Example", 4 | "modifier": "primary", 5 | "tag": "button" 6 | }, 7 | "state": "is-hidden", 8 | "modifier": "multiselect", 9 | "items": [ 10 | { 11 | "title": "SORT BY", 12 | "state": "", 13 | "modifier": "header" 14 | }, 15 | { 16 | "title": "Date", 17 | "state": "" 18 | }, 19 | { 20 | "title": "Sender", 21 | "state": "is-selected" 22 | }, 23 | { 24 | "modifier": "divider", 25 | "title": "" 26 | }, 27 | { 28 | "title": "ORDER", 29 | "state": "", 30 | "modifier": "header" 31 | }, 32 | { 33 | "title": "Newest on top", 34 | "state": "" 35 | }, 36 | { 37 | "title": "Oldest on top", 38 | "state": "" 39 | }, 40 | { 41 | "modifier": "divider", 42 | "title": "" 43 | }, 44 | { 45 | "title": "CONVERSATIONS", 46 | "modifier": "header" 47 | }, 48 | { 49 | "title": "On", 50 | "state": "" 51 | }, 52 | { 53 | "title": "Off", 54 | "state": "" 55 | } 56 | ], 57 | "contextualHostProps": { 58 | "state": "is-open" 59 | } 60 | } 61 | 62 | module.exports = ContexualMenuExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/ContextualMenu/examples/ContextualMenuSubmenuExampleModel.js: -------------------------------------------------------------------------------- 1 | var ContexualMenuExampleModel = { 2 | "button": { 3 | "label": "Open Example", 4 | "modifier": "primary", 5 | "tag": "button" 6 | }, 7 | "state": "is-hidden", 8 | "items": [ 9 | { 10 | "title": "Animals", 11 | "state": "" 12 | }, 13 | { 14 | "title": "Books", 15 | "state": "", 16 | "subMenuItems": [ 17 | { 18 | "title": "Fiction", 19 | "state": "" 20 | }, 21 | { 22 | "title": "Humor", 23 | "state": "" 24 | }, 25 | { 26 | "title": "Magazines", 27 | "state": "is-selected" 28 | }, 29 | { 30 | "title": "Non-fiction", 31 | "state": "" 32 | }, 33 | { 34 | "title": "Textbooks", 35 | "state": "" 36 | } 37 | ] 38 | }, 39 | { 40 | "title": "Education", 41 | "state": "is-selected" 42 | }, 43 | { 44 | "title": "Music", 45 | "state": "" 46 | }, 47 | { 48 | "title": "Sports", 49 | "state": "is-disabled" 50 | } 51 | ], 52 | "contextualHostProps": { 53 | "state": "is-open" 54 | } 55 | } 56 | 57 | module.exports = ContexualMenuExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/DatePicker/DatePicker.js: -------------------------------------------------------------------------------- 1 | var data = { 2 | componentName: "DatePicker", 3 | overview: `

    The DatePicker component enables a user to pick a date value.

    `, 4 | availableReact: true, 5 | variants: [ 6 | { 7 | name: "Default DatePicker", 8 | templateFile: "DatePickerExample", 9 | model: null 10 | } 11 | ], 12 | methods: [ 13 | { 14 | name: "picker.set('select', dateArr);", 15 | parameters: [ 16 | { 17 | name: "dateArr", 18 | type: "{Array} The new date in [YEAR, MONTH, DATE] format", 19 | } 20 | ], 21 | description: "Selects a new date in the component. Must be used on component's picker property (DatePicker.picker)." 22 | }, 23 | { 24 | name: "picker.set('highlight', dateArr);", 25 | parameters: [ 26 | { 27 | name: "dateArr", 28 | type: "{Array} The new date in [YEAR, MONTH, DATE] format", 29 | } 30 | ], 31 | description: "Highlights a new date in the component. Must be used on component's picker property (DatePicker.picker)." 32 | } 33 | ], 34 | jsFile: "DatePickerExampleJS", 35 | isDatePicker: true 36 | } 37 | 38 | module.exports = data; -------------------------------------------------------------------------------- /src/documentation/pages/Components/DatePicker/examples/DatePickerExample.hbs: -------------------------------------------------------------------------------- 1 | {{> DatePicker}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/DatePicker/examples/DatePickerExampleJS.hbs: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Dialog/examples/DialogBlockingExample.hbs: -------------------------------------------------------------------------------- 1 |
    2 | {{> Dialog props=props }} 3 | 4 | 5 |
    -------------------------------------------------------------------------------- /src/documentation/pages/Components/Dialog/examples/DialogBlockingExampleModel.js: -------------------------------------------------------------------------------- 1 | var DialogExampleModel = { 2 | "modifier": "blocking", 3 | "title": "Unsaved changes", 4 | "subText": "Are you sure you want to discard these changes?.", 5 | "components": [ 6 | { 7 | "component": "CheckBox", 8 | "props": { 9 | "label": "Option1", 10 | "modifier": "", 11 | "name": "checkboxa", 12 | "id": "checkboxa", 13 | "checked": false, 14 | "disabled": false, 15 | "type": "checkbox" 16 | } 17 | }, 18 | { 19 | "component": "CheckBox", 20 | "props": { 21 | "label": "Option2", 22 | "modifier": "", 23 | "name": "checkboxa", 24 | "id": "checkboxa", 25 | "checked": false, 26 | "disabled": false, 27 | "type": "checkbox" 28 | } 29 | } 30 | ], 31 | "actions": [ 32 | { 33 | "component": "Button", 34 | "props": { 35 | "label": "Save", 36 | "tag": "button", 37 | "modifier": "primary", 38 | "customClasses": "ms-Dialog-action" 39 | } 40 | }, 41 | { 42 | "component": "Button", 43 | "props": { 44 | "label": "Delete", 45 | "tag": "button", 46 | "customClasses": "ms-Dialog-action" 47 | } 48 | } 49 | ], 50 | "contextualHostProps": { 51 | "state": "is-open" 52 | } 53 | } 54 | 55 | module.exports = DialogExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Dialog/examples/DialogCloseExample.hbs: -------------------------------------------------------------------------------- 1 |
    2 | {{> Dialog props=props }} 3 | 4 | 5 |
    -------------------------------------------------------------------------------- /src/documentation/pages/Components/Dialog/examples/DialogDefaultExample.hbs: -------------------------------------------------------------------------------- 1 |
    2 | {{> Dialog props=props }} 3 | 4 | 5 |
    -------------------------------------------------------------------------------- /src/documentation/pages/Components/Dialog/examples/DialogDocAllElementsJS.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Dialog/examples/DialogExampleModel.js: -------------------------------------------------------------------------------- 1 | var DialogExampleModel = { 2 | "title": "All emails together", 3 | "subText": "Your Inbox has changed. No longer does it include favorites, it is a singular destination for your emails.", 4 | "components": [ 5 | { 6 | "component": "CheckBox", 7 | "props": { 8 | "label": "Option1", 9 | "modifier": "", 10 | "name": "checkboxa", 11 | "id": "checkboxa", 12 | "checked": false, 13 | "disabled": false, 14 | "type": "checkbox" 15 | } 16 | }, 17 | { 18 | "component": "CheckBox", 19 | "props": { 20 | "label": "Option2", 21 | "modifier": "", 22 | "name": "checkboxa", 23 | "id": "checkboxa", 24 | "checked": false, 25 | "disabled": false, 26 | "type": "checkbox" 27 | } 28 | } 29 | ], 30 | "actions": [ 31 | { 32 | "component": "Button", 33 | "props": { 34 | "label": "Save", 35 | "tag": "button", 36 | "modifier": "primary", 37 | "customClasses": "ms-Dialog-action" 38 | } 39 | }, 40 | { 41 | "component": "Button", 42 | "props": { 43 | "label": "Cancel", 44 | "tag": "button", 45 | "customClasses": "ms-Dialog-action" 46 | } 47 | } 48 | ], 49 | "contextualHostProps": { 50 | "state": "is-open" 51 | } 52 | } 53 | 54 | module.exports = DialogExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Dialog/examples/DialogLgHeaderExample.hbs: -------------------------------------------------------------------------------- 1 |
    2 | {{> Dialog props=props }} 3 | 4 | 5 |
    -------------------------------------------------------------------------------- /src/documentation/pages/Components/Dialog/examples/DialogLgHeaderExampleJS.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Dialog/examples/DialogLgHeaderExampleModel.js: -------------------------------------------------------------------------------- 1 | var DialogExampleModel = { 2 | "modifier": "lgHeader", 3 | "title": "All emails together", 4 | "subText": "Your Inbox has changed. No longer does it include favorites, it is a singular destination for your emails.", 5 | "actions": [ 6 | { 7 | "component": "Button", 8 | "props": { 9 | "label": "Save", 10 | "tag": "button", 11 | "modifier": "primary", 12 | "customClasses": "ms-Dialog-action" 13 | } 14 | }, 15 | { 16 | "component": "Button", 17 | "props": { 18 | "label": "Cancel", 19 | "tag": "button", 20 | "customClasses": "ms-Dialog-action" 21 | } 22 | } 23 | ], 24 | "contextualHostProps": { 25 | "state": "is-open" 26 | } 27 | } 28 | 29 | module.exports = DialogExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Dialog/examples/DialogMultilineExample.hbs: -------------------------------------------------------------------------------- 1 |
    2 | {{> Dialog props=props }} 3 | 4 | 5 |
    -------------------------------------------------------------------------------- /src/documentation/pages/Components/Dialog/examples/DialogMultilineExampleJS.hbs: -------------------------------------------------------------------------------- 1 | 34 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Dialog/examples/DialogMultilineExampleModel.js: -------------------------------------------------------------------------------- 1 | var DialogExampleModel = { 2 | "modifier": "multiline", 3 | "title": "All emails together", 4 | "components": [ 5 | { 6 | "component": "Button", 7 | "props": { 8 | "label": "Create Account", 9 | "description": "Description of this action this button takes", 10 | "icon": "Add", 11 | "modifier": "compound", 12 | "tag": "button", 13 | "customClasses": "ms-Dialog-action" 14 | } 15 | }, 16 | { 17 | "component": "Button", 18 | "props": { 19 | "label": "Sign in", 20 | "description": "Description of this action this button takes", 21 | "icon": "Add", 22 | "modifier": "compound", 23 | "tag": "button", 24 | "customClasses": "ms-Dialog-action" 25 | } 26 | }, 27 | { 28 | "component": "Button", 29 | "props": { 30 | "label": "Settings", 31 | "description": "Description of this action this button takes", 32 | "icon": "Add", 33 | "modifier": "compound", 34 | "tag": "button", 35 | "customClasses": "ms-Dialog-action" 36 | } 37 | } 38 | ], 39 | "contextualHostProps": { 40 | "state": "is-open" 41 | } 42 | } 43 | 44 | module.exports = DialogExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Dropdown/Dropdown.js: -------------------------------------------------------------------------------- 1 | var data = { 2 | componentName: "Dropdown", 3 | overview: `

    A Dropdown is a list in which the selected item is always visible, and the others are visible on demand by clicking a drop-down button. They are used to simplify the design and make a choice within the UI. When closed, only the selected item is visible. When users click the drop-down button, all the options become visible. To change the value, users open the list and click another value or use the arrow keys (up and down) to select a new value.

    `, 4 | availableReact: true, 5 | variants: [ 6 | { 7 | name: "Default Dropdown", 8 | templateFile: "DropdownExample", 9 | model: "DropdownExampleModel" 10 | }, 11 | { 12 | name: "Disabled Dropdown", 13 | templateFile: "DropdownExample", 14 | model: "DropdownDisabledExampleModel" 15 | } 16 | ], 17 | states: [ 18 | { 19 | name: ".is-disabled", 20 | applied: ".ms-Dropdown", 21 | result: "Disables the dropdown." 22 | } 23 | ], 24 | jsFile: "DropdownExampleJS" 25 | } 26 | 27 | module.exports = data; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Dropdown/examples/DropdownDisabledExampleModel.js: -------------------------------------------------------------------------------- 1 | var DropdownDisabledExampleModel = { 2 | "label": "Dropdown label", 3 | "state": "is-disabled", 4 | "items": [ 5 | { 6 | "name": "Choose a sound…" 7 | }, 8 | { 9 | "name": "Dog barking" 10 | }, 11 | { 12 | "name": "Wind blowing" 13 | }, 14 | { 15 | "name": "Duck quacking" 16 | }, 17 | { 18 | "name": "Cow mooing" 19 | } 20 | ] 21 | } 22 | 23 | module.exports = DropdownDisabledExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Dropdown/examples/DropdownExample.hbs: -------------------------------------------------------------------------------- 1 | {{> Dropdown props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/Dropdown/examples/DropdownExampleJS.hbs: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Dropdown/examples/DropdownExampleModel.js: -------------------------------------------------------------------------------- 1 | var DropdownExampleModel = { 2 | "label": "Dropdown label", 3 | "items": [ 4 | { 5 | "name": "Choose a sound…" 6 | }, 7 | { 8 | "name": "Dog barking" 9 | }, 10 | { 11 | "name": "Wind blowing" 12 | }, 13 | { 14 | "name": "Duck quacking" 15 | }, 16 | { 17 | "name": "Cow mooing" 18 | } 19 | ] 20 | } 21 | 22 | module.exports = DropdownExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/FacePile/FacePile.js: -------------------------------------------------------------------------------- 1 | var data = { 2 | componentName: "FacePile", 3 | overview: `

    The Facepile shows a list of faces or initials in a horizontal lockup. Each circle represents a person. Many times this component is used when sharing who has access to a specific view or file or when assigning a user to a task within a workflow.

    `, 4 | availableReact: true, 5 | variants: [ 6 | { 7 | name: "Default FacePile", 8 | templateFile: "FacePileElem", 9 | model: "FacePileModels" 10 | } 11 | ], 12 | states: [ 13 | { 14 | name: ".is-active", 15 | applied: ".ms-PersonaCard", 16 | result: "Makes the PersonaCard for a person visible." 17 | }, 18 | { 19 | name: ".is-active", 20 | applied: ".ms-FacePile-itemBtn--overflow", 21 | result: "Makes the overflow item for additional people visible." 22 | } 23 | ], 24 | jsFile: "FacePileJS" 25 | } 26 | 27 | module.exports = data; -------------------------------------------------------------------------------- /src/documentation/pages/Components/FacePile/examples/FacePileElem.hbs: -------------------------------------------------------------------------------- 1 | {{> FacePile props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/FacePile/examples/FacePileJS.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Label/Label.js: -------------------------------------------------------------------------------- 1 | var data = { 2 | componentName: "Label", 3 | overview: "

    Labels give a name or title to a component or group of components. Labels should be in close proximity to the component or group they are paired with. Some components, such as TextField, Dropdown, or Toggle, already have Labels incorporated, but other components may optionally add a Label if it helps inform the user of the component’s purpose.

    ", 4 | availableReact: true, 5 | variants: [ 6 | { 7 | name: "Default Label", 8 | templateFile: "LabelExample", 9 | model: "LabelExampleModel" 10 | }, 11 | { 12 | name: "Disabled Label", 13 | templateFile: "LabelExample", 14 | model: "LabelExampleDisabledModel" 15 | }, 16 | { 17 | name: "Required Label", 18 | templateFile: "LabelExample", 19 | model: "LabelExampleRequiredModel" 20 | } 21 | ], 22 | states: [ 23 | { 24 | name: ".is-required", 25 | applied: ".ms-Label", 26 | result: "Marks the form element as required." 27 | }, 28 | { 29 | name: ".is-disabled", 30 | applied: ".ms-Label", 31 | result: "Marks the form element as disabled." 32 | } 33 | ] 34 | } 35 | 36 | module.exports = data; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Label/examples/LabelExample.hbs: -------------------------------------------------------------------------------- 1 | {{> Label props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/Label/examples/LabelExampleDisabled.hbs: -------------------------------------------------------------------------------- 1 |
    {{> Label props=props}}
    -------------------------------------------------------------------------------- /src/documentation/pages/Components/Label/examples/LabelExampleDisabledModel.js: -------------------------------------------------------------------------------- 1 | var LabelExampleModel = { 2 | "label": "Name", 3 | "state": "is-disabled" 4 | } 5 | 6 | module.exports = LabelExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Label/examples/LabelExampleModel.js: -------------------------------------------------------------------------------- 1 | var LabelExampleModel = { 2 | "label": "Name" 3 | } 4 | 5 | module.exports = LabelExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Label/examples/LabelExampleRequired.hbs: -------------------------------------------------------------------------------- 1 |
    {{> Label props=props}}
    -------------------------------------------------------------------------------- /src/documentation/pages/Components/Label/examples/LabelExampleRequiredModel.js: -------------------------------------------------------------------------------- 1 | var LabelExampleRequiredModel = { 2 | "label": "Name", 3 | "state": "is-required" 4 | } 5 | 6 | module.exports = LabelExampleRequiredModel; 7 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Link/Link.js: -------------------------------------------------------------------------------- 1 | var data = { 2 | componentName: "Link", 3 | overview: `

    With a Link, users can navigate to another page, window, or Help topic; display a definition; initiate a command; or choose an option. A Link indicates that it can be clicked, typically by being displayed using the visited or unvisited link system colors. Traditionally, Links are underlined as well, but that approach is often unnecessary and falling out of favor to reduce visual clutter.

    4 |

    A Link is the lightest weight clickable control, and is often used to reduce the visual complexity of a design.

    `, 5 | availableReact: true, 6 | variants: [ 7 | { 8 | name: "Default Link", 9 | templateFile: "LinkExample", 10 | model: "LinkModels" 11 | } 12 | ] 13 | } 14 | 15 | module.exports = data; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Link/examples/LinkExample.hbs: -------------------------------------------------------------------------------- 1 | {{> Link props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/Link/examples/LinkModels.js: -------------------------------------------------------------------------------- 1 | var LinkModels = { 2 | "label": "Example Link", 3 | "href": "#", 4 | "title": "More info about Example Link", 5 | "tabIndex": "" 6 | } 7 | 8 | module.exports = LinkModels; -------------------------------------------------------------------------------- /src/documentation/pages/Components/List/List.js: -------------------------------------------------------------------------------- 1 | var data = { 2 | componentName: "List", 3 | overview: `

    Presents a number of related items, either as a vertical list or in a grid.

    `, 4 | availableReact: true, 5 | variants: [ 6 | { 7 | name: "Default List", 8 | templateFile: "ListElem", 9 | model: "ListModels" 10 | } 11 | ], 12 | jsFile: "ListJS" 13 | } 14 | 15 | module.exports = data; -------------------------------------------------------------------------------- /src/documentation/pages/Components/List/examples/ListElem.hbs: -------------------------------------------------------------------------------- 1 | {{> List props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/List/examples/ListJS.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/ListItem/ListItem.js: -------------------------------------------------------------------------------- 1 | var data = { 2 | componentName: "ListItem", 3 | overview: "

    Suitable for presenting a summary of an item with associated actions. Most often used within a List component. It was designed to represent an email message on desktop computers and is not currently touch friendly.

    ", 4 | variants: [ 5 | { 6 | name: "Default List", 7 | templateFile: "ListItemElem", 8 | model: "ListItemDefaultExampleModel" 9 | }, 10 | { 11 | name: "Image ListItem", 12 | templateFile: "ListItemElem", 13 | model: "ListItemImageExampleModel" 14 | }, 15 | { 16 | name: "Document ListItem", 17 | templateFile: "ListItemElem", 18 | model: "ListItemDocumentExampleModel" 19 | }, 20 | { 21 | name: "Selectable ListItem", 22 | templateFile: "ListItemElem", 23 | model: "ListItemSelectableExampleModel" 24 | }, 25 | { 26 | name: "Selected ListItem", 27 | templateFile: "ListItemElem", 28 | model: "ListItemSelectedExampleModel" 29 | }, 30 | { 31 | name: "Unseen ListItem", 32 | templateFile: "ListItemElem", 33 | model: "ListItemUnseenExampleModel" 34 | }, 35 | { 36 | name: "Unread ListItem", 37 | templateFile: "ListItemElem", 38 | model: "ListItemUnreadExampleModel" 39 | } 40 | ], 41 | jsFile: "ListItemJS" 42 | } 43 | 44 | module.exports = data; -------------------------------------------------------------------------------- /src/documentation/pages/Components/ListItem/examples/ListItemDefaultExampleModel.js: -------------------------------------------------------------------------------- 1 | var ListItemModels = { 2 | "primaryText": "Alton Lafferty", 3 | "secondaryText": "Meeting notes", 4 | "tertiaryText": "Today we discussed the importance of a, b, and c in regards to d.", 5 | "metaText": "2:42p", 6 | "actions": [{}] 7 | } 8 | 9 | module.exports = ListItemModels; -------------------------------------------------------------------------------- /src/documentation/pages/Components/ListItem/examples/ListItemDocumentExampleModel.js: -------------------------------------------------------------------------------- 1 | var ListItemModels = { 2 | "primaryText": "Alton Lafferty", 3 | "secondaryText": "Meeting notes", 4 | "metaText": "2:42p", 5 | "modifier": "document", 6 | "listIcon": "ppt", 7 | "actions": [{}] 8 | } 9 | 10 | module.exports = ListItemModels; -------------------------------------------------------------------------------- /src/documentation/pages/Components/ListItem/examples/ListItemElem.hbs: -------------------------------------------------------------------------------- 1 | {{> ListItem props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/ListItem/examples/ListItemImageExampleModel.js: -------------------------------------------------------------------------------- 1 | var ListItemModels = { 2 | "primaryText": "Alton Lafferty", 3 | "secondaryText": "Meeting notes", 4 | "tertiaryText": "Today we discussed the importance of a, b, and c in regards to d.", 5 | "metaText": "2:42p", 6 | "image": true, 7 | "modifier": "image", 8 | "actions": [{}] 9 | } 10 | 11 | module.exports = ListItemModels; -------------------------------------------------------------------------------- /src/documentation/pages/Components/ListItem/examples/ListItemJS.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/ListItem/examples/ListItemSelectableExampleModel.js: -------------------------------------------------------------------------------- 1 | var ListItemModels = { 2 | "primaryText": "Alton Lafferty", 3 | "secondaryText": "Meeting notes", 4 | "tertiaryText": "Today we discussed the importance of a, b, and c in regards to d.", 5 | "metaText": "2:42p", 6 | "state": "is-selectable", 7 | "actions": [{}] 8 | } 9 | 10 | module.exports = ListItemModels; -------------------------------------------------------------------------------- /src/documentation/pages/Components/ListItem/examples/ListItemSelectedExampleModel.js: -------------------------------------------------------------------------------- 1 | var ListItemModels = { 2 | "primaryText": "Alton Lafferty", 3 | "secondaryText": "Meeting notes", 4 | "tertiaryText": "Today we discussed the importance of a, b, and c in regards to d.", 5 | "metaText": "2:42p", 6 | "state": "is-selected is-selectable", 7 | "actions": [{}] 8 | } 9 | 10 | module.exports = ListItemModels; -------------------------------------------------------------------------------- /src/documentation/pages/Components/ListItem/examples/ListItemUnreadExampleModel.js: -------------------------------------------------------------------------------- 1 | var ListItemModels = { 2 | "primaryText": "Alton Lafferty", 3 | "secondaryText": "Meeting notes", 4 | "tertiaryText": "Today we discussed the importance of a, b, and c in regards to d.", 5 | "metaText": "2:42p", 6 | "state": "is-unread is-selectable", 7 | "actions": [{}] 8 | } 9 | 10 | module.exports = ListItemModels; -------------------------------------------------------------------------------- /src/documentation/pages/Components/ListItem/examples/ListItemUnseenExampleModel.js: -------------------------------------------------------------------------------- 1 | var ListItemModels = { 2 | "primaryText": "Alton Lafferty", 3 | "secondaryText": "Meeting notes", 4 | "tertiaryText": "Today we discussed the importance of a, b, and c in regards to d.", 5 | "metaText": "2:42p", 6 | "state": "is-unseen is-selectable", 7 | "actions": [{}] 8 | } 9 | 10 | module.exports = ListItemModels; -------------------------------------------------------------------------------- /src/documentation/pages/Components/MessageBanner/MessageBanner.js: -------------------------------------------------------------------------------- 1 | var data = { 2 | componentName: "MessageBanner", 3 | overview: "

    Presents a message to the user, with an optional call to action. The message is typically an error, update, or alert.

    ", 4 | variants: [ 5 | { 6 | name: "Default MessageBanner", 7 | templateFile: "MessageBannerExampleElem", 8 | model: "MessageBannerExampleModel" 9 | } 10 | ], 11 | methods: [ 12 | { 13 | name: "init()", 14 | parameters: [], 15 | description: "Initializes component" 16 | }, 17 | { 18 | name: "show()", 19 | parameters: [], 20 | description: "Shows MessageBanner if hidden" 21 | }, 22 | { 23 | name: "showBanner()", 24 | parameters: [], 25 | description: "Shows MessageBanner if hidden, (deprecated) now use show()" 26 | } 27 | ], 28 | jsFile: "MessageBannerExampleJS" 29 | } 30 | 31 | module.exports = data; -------------------------------------------------------------------------------- /src/documentation/pages/Components/MessageBanner/examples/MessageBannerExampleElem.hbs: -------------------------------------------------------------------------------- 1 | {{> MessageBanner props=props }} -------------------------------------------------------------------------------- /src/documentation/pages/Components/MessageBanner/examples/MessageBannerExampleJS.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/MessageBanner/examples/MessageBannerExampleModel.js: -------------------------------------------------------------------------------- 1 | var MessageBannerExampleModel = { 2 | "message": "You have reached your total storage on OneDrive. Please upgrade your storage plan if you need more storage.", 3 | "button": { 4 | "name": "Button", 5 | "props": { 6 | "label": "Get More Storage", 7 | "modifier": "primary", 8 | "tag": "button" 9 | } 10 | } 11 | } 12 | 13 | module.exports = MessageBannerExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/MessageBar/MessageBar.js: -------------------------------------------------------------------------------- 1 | var data = { 2 | componentName: "MessageBar", 3 | overview: "

    A MessageBar is an area at the top of a primary view that displays relevant status information. You can use a MessageBar to tell the user about a situation that does not require their immediate attention and therefore does not need to block other activities.

    ", 4 | availableReact: true, 5 | variants: [ 6 | { 7 | name: "Default MessageBar", 8 | templateFile: "MessageBarExample", 9 | model: "MessageBarDefaultModel" 10 | }, 11 | { 12 | name: "Success MessageBar", 13 | templateFile: "MessageBarExample", 14 | model: "MessageBarSuccessModel" 15 | }, 16 | { 17 | name: "Error MessageBar", 18 | templateFile: "MessageBarExample", 19 | model: "MessageBarErrorModel" 20 | }, 21 | { 22 | name: "Blocked MessageBar", 23 | templateFile: "MessageBarExample", 24 | model: "MessageBarBlockedModel" 25 | }, 26 | { 27 | name: "Warning MessageBar", 28 | templateFile: "MessageBarExample", 29 | model: "MessageBarWarningModel" 30 | }, 31 | { 32 | name: "Severe Warning MessageBar", 33 | templateFile: "MessageBarExample", 34 | model: "MessageBarSevereWarningModel" 35 | } 36 | ] 37 | } 38 | 39 | module.exports = data; -------------------------------------------------------------------------------- /src/documentation/pages/Components/MessageBar/examples/MessageBarBlockedModel.js: -------------------------------------------------------------------------------- 1 | var MessageBarExampleProps = { 2 | "modifier": "ms-MessageBar--blocked", 3 | "iconModifiers": "ms-Icon--Blocked" 4 | } 5 | 6 | module.exports = MessageBarExampleProps; 7 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/MessageBar/examples/MessageBarDefaultModel.js: -------------------------------------------------------------------------------- 1 | var MessageBarExampleProps = { 2 | "iconModifiers": "ms-Icon--Info" 3 | } 4 | 5 | module.exports = MessageBarExampleProps; 6 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/MessageBar/examples/MessageBarErrorModel.js: -------------------------------------------------------------------------------- 1 | var MessageBarExampleProps = { 2 | "modifier": "ms-MessageBar--error", 3 | "iconModifiers": "ms-Icon--ErrorBadge" 4 | } 5 | 6 | module.exports = MessageBarExampleProps; 7 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/MessageBar/examples/MessageBarExample.hbs: -------------------------------------------------------------------------------- 1 | {{> MessageBar props=props }} -------------------------------------------------------------------------------- /src/documentation/pages/Components/MessageBar/examples/MessageBarSevereWarningModel.js: -------------------------------------------------------------------------------- 1 | var MessageBarExampleProps = { 2 | "modifier": "ms-MessageBar--severeWarning", 3 | "iconModifiers": "ms-Icon--Warning" 4 | } 5 | 6 | module.exports = MessageBarExampleProps; 7 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/MessageBar/examples/MessageBarSuccessModel.js: -------------------------------------------------------------------------------- 1 | var MessageBarExampleProps = { 2 | "modifier": "ms-MessageBar--success", 3 | "iconModifiers": "ms-Icon--Completed" 4 | } 5 | 6 | module.exports = MessageBarExampleProps; 7 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/MessageBar/examples/MessageBarWarningModel.js: -------------------------------------------------------------------------------- 1 | var MessageBarExampleProps = { 2 | "modifier": "ms-MessageBar--warning", 3 | "iconModifiers": "ms-Icon--Info" 4 | } 5 | 6 | module.exports = MessageBarExampleProps; 7 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/OrgChart/OrgChart.js: -------------------------------------------------------------------------------- 1 | var data = { 2 | componentName: "OrgChart", 3 | overview: "

    Displays multiple Persona components in groups with headers in order to show the hierarchy of an organization or team.

    ", 4 | variants: [ 5 | { 6 | name: "Default OrgChart", 7 | templateFile: "OrgChartElem", 8 | model: "OrgChartExampleModel" 9 | } 10 | ] 11 | } 12 | 13 | module.exports = data; -------------------------------------------------------------------------------- /src/documentation/pages/Components/OrgChart/examples/OrgChartElem.hbs: -------------------------------------------------------------------------------- 1 | {{> OrgChart props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/Overlay/Overlay.js: -------------------------------------------------------------------------------- 1 | var data = { 2 | componentName: "Overlay", 3 | overview: "

    Overlays are used to render a semi-transparent layer on top of existing UI. Overlays help focus the user on the content that sits above the added layer and are often used to help designate a modal or blocking experience. Overlays can be seen used in conjunction with Panels and Dialogs.

    ", 4 | availableReact: true, 5 | variants: [ 6 | { 7 | name: "Default Overlay", 8 | templateFile: "OverlayExample", 9 | model: "OverlayDefaultExampleModel" 10 | }, 11 | { 12 | name: "Dark Overlay", 13 | templateFile: "OverlayExample", 14 | model: "OverlayDarkExampleModel" 15 | } 16 | ], 17 | methods: [ 18 | { 19 | name: "remove()", 20 | parameters: [], 21 | description: "Removes the component from page" 22 | }, 23 | { 24 | name: "show()", 25 | parameters: [], 26 | description: "Shows the component" 27 | }, 28 | { 29 | name: "hide()", 30 | parameters: [], 31 | description: "Hides the component" 32 | } 33 | ], 34 | jsFile: "OverlayExampleJS" 35 | } 36 | 37 | module.exports = data; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Overlay/examples/OverlayDarkExample.hbs: -------------------------------------------------------------------------------- 1 |
    2 | {{> Overlay props=props }} 3 | 4 |
    -------------------------------------------------------------------------------- /src/documentation/pages/Components/Overlay/examples/OverlayDarkExampleModel.js: -------------------------------------------------------------------------------- 1 | var OverlayModels = { 2 | "modifier": "dark" 3 | } 4 | 5 | module.exports = OverlayModels; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Overlay/examples/OverlayDefaultExampleModel.js: -------------------------------------------------------------------------------- 1 | var OverlayModels = { 2 | } 3 | 4 | module.exports = OverlayModels; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Overlay/examples/OverlayExample.hbs: -------------------------------------------------------------------------------- 1 |
    2 | {{> Overlay props=props }} 3 | 4 |
    -------------------------------------------------------------------------------- /src/documentation/pages/Components/Overlay/examples/OverlayExampleJS.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Panel/examples/PanelDefaultExampleModel.js: -------------------------------------------------------------------------------- 1 | var PanelExampleProps = { 2 | "button": { 3 | "label": "Open Panel", 4 | "tag": "button" 5 | }, 6 | "headerText": "Panel", 7 | "content": "Content goes here" 8 | } 9 | 10 | module.exports = PanelExampleProps; 11 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Panel/examples/PanelDocExampleJS.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Panel/examples/PanelExample.hbs: -------------------------------------------------------------------------------- 1 |
    {{> Button props=props.button}} 2 | {{> Panel props=props}}
    -------------------------------------------------------------------------------- /src/documentation/pages/Components/Panel/examples/PanelExampleProps.js: -------------------------------------------------------------------------------- 1 | var PanelExampleProps = { 2 | "button": { 3 | "label": "Open Panel", 4 | "tag": "button" 5 | }, 6 | "headerText": "Panel", 7 | "content": "Content goes here" 8 | } 9 | 10 | module.exports = PanelExampleProps; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Panel/examples/PanelExtraExtraLargeExampleModel.js: -------------------------------------------------------------------------------- 1 | var PanelExampleProps = { 2 | "button": { 3 | "label": "Open Panel", 4 | "tag": "button" 5 | }, 6 | "headerText": "Extra extra large panel", 7 | "content": "Content goes here", 8 | "modifier": [ 9 | { 10 | "name": "xxl" 11 | } 12 | ] 13 | } 14 | 15 | module.exports = PanelExampleProps; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Panel/examples/PanelExtraLargeExampleModel.js: -------------------------------------------------------------------------------- 1 | var PanelExampleProps = { 2 | "button": { 3 | "label": "Open Panel", 4 | "tag": "button" 5 | }, 6 | "headerText": "Extra large panel", 7 | "content": "Content goes here", 8 | "modifier": [ 9 | { 10 | "name": "xl" 11 | } 12 | ] 13 | } 14 | 15 | module.exports = PanelExampleProps; 16 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Panel/examples/PanelLargeExampleModel.js: -------------------------------------------------------------------------------- 1 | var PanelExampleProps = { 2 | "button": { 3 | "label": "Open Panel", 4 | "tag": "button" 5 | }, 6 | "headerText": "Large panel", 7 | "content": "Content goes here", 8 | "modifier": [ 9 | { 10 | "name": "lg" 11 | } 12 | ] 13 | } 14 | 15 | module.exports = PanelExampleProps; 16 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Panel/examples/PanelLargeFixedExampleModel.js: -------------------------------------------------------------------------------- 1 | var PanelExampleProps = { 2 | "button": { 3 | "label": "Open Panel", 4 | "tag": "button" 5 | }, 6 | "headerText": "Large panel", 7 | "content": "Content goes here", 8 | "modifier": [ 9 | { 10 | "name": "lg" 11 | }, 12 | { 13 | "name": "fixed" 14 | } 15 | ] 16 | } 17 | 18 | module.exports = PanelExampleProps; 19 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Panel/examples/PanelLeftExampleModel.js: -------------------------------------------------------------------------------- 1 | var PanelExampleProps = { 2 | "button": { 3 | "label": "Open Panel", 4 | "tag": "button" 5 | }, 6 | "headerText": "Left Panel", 7 | "content": "Content goes here", 8 | "modifier": [ 9 | { 10 | "name": "left" 11 | } 12 | ] 13 | } 14 | 15 | module.exports = PanelExampleProps; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Panel/examples/PanelMediumExampleModel.js: -------------------------------------------------------------------------------- 1 | var PanelExampleProps = { 2 | "button": { 3 | "label": "Open Panel", 4 | "tag": "button" 5 | }, 6 | "headerText": "Medium Panel", 7 | "content": "Content goes here", 8 | "modifier": [ 9 | { 10 | "name": "md" 11 | } 12 | ] 13 | } 14 | 15 | module.exports = PanelExampleProps; -------------------------------------------------------------------------------- /src/documentation/pages/Components/PeoplePicker/PeoplePicker.Searching.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-js/b0fc9e164a3d31c2170f9ba7880da88a7a053006/src/documentation/pages/Components/PeoplePicker/PeoplePicker.Searching.png -------------------------------------------------------------------------------- /src/documentation/pages/Components/PeoplePicker/PeoplePicker.js: -------------------------------------------------------------------------------- 1 | var data = { 2 | componentName: "PeoplePicker", 3 | overview: "

    A form input that allows for the choice of one or more people.

    ", 4 | availableReact: true, 5 | variants: [ 6 | { 7 | name: "Default PeoplePicker", 8 | templateFile: "PeoplePickerExample", 9 | model: "PeoplePickerExampleModel" 10 | }, 11 | { 12 | name: "Compact PeoplePicker", 13 | templateFile: "PeoplePickerExample", 14 | model: "PeoplePickerCompactExampleModel" 15 | }, 16 | { 17 | name: "FacePile PeoplePicker", 18 | templateFile: "PeoplePickerExample", 19 | model: "PeoplePickerFacePileExampleModel" 20 | } 21 | ], 22 | jsFile: "PeoplePickerExampleJS" 23 | } 24 | 25 | module.exports = data; -------------------------------------------------------------------------------- /src/documentation/pages/Components/PeoplePicker/examples/PeoplePickerExample.hbs: -------------------------------------------------------------------------------- 1 | {{> PeoplePicker props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/PeoplePicker/examples/PeoplePickerExampleJS.hbs: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/PeoplePicker/examples/PeoplePickerMembersExampleModel.js: -------------------------------------------------------------------------------- 1 | var PeoplePickerMembersExampleModel = { 2 | "modifiers": [ 3 | { 4 | "name": "membersList" 5 | } 6 | ], 7 | "textFieldProps": { 8 | "textfield": true, 9 | "modifier": "textFieldUnderlined", 10 | "placeholder": "Select or enter an option" 11 | }, 12 | "groups": [ 13 | { 14 | "title": "Contacts", 15 | "personas": [ 16 | { 17 | "component": "Persona", 18 | "props": { 19 | "initials": "RM", 20 | "initialsColor": "blue", 21 | "primaryText": "Russel Miller", 22 | "secondaryText": "Sales", 23 | "modifiers": [ 24 | { 25 | "name": "xs" 26 | } 27 | ] 28 | }, 29 | "state": "is-selected" 30 | }, 31 | { 32 | "component": "Persona", 33 | "props": { 34 | "initials": "DF", 35 | "initialsColor": "purple", 36 | "primaryText": "Douglas Fielder", 37 | "secondaryText": "Public Relations", 38 | "modifiers": [ 39 | { 40 | "name": "xs" 41 | } 42 | ] 43 | } 44 | } 45 | ] 46 | } 47 | ], 48 | "searchMoreText": "Search my groups" 49 | } 50 | 51 | module.exports = PeoplePickerMembersExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Persona/examples/PersonaDefaultExampleModel.js: -------------------------------------------------------------------------------- 1 | var PersonaExampleProps = { 2 | "image": "https://static2.sharepointonline.com/files/fabric/office-ui-fabric-js/images/persona.person.png", 3 | "primaryText": "Alton Lafferty", 4 | "secondaryText": "Accountant", 5 | "icon": "SkypeCheck" 6 | } 7 | 8 | module.exports = PersonaExampleProps; 9 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Persona/examples/PersonaExample.hbs: -------------------------------------------------------------------------------- 1 | {{> Persona props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/Persona/examples/PersonaExampleJS.hbs: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Persona/examples/PersonaExtraLargeExampleModel.js: -------------------------------------------------------------------------------- 1 | var PersonaExampleProps = { 2 | "image": "https://static2.sharepointonline.com/files/fabric/office-ui-fabric-js/images/persona.person.png", 3 | "primaryText": "Alton Lafferty", 4 | "secondaryText": "Accountant", 5 | "tertiaryText": "In a meeting", 6 | "optionalText": "Available at 4:00pm", 7 | "icon": "SkypeCheck", 8 | "modifiers": [ 9 | { 10 | "name": "xl" 11 | } 12 | ] 13 | } 14 | 15 | module.exports = PersonaExampleProps; 16 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Persona/examples/PersonaExtraSmallExampleModel.js: -------------------------------------------------------------------------------- 1 | var PersonaExampleProps = { 2 | "image": "https://static2.sharepointonline.com/files/fabric/office-ui-fabric-js/images/persona.person.png", 3 | "primaryText": "Alton Lafferty", 4 | "icon": "SkypeCheck", 5 | "modifiers": [ 6 | { 7 | "name": "xs" 8 | } 9 | ] 10 | } 11 | 12 | module.exports = PersonaExampleProps; 13 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Persona/examples/PersonaInitialsExampleModel.js: -------------------------------------------------------------------------------- 1 | var PersonaExampleProps = { 2 | "initials": "AL", 3 | "initialsColor": "blue", 4 | "primaryText": "Alton Lafferty", 5 | "icon": "SkypeCheck" 6 | } 7 | 8 | module.exports = PersonaExampleProps; 9 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Persona/examples/PersonaLargeExampleModel.js: -------------------------------------------------------------------------------- 1 | var PersonaExampleProps = { 2 | "image": "https://static2.sharepointonline.com/files/fabric/office-ui-fabric-js/images/persona.person.png", 3 | "primaryText": "Alton Lafferty", 4 | "secondaryText": "Accountant", 5 | "tertiaryText": "In a meeting", 6 | "icon": "SkypeCheck", 7 | "modifiers": [ 8 | { 9 | "name": "lg" 10 | } 11 | ] 12 | } 13 | 14 | module.exports = PersonaExampleProps; 15 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Persona/examples/PersonaPresenceAvailableExampleModel.js: -------------------------------------------------------------------------------- 1 | var PersonaExampleProps = { 2 | "image": "https://static2.sharepointonline.com/files/fabric/office-ui-fabric-js/images/persona.person.png", 3 | "primaryText": "Alton Lafferty", 4 | "secondaryText": "Accountant", 5 | "icon": "SkypeCheck", 6 | "modifiers": [ 7 | { 8 | "name": "available" 9 | } 10 | ] 11 | } 12 | 13 | module.exports = PersonaExampleProps; 14 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Persona/examples/PersonaPresenceAwayExampleModel.js: -------------------------------------------------------------------------------- 1 | var PersonaExampleProps = { 2 | "image": "https://static2.sharepointonline.com/files/fabric/office-ui-fabric-js/images/persona.person.png", 3 | "primaryText": "Alton Lafferty", 4 | "secondaryText": "Accountant", 5 | "icon": "SkypeClock", 6 | "modifiers": [ 7 | { 8 | "name": "away" 9 | } 10 | ] 11 | } 12 | 13 | module.exports = PersonaExampleProps; 14 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Persona/examples/PersonaPresenceBlockedExampleModel.js: -------------------------------------------------------------------------------- 1 | var PersonaExampleProps = { 2 | "image": "https://static2.sharepointonline.com/files/fabric/office-ui-fabric-js/images/persona.person.png", 3 | "primaryText": "Alton Lafferty", 4 | "secondaryText": "Accountant", 5 | "modifiers": [ 6 | { 7 | "name": "blocked" 8 | } 9 | ] 10 | } 11 | 12 | module.exports = PersonaExampleProps; 13 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Persona/examples/PersonaPresenceBusyExampleModel.js: -------------------------------------------------------------------------------- 1 | var PersonaExampleProps = { 2 | "image": "https://static2.sharepointonline.com/files/fabric/office-ui-fabric-js/images/persona.person.png", 3 | "primaryText": "Alton Lafferty", 4 | "secondaryText": "Accountant", 5 | "modifiers": [ 6 | { 7 | "name": "busy" 8 | } 9 | ] 10 | } 11 | 12 | module.exports = PersonaExampleProps; 13 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Persona/examples/PersonaPresenceDNDExampleModel.js: -------------------------------------------------------------------------------- 1 | var PersonaExampleProps = { 2 | "image": "https://static2.sharepointonline.com/files/fabric/office-ui-fabric-js/images/persona.person.png", 3 | "primaryText": "Alton Lafferty", 4 | "secondaryText": "Accountant", 5 | "icon": "SkypeMinus", 6 | "modifiers": [ 7 | { 8 | "name": "dnd" 9 | } 10 | ] 11 | } 12 | 13 | module.exports = PersonaExampleProps; 14 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Persona/examples/PersonaPresenceOfflineExampleModel.js: -------------------------------------------------------------------------------- 1 | var PersonaExampleProps = { 2 | "image": "https://static2.sharepointonline.com/files/fabric/office-ui-fabric-js/images/persona.person.png", 3 | "primaryText": "Alton Lafferty", 4 | "secondaryText": "Accountant", 5 | "modifiers": [ 6 | { 7 | "name": "offline" 8 | } 9 | ] 10 | } 11 | 12 | module.exports = PersonaExampleProps; 13 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Persona/examples/PersonaSmallExampleModel.js: -------------------------------------------------------------------------------- 1 | var PersonaExampleProps = { 2 | "image": "https://static2.sharepointonline.com/files/fabric/office-ui-fabric-js/images/persona.person.png", 3 | "primaryText": "Alton Lafferty", 4 | "secondaryText": "Accountant", 5 | "icon": "SkypeCheck", 6 | "modifiers": [ 7 | { 8 | "name": "sm" 9 | } 10 | ] 11 | } 12 | 13 | module.exports = PersonaExampleProps; 14 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Persona/examples/PersonaTinyExampleModel.js: -------------------------------------------------------------------------------- 1 | var PersonaExampleProps = { 2 | "primaryText": "Alton Lafferty", 3 | "icon": "SkypeCheck", 4 | "modifiers": [ 5 | { 6 | "name": "tiny" 7 | } 8 | ] 9 | } 10 | 11 | module.exports = PersonaExampleProps; 12 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Persona/examples/PersonaTokenExampleModel.js: -------------------------------------------------------------------------------- 1 | var PersonaExampleProps = { 2 | "image": "https://static2.sharepointonline.com/files/fabric/office-ui-fabric-js/images/persona.person.png", 3 | "primaryText": "Gerrad Matteu", 4 | "actionIcon": "x", 5 | "icon": "SkypeCheck", 6 | "modifiers": [ 7 | { 8 | "name": "token" 9 | } 10 | ] 11 | } 12 | 13 | module.exports = PersonaExampleProps; 14 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/PersonaCard/PersonaCard.js: -------------------------------------------------------------------------------- 1 | var data = { 2 | componentName: "PersonaCard", 3 | overview: "

    The visualization of details of an individual including Skype contact details, email, location information, and location within the hierarchy of an organization. Within Office 365, PersonaCards often appear when a user hovers, taps, or clicks on a Persona.

    ", 4 | variants: [ 5 | { 6 | name: "Default PersonaCard", 7 | templateFile: "PersonaCardExample", 8 | model: "PersonaCardExampleModel" 9 | } 10 | ], 11 | jsFile: "PersonaCardExampleJS" 12 | } 13 | 14 | module.exports = data; -------------------------------------------------------------------------------- /src/documentation/pages/Components/PersonaCard/examples/PersonaCardExample.hbs: -------------------------------------------------------------------------------- 1 | {{> PersonaCard props=props }} -------------------------------------------------------------------------------- /src/documentation/pages/Components/PersonaCard/examples/PersonaCardExampleJS.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Pivot/examples/PivotDefaultExampleModel.js: -------------------------------------------------------------------------------- 1 | var PivotExampleProps = { 2 | "links": [ 3 | { 4 | "text": "My files", 5 | "state": "is-selected", 6 | "name": "files", 7 | "content": "This is the my files tab." 8 | }, 9 | { 10 | "text": "Recent", 11 | "name": "recent", 12 | "content": "This is the recent tab." 13 | }, 14 | { 15 | "text": "Shared with me", 16 | "name": "shared", 17 | "content": "This is the shared with me tab." 18 | } 19 | ], 20 | "hasEllipsis": true 21 | } 22 | 23 | module.exports = PivotExampleProps; 24 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Pivot/examples/PivotExample.hbs: -------------------------------------------------------------------------------- 1 | {{> Pivot props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/Pivot/examples/PivotExampleJS.hbs: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Pivot/examples/PivotLargeExampleModel.js: -------------------------------------------------------------------------------- 1 | var PivotExampleProps = { 2 | "modifiers": [ 3 | { 4 | "name": "large" 5 | } 6 | ], 7 | "links": [ 8 | { 9 | "text": "My files", 10 | "state": "is-selected", 11 | "name": "files", 12 | "content": "This is the my files tab." 13 | }, 14 | { 15 | "text": "Recent", 16 | "name": "recent", 17 | "content": "This is the recent tab." 18 | }, 19 | { 20 | "text": "Shared with me", 21 | "name": "shared", 22 | "content": "This is the shared with me tab." 23 | } 24 | ], 25 | "hasEllipsis": true 26 | } 27 | 28 | module.exports = PivotExampleProps; 29 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Pivot/examples/PivotLargeTabsExampleModel.js: -------------------------------------------------------------------------------- 1 | var PivotExampleProps = { 2 | "modifiers": [ 3 | { 4 | "name": "large" 5 | }, 6 | { 7 | "name": "tabs" 8 | } 9 | ], 10 | "links": [ 11 | { 12 | "text": "My files", 13 | "state": "is-selected", 14 | "name": "files", 15 | "content": "This is the my files tab." 16 | }, 17 | { 18 | "text": "Recent", 19 | "name": "recent", 20 | "content": "This is the recent tab." 21 | }, 22 | { 23 | "text": "Shared with me", 24 | "name": "shared", 25 | "content": "This is the shared with me tab." 26 | } 27 | ], 28 | "hasEllipsis": true 29 | } 30 | 31 | module.exports = PivotExampleProps; 32 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Pivot/examples/PivotTabsExampleModel.js: -------------------------------------------------------------------------------- 1 | var PivotExampleProps = { 2 | "modifiers": [ 3 | { 4 | "name": "tabs" 5 | } 6 | ], 7 | "links": [ 8 | { 9 | "text": "My files", 10 | "state": "is-selected", 11 | "name": "files", 12 | "content": "This is the my files tab." 13 | }, 14 | { 15 | "text": "Recent", 16 | "name": "recent", 17 | "content": "This is the recent tab." 18 | }, 19 | { 20 | "text": "Shared with me", 21 | "name": "shared", 22 | "content": "This is the shared with me tab." 23 | } 24 | ], 25 | "hasEllipsis": true 26 | } 27 | 28 | module.exports = PivotExampleProps; 29 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/ProgressIndicator/examples/ProgressIndicatorExample.hbs: -------------------------------------------------------------------------------- 1 | {{> ProgressIndicator props=props }} -------------------------------------------------------------------------------- /src/documentation/pages/Components/ProgressIndicator/examples/ProgressIndicatorExampleJS.hbs: -------------------------------------------------------------------------------- 1 | 11 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/ProgressIndicator/examples/ProgressIndicatorExampleModel.js: -------------------------------------------------------------------------------- 1 | var ProgressIndicatorExampleModel = { 2 | "title": "Example.jpg", 3 | "description": "My Progress Description" 4 | } 5 | 6 | module.exports = ProgressIndicatorExampleModel; 7 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/SearchBox/examples/SearchBoxCollapsedExampleModel.js: -------------------------------------------------------------------------------- 1 | var SearchBoxExampleProps = { 2 | "label": "Search", 3 | "defaultValue": "", 4 | "icon": "Search", 5 | "modifier": "commandBar", 6 | "state": "is-collapsed", 7 | "clearButton": { 8 | "component": "CommandButton", 9 | "props": { 10 | "icon": "Clear", 11 | "modifier": "noLabel", 12 | "tag": "button", 13 | "customClasses": "ms-SearchBox-clear" 14 | } 15 | }, 16 | "filterButton": { 17 | "component": "CommandButton", 18 | "props": { 19 | "icon": "Filter", 20 | "modifier": "noLabel", 21 | "tag": "button", 22 | "customClasses": "ms-SearchBox-filter" 23 | } 24 | }, 25 | "exitButton": { 26 | "component": "CommandButton", 27 | "props": { 28 | "icon": "ChromeBack", 29 | "modifier": "noLabel", 30 | "tag": "button", 31 | "customClasses": "ms-SearchBox-exit" 32 | } 33 | } 34 | } 35 | 36 | module.exports = SearchBoxExampleProps; 37 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/SearchBox/examples/SearchBoxCommandbarExampleModel.js: -------------------------------------------------------------------------------- 1 | var SearchBoxExampleProps = { 2 | "label": "Search", 3 | "defaultValue": "", 4 | "icon": "Search", 5 | "modifier": "commandBar", 6 | "clearButton": { 7 | "component": "CommandButton", 8 | "props": { 9 | "icon": "Clear", 10 | "modifier": "noLabel", 11 | "tag": "button", 12 | "customClasses": "ms-SearchBox-clear" 13 | } 14 | }, 15 | "filterButton": { 16 | "component": "CommandButton", 17 | "props": { 18 | "icon": "Filter", 19 | "modifier": "noLabel", 20 | "tag": "button", 21 | "customClasses": "ms-SearchBox-filter" 22 | } 23 | }, 24 | "exitButton": { 25 | "component": "CommandButton", 26 | "props": { 27 | "icon": "ChromeBack", 28 | "modifier": "noLabel", 29 | "tag": "button", 30 | "customClasses": "ms-SearchBox-exit" 31 | } 32 | } 33 | } 34 | 35 | module.exports = SearchBoxExampleProps; 36 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/SearchBox/examples/SearchBoxExample.hbs: -------------------------------------------------------------------------------- 1 | {{> SearchBox props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/SearchBox/examples/SearchBoxExampleJS.hbs: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/SearchBox/examples/SearchBoxExampleModel.js: -------------------------------------------------------------------------------- 1 | var SearchBoxExampleProps = { 2 | "label": "Search", 3 | "defaultValue": "", 4 | "icon": "Search", 5 | "clearButton": { 6 | "component": "CommandButton", 7 | "props": { 8 | "icon": "Clear", 9 | "modifier": "noLabel", 10 | "tag": "button", 11 | "customClasses": "ms-SearchBox-clear" 12 | } 13 | } 14 | } 15 | 16 | module.exports = SearchBoxExampleProps; 17 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Spinner/examples/SpinnerExample.hbs: -------------------------------------------------------------------------------- 1 | {{> Spinner props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/Spinner/examples/SpinnerExampleJS.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Spinner/examples/SpinnerExampleModel.js: -------------------------------------------------------------------------------- 1 | var SpinnerExampleModel = { 2 | } 3 | 4 | module.exports = SpinnerExampleModel; 5 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Spinner/examples/SpinnerLargeExampleModel.js: -------------------------------------------------------------------------------- 1 | var SpinnerLargeExampleModel = { 2 | modifier: "large" 3 | } 4 | 5 | module.exports = SpinnerLargeExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Spinner/examples/SpinnerLargeWithLabelExampleModel.js: -------------------------------------------------------------------------------- 1 | var SpinnerLargeWithLabelExampleModel = { 2 | label: "Loading...", 3 | modifier: "large" 4 | } 5 | 6 | module.exports = SpinnerLargeWithLabelExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Spinner/examples/SpinnerWithLabelExampleModel.js: -------------------------------------------------------------------------------- 1 | var SpinnerWithLabelExampleModel = { 2 | label: "Loading..." 3 | } 4 | 5 | module.exports = SpinnerWithLabelExampleModel; 6 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Table/Table.js: -------------------------------------------------------------------------------- 1 | var data = { 2 | componentName: "Table", 3 | overview: "

    Presents tabular data with multiple rows and columns. The table's width is flexible, but it does not have any advanced responsive behaviors.

    ", 4 | variants: [ 5 | { 6 | name: "Default Table", 7 | templateFile: "TableExample", 8 | model: "TableExampleModel" 9 | }, 10 | { 11 | name: "Fixed Table", 12 | templateFile: "TableExample", 13 | model: "TableFixedExampleModel" 14 | }, 15 | { 16 | name: "Selectable Table", 17 | templateFile: "TableExample", 18 | model: "TableSelectableExampleModel" 19 | } 20 | ], 21 | jsFile: "TableExampleJS" 22 | } 23 | 24 | module.exports = data; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Table/examples/TableExample.hbs: -------------------------------------------------------------------------------- 1 | {{> Table props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/Table/examples/TableExampleJS.hbs: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/TextField/TextField.js: -------------------------------------------------------------------------------- 1 | var data = { 2 | componentName: "TextField", 3 | overview: `

    The TextField component enables a user to type text into an app. It's typically used to capture a single line of text, but can be configured to capture multiple lines of text. The text displays on the screen in a simple, uniform format.

    `, 4 | availableReact: true, 5 | variants: [ 6 | { 7 | name: "Default TextField", 8 | templateFile: "TextFieldExample", 9 | model: "TextFieldExampleModel" 10 | }, 11 | { 12 | name: "Multiline TextField", 13 | templateFile: "TextFieldExample", 14 | model: "TextFieldMultilineExampleModel" 15 | }, 16 | { 17 | name: "Placeholder TextField", 18 | templateFile: "TextFieldExample", 19 | model: "TextFieldPlaceholderExampleModel" 20 | }, 21 | { 22 | name: "Underlined TextField", 23 | templateFile: "TextFieldExample", 24 | model: "TextFieldUnderlinedExampleModel" 25 | }, 26 | { 27 | name: "Disabled TextField", 28 | templateFile: "TextFieldExample", 29 | model: "TextFieldDisabledExampleModel" 30 | } 31 | ], 32 | states: [ 33 | { 34 | name: ".is-disabled", 35 | applied: ".ms-TextField", 36 | result: "Disables user input on TextField" 37 | } 38 | ], 39 | jsFile: "TextFieldExampleJS" 40 | } 41 | 42 | module.exports = data; -------------------------------------------------------------------------------- /src/documentation/pages/Components/TextField/examples/TextFieldDisabledExampleModel.js: -------------------------------------------------------------------------------- 1 | var TextFieldDisabledExampleModel = { 2 | "label": "Name", 3 | "textfield": true, 4 | "disabled": true 5 | } 6 | 7 | module.exports = TextFieldDisabledExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/TextField/examples/TextFieldExample.hbs: -------------------------------------------------------------------------------- 1 | {{> TextField props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/TextField/examples/TextFieldExampleJS.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/TextField/examples/TextFieldExampleModel.js: -------------------------------------------------------------------------------- 1 | var TextFieldExampleModel = { 2 | "label": "Name", 3 | "textfield": true 4 | } 5 | 6 | module.exports = TextFieldExampleModel; 7 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/TextField/examples/TextFieldMultilineExampleModel.js: -------------------------------------------------------------------------------- 1 | var TextFieldMultilineExampleModel = { 2 | "modifier": "multiline", 3 | "label": "Name", 4 | "multiline": true 5 | } 6 | 7 | module.exports = TextFieldMultilineExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/TextField/examples/TextFieldPlaceholderExampleModel.js: -------------------------------------------------------------------------------- 1 | var TextFieldPlaceholderExampleModel = { 2 | "label": "Given name", 3 | "textfield": true, 4 | "modifier": "placeholder" 5 | } 6 | 7 | module.exports = TextFieldPlaceholderExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/TextField/examples/TextFieldUnderlinedExampleModel.js: -------------------------------------------------------------------------------- 1 | var TextFieldUnderlinedExampleModel = { 2 | "label": "Name", 3 | "textfield": true, 4 | "modifier": "underlined" 5 | } 6 | 7 | module.exports = TextFieldUnderlinedExampleModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Toggle/Toggle.js: -------------------------------------------------------------------------------- 1 | var data = { 2 | componentName: "Toggle", 3 | overview: `

    Toggles represent a physical switch that allows users to turn things on or off. Use Toggles to present users with two mutually exclusive options (like on/off), where choosing an option results in an immediate action. Use a Toggle for binary operations that take effect right after the user flips the Toggle. For example, use a Toggle to turn services or hardware components on or off. In other words, if a physical switch would work for the action, a Toggle is probably the best control to use.

    `, 4 | availableReact: true, 5 | variants: [ 6 | { 7 | name: "Default Toggle", 8 | templateFile: "ToggleElem", 9 | model: "ToggleBasicModel" 10 | }, 11 | { 12 | name: "Disabled Toggle", 13 | templateFile: "ToggleElem", 14 | model: "ToggleDisabledModel" 15 | }, 16 | { 17 | name: "Text Left Toggle", 18 | templateFile: "ToggleElem", 19 | model: "ToggleTextLeftModel" 20 | } 21 | ], 22 | jsFile: "ToggleJS" 23 | } 24 | 25 | module.exports = data; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Toggle/examples/ToggleBasicModel.js: -------------------------------------------------------------------------------- 1 | var ToggleModelBasic = { 2 | "description": "Let apps use my location", 3 | "onText": "On", 4 | "offText": "Off", 5 | "demoID": "demo-toggle-3" 6 | } 7 | 8 | module.exports = ToggleModelBasic; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Toggle/examples/ToggleDisabledModel.js: -------------------------------------------------------------------------------- 1 | var ToggleDisabledModel = { 2 | "description": "Let apps use my location", 3 | "onText": "On", 4 | "offText": "Off", 5 | "demoID": "demo-toggle-2", 6 | "disabled": true 7 | } 8 | 9 | module.exports = ToggleDisabledModel; -------------------------------------------------------------------------------- /src/documentation/pages/Components/Toggle/examples/ToggleElem.hbs: -------------------------------------------------------------------------------- 1 | {{> Toggle props=props}} -------------------------------------------------------------------------------- /src/documentation/pages/Components/Toggle/examples/ToggleJS.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/documentation/pages/Components/Toggle/examples/ToggleTextLeftModel.js: -------------------------------------------------------------------------------- 1 | var ToggleTextLeftModel = { 2 | "modifier": "textLeft", 3 | "description": "Let apps use my location", 4 | "onText": "On", 5 | "offText": "Off", 6 | "demoID": "demo-toggle-1" 7 | } 8 | 9 | module.exports = ToggleTextLeftModel; -------------------------------------------------------------------------------- /src/documentation/pages/HomePage/HomePage.hbs: -------------------------------------------------------------------------------- 1 |
    2 |

    Office UI Fabric JS

    3 | Simple components that focus on appearance and styling while showing the visual language of Office. 4 | Get started 5 | Fabric Core {{packageData.dependencies.office-ui-fabric-core}} and Fabric JS {{packageData.version}} 6 |
    7 |
    8 |
    9 | Javascript logo 10 | Framework-independent and open source 11 |

    Fabric JS provides you with simple components that don't require a framework. It's open source, easy to extend, and ready for you to add what makes your project unique.

    12 |

    Fabric JS works great with Add-ins and is the recommended front-end toolkit for making your next Office Add-in.

    13 | See components 14 |
    15 |
    -------------------------------------------------------------------------------- /src/documentation/sass/HLJS.scss: -------------------------------------------------------------------------------- 1 | .hljs { 2 | display: block; 3 | overflow-x: auto; 4 | padding: 0.5em; 5 | background: #F0F0F0 6 | } 7 | 8 | .hljs, 9 | .hljs-subst { 10 | color: #444 11 | } 12 | 13 | .hljs-comment { 14 | color: #888888 15 | } 16 | 17 | .hljs-keyword, 18 | .hljs-attribute, 19 | .hljs-selector-tag, 20 | .hljs-meta-keyword, 21 | .hljs-doctag, 22 | .hljs-name { 23 | font-weight: bold 24 | } 25 | 26 | .hljs-type, 27 | .hljs-string, 28 | .hljs-number, 29 | .hljs-selector-id, 30 | .hljs-selector-class, 31 | .hljs-quote, 32 | .hljs-template-tag, 33 | .hljs-deletion { 34 | color: #880000 35 | } 36 | 37 | .hljs-title, 38 | .hljs-section { 39 | color: #880000; 40 | font-weight: bold 41 | } 42 | 43 | .hljs-regexp, 44 | .hljs-symbol, 45 | .hljs-variable, 46 | .hljs-template-variable, 47 | .hljs-link, 48 | .hljs-selector-attr, 49 | .hljs-selector-pseudo { 50 | color: #BC6060 51 | } 52 | 53 | .hljs-literal { 54 | color: #78A960 55 | } 56 | 57 | .hljs-built_in, 58 | .hljs-bullet, 59 | .hljs-code, 60 | .hljs-addition { 61 | color: #397300 62 | } 63 | 64 | .hljs-meta { 65 | color: #1f7199 66 | } 67 | 68 | .hljs-meta-string { 69 | color: #4d99bf 70 | } 71 | 72 | .hljs-emphasis { 73 | font-style: italic 74 | } 75 | 76 | .hljs-strong { 77 | font-weight: bold 78 | } -------------------------------------------------------------------------------- /src/documentation/sass/ODSearchbox.scss: -------------------------------------------------------------------------------- 1 | .od-SearchBox { 2 | background-color: $ms-color-neutralPrimaryAlt; 3 | width: 100%; 4 | padding-right: $od-Header-searchHeight; 5 | padding-left: 8px; 6 | height: 100%; 7 | position: relative; 8 | box-sizing: border-box; 9 | 10 | fieldset { 11 | border: 0; 12 | height: auto; 13 | padding: 0; 14 | margin: 0; 15 | } 16 | 17 | @include high-contrast { 18 | border: 1px solid $ms-color-white; 19 | } 20 | 21 | @include high-contrast-black-on-white { 22 | border: 1px solid $ms-color-black; 23 | } 24 | } 25 | 26 | .od-SearchBox-field { 27 | background-color: transparent; 28 | height: $od-Header-searchHeight; 29 | width: 100%; 30 | border: 0; 31 | font-size: $ms-font-size-l; 32 | color: $ms-color-white; 33 | } 34 | 35 | .od-SearchBox-button { 36 | background: none; 37 | border: 0; 38 | color: transparent; 39 | position: absolute; 40 | @include right(0); 41 | top: 0; 42 | height: $od-Header-searchHeight - 4px; 43 | width: $od-Header-searchHeight; 44 | overflow: hidden; 45 | line-height: 30px; 46 | 47 | &.ms-Icon:before { 48 | font-size: $ms-font-size-xl; 49 | color: $ms-color-white; 50 | position: absolute; 51 | } 52 | } -------------------------------------------------------------------------------- /src/documentation/sass/style.scss: -------------------------------------------------------------------------------- 1 | @import "../../../node_modules/office-ui-fabric-core/src/sass/_Fabric.Common"; 2 | 3 | // CSS Reset 4 | @import "./styles/reset"; 5 | 6 | // Variables 7 | @import "./styles/variables"; 8 | 9 | // Mixins 10 | @import "./styles/mixins"; 11 | 12 | // Typography 13 | @import "./styles/typography"; 14 | 15 | @import "Header"; 16 | 17 | @import "SideBar"; 18 | 19 | @import "AppContainer"; 20 | 21 | @import "ODNavigation"; 22 | 23 | @import "ODNavigationLink"; 24 | 25 | @import "ODSearchbox"; 26 | 27 | @import "CodeBlock"; 28 | 29 | @import "HomePage"; 30 | 31 | @import "PageHeader"; 32 | 33 | @import "GetStarted"; 34 | 35 | @import "ComponentPage"; 36 | 37 | @import "ExampleCard"; 38 | 39 | @import "HLJS"; 40 | 41 | @import "Footer"; -------------------------------------------------------------------------------- /src/documentation/sass/styles/_reset.css: -------------------------------------------------------------------------------- 1 | /* http://meyerweb.com/eric/tools/css/reset/ 2 | v2.0 | 20110126 3 | License: none (public domain) 4 | */ 5 | 6 | html, body, div, span, applet, object, iframe, 7 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 8 | a, abbr, acronym, address, big, cite, code, 9 | del, dfn, em, img, ins, kbd, q, s, samp, 10 | small, strike, strong, sub, sup, tt, var, 11 | b, u, i, center, 12 | dl, dt, dd, ol, ul, li, 13 | fieldset, form, label, legend, 14 | table, caption, tbody, tfoot, thead, tr, th, td, 15 | article, aside, canvas, details, embed, 16 | figure, figcaption, footer, header, hgroup, 17 | menu, nav, output, ruby, section, summary, 18 | time, mark, audio, video { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | font-size: 100%; 23 | font: inherit; 24 | vertical-align: baseline; 25 | text-decoration: none; 26 | } 27 | /* HTML5 display-role reset for older browsers */ 28 | article, aside, details, figcaption, figure, 29 | footer, header, hgroup, menu, nav, section { 30 | display: block; 31 | } 32 | body { 33 | line-height: 1; 34 | } 35 | ol, ul { 36 | list-style: none; 37 | } 38 | blockquote, q { 39 | quotes: none; 40 | } 41 | blockquote:before, blockquote:after, 42 | q:before, q:after { 43 | content: ''; 44 | content: none; 45 | } 46 | table { 47 | border-collapse: collapse; 48 | border-spacing: 0; 49 | } 50 | -------------------------------------------------------------------------------- /src/documentation/sass/styles/_typography.scss: -------------------------------------------------------------------------------- 1 | // Standard text size and spacing 2 | body { 3 | color: $ms-color-neutralPrimary; 4 | font-family: $ms-font-family-base; 5 | font-size: $ms-font-size-m; 6 | line-height: 1.5; 7 | } 8 | 9 | // Headings 10 | h2, h3, h4, h5 { 11 | color: $ms-color-black; 12 | font-weight: $ms-font-weight-semilight; 13 | margin-bottom: 16px; 14 | } 15 | 16 | h2 { 17 | font-size: $font-size-big; 18 | font-weight: $ms-font-weight-light; 19 | margin-bottom: 4px; 20 | margin-top: 48px; 21 | } 22 | 23 | h3 { 24 | font-size: $ms-font-size-l; 25 | margin: 40px 0 8px 0; 26 | } 27 | 28 | h4 { 29 | color: $ms-color-neutralDark; 30 | font-size: $ms-font-size-m; 31 | font-weight: $ms-font-weight-semibold; 32 | margin: 8px 0; 33 | } 34 | 35 | // Paragraphs and lists 36 | p, ul, ol { 37 | font-size: $ms-font-size-m; 38 | font-weight: $ms-font-weight-regular; 39 | margin-bottom: 12px; 40 | } 41 | 42 | ol { 43 | list-style-position: inside; 44 | list-style-type: decimal; 45 | } 46 | 47 | // Inline text elements 48 | a { 49 | color: $ms-color-themePrimary; 50 | text-decoration: none; 51 | } 52 | 53 | em { 54 | font-style: italic; 55 | } 56 | 57 | strong { 58 | font-weight: $ms-font-weight-semibold; 59 | } 60 | 61 | code { 62 | font-family: monospace; 63 | } 64 | -------------------------------------------------------------------------------- /src/documentation/templates/bundle-template.scss: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // SCSS template for building a bundle of Fabric and Fabric Components CSS. 7 | 8 | @import '../../../src/sass/_Fabric.Common.scss'; 9 | 10 | <% 11 | var relativePath = '../../../src/'; 12 | 13 | // Then, include each dependency 14 | dependencies.forEach(function(dep) { 15 | %> 16 | @import '<%= relativePath + dep %>';<% 17 | }); %> -------------------------------------------------------------------------------- /src/documentation/templates/codeBlock.hbs: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |
    4 | 			{{{outputCode code language}}}
    5 | 		
    6 |
    7 |
    -------------------------------------------------------------------------------- /src/documentation/templates/component-manifest-template.scss: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Office UI Fabric 5 | // -------------------------------------------------- 6 | // Template for building a standalone component with dependencies included. 7 | 8 | /*Sasssssssss*/ 9 | 10 | @import '../sass/Fabric.Common'; 11 | <% dependencies.forEach(function(dep){ %> 12 | @import '../components/<%= dep %>/<%= dep %>'; 13 | <% }); %> 14 | @import '../components/<%= componentName %>/<%= componentName %>'; -------------------------------------------------------------------------------- /src/samples/VideoPortal/sass/Base.scss: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Video Portal Example App 5 | // -------------------------------------------------- 6 | // Base styles 7 | 8 | 9 | * { 10 | box-sizing: border-box; 11 | } 12 | 13 | html, 14 | body { 15 | @include ms-font-m; 16 | padding: 0; 17 | margin: 0; 18 | } 19 | 20 | a { 21 | @include ms-Link; 22 | font-size: inherit; 23 | text-decoration: none; 24 | } 25 | 26 | .VideoPortal-content { 27 | position: relative; 28 | } 29 | 30 | .VideoPortal-navBar { 31 | display: block; 32 | top: 0; 33 | width: 100%; 34 | z-index: 101; 35 | height: 40px; 36 | } 37 | 38 | .VideoPortal-page { 39 | overflow: visible; 40 | position: relative; 41 | padding-bottom: 50px; 42 | } 43 | -------------------------------------------------------------------------------- /src/samples/VideoPortal/sass/ChannelPage.scss: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Video Portal Example App 5 | // -------------------------------------------------- 6 | // Individual Channel Page styles 7 | 8 | 9 | .ChannelPage-content { 10 | padding: 10px; 11 | padding-top: 20px; 12 | } 13 | 14 | .ChannelPage-pivots { 15 | margin-bottom: 20px; 16 | 17 | // Small override for Fabric Pivot component 18 | .ms-Pivot-link { 19 | font-size: $ms-font-size-xl; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/samples/VideoPortal/sass/ChannelsPage.scss: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Video Portal Example App 5 | // -------------------------------------------------- 6 | // Channels List page styles 7 | 8 | 9 | .ChannelsPage { 10 | padding: 10px; 11 | } 12 | 13 | .ChannelGroup-title { 14 | padding-bottom: 10px; 15 | border-bottom: 1px solid $ms-color-neutralLight; 16 | } 17 | 18 | .ChannelGroup-channel { 19 | padding: 10px 0 10px 10px; 20 | border-width: 4px; 21 | border-left-style: solid; 22 | margin-bottom: 10px; 23 | display: block; 24 | 25 | &:hover { 26 | color: $ms-color-black; 27 | } 28 | } 29 | 30 | @media (min-width: $ms-screen-md-min) { 31 | .ChannelsPage { 32 | padding: 20px; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/samples/VideoPortal/sass/HomePage.scss: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Video Portal Example App 5 | // -------------------------------------------------- 6 | // Home page styles 7 | 8 | 9 | .HomePage-content { 10 | padding: 10px; 11 | padding-top: 20px; 12 | } 13 | 14 | .ChannelList-title { 15 | padding-left: 10px; 16 | border-width: 4px; 17 | border-left-style: solid; 18 | } 19 | 20 | .ChannelList-titleText { 21 | margin-right: 7px; 22 | } 23 | -------------------------------------------------------------------------------- /src/samples/VideoPortal/sass/NavBar.scss: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Video Portal Example App 5 | // -------------------------------------------------- 6 | // Fabric NavBar override styles 7 | 8 | .ms-CommandBar--navBar { 9 | background-color: $ms-color-neutralLighter; 10 | } -------------------------------------------------------------------------------- /src/samples/VideoPortal/sass/Utilities.scss: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Video Portal Example App 5 | // -------------------------------------------------- 6 | // Utility classes 7 | 8 | 9 | .u-contentCenter { // Utility for centering page areas regardless of parent container 10 | position: relative; 11 | margin: 0 auto; 12 | max-width: 100%; 13 | transition: $ms-duration1 all $ms-ease1; 14 | } 15 | 16 | @media (min-width: $ms-screen-lg-min) { 17 | .u-contentCenter { 18 | max-width: 960px; 19 | } 20 | } 21 | 22 | @media (min-width: $ms-screen-xxl-min) { // 1366 23 | // Use a larger container size for non-player pages 24 | .HomePage, 25 | .ChannelPage { 26 | .u-contentCenter { 27 | max-width: 1200px; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/samples/VideoPortal/sass/VideoPortal.scss: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | // 4 | // Video Portal Example App 5 | // -------------------------------------------------- 6 | // Load all page and component styles 7 | 8 | 9 | // Import both Fabric and Fabric Components by reference to access variables 10 | // and mixins from each without compiling their contents. 11 | @import '../../../../node_modules/office-ui-fabric-core/src/sass/Fabric.Common.scss'; 12 | @import '../../../sass/Fabric.Components.scss'; 13 | 14 | // Import all LESS 15 | @import 'Utilities'; 16 | @import 'Base.scss'; 17 | @import 'NavBar'; 18 | @import 'VideoListItem'; 19 | @import 'SpotLight'; 20 | @import 'HomePage'; 21 | @import 'PlayerPage'; 22 | @import 'ChannelPage'; 23 | @import 'ChannelsPage'; 24 | -------------------------------------------------------------------------------- /src/utilities/Polyfills.ts: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | // "use strict"; 3 | 4 | interface Window { 5 | CustomEvent: Object; 6 | } 7 | 8 | // CustomEvent Polyfill to support IE 9 | (function () { 10 | function CustomEvent ( event, params ) { 11 | params = params || { bubbles: false, cancelable: false, detail: undefined }; 12 | let evt: CustomEvent = document.createEvent("CustomEvent"); 13 | evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail ); 14 | return evt; 15 | }; 16 | CustomEvent.prototype = Event.prototype; 17 | window.CustomEvent = CustomEvent; 18 | })(); 19 | -------------------------------------------------------------------------------- /src/utilities/ResponsiveVariables.js: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. 2 | 3 | /** 4 | * Responsive Variables 5 | * 6 | * All fabric breakpoints used in fabric 7 | * 8 | */ 9 | 10 | /** 11 | * @namespace fabric 12 | */ 13 | var fabric = fabric || {}; 14 | /** 15 | * 16 | * @constructor 17 | */ 18 | fabric.ResponsiveVariables = function() { 19 | this.init(); 20 | }; 21 | 22 | fabric.ResponsiveVariables.prototype = (function() { 23 | 24 | var ResponsiveVariables = { 25 | "sm-min": 320, 26 | "md-min": 480, 27 | "lg-min": 640, 28 | "xl-min": 1024, 29 | "xxl-min": 1366, 30 | "xxxl-min": 1920 31 | }; 32 | 33 | ResponsiveVariables["sm-max"] = minVariables["md-min"] - 1; 34 | ResponsiveVariables["md-max"] = minVariables["lg-min"] - 1; 35 | ResponsiveVariables["lg-max"] = minVariables["xl-min"] - 1; 36 | ResponsiveVariables["xl-max"] = minVariables["xxl-min"] - 1; 37 | ResponsiveVariables["xxl-max"] = minVariables["xxxl-min"] - 1; 38 | 39 | /** 40 | * initializes component 41 | */ 42 | var init = function() { 43 | return ResponsiveVariables; 44 | }; 45 | 46 | return { 47 | init: init 48 | }; 49 | 50 | }()); --------------------------------------------------------------------------------