Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove _meta.library #380

Merged
merged 2 commits into from
Aug 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ Here's an example `_meta` object:
import META from '../../utils/Meta'

const _meta = {
library: META.library.semanticUI,
name: 'MyComponent',
type: META.type.module,
props: {
Expand Down
2 changes: 1 addition & 1 deletion docs/app/Components/ComponentDoc/ComponentDescription.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class ComponentDescription extends Component {
renderSemanticDocsLink = () => {
const { _meta } = this.props

if (!META.isSemanticUI(_meta)) return null
if (META.isAddon(_meta)) return null
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isSemanticUI and isStardust is now determined by whether or not a component is an addon type. All other types are SUI core.


const name = META.isParent(_meta) ? _meta.name : _meta.parent
const url = `http://semantic-ui.com/${_meta.type}s/${name}.html`.toLowerCase()
Expand Down
1 change: 0 additions & 1 deletion src/addons/Confirm/Confirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export default class Confirm extends Component {
})

static _meta = {
library: META.library.stardust,
name: 'Confirm',
type: META.type.addon,
}
Expand Down
1 change: 0 additions & 1 deletion src/addons/Radio/Radio.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ function Radio(props) {
}

Radio._meta = {
library: META.library.stardust,
name: 'Radio',
type: META.type.addon,
}
Expand Down
1 change: 0 additions & 1 deletion src/addons/Select/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ function Select(props) {
}

Select._meta = {
library: META.library.stardust,
name: 'Select',
type: META.type.addon,
}
Expand Down
1 change: 0 additions & 1 deletion src/addons/Textarea/Textarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default class Textarea extends Component {
}

static _meta = {
library: META.library.stardust,
name: 'Textarea',
type: META.type.addon,
}
Expand Down
1 change: 0 additions & 1 deletion src/collections/Breadcrumb/Breadcrumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ function Breadcrumb(props) {
}

Breadcrumb._meta = {
library: META.library.semanticUI,
name: 'Breadcrumb',
type: META.type.collection,
props: {
Expand Down
1 change: 0 additions & 1 deletion src/collections/Breadcrumb/BreadcrumbDivider.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ function BreadcrumbDivider(props) {
}

BreadcrumbDivider._meta = {
library: META.library.semanticUI,
name: 'BreadcrumbDivider',
type: META.type.collection,
parent: 'Breadcrumb',
Expand Down
1 change: 0 additions & 1 deletion src/collections/Breadcrumb/BreadcrumbSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ function BreadcrumbSection(props) {
}

BreadcrumbSection._meta = {
library: META.library.semanticUI,
name: 'BreadcrumbSection',
type: META.type.collection,
parent: 'Breadcrumb',
Expand Down
1 change: 0 additions & 1 deletion src/collections/Form/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export default class Form extends Component {
}

static _meta = {
library: META.library.semanticUI,
name: 'Form',
type: META.type.collection,
}
Expand Down
1 change: 0 additions & 1 deletion src/collections/Form/FormField.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export default class FormField extends Component {
}

static _meta = {
library: META.library.semanticUI,
name: 'FormField',
parent: 'Form',
type: META.type.collection,
Expand Down
1 change: 0 additions & 1 deletion src/collections/Form/FormFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default class FormFields extends Component {
}

static _meta = {
library: META.library.semanticUI,
name: 'FormFields',
parent: 'Form',
type: META.type.collection,
Expand Down
1 change: 0 additions & 1 deletion src/collections/Grid/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ Grid.Column = GridColumn
Grid.Row = GridRow

Grid._meta = {
library: META.library.semanticUI,
name: 'Grid',
type: META.type.collection,
props: {
Expand Down
1 change: 0 additions & 1 deletion src/collections/Grid/GridColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ function GridColumn(props) {
}

GridColumn._meta = {
library: META.library.semanticUI,
name: 'GridColumn',
parent: 'Grid',
type: META.type.collection,
Expand Down
1 change: 0 additions & 1 deletion src/collections/Grid/GridRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ function GridRow(props) {
}

GridRow._meta = {
library: META.library.semanticUI,
name: 'GridRow',
parent: 'Grid',
type: META.type.collection,
Expand Down
1 change: 0 additions & 1 deletion src/collections/Menu/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export default class Menu extends Component {
}

static _meta = {
library: META.library.semanticUI,
name: 'Menu',
type: META.type.collection,
}
Expand Down
1 change: 0 additions & 1 deletion src/collections/Menu/MenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ function MenuItem({ __onClick, active, children, className, label, name, onClick
}

MenuItem._meta = {
library: META.library.semanticUI,
name: 'MenuItem',
type: META.type.collection,
parent: 'Menu',
Expand Down
1 change: 0 additions & 1 deletion src/collections/Message/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export default class Message extends Component {
}

static _meta = {
library: META.library.semanticUI,
name: 'Message',
type: META.type.collection,
}
Expand Down
1 change: 0 additions & 1 deletion src/collections/Table/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ export default class Table extends Component {
}

static _meta = {
library: META.library.semanticUI,
name: 'Table',
type: META.type.collection,
}
Expand Down
1 change: 0 additions & 1 deletion src/collections/Table/TableColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ TableColumn.propTypes = {
}

TableColumn._meta = {
library: META.library.semanticUI,
name: 'TableColumn',
type: META.type.collection,
parent: 'Table',
Expand Down
1 change: 0 additions & 1 deletion src/elements/Button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default class Button extends Component {
}

static _meta = {
library: META.library.semanticUI,
name: 'Button',
type: META.type.element,
}
Expand Down
1 change: 0 additions & 1 deletion src/elements/Button/Buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default class Buttons extends Component {
}

static _meta = {
library: META.library.semanticUI,
name: 'Buttons',
type: META.type.element,
parent: 'Button',
Expand Down
1 change: 0 additions & 1 deletion src/elements/Container/Container.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ function Container(props) {
}

Container._meta = {
library: META.library.semanticUI,
name: 'Container',
type: META.type.element,
props: {
Expand Down
1 change: 0 additions & 1 deletion src/elements/Divider/Divider.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ function Divider(props) {
}

Divider._meta = {
library: META.library.semanticUI,
name: 'Divider',
type: META.type.element,
}
Expand Down
1 change: 0 additions & 1 deletion src/elements/Flag/Flag.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ function Flag(props) {
}

Flag._meta = {
library: META.library.semanticUI,
name: 'Flag',
type: META.type.element,
props: {
Expand Down
1 change: 0 additions & 1 deletion src/elements/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ function Header(props) {
}

Header._meta = {
library: META.library.semanticUI,
name: 'Header',
type: META.type.element,
}
Expand Down
1 change: 0 additions & 1 deletion src/elements/Header/HeaderH1.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ function HeaderH1(props) {
}

HeaderH1._meta = {
library: META.library.semanticUI,
name: 'HeaderH1',
parent: 'Header',
type: META.type.element,
Expand Down
1 change: 0 additions & 1 deletion src/elements/Header/HeaderH2.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ function HeaderH2(props) {
}

HeaderH2._meta = {
library: META.library.semanticUI,
name: 'HeaderH2',
parent: 'Header',
type: META.type.element,
Expand Down
1 change: 0 additions & 1 deletion src/elements/Header/HeaderH3.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ function HeaderH3(props) {
}

HeaderH3._meta = {
library: META.library.semanticUI,
name: 'HeaderH3',
parent: 'Header',
type: META.type.element,
Expand Down
1 change: 0 additions & 1 deletion src/elements/Header/HeaderH4.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ function HeaderH4(props) {
}

HeaderH4._meta = {
library: META.library.semanticUI,
name: 'HeaderH4',
parent: 'Header',
type: META.type.element,
Expand Down
1 change: 0 additions & 1 deletion src/elements/Header/HeaderH5.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ function HeaderH5(props) {
}

HeaderH5._meta = {
library: META.library.semanticUI,
name: 'HeaderH5',
parent: 'Header',
type: META.type.element,
Expand Down
1 change: 0 additions & 1 deletion src/elements/Header/HeaderH6.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ function HeaderH6(props) {
}

HeaderH6._meta = {
library: META.library.semanticUI,
name: 'HeaderH6',
parent: 'Header',
type: META.type.element,
Expand Down
1 change: 0 additions & 1 deletion src/elements/Header/HeaderSubheader.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ function HeaderSubheader(props) {
}

HeaderSubheader._meta = {
library: META.library.semanticUI,
name: 'HeaderSubheader',
parent: 'Header',
type: META.type.element,
Expand Down
1 change: 0 additions & 1 deletion src/elements/Header/_Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ function _Header(props) {
}

_Header._meta = {
library: META.library.semanticUI,
name: '_Header',
type: META.type.element,
props: {
Expand Down
1 change: 0 additions & 1 deletion src/elements/Icon/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ function Icon(props) {
Icon.Group = IconGroup

Icon._meta = {
library: META.library.semanticUI,
name: 'Icon',
type: META.type.element,
props: {
Expand Down
1 change: 0 additions & 1 deletion src/elements/Icon/IconGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ function IconGroup(props) {


IconGroup._meta = {
library: META.library.semanticUI,
name: 'IconGroup',
parent: 'Icon',
type: META.type.element,
Expand Down
1 change: 0 additions & 1 deletion src/elements/Image/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default class Image extends Component {
}

static _meta = {
library: META.library.semanticUI,
name: 'Image',
type: META.type.element,
}
Expand Down
1 change: 0 additions & 1 deletion src/elements/Input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export default class Input extends Component {
}

static _meta = {
library: META.library.semanticUI,
name: 'Input',
type: META.type.element,
}
Expand Down
1 change: 0 additions & 1 deletion src/elements/Label/Label.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ function Label(props) {
}

Label._meta = {
library: META.library.semanticUI,
name: 'Label',
type: META.type.element,
props: {
Expand Down
1 change: 0 additions & 1 deletion src/elements/List/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default class List extends Component {
}

static _meta = {
library: META.library.semanticUI,
name: 'List',
type: META.type.element,
}
Expand Down
1 change: 0 additions & 1 deletion src/elements/List/ListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export default class ListItem extends Component {
}

static _meta = {
library: META.library.semanticUI,
name: 'ListItem',
type: META.type.element,
parent: 'List',
Expand Down
1 change: 0 additions & 1 deletion src/elements/Loader/Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ function Loader(props) {
}

Loader._meta = {
library: META.library.semanticUI,
name: 'Loader',
type: META.type.element,
props: {
Expand Down
1 change: 0 additions & 1 deletion src/elements/Rail/Rail.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ function Rail(props) {
}

Rail._meta = {
library: META.library.semanticUI,
name: 'Rail',
props: {
close: ['very'],
Expand Down
1 change: 0 additions & 1 deletion src/elements/Segment/Segment.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export default class Segment extends Component {
}

static _meta = {
library: META.library.semanticUI,
name: 'Segment',
type: META.type.element,
}
Expand Down
1 change: 0 additions & 1 deletion src/elements/Segment/SegmentSegments.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default class SegmentSegments extends Component {
}

static _meta = {
library: META.library.semanticUI,
name: 'SegmentSegments',
type: META.type.element,
parent: 'Segment',
Expand Down
1 change: 0 additions & 1 deletion src/modules/Accordion/Accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export default class Accordion extends AutoControlledComponent {
}

static _meta = {
library: META.library.semanticUI,
name: 'Accordion',
type: META.type.module,
}
Expand Down
1 change: 0 additions & 1 deletion src/modules/Accordion/AccordionContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ AccordionContent.propTypes = {
}

AccordionContent._meta = {
library: META.library.semanticUI,
name: 'AccordionContent',
type: META.type.module,
parent: 'Accordion',
Expand Down
1 change: 0 additions & 1 deletion src/modules/Accordion/AccordionTitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ AccordionTitle.propTypes = {
}

AccordionTitle._meta = {
library: META.library.semanticUI,
name: 'AccordionTitle',
type: META.type.module,
parent: 'Accordion',
Expand Down
1 change: 0 additions & 1 deletion src/modules/Checkbox/Checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const typeMap = {
}

const _meta = {
library: META.library.semanticUI,
name: 'Checkbox',
type: META.type.module,
props: {
Expand Down
Loading