Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Commit 5b50be5

Browse files
committed
Rename page-widgets to widgets, updated docs for custom-box
1 parent 3ab1513 commit 5b50be5

36 files changed

Lines changed: 113 additions & 190 deletions

reactjs-adminlte/public/dist/js/buttons.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reactjs-adminlte/public/dist/js/dashboardV1.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reactjs-adminlte/public/dist/js/generalUIElements.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reactjs-adminlte/public/dist/js/timeline.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reactjs-adminlte/public/dist/js/vendors.js

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reactjs-adminlte/public/dist/js/widgets.bundle.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reactjs-adminlte/public/src/widgets/README.md renamed to reactjs-adminlte/public/src/widgets-page/README.md

Lines changed: 62 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
#### [Go to the widgets folder](./js/components/page-widgets)
1+
#### [Go to the widgets folder](./js/components/widgets)
22

33
## List of widgets
44

55

6-
### - [InfoTile](./js/components/page-widgets/info-tile/info-tile.js)
6+
### - [InfoTile](./js/components/widgets/info-tile/info-tile.js)
77

88
A basic info-tile for displaying info.
99

1010
#### Usage:
1111

12-
Props: This component takes 5 values.
12+
Props: This component takes 6 values.
1313

1414
```javascript
1515

16+
width = 3 (Sets the size/width)
1617
theme = 'bg-aqua' / 'bg-green' / 'bg-yellow' (To apply background color to the icon),
1718
icon = 'fa-envelope-o' / 'fa-flag-0' / 'fa-files-0' (Any font-awesome icon)
1819
subject = 'Can be a string or a number'
@@ -23,6 +24,7 @@ content = 'Can be a string or a number'
2324

2425
```javascript
2526
<InfoTile
27+
width = 3
2628
content = ''
2729
icon = 'fa-envelope-o'
2830
stats = '1,410'
@@ -32,26 +34,26 @@ content = 'Can be a string or a number'
3234
```
3335
![](../../../screenshots/info-tile.png)
3436

35-
You can optionally display a progress status and bar by passing the [ProgressBar](./js/components/page-widgets/info-tile/progress-bar.js) component as props.children
37+
You can optionally display a progress status and bar by passing the [ProgressBar](./js/components/widgets/info-tile/progress-bar.js) component as props.children
3638

3739
```javascript
38-
<InfoTile content = '' icon = 'fa-thumbs-o-up' stats = '41,410' subject = 'Likes' theme = 'bg-green' >
40+
<InfoTile width = 3 content = '' icon = 'fa-thumbs-o-up' stats = '41,410' subject = 'Likes' theme = 'bg-green' >
3941
<ProgressBar percent = 50 description = '50% Increase in 30 Days' color = 'white' />
4042
</InfoTile>
4143
```
4244
![](../../../screenshots/progress-info-tile.png)
4345

4446

45-
### - [StatTile](./js/components/page-widgets/stat-tile.js)
47+
### - [StatTile](./js/components/widgets/stat-tile.js)
4648

4749
A tile for displaying some basic info, highlighting numbers or stats.
4850

4951
#### Usage:
5052

51-
Props: This component takes 5 values from props, 1 is optional
53+
Props: This component takes 6 values from props, 1 is optional
5254

5355
```javascript
54-
56+
width = 3 (Sets the size/width)
5557
theme = 'bg-aqua' / 'bg-green' / 'bg-red' (To apply background color to the icon),
5658
icon = 'fa-shopping-cart' / 'ion-stats-bars' / 'ion-person-add' (Any font-awesome icon)
5759
subject = 'Can be a string or a number'
@@ -62,6 +64,7 @@ link = 'Link to go to for more information' (Optional)
6264

