Skip to content

Commit

Permalink
moved extensions to category folders, added exports
Browse files Browse the repository at this point in the history
  • Loading branch information
dfee committed Jun 14, 2019
1 parent 3884037 commit d0593f2
Show file tree
Hide file tree
Showing 15 changed files with 33 additions and 6 deletions.
27 changes: 27 additions & 0 deletions src/__tests__/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,20 @@ Object {
},
"render": [Function],
},
"Divider": Object {
"$$typeof": Symbol(react.forward_ref),
"defaultProps": Object {
"as": "div",
"children": "",
},
"displayName": "Divider",
"propTypes": Object {
"children": [Function],
"color": [Function],
"vertical": [Function],
},
"render": [Function],
},
"Dropdown": Object {
"$$typeof": Symbol(react.forward_ref),
"Container": [Function],
Expand Down Expand Up @@ -993,6 +1007,19 @@ Object {
"displayName": "Numeric",
"render": [Function],
},
"PageLoader": Object {
"$$typeof": Symbol(react.forward_ref),
"defaultProps": Object {
"as": "div",
},
"displayName": "PageLoader",
"propTypes": Object {
"active": [Function],
"color": [Function],
"direction": [Function],
},
"render": [Function],
},
"Pagination": Object {
"$$typeof": Symbol(react.forward_ref),
"Ellipsis": Object {
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions src/elements/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export { Icon } from "./icon";
export { Image } from "./image";
export { Notification } from "./notification";
export { Block, Delete, Heading, Highlight, Loader, Numeric } from "./other";
export { PageLoader } from "./page-loader";
export { Progress } from "./progress";
export { Table } from "./table";
export { Tag } from "./tag";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { DEFAULTS } from "src/base/helpers/variables";
import {
PAGE_LOADER_DEFAULTS,
PageLoader,
} from "src/extensions/page-loader/page-loader";
} from "src/elements/page-loader/page-loader";

import {
hasProperties,
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions src/extensions/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Divider
menu: Extensions
route: /extensions/divider
menu: Layout
route: /layout/divider
---

import { Playground } from "docz";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";

import { DEFAULTS } from "src/base/helpers/variables";
import { Divider } from "src/extensions/divider/divider";
import { Divider } from "src/layout/divider/divider";

import {
hasProperties,
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions src/layout/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { Divider } from "./divider";
export { Footer } from "./footer";
export { Hero } from "./hero";
export { Section } from "./section";

0 comments on commit d0593f2

Please sign in to comment.