1 | import './require-babel-polyfill'
|
2 |
|
3 | import Avatar from './components/Avatar/Avatar'
|
4 | import BotText from './components/BotText/BotText'
|
5 | import Button from './components/Button/Button'
|
6 | import Container from './components/Container/Container'
|
7 | import DateSelect from './components/DateSelect/DateSelect'
|
8 | import DateRangeSelect from './components/DateRangeSelect/DateRangeSelect'
|
9 | import Calendar from './components/Calendar/Calendar'
|
10 | import BigCalendar from './components/Calendar/BigCalendar'
|
11 | import Input from './components/Input/Input'
|
12 | import Pre from './components/Pre/Pre'
|
13 | import Switch from './components/Switch/Switch'
|
14 | import Loader from './components/Loader/Loader'
|
15 | import Form from './components/Form/Form'
|
16 | import LinkPile from './components/LinkPile/LinkPile'
|
17 | import Select from './components/Select/Select'
|
18 | import SubmitWrapper from './components/SubmitWrapper/SubmitWrapper'
|
19 | import Pager from './components/Pager/Pager'
|
20 | import Stars from './components/Stars/Stars'
|
21 | import DevControls from './components/DevControls/DevControls'
|
22 | import * as ButtonGrid from './components/ButtonGrid/ButtonGrid'
|
23 | import StatsSlider from './components/StatsSlider/StatsSlider'
|
24 | import Styleguide from './components/Styleguide/Styleguide'
|
25 | import ImageCropper from './components/ImageCropper/ImageCropper'
|
26 | import TrainingGuide from './components/TrainingGuide/TrainingGuide'
|
27 | import TimeInput from './components/TimeInput/TimeInput'
|
28 | import Onboarding from './components/Onboarding/Onboarding'
|
29 | import Callout from './components/Callout/Callout'
|
30 | import Dialog from './components/Dialog/Dialog'
|
31 | import Error from './components/Error/Error'
|
32 | import Feed, { FeedItem, FeedAttachment } from './components/Feed/Feed'
|
33 | import Icon from './components/Icon/Icon'
|
34 | import IconButton from './components/IconButton/IconButton'
|
35 | import ControlButton from './components/ControlButton/ControlButton'
|
36 | import Search from './components/Search/Search'
|
37 | import HelpButton from './components/HelpButton/HelpButton'
|
38 | import * as Typography from './components/Typography/Typography'
|
39 | import * as List from './components/List/List'
|
40 | import * as Tabs from './components/Tabs/Tabs'
|
41 | import skill from './skillskit'
|
42 | import _document from './skillskit/next/_document'
|
43 | import Page from './skillskit/next/Page'
|
44 | import withStore, { createStore } from './skillskit/store/withStore'
|
45 | import lang from './skillskit/helpers/lang'
|
46 | import sharable from './skillskit/helpers/sharable'
|
47 |
|
48 | const Sprucebot = {
|
49 | testUtils: {
|
50 |
|
51 | createStore
|
52 | },
|
53 | utils: {
|
54 | arrayMove(arr, previousIndex, newIndex) {
|
55 | const array = arr.slice(0)
|
56 | if (newIndex >= array.length) {
|
57 | let k = newIndex - array.length
|
58 | while (k-- + 1) {
|
59 | array.push(undefined)
|
60 | }
|
61 | }
|
62 | array.splice(newIndex, 0, array.splice(previousIndex, 1)[0])
|
63 | return array
|
64 | }
|
65 | },
|
66 | lang,
|
67 | skill,
|
68 | _document,
|
69 | Page,
|
70 | withStore,
|
71 | Avatar,
|
72 | BotText,
|
73 | Button,
|
74 | Container,
|
75 | DateSelect,
|
76 | DateRangeSelect,
|
77 | Calendar,
|
78 | BigCalendar,
|
79 | Input,
|
80 | Pre,
|
81 | Switch,
|
82 | Loader,
|
83 | LinkPile,
|
84 | Form,
|
85 | Select,
|
86 | SubmitWrapper,
|
87 | Pager,
|
88 | StatsSlider,
|
89 | ButtonGrid,
|
90 | Stars,
|
91 | Styleguide,
|
92 | ImageCropper,
|
93 | DevControls,
|
94 | Callout,
|
95 | Feed,
|
96 | FeedItem,
|
97 | Dialog,
|
98 | Error,
|
99 | FeedAttachment,
|
100 | TrainingGuide,
|
101 | TimeInput,
|
102 | Onboarding,
|
103 | Icon,
|
104 | HelpButton,
|
105 | IconButton,
|
106 | ControlButton,
|
107 | Search,
|
108 | sharable,
|
109 | ...Typography,
|
110 | ...List,
|
111 | ...Tabs,
|
112 | ...ButtonGrid
|
113 | }
|
114 | module.exports = Sprucebot
|