6365
```javascript
6466
<StatTile
67+
width = 3
6568
theme = 'bg-yellow'
6669
icon = 'ion-person-add'
6770
subject = 'User Registration'
@@ -73,21 +76,24 @@ link = 'Link to go to for more information' (Optional)
7376
![](../../../screenshots/stat-tile.png)
7477

7578

76-
### - [SmallBox](./js/components/page-widgets/small-box.js)
79+
### - [Box](./js/components/widgets/custom-box/box.js)
7780

78-
A box / window for displaying some basic info, to which properties can be applied.
81+
A customizable box / window for displaying some basic info, to which properties can be applied. Use this to make your own version of a box.
7982

8083
#### Usage:
8184

82-
Props: This component takes 6 values from props, out of which 2 are optional
85+
Props: This component takes 7 values from props, out of which 2 are optional
8386

8487
```javascript
85-
type = 'expandable' / 'collapsable' / 'removable' (To make the box expandable, collapsable or removable)
88+
width = 3 (Sets the size/width)
89+
collapsed = true/false (Optional boolean to set initial state of the box. Setting it to true will render a collapsed box, by default this is false)
8690
theme = 'box-default' / 'box-primary' / 'box-warning' / 'box-danger' / 'box-success'
8791
loading = true (Optional boolean value, to show a loading animation)
88-
border = true (Optional boolean value, will apply a border for the box and color for the title bar)
92+
border = true (Optional boolean value, will apply a border for the box and color for the title bar if true)
8993
title = 'Can be a string or a number'
9094
content = 'Can be a string or a number'
95+
footer = 'Can be a string or a number' (Optional)
96+
boxTools = {['collapse','remove','expand']} (Optional buttons to make the box expand, collapse or remove upon clicking )
9197
```
9298

9399
#### Examples:
@@ -96,12 +102,14 @@ content = 'Can be a string or a number'
96102

97103
```javascript
98104

99-
<SmallBox
105+
<Box
106+
width = 3
100107
border = true
101108
content = 'The body of the box'
102109
theme = 'box-default'
103110
title = 'Expandable'
104-
type = 'expandable'
111+
collapsed = true
112+
boxTools = ['expand']
105113
/>
106114
```
107115

@@ -111,12 +119,14 @@ content = 'Can be a string or a number'
111119

112120
```javascript
113121

114-
<SmallBox
122+
<Box
123+
width = 3
115124
border = true
116125
content = 'The body of the box'
117126
theme = 'box-primary'
118127
title = 'Collapsable'
119-
type = 'collapsable'
128+
collapsed = true
129+
boxTools = ['collapse']
120130
/>
121131
```
122132

@@ -125,11 +135,12 @@ content = 'Can be a string or a number'
125135
##### A removable box without border
126136

127137
```javascript
128-
<SmallBox
138+
<Box
139+
width = 3
129140
content = 'The body of the box'
130141
theme = 'box-danger'
131142
title = 'Removable'
132-
type = 'removable'
143+
boxTools = ['remove']
133144
/>
134145
```
135146

@@ -138,27 +149,29 @@ content = 'Can be a string or a number'
138149
##### A removable box without border with loading animation
139150

140151
```javascript
141-
<SmallBox
152+
<Box
153+
width = 3
142154
content = 'The body of the box'
143155
theme = 'box-warning'
144156
loading = true
145157
title = 'Loading state'
146-
type = 'removable'
158+
boxTools = ['collapse']
147159
/>
148160
```
149161

150162
![](../../../screenshots/small-box-loading.png)
151163

152164

153-
### - [ChatBox](./js/components/page-widgets/chat-box/chat-box.js)
165+
### - [ChatBox](./js/components/widgets/chat-box/chat-box.js)
154166

155167
A box / window which displays chat messages, notifications and contact information.
156168

157169
#### Usage:
158170

159-
Props: This component takes 7 values from props to customize it's UI.
171+
Props: This component takes 8 values from props to customize it's UI.
160172

161173
```javascript
174+
width = 3 (Sets the size/width)
162175
border = true/false (To display the border)
163176
buttonTheme = 'btn-primary' / 'btn-success' / 'btn-warning' (To apply color for the submit button)
164177
chatTheme = 'direct-chat-primary' / 'direct-chat-success' / 'direct-chat-warning' / 'direct-chat-danger' / {Chat messages color}
@@ -168,7 +181,7 @@ notifications = 'Can be a string or a number' (Number of notifications)
168181
title = 'Can be a string or a number'
169182
```
170183

171-
Pass the [Conversations](./js/components/page-widgets/chat-box/conversations.js) component as props.children to add chat messages. It accepts an array of objects containing chat information.
184+
Pass the [Conversations](./js/components/widgets/chat-box/conversations.js) component as props.children to add chat messages. It accepts an array of objects containing chat information.
172185

173186
```javascript
174187
var conversationsArray = [{
@@ -181,7 +194,7 @@ var conversationsArray = [{
181194
<Conversations conversations = {conversationsArray} />
182195
```
183196

184-
Pass the [Contacts](./js/components/page-widgets/chat-box/contacts.js) component as props.children to add contacts in the right drawer. It accepts an array of objects containing contact information
197+
Pass the [Contacts](./js/components/widgets/chat-box/contacts.js) component as props.children to add contacts in the right drawer. It accepts an array of objects containing contact information
185198

186199
```javascript
187200
var contactsArray = [{
@@ -228,6 +241,7 @@ var contactsInfo = [{
228241
}];
229242

230243
<ChatBox
244+
width = 3
231245
buttonTheme = 'btn-primary'
232246
chatTheme = 'direct-chat-primary'
233247
headerTheme = 'box-primary'
@@ -243,15 +257,16 @@ var contactsInfo = [{
243257
![](../../../screenshots/chat-box.png)
244258

245259

246-
### - [ProfileCard](./js/components/page-widgets/profile-card/profile-card.js)
260+
### - [ProfileCard](./js/components/widgets/profile-card/profile-card.js)
247261

248262
A card to display profile information in social media.
249263

250264
#### Usage:
251265

252-
Props: This component takes 5 values from props, 1 is optional
266+
Props: This component takes 7 values from props, 1 is optional
253267

254268
```javascript
269+
width = 3 (Sets the size/width)
255270
theme = 'bg-yellow' / 'bg-aqua-active' / 'bg-red' (Optional, To apply background color),
256271
displayName = 'String'
257272
description = 'String' (Description below the display name)
@@ -260,7 +275,7 @@ coverPicture = 'url of the image' (Optional cover picture, this will overwrite t
260275
pictureAlignment = 'left' (Display picture is center aligned by default, can be left-aligned)
261276
```
262277

263-
You can choose between [ProfileInfoBlocks](./js/components/page-widgets/profile-card/profile-info-blocks.js) component or [ProfileInfoList](./js/components/page-widgets/profile-card/profile-info-list.js) component to display additional meta data in the profile card. You have to pass them as props.children.
278+
You can choose between [ProfileInfoBlocks](./js/components/widgets/profile-card/profile-info-blocks.js) component or [ProfileInfoList](./js/components/widgets/profile-card/profile-info-list.js) component to display additional meta data in the profile card. You have to pass them as props.children.
264279

265280
```javascript
266281
var infoList = [{
@@ -310,10 +325,11 @@ var infoList = [{
310325
}];
311326

312327
<ProfileCard
313-
theme = 'bg-red',
314-
displayName = 'Jane Doe',
315-
description = 'Lead Developer',
316-
displayPicture = '../dist/img/user7-128x128.jpg',
328+
width = 3
329+
theme = 'bg-red'
330+
displayName = 'Jane Doe'
331+
description = 'Lead Developer'
332+
displayPicture = '../dist/img/user7-128x128.jpg'
317333
pictureAlignment = 'left' >
318334

319335
<ProfileInfoList list={infoList} />
@@ -335,10 +351,11 @@ var infoList = [{
335351
}];
336352

337353
<ProfileCard
338-
theme = 'bg-aqua',
339-
displayName = 'John Roe',
340-
description = 'Founder & CEO',
341-
displayPicture = '../dist/img/user1-128x128.jpg',
354+
width = 3
355+
theme = 'bg-aqua'
356+
displayName = 'John Roe'
357+
description = 'Founder & CEO'
358+
displayPicture = '../dist/img/user1-128x128.jpg'
342359
coverPicture = '../dist/img/photo4.png' >
343360

344361
<ProfileInfoBlocks list={infoList} />
@@ -347,15 +364,16 @@ var infoList = [{
347364
```
348365
![](../../../screenshots/profile-card-center.png)
349366

350-
### - [Post](./js/components/page-widgets/post/post.js)
367+
### - [Post](./js/components/widgets/post/post.js)
351368

352369
A post to b displayed in a news feed page on a social network.
353370

354371
#### Usage:
355372

356-
Props: This component takes 7 values from props.
373+
Props: This component takes 8 values from props.
357374

358375
```javascript
376+
width = 3 (Sets the size/width)
359377
displayName = 'John Doe'
360378
displayPicture = 'url/of/the/image'
361379
date = 'String'
@@ -365,7 +383,7 @@ attachments = (An embedded link within the post containing title, image and des
365383
comments = (Comments on the post)
366384
```
367385

368-
The Post component uses [Comment](./js/components/page-widgets/post/comment.js) component to render comments passed from props.comments. It accepts 4 values from props
386+
The Post component uses [Comment](./js/components/widgets/post/comment.js) component to render comments passed from props.comments. It accepts 4 values from props
369387

370388
```javascript
371389
content = 'string' (content of the comment)
@@ -374,7 +392,7 @@ displayPicture = 'url/of/the/image'
374392
date = 'date when commented'
375393
```
376394

377-
Post also uses [Attachment](./js/components/page-widgets/post/attachment.js) component to render attachments passed from props.attachments. It takes 4 values from props
395+
Post also uses [Attachment](./js/components/widgets/post/attachment.js) component to render attachments passed from props.attachments. It takes 4 values from props
378396

379397
```javascript
380398
title = 'string' (title of the attachment)
@@ -383,15 +401,15 @@ picture = 'url/of/the/image'
383401
content = 'content of the attachment'
384402
```
385403

386-
You can use [SocialInfo](./js/components/page-widgets/post/social-info.js) component to show additional information, such as likes, shares, views etc. Pass it as children of Post
404+
You can use [SocialInfo](./js/components/widgets/post/social-info.js) component to show additional information, such as likes, shares, views etc. Pass it as children of Post
387405

388406
```javascript
389407
var metaInfo = '50 likes - 10 comments';
390408

391409
<SocialInfo info={metaInfo} />
392410
```
393411

394-
You can use [SocialButton](./js/components/page-widgets/post/social-button.js) component to render buttons such as 'like' or 'share'. Pass it as children of Post. It accepts 3 values from props
412+
You can use [SocialButton](./js/components/widgets/post/social-button.js) component to render buttons such as 'like' or 'share'. Pass it as children of Post. It accepts 3 values from props
395413

396414
```javascript
397415
position = 'left'/'right' (optional, which side should the button appear - default is left)
@@ -418,6 +436,7 @@ var comments = [
418436
}
419437
];
420438
<Post
439+
width = 3
421440
displayName = 'Jonathan Burke Jr.'
422441
displayPicture = '../dist/img/user1-128x128.jpg'
423442
date = 'Shared publicly - 7:30 PM Today'
@@ -457,6 +476,7 @@ var attachments = [
457476
];
458477

459478
<Post
479+
width = 3
460480
displayName = 'Jonathan Burke Jr.'
461481
displayPicture = '../dist/img/user1-128x128.jpg'
462482
date = 'Shared publicly - 7:30 PM Today'

reactjs-adminlte/public/src/widgets/js/common-functions.js renamed to reactjs-adminlte/public/src/widgets-page/js/common-functions.js

File renamed without changes.

reactjs-adminlte/public/src/widgets/js/components/controls-menu.js renamed to reactjs-adminlte/public/src/widgets-page/js/components/controls-menu.js

File renamed without changes.

reactjs-adminlte/public/src/widgets/js/components/header-bar/header-bar.js renamed to reactjs-adminlte/public/src/widgets-page/js/components/header-bar/header-bar.js

File renamed without changes.

0 commit comments

Comments
 (0)