diff --git a/packages/standard-components/components.json b/packages/standard-components/components.json index 4e45cb3e15..dd3d3e9d85 100644 --- a/packages/standard-components/components.json +++ b/packages/standard-components/components.json @@ -1,109 +1,4 @@ { - "_lib": "./dist/index.js", - "_templates": { - "saveRowButton": { - "description": "Save row button", - "component": "button" - } - }, - "embed": { - "name": "Embed", - "description": "Embed stuff", - "props": { - "embed": "string" - } - }, - "richtext": { - "name": "Rich Text", - "description": "A component that allows the user to enter long form text.", - "props": { - "value": "string" - } - }, - "icon": { - "description": "A HTML icon tag", - "props": { - "icon": "string", - "size": { - "type": "string", - "default": "fa-lg" - }, - "color": { - "type": "string", - "default": "#000" - } - } - }, - - "newrow": { - "name": "New Row", - "description": "Prepares a new row for creation", - "context": "table", - "children": true, - "data": true, - "baseComponent": true, - "props": { - "table": "tables" - } - }, - "cardstat": { - "name": "Stat Card", - "props": { - "title": "string", - "value": "string", - "label": "string" - } - }, - "cardhorizontal": { - "name": "Horizontal Card", - "props": { - "imageUrl": "string", - "heading": "string", - "description": "string", - "subtext": "string", - "linkText": "string", - "linkUrl": "string", - "linkColor": { - "type": "string", - "default": "#000" - }, - "linkHoverColor": { - "type": "string", - "default": "#000" - }, - "imageWidth": { - "type": "options", - "default": "8rem", - "options": [ - "8rem", - "12rem", - "16rem" - ] - }, - "cardWidth": { - "type": "options", - "default": "32rem", - "options": [ - "24rem", - "28rem", - "32rem", - "40rem", - "48rem", - "60rem", - "100%" - ] - }, - "imageHeight": { - "type": "options", - "default": "8rem", - "options": [ - "8rem", - "12rem", - "16rem" - ] - } - } - }, "bar": { "description": "Bar Chart", "data": true, @@ -383,39 +278,4 @@ } } }, - "datepicker": { - "name": "Date Picker", - "description": "Date Picker", - "bindable": "value", - "props": { - "placeholder": "string" - } - }, - "image": { - "description": "an HTML tag", - "props": { - "url": "string" - } - }, - - "heading": { - "name": "Heading", - "description": "An HTML H1 - H6 tag", - "props": { - "text": "string", - "type": { - "type": "options", - "default": "h1", - "options": [ - "h1", - "h2", - "h3", - "h4", - "h5", - "h6" - ] - } - }, - "tags": [] - } } diff --git a/packages/standard-components/src/RichText.svelte b/packages/standard-components/src/RichText.svelte index 18aca42b1a..3ad66e1703 100644 --- a/packages/standard-components/src/RichText.svelte +++ b/packages/standard-components/src/RichText.svelte @@ -3,6 +3,7 @@ import { RichText } from "@budibase/bbui" const { styleable } = getContext("sdk") + const component = getContext("component") export let value = ""