Skip to content
This repository was archived by the owner on Aug 2, 2024. It is now read-only.

Commit 9788209

Browse files
fixes docs (by removing 'undefined') from some api docs
1 parent 9e8a3fb commit 9788209

File tree

10 files changed

+11
-3
lines changed

10 files changed

+11
-3
lines changed

src/components/Form/Controls/TextArea.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type Type = keyof (typeof typeMapping);
3333
const Types = Object.keys(typeMapping) as Type[];
3434

3535
@Component({ name: componentName('TextArea') })
36-
@Api.Component('TextArea')
36+
@Api.Component('Text Area')
3737
@Api.Event('input', 'Sent when the value changes', ['value', 'any'])
3838
export class TextArea extends TsxComponent<Props> {
3939
@Api.Prop('id of the text area element', prop => prop.type(String))

src/components/Form/FieldSet.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import TsxComponent from '@/vue-tsx';
44
import { Api } from '@/api';
55

66
@Component({ name: componentName('FieldSet') })
7+
@Api.Component('Field Set')
78
@Api.defaultSlot('Content of the field set. Usually a legend with a form group.')
89
export class FieldSet extends TsxComponent<{}> {
910
public render() {

src/components/Form/FormGroup.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import TsxComponent from '@/vue-tsx';
44
import { Api } from '@/api';
55

66
@Component({ name: componentName('FormGroup') })
7+
@Api.Component('Form Group')
78
@Api.defaultSlot('Content of the form group. Usually form items.')
89
export class FormGroup extends TsxComponent<{}> {
910
public render() {

src/components/Form/FormItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ interface Props {
2323
};
2424
},
2525
})
26+
@Api.Component('Form Item')
2627
@Api.defaultSlot('Content of the form item. Usually inputs and labels.')
2728
export class FormItem extends mixins(Uid) implements ItemIdentification {
2829
@Prop({ type: String, required: false, default: null })

src/components/Form/FormSet.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { componentName } from '@/util';
66
import { Api } from '@/api';
77

88
@Component({ name: componentName('FormSet') })
9+
@Api.Component('Form Set')
910
@Api.defaultSlot('Content of the form set (usually form items).')
1011
export class FormSet extends Vue {
1112
public render() {

src/components/Form/Legend.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { componentName } from '@/util';
66
import { Api } from '@/api';
77

88
@Component({ name: componentName('Legend') })
9+
@Api.Component('Legend')
910
@Api.defaultSlot('Legend text')
1011
export class Legend extends Vue {
1112
public render() {

src/components/Layout/Shell/Shell.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Api } from '@/api';
44
import TsxComponent from '@/vue-tsx';
55

66
@Component({ name: componentName('Shell') })
7+
@Api.Component('Shell')
78
@Api.defaultSlot('Main Content')
89
export class Shell extends TsxComponent<{}> {
910
public render() {

src/components/Layout/Shell/ShellFooter.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ interface Props {
1111
}
1212

1313
@Component({ name: componentName('ShellFooter') })
14+
@Api.Component('Shell Footer')
1415
@Api.defaultSlot('Footer Content')
1516
export class ShellFooter extends TsxComponent<Props> {
1617
@Prop({type: Boolean, default: false })

src/components/Layout/Shell/ShellHeader.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ interface Props {
1111
}
1212

1313
@Component({ name: componentName('ShellHeader') })
14+
@Api.Component('Shell Header')
1415
@Api.defaultSlot('Header Content')
1516
export class ShellHeader extends TsxComponent<Props> {
1617
@Prop({type: Boolean, default: false })

src/docs/pages/Image/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ExampleCollectionFunction } from '../types';
22

3-
export const plugin: ExampleCollectionFunction = ({}) => {
4-
return { componentStatus: 'stable', icon: 'background', relatedComponents: [] };
3+
export const plugin: ExampleCollectionFunction = ({ Image }) => {
4+
return { componentStatus: 'stable', icon: 'background', relatedComponents: [Image] };
55
};

0 commit comments

Comments
 (0)