Skip to content

Commit

Permalink
chore: add definition files to the site utilities (#3200)
Browse files Browse the repository at this point in the history
  • Loading branch information
janechu authored May 29, 2020
1 parent 06298b3 commit f007062
Show file tree
Hide file tree
Showing 28 changed files with 1,455 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
import { WebComponentDefinition } from "@microsoft/fast-tooling/dist/data-utilities/web-component";
import { DataType } from "@microsoft/fast-tooling";

export const fastAnchorDefinition: WebComponentDefinition = {
version: 1,
tags: [
{
name: "fast-anchor",
description: "The FAST anchor element",
attributes: [
{
name: "appearance",
description: "The appearance attribute",
type: DataType.string,
values: [
{
name: "accent",
},
{
name: "lightweight",
},
{
name: "neutral",
},
{
name: "outline",
},
{
name: "stealth",
},
{
name: "hypertext",
},
],
default: "neutral",
required: false,
},
{
name: "download",
description: "The download attribute",
type: DataType.string,
default: undefined,
required: false,
},
{
name: "href",
description: "The href attribute",
type: DataType.string,
default: undefined,
required: false,
},
{
name: "hreflang",
description: "The hreflang attribute",
type: DataType.string,
default: undefined,
required: false,
},
{
name: "ping",
description: "The ping attribute",
type: DataType.string,
default: undefined,
required: false,
},
{
name: "referrerpolicy",
description: "The referrerpolicy attribute",
type: DataType.string,
default: undefined,
required: false,
},
{
name: "rel",
description: "The rel attribute",
type: DataType.string,
default: undefined,
required: false,
},
{
name: "target",
description: "The target attribute",
type: DataType.string,
default: "_self",
values: [
{
name: "_self",
},
{
name: "_blank",
},
{
name: "_parent",
},
{
name: "_top",
},
],
required: false,
},
{
name: "type",
description: "The type attribute",
type: DataType.string,
default: undefined,
required: false,
},
],
slots: [
{
name: "",
description: "The default slot",
},
],
},
],
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import { WebComponentDefinition } from "@microsoft/fast-tooling/dist/data-utilities/web-component";
import { DataType } from "@microsoft/fast-tooling";

export const fastBadgeDefinition: WebComponentDefinition = {
version: 1,
tags: [
{
name: "fast-badge",
description: "The FAST badge element",
attributes: [
{
name: "circular",
description: "The circular attribute",
type: DataType.string,
default: "",
required: false,
},
{
name: "fill",
description: "The fill attribute",
type: DataType.string,
default: undefined,
required: false,
},
{
name: "color",
description: "The color attribute",
type: DataType.string,
default: undefined,
required: false,
},
],
slots: [
{
name: "",
description: "The default slot",
},
],
},
],
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
import { WebComponentDefinition } from "@microsoft/fast-tooling/dist/data-utilities/web-component";
import { DataType } from "@microsoft/fast-tooling";

export const fastButtonDefinition: WebComponentDefinition = {
version: 1,
tags: [
{
name: "fast-button",
description: "The FAST button element",
attributes: [
{
name: "appearance",
description: "The appearance attribute",
type: DataType.string,
values: [
{
name: "accent",
},
{
name: "lightweight",
},
{
name: "neutral",
},
{
name: "outline",
},
{
name: "stealth",
},
],
default: "neutral",
required: false,
},
{
name: "autofocus",
description: "The autofocus attribute",
type: DataType.boolean,
default: false,
required: false,
},
{
name: "disabled",
description: "The disabled attribute",
type: DataType.boolean,
default: undefined,
required: false,
},
{
name: "form",
description: "The form attribute",
type: DataType.string,
default: undefined,
required: false,
},
{
name: "formaction",
description: "The formaction attribute",
type: DataType.string,
default: undefined,
required: false,
},
{
name: "formenctype",
description: "The formenctype attribute",
type: DataType.string,
default: undefined,
required: false,
},
{
name: "formmethod",
description: "The formmethod attribute",
type: DataType.string,
default: undefined,
required: false,
},
{
name: "formnovalidate",
description: "The formnovalidate attribute",
type: DataType.boolean,
default: undefined,
required: false,
},
{
name: "formtarget",
description: "The formtarget attribute",
type: DataType.string,
default: undefined,
values: [
{
name: "_self",
},
{
name: "_blank",
},
{
name: "_parent",
},
{
name: "_top",
},
],
required: false,
},
{
name: "name",
description: "The name attribute",
type: DataType.string,
default: undefined,
required: false,
},
{
name: "type",
description: "The type attribute",
type: DataType.string,
default: undefined,
required: false,
},
{
name: "value",
description: "The value attribute",
type: DataType.string,
default: undefined,
required: false,
},
],
slots: [
{
name: "",
description: "The default slot",
},
],
},
],
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { WebComponentDefinition } from "@microsoft/fast-tooling/dist/data-utilities/web-component";

export const fastCardDefinition: WebComponentDefinition = {
version: 1,
tags: [
{
name: "fast-card",
description: "The FAST card element",
attributes: [],
slots: [
{
name: "",
description: "The default slot",
},
],
},
],
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import { WebComponentDefinition } from "@microsoft/fast-tooling/dist/data-utilities/web-component";
import { DataType } from "@microsoft/fast-tooling";

export const fastCheckboxDefinition: WebComponentDefinition = {
version: 1,
tags: [
{
name: "fast-checkbox",
description: "The FAST checkbox element",
attributes: [
{
name: "checked",
description: "The checked attribute",
type: DataType.boolean,
default: false,
required: false,
},
{
name: "name",
description: "The name attribute",
type: DataType.string,
default: "",
required: false,
},
{
name: "required",
description: "The required attribute",
type: DataType.boolean,
default: false,
required: false,
},
{
name: "disabled",
description: "The disabled attribute",
type: DataType.boolean,
default: false,
required: false,
},
{
name: "readonly",
description: "The readonly attribute",
type: DataType.boolean,
default: false,
required: false,
},
],
slots: [
{
name: "",
description: "The default slot",
},
],
},
],
};
Loading

0 comments on commit f007062

Please sign in to comment.