Skip to content

Commit

Permalink
(vNext) update casing for style exports (#4618)
Browse files Browse the repository at this point in the history
* update casing  for style exports to illustrate they are functions

* Change files

* add api report
  • Loading branch information
chrisdholt authored and nicholasrice committed Apr 22, 2021
1 parent 0fe93ec commit b90eacb
Show file tree
Hide file tree
Showing 37 changed files with 82 additions and 68 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "major",
"comment": "update name casing for style exports to lowercase as they are functions",
"packageName": "@microsoft/fast-components",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "fix incorrect name for select tests",
"packageName": "@microsoft/fast-foundation",
"email": "[email protected]",
"dependentChangeType": "none"
}
66 changes: 33 additions & 33 deletions packages/web-components/fast-components/docs/api-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ export const accentForegroundRest: SwatchRecipe;
export const accentForegroundRestBehavior: import("@microsoft/fast-foundation").CSSCustomPropertyBehavior;

// @public
export const AccordionItemStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const accordionItemStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const AccordionStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const accordionStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// Warning: (ae-internal-missing-underscore) The name "Anchor" should be prefixed with an underscore because the declaration is marked as @internal
//
Expand All @@ -230,13 +230,13 @@ export class Anchor extends Anchor_2 {
export type AnchorAppearance = ButtonAppearance | "hypertext";

// @public
export const AnchoredRegionStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const anchoredRegionStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const AnchorStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const anchorStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const BadgeStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const badgeStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// Warning: (ae-internal-missing-underscore) The name "Button" should be prefixed with an underscore because the declaration is marked as @internal
//
Expand All @@ -254,16 +254,16 @@ export class Button extends Button_2 {
export type ButtonAppearance = "accent" | "lightweight" | "neutral" | "outline" | "stealth";

// @public
export const ButtonStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const buttonStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

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

// @public
export const CheckboxStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const checkboxStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const ComboboxStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const comboboxStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export function createColorPalette(baseColor: any): string[];
Expand All @@ -278,7 +278,7 @@ export const DataGridRowStyles: import("@microsoft/fast-element").ElementStyles;
export const DataGridStyles: import("@microsoft/fast-element").ElementStyles;

// @public
export const DialogStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const dialogStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// Warning: (ae-internal-missing-underscore) The name "Disclosure" should be prefixed with an underscore because the declaration is marked as @internal
//
Expand All @@ -300,10 +300,10 @@ export class Disclosure extends Disclosure_2 {
export type DisclosureAppearance = "accent" | "lightweight";

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

// @public
export const DividerStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const dividerStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const fastAccordion: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
Expand Down Expand Up @@ -994,7 +994,7 @@ export const fastTreeView: (overrideDefinition?: import("@microsoft/fast-foundat
}, typeof TreeView>;

// @public
export const FlipperStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const flipperStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// Warning: (ae-internal-missing-underscore) The name "HorizontalScroll" should be prefixed with an underscore because the declaration is marked as @internal
//
Expand All @@ -1014,13 +1014,13 @@ export const inlineStartBehavior: import("@microsoft/fast-foundation").CSSCustom
export function isDarkMode(designSystem: FASTDesignSystem): boolean;

// @public
export const ListboxStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const listboxStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const MenuItemStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const menuItemStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const MenuStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const menuStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// Warning: (ae-internal-missing-underscore) The name "neutralContrastFill" should be prefixed with an underscore because the declaration is marked as @internal
//
Expand Down Expand Up @@ -1424,10 +1424,10 @@ export class NumberField extends NumberField_2 {
export type NumberFieldAppearance = "filled" | "outline";

// @public
export const NumberFieldStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const numberFieldStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const OptionStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const optionStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export type Palette = Swatch[];
Expand All @@ -1449,22 +1449,22 @@ export enum PaletteType {
export const parseColorString: (color: string) => ColorRGBA64;

// @public
export const ProgressRingStyles: (context: any, defintion: any) => import("@microsoft/fast-element").ElementStyles;
export const progressRingStyles: (context: any, defintion: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const ProgressStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const progressStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const RadioGroupStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const radioGroupStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const RadioStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const radioStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const SelectStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const selectStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const SkeletonStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const skeletonStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// Warning: (ae-internal-missing-underscore) The name "SliderLabel" should be prefixed with an underscore because the declaration is marked as @internal
//
Expand All @@ -1475,10 +1475,10 @@ export class SliderLabel extends SliderLabel_2 {
}

// @public
export const SliderLabelStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const sliderLabelStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const SliderStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const sliderStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export enum StandardLuminance {
Expand All @@ -1489,16 +1489,16 @@ export enum StandardLuminance {
}

// @public
export const SwitchStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const switchStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const TabPanelStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const tabPanelStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const TabsStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const tabsStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const TabStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const tabStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// Warning: (ae-internal-missing-underscore) The name "TextArea" should be prefixed with an underscore because the declaration is marked as @internal
//
Expand All @@ -1514,7 +1514,7 @@ export class TextArea extends TextArea_2 {
export type TextAreaAppearance = "filled" | "outline";

// @public
export const TextAreaStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const textAreaStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// Warning: (ae-internal-missing-underscore) The name "TextField" should be prefixed with an underscore because the declaration is marked as @internal
//
Expand All @@ -1530,13 +1530,13 @@ export class TextField extends TextField_2 {
export type TextFieldAppearance = "filled" | "outline";

// @public
export const TextFieldStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const textFieldStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const TreeItemStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const treeItemStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;

// @public
export const TreeViewStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;
export const treeViewStyles: (context: any, definition: any) => import("@microsoft/fast-element").ElementStyles;


// (No @packageDocumentation comment for this package)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ export const fastAccordionItem = AccordionItem.compose({
* Styles for AccordionItem
* @public
*/
export const AccordionItemStyles = styles;
export const accordionItemStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ export const fastAccordion = Accordion.compose({
* Styles for Accordion
* @public
*/
export const AccordionStyles = styles;
export const accordionStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class Anchor extends FoundationAnchor {
* Styles for Anchor
* @public
*/
export const AnchorStyles = styles;
export const anchorStyles = styles;

/**
* The FAST Anchor Element. Implements {@link @microsoft/fast-foundation#Anchor},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ export const fastAnchoredRegion = AnchoredRegion.compose({
* Styles for AnchoredRegion
* @public
*/
export const AnchoredRegionStyles = styles;
export const anchoredRegionStyles = styles;
2 changes: 1 addition & 1 deletion packages/web-components/fast-components/src/badge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export const fastBadge = Badge.compose({
* Styles for Badge
* @public
*/
export const BadgeStyles = styles;
export const badgeStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ export const fastButton = Button.compose({
* Styles for Button
* @public
*/
export const ButtonStyles = styles;
export const buttonStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export const fastCheckbox = Checkbox.compose({
* Styles for Checkbox
* @public
*/
export const CheckboxStyles = styles;
export const checkboxStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export const fastCombobox = Combobox.compose({
* Styles for combobox
* @public
*/
export const ComboboxStyles = styles;
export const comboboxStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export const fastDialog = Dialog.compose({
* Styles for Dialog
* @public
*/
export const DialogStyles = styles;
export const dialogStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class Disclosure extends FoundationDisclosure {
* Styles for Disclosure
* @public
*/
export const DisclosureStyles = styles;
export const disclosureStyles = styles;

/**
* The FAST Disclosure Element. Implements {@link @microsoft/fast-foundation#Disclosure},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export const fastDivider = Divider.compose({
* Styles for Divider
* @public
*/
export const DividerStyles = styles;
export const dividerStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export const fastFlipper = Flipper.compose({
* Styles for Flipper
* @public
*/
export const FlipperStyles = styles;
export const flipperStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ export const fastOption = ListboxOption.compose({
* Styles for Option
* @public
*/
export const OptionStyles = styles;
export const optionStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ export const fastListbox = Listbox.compose({
* Styles for Listbox
* @public
*/
export const ListboxStyles = styles;
export const listboxStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export const fastMenuItem = MenuItem.compose({
* Styles for MenuItem
* @public
*/
export const MenuItemStyles = styles;
export const menuItemStyles = styles;
2 changes: 1 addition & 1 deletion packages/web-components/fast-components/src/menu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export const fastMenu = Menu.compose({
* Styles for Menu
* @public
*/
export const MenuStyles = styles;
export const menuStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class NumberField extends FoundationNumberField {
* Styles for NumberField
* @public
*/
export const NumberFieldStyles = styles;
export const numberFieldStyles = styles;

/**
* The FAST Number Field Custom Element. Implements {@link @microsoft/fast-foundation#NumberField},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ export const fastProgressRing = Progress.compose({
* Styles for ProgressRing
* @public
*/
export const ProgressRingStyles = styles;
export const progressRingStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ export const fastProgress = Progress.compose({
* Styles for Progress
* @public
*/
export const ProgressStyles = styles;
export const progressStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export const fastRadioGroup = RadioGroup.compose({
* Styles for RadioGroup
* @public
*/
export const RadioGroupStyles = styles;
export const radioGroupStyles = styles;
2 changes: 1 addition & 1 deletion packages/web-components/fast-components/src/radio/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export const fastRadio = Radio.compose({
* Styles for Radio
* @public
*/
export const RadioStyles = styles;
export const radioStyles = styles;
4 changes: 2 additions & 2 deletions packages/web-components/fast-components/src/select/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { selectStyles as styles } from "./select.styles";
*
*/
export const fastSelect = Select.compose({
baseName: "fast",
baseName: "select",
template,
styles,
});
Expand All @@ -21,4 +21,4 @@ export const fastSelect = Select.compose({
* Styles for Select
* @public
*/
export const SelectStyles = styles;
export const selectStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export const fastSkeleton = Skeleton.compose({
* Styles for Skeleton
* @public
*/
export const SkeletonStyles = styles;
export const skeletonStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ export const fastSliderLabel = SliderLabel.compose({
* Styles for SliderLabel
* @public
*/
export const SliderLabelStyles = styles;
export const sliderLabelStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export const fastSlider = Slider.compose({
* Styles for Slider
* @public
*/
export const SliderStyles = styles;
export const sliderStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export const fastSwitch = Switch.compose({
* Styles for Switch
* @public
*/
export const SwitchStyles = styles;
export const switchStyles = styles;
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export const fastTabPanel = TabPanel.compose({
* Styles for TabPanel
* @public
*/
export const TabPanelStyles = styles;
export const tabPanelStyles = styles;
Loading

0 comments on commit b90eacb

Please sign in to comment.