-
Notifications
You must be signed in to change notification settings - Fork 600
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add definition files to the site utilities (#3200)
- Loading branch information
Showing
28 changed files
with
1,455 additions
and
0 deletions.
There are no files selected for viewing
117 changes: 117 additions & 0 deletions
117
sites/site-utilities/src/definitions/fast-components/fast-anchor.definition.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
], | ||
}, | ||
], | ||
}; |
41 changes: 41 additions & 0 deletions
41
sites/site-utilities/src/definitions/fast-components/fast-badge.definition.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
], | ||
}, | ||
], | ||
}; |
135 changes: 135 additions & 0 deletions
135
sites/site-utilities/src/definitions/fast-components/fast-button.definition.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
], | ||
}, | ||
], | ||
}; |
18 changes: 18 additions & 0 deletions
18
sites/site-utilities/src/definitions/fast-components/fast-card.definition.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
], | ||
}, | ||
], | ||
}; |
55 changes: 55 additions & 0 deletions
55
sites/site-utilities/src/definitions/fast-components/fast-checkbox.definition.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
], | ||
}, | ||
], | ||
}; |
Oops, something went wrong.