Skip to content

Commit

Permalink
chore(assets): add assets needed for testing to repository explicitly
Browse files Browse the repository at this point in the history
generated files are added to the repository as a safety-check when changing something, if the output
changes it should be accepted as part of the commit this way
  • Loading branch information
julrich committed Nov 1, 2022
1 parent fa2e6e6 commit b599d00
Show file tree
Hide file tree
Showing 34 changed files with 33,933 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,3 @@ $RECYCLE.BIN/
/figma-tokens.schema.dereffed.json
/parsed-tokens.json
/_token-map.scss

# JSON Schema
/src/components
13 changes: 13 additions & 0 deletions assets/schema/components/button/ButtonProps.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run `yarn run schema` to regenerate this file.
*/

export interface ButtonProps {
label: string;
href: string;
icon?: "chevron-right" | "close" | "none";
variant: "solid" | "clear" | "outline";
}
40 changes: 40 additions & 0 deletions assets/schema/components/button/button.schema.dereffed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://schema.uniform.dev/button.schema.json",
"title": "Button",
"type": "object",
"required": [
"href",
"label",
"variant"
],
"additionalProperties": false,
"properties": {
"label": {
"type": "string",
"default": "Lorem ipsum"
},
"href": {
"type": "string",
"default": "#"
},
"icon": {
"type": "string",
"enum": [
"chevron-right",
"close",
"none"
],
"default": "chevron-right"
},
"variant": {
"type": "string",
"enum": [
"solid",
"clear",
"outline"
],
"default": "solid"
}
}
}
28 changes: 28 additions & 0 deletions assets/schema/components/button/button.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://schema.uniform.dev/button.schema.json",
"title": "Button",
"type": "object",
"properties": {
"label": {
"type": "string",
"default": "Lorem ipsum"
},
"href": {
"type": "string",
"default": "#"
},
"icon": {
"type": "string",
"enum": ["chevron-right", "close", "none"],
"default": "chevron-right"
},
"variant": {
"type": "string",
"enum": ["solid", "clear", "outline"],
"default": "solid"
}
},
"required": ["href", "label", "variant"],
"additionalProperties": false
}
28 changes: 28 additions & 0 deletions assets/schema/components/content-box/ContentBoxProps.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run `yarn run schema` to regenerate this file.
*/

/**
* Select an image to display inside the content box, at the top
*/
export type ImageSource = string;
/**
* Topic for the content box. Displayed before the text, in bold
*/
export type Topic = string;
/**
* Text for the content box
*/
export type TextContent = string;

/**
* Component to display content in a condensed, boxed form
*/
export interface ContentBoxProps {
image?: ImageSource;
topic?: Topic;
text?: TextContent;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://schema.uniform.dev/content-box.schema.json",
"title": "Content Box",
"description": "Component to display content in a condensed, boxed form",
"type": "object",
"additionalProperties": false,
"properties": {
"image": {
"title": "Image source",
"type": "string",
"format": "image",
"default": "https://picsum.photos/seed/kdscontentbox/500/300",
"description": "Select an image to display inside the content box, at the top"
},
"topic": {
"title": "Topic",
"type": "string",
"default": "Lorem Ipsum",
"description": "Topic for the content box. Displayed before the text, in bold"
},
"text": {
"title": "Text content",
"type": "string",
"default": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ispum dolor distinctio minima unde voluptatum aut. Lorem ipsum dolor sit amet.",
"description": "Text for the content box",
"format": "markdown"
}
}
}
30 changes: 30 additions & 0 deletions assets/schema/components/content-box/content-box.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://schema.uniform.dev/content-box.schema.json",
"title": "Content Box",
"description": "Component to display content in a condensed, boxed form",
"type": "object",
"properties": {
"image": {
"title": "Image source",
"type": "string",
"format": "image",
"default": "https://picsum.photos/seed/kdscontentbox/500/300",
"description": "Select an image to display inside the content box, at the top"
},
"topic": {
"title": "Topic",
"type": "string",
"default": "Lorem Ipsum",
"description": "Topic for the content box. Displayed before the text, in bold"
},
"text": {
"title": "Text content",
"type": "string",
"default": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ispum dolor distinctio minima unde voluptatum aut. Lorem ipsum dolor sit amet.",
"description": "Text for the content box",
"format": "markdown"
}
},
"additionalProperties": false
}
Loading

0 comments on commit b599d00

Please sign in to comment